author | zautrix <zautrix> | 2004-10-29 10:53:31 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-29 10:53:31 (UTC) |
commit | 67146a3d92727f6fe3e92eacdb51da58bc7b0adf (patch) (unidiff) | |
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 | |||
@@ -36,2 +36,3 @@ | |||
36 | 36 | ||
37 | #include "kabprefs.h" | ||
37 | #include <kdebug.h> | 38 | #include <kdebug.h> |
@@ -658,3 +659,2 @@ CardView::CardView(QWidget *parent, const char *name) | |||
658 | connect( d->mTimer, SIGNAL(timeout()), this, SLOT(tryShowFullText()) ); | 659 | connect( d->mTimer, SIGNAL(timeout()), this, SLOT(tryShowFullText()) ); |
659 | connect( this, SIGNAL(executed(CardViewItem *)), this, SIGNAL( doubleClicked(CardViewItem *)) ); | ||
660 | 660 | ||
@@ -1249,3 +1249,3 @@ void CardView::contentsMouseReleaseEvent(QMouseEvent *e) | |||
1249 | 1249 | ||
1250 | if (item && KGlobalSettings::singleClick()) | 1250 | if (item && KABPrefs::instance()->mHonorSingleClick) |
1251 | { | 1251 | { |
@@ -1266,3 +1266,3 @@ void CardView::contentsMouseDoubleClickEvent(QMouseEvent *e) | |||
1266 | 1266 | ||
1267 | if (item && !KGlobalSettings::singleClick()) | 1267 | if (item && !KABPrefs::instance()->mHonorSingleClick) |
1268 | { | 1268 | { |
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 | |||
@@ -244,2 +244,4 @@ void KAddressBookCardView::readConfig(KConfig *config) | |||
244 | 244 | ||
245 | #if 0 | ||
246 | // LR KABPrefs::instance()->mHonorSingleClick is handled and fixed in cardviews contentsMouseDoubleClickEven | ||
245 | disconnect(mCardView, SIGNAL(executed(CardViewItem *)), | 247 | disconnect(mCardView, SIGNAL(executed(CardViewItem *)), |
@@ -253,3 +255,6 @@ void KAddressBookCardView::readConfig(KConfig *config) | |||
253 | this, SLOT(addresseeExecuted(CardViewItem *))); | 255 | this, SLOT(addresseeExecuted(CardViewItem *))); |
256 | #endif | ||
254 | 257 | ||
258 | connect(mCardView, SIGNAL(doubleClicked(CardViewItem *)), | ||
259 | this, SLOT(addresseeExecuted(CardViewItem *))); | ||
255 | } | 260 | } |