diff options
author | Michele Calgaro <[email protected]> | 2015-08-21 20:56:56 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2015-08-27 23:32:31 +0900 |
commit | 0d29e4477a5dd74762f5eb57f13914761c8beae6 (patch) | |
tree | d3ca66e0b5fc755c954fb4385ba9e6e45dce1930 /kdcop/kdcopwindow.cpp | |
parent | 3aa5fc08e534faf627981e5547b90ccab9eadac4 (diff) | |
download | tdebase-0d29e4477a5dd74762f5eb57f13914761c8beae6.tar.gz tdebase-0d29e4477a5dd74762f5eb57f13914761c8beae6.zip |
Added functionality in KDCOP. Double clicking on a non leaf item will expand/collapse the item. This resolves bug 2503.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kdcop/kdcopwindow.cpp')
-rw-r--r-- | kdcop/kdcopwindow.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/kdcop/kdcopwindow.cpp b/kdcop/kdcopwindow.cpp index 92e226852..9d7769808 100644 --- a/kdcop/kdcopwindow.cpp +++ b/kdcop/kdcopwindow.cpp @@ -326,7 +326,7 @@ KDCOPWindow::KDCOPWindow(TQWidget *parent, const char * name) "application-x-executable", CTRL + Key_E, TQT_TQOBJECT(this), - TQT_SLOT(slotCallFunction()), + TQT_SLOT(slotItemExecuted()), actionCollection(), "execute" ); @@ -378,7 +378,7 @@ void KDCOPWindow::slotCurrentChanged( TQListViewItem* i ) } -void KDCOPWindow::slotCallFunction() +void KDCOPWindow::slotItemExecuted() { slotCallFunction( mainView->lv->currentItem() ); } @@ -395,7 +395,10 @@ void KDCOPWindow::slotCallFunction( TQListViewItem* it ) DCOPBrowserItem * item = static_cast<DCOPBrowserItem *>(it); if (item->type() != DCOPBrowserItem::Function) + { + it->setOpen(!it->isOpen()); return; + } DCOPBrowserFunctionItem * fitem = static_cast<DCOPBrowserFunctionItem *>(item); |