From 0b7fefe9f97ced1e4b2d93d26e12385aadb7b7e9 Mon Sep 17 00:00:00 2001 From: ulf69 Date: Thu, 28 Oct 2004 00:13:27 +0000 Subject: bugfix: pass singleclick parameter to the tableview --- (limited to 'kaddressbook') 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 @@ -88,6 +88,9 @@ 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(); @@ -108,12 +111,15 @@ void KAddressBookTableView::reconstructListView() connect(mListView, SIGNAL(addresseeDropped(QDropEvent*)), this, 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*))); connect(mListView, SIGNAL(signalDelete()), -- cgit v0.9.0.2