summaryrefslogtreecommitdiffstats
path: root/kdcop
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2015-08-21 20:56:56 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2015-08-27 23:32:31 +0900
commit0d29e4477a5dd74762f5eb57f13914761c8beae6 (patch)
treed3ca66e0b5fc755c954fb4385ba9e6e45dce1930 /kdcop
parent3aa5fc08e534faf627981e5547b90ccab9eadac4 (diff)
downloadtdebase-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 <michele.calgaro@yahoo.it>
Diffstat (limited to 'kdcop')
-rw-r--r--kdcop/kdcopwindow.cpp7
-rw-r--r--kdcop/kdcopwindow.h2
2 files changed, 6 insertions, 3 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);
diff --git a/kdcop/kdcopwindow.h b/kdcop/kdcopwindow.h
index bf0fe532e..ed5988bae 100644
--- a/kdcop/kdcopwindow.h
+++ b/kdcop/kdcopwindow.h
@@ -30,7 +30,7 @@ class KDCOPWindow : public TDEMainWindow
protected slots:
void slotCurrentChanged( TQListViewItem* item );
- void slotCallFunction();
+ void slotItemExecuted();
void slotCallFunction( TQListViewItem* item );
void slotApplicationRegistered(const TQCString &);
void slotApplicationUnregistered(const TQCString &);