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>
pull/2/head
Michele Calgaro 9 years ago
parent 3aa5fc08e5
commit 0d29e4477a

@ -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);

@ -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 &);

Loading…
Cancel
Save