Bug 118634 - need an easy way to copy and paste an address from the editor window
Summary: need an easy way to copy and paste an address from the editor window
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kab3
Classification: Miscellaneous
Component: general (show other bugs)
Version: 3.5
Platform: unspecified Linux
: NOR minor
Target Milestone: ---
Assignee: Tobias Koenig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-19 13:46 UTC by Jens Herden
Modified: 2009-08-05 16:28 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Herden 2005-12-19 13:46:26 UTC
Version:           3.5 (using KDE 3.5.0 Level "a" , SUSE 10.0 UNSUPPORTED)
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.13-15-default

In the editor window I can choose the home and work address and get a nice preview of the address below.
But why can I not copy this nice formatted text? 
I can not select anything in the widget! Maybe I there is a way I just could not figure out. 

So my wish is make this preview widget selectable so that I am able to copy from it into the clipboard.
Comment 1 Jens Herden 2005-12-23 17:11:13 UTC
I change this to a minor bug because it is really annoying and should be fixed for KDE 3.5.1.
Comment 2 Tobias Koenig 2005-12-30 09:36:42 UTC
SVN commit 492514 by tokoe:

Allow the selection/copy of the formatted address by replacing QLabel
with KActiveLabel.

BUGS: 118634


 M  +2 -1      addresseditwidget.cpp  
 M  +2 -1      addresseditwidget.h  


--- branches/KDE/3.5/kdepim/kaddressbook/addresseditwidget.cpp #492513:492514
@@ -37,6 +37,7 @@
 #include <qtooltip.h>
 
 #include <kaccelmanager.h>
+#include <kactivelabel.h>
 #include <kapplication.h>
 #include <kbuttonbox.h>
 #include <kcombobox.h>
@@ -89,7 +90,7 @@
            SLOT( updateAddressEdit() ) );
   layout->addWidget( mTypeCombo );
 
-  mAddressField = new QLabel( this );
+  mAddressField = new KActiveLabel( this );
   mAddressField->setFrameStyle( QFrame::Panel | QFrame::Sunken );
   mAddressField->setMinimumHeight( 20 );
   mAddressField->setAlignment( Qt::AlignTop );
--- branches/KDE/3.5/kdepim/kaddressbook/addresseditwidget.h #492513:492514
@@ -39,6 +39,7 @@
 class QTextEdit;
 class QToolButton;
 
+class KActiveLabel;
 class KComboBox;
 class KLineEdit;
 class KListView;
@@ -78,7 +79,7 @@
     AddressTypeCombo *mTypeCombo;
 
     QPushButton *mEditButton;
-    QLabel *mAddressField;
+    KActiveLabel *mAddressField;
 
     KABC::Address::List mAddressList;
     KABC::Addressee mAddressee;
Comment 3 Tobias Koenig 2009-08-05 16:28:12 UTC
The development of the old KAddressBook will be discontinued for KDE 4.4.
Since the new application has the same name, but a completly new code base we close all bug reports against the old version and ask the submitters to resend there reports against the new product.