on 12/08/2013 15:48 Andriy Gapon said the following: > Now, having googled for it it seems to be an issue described here: > http://www.qtcentre.org/threads/45979-Setting-QTreeWidget-flag-to-Qt-ItemIsEditable-seems-to-disable-itemActivated-SIGNAL > Small summary: "However this signal is not triggered when I set the > QTreeWidgetItem flag to Qt::ItemIsEditable and double click on it. However the > signal is entered if i press the enter key". > There are possible solutions suggested at the end of the thread: > http://www.qtcentre.org/threads/45979-Setting-QTreeWidget-flag-to-Qt-ItemIsEditable-seems-to-disable-itemActivated-SIGNAL?s=db9d7362fba733c38948ac21a08fed87&p=208384#post208384 >
The following patch makes double-click always edit the symbol field (by invoking slotStartEditId): --- kmymoney/dialogs/kcurrencyeditdlg.cpp.orig 2013-08-12 16:50:06.361117660 +0300 +++ kmymoney/dialogs/kcurrencyeditdlg.cpp 2013-08-12 16:50:28.199114557 +0300 @@ -66,6 +66,7 @@ connect(m_currencyList, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(slotOpenContextMenu(QPoint))); connect(m_currencyList, SIGNAL(itemActivated(QTreeWidgetItem*,int)), this, SLOT(slotStartEditId())); + connect(m_currencyList, SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)), this, SLOT(slotStartEditId())); connect(MyMoneyFile::instance(), SIGNAL(dataChanged()), this, SLOT(slotLoadCurrencies())); connect(m_currencyList, SIGNAL(itemChanged(QTreeWidgetItem*,int)), this, SLOT(slotUpdateCurrency(QTreeWidgetItem*))); -- Andriy Gapon _______________________________________________ KMyMoney-devel mailing list KMyMoney-devel@kde.org https://mail.kde.org/mailman/listinfo/kmymoney-devel