summaryrefslogtreecommitdiffabout
path: root/kaddressbook/views
Side-by-side diff
Diffstat (limited to 'kaddressbook/views') (more/less context) (show whitespace changes)
-rw-r--r--kaddressbook/views/kaddressbooktableview.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/kaddressbook/views/kaddressbooktableview.cpp b/kaddressbook/views/kaddressbooktableview.cpp
index e40eb9e..6f20e05 100644
--- a/kaddressbook/views/kaddressbooktableview.cpp
+++ b/kaddressbook/views/kaddressbooktableview.cpp
@@ -90,4 +90,7 @@ void KAddressBookTableView::reconstructListView()
mListView = new ContactListView( this, addressBook(), viewWidget() );
+ //US set singleClick manually, because it is no global configparameter in embedded space
+ mListView->setSingleClick(KABPrefs::instance()->mHonorSingleClick);
+
// Add the columns
KABC::Field::List fieldList = fields();
@@ -109,10 +112,13 @@ void KAddressBookTableView::reconstructListView()
SIGNAL(dropped(QDropEvent*)));
- if (KABPrefs::instance()->mHonorSingleClick)
+ if (KABPrefs::instance()->mHonorSingleClick) {
+ // qDebug("KAddressBookTableView::reconstructListView single");
connect(mListView, SIGNAL(executed(QListViewItem*)),
this, SLOT(addresseeExecuted(QListViewItem*)));
- else
+ } else {
+ // qDebug("KAddressBookTableView::reconstructListView double");
connect(mListView, SIGNAL(doubleClicked(QListViewItem*)),
this, SLOT(addresseeExecuted(QListViewItem*)));
+ }
connect(mListView, SIGNAL(returnPressed(QListViewItem*)),
this, SLOT(addresseeExecuted(QListViewItem*)));