author | zautrix <zautrix> | 2004-10-29 10:53:31 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-29 10:53:31 (UTC) |
commit | 67146a3d92727f6fe3e92eacdb51da58bc7b0adf (patch) (side-by-side diff) | |
tree | 140ab8d70bab73ca75aae64c4d2fdfccd73b388a | |
parent | d96b4fd7188145c49120dd159b0ac00c987f4972 (diff) | |
download | kdepimpi-67146a3d92727f6fe3e92eacdb51da58bc7b0adf.zip kdepimpi-67146a3d92727f6fe3e92eacdb51da58bc7b0adf.tar.gz kdepimpi-67146a3d92727f6fe3e92eacdb51da58bc7b0adf.tar.bz2 |
fixed single click in cardview
-rw-r--r-- | kaddressbook/views/cardview.cpp | 6 | ||||
-rw-r--r-- | kaddressbook/views/kaddressbookcardview.cpp | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/kaddressbook/views/cardview.cpp b/kaddressbook/views/cardview.cpp index 6351c11..da552c3 100644 --- a/kaddressbook/views/cardview.cpp +++ b/kaddressbook/views/cardview.cpp @@ -35,4 +35,5 @@ #include <qtooltip.h> +#include "kabprefs.h" #include <kdebug.h> #include <kglobalsettings.h> @@ -657,5 +658,4 @@ CardView::CardView(QWidget *parent, const char *name) connect( d->mTimer, SIGNAL(timeout()), this, SLOT(tryShowFullText()) ); - connect( this, SIGNAL(executed(CardViewItem *)), this, SIGNAL( doubleClicked(CardViewItem *)) ); //US setBackgroundMode(PaletteBackground, PaletteBase); @@ -1248,5 +1248,5 @@ void CardView::contentsMouseReleaseEvent(QMouseEvent *e) CardViewItem *item = itemAt(e->pos()); - if (item && KGlobalSettings::singleClick()) + if (item && KABPrefs::instance()->mHonorSingleClick) { emit executed(item); @@ -1265,5 +1265,5 @@ void CardView::contentsMouseDoubleClickEvent(QMouseEvent *e) } - if (item && !KGlobalSettings::singleClick()) + if (item && !KABPrefs::instance()->mHonorSingleClick) { emit executed(item); diff --git a/kaddressbook/views/kaddressbookcardview.cpp b/kaddressbook/views/kaddressbookcardview.cpp index 7f33bb4..15f154e 100644 --- a/kaddressbook/views/kaddressbookcardview.cpp +++ b/kaddressbook/views/kaddressbookcardview.cpp @@ -243,4 +243,6 @@ void KAddressBookCardView::readConfig(KConfig *config) mCardView->setSeparatorWidth( config->readNumEntry( "SeparatorWidth", 2 ) ); +#if 0 + // LR KABPrefs::instance()->mHonorSingleClick is handled and fixed in cardviews contentsMouseDoubleClickEven disconnect(mCardView, SIGNAL(executed(CardViewItem *)), this, SLOT(addresseeExecuted(CardViewItem *))); @@ -252,5 +254,8 @@ void KAddressBookCardView::readConfig(KConfig *config) connect(mCardView, SIGNAL(doubleClicked(CardViewItem *)), this, SLOT(addresseeExecuted(CardViewItem *))); +#endif + connect(mCardView, SIGNAL(doubleClicked(CardViewItem *)), + this, SLOT(addresseeExecuted(CardViewItem *))); } |