From 3a1ffa5576bff18b3a0886db01f55333d3067e6f Mon Sep 17 00:00:00 2001 From: stv Date: Mon, 14 Nov 2005 07:33:32 +0000 Subject: [PATCH] Signal OB_Browser::doubleClicked( SUIT_DataObject* ). --- src/ObjBrowser/OB_Browser.cxx | 8 ++++++++ src/ObjBrowser/OB_Browser.h | 2 ++ 2 files changed, 10 insertions(+) diff --git a/src/ObjBrowser/OB_Browser.cxx b/src/ObjBrowser/OB_Browser.cxx index 178a47977..dfaa688ff 100755 --- a/src/ObjBrowser/OB_Browser.cxx +++ b/src/ObjBrowser/OB_Browser.cxx @@ -93,6 +93,8 @@ myRootDecorated( true ) connect( myView, SIGNAL( dropped( QPtrList, QListViewItem*, int ) ), this, SLOT( onDropped( QPtrList, QListViewItem*, int ) ) ); connect( myView, SIGNAL( selectionChanged() ), this, SIGNAL( selectionChanged() ) ); + connect( myView, SIGNAL( doubleClicked( QListViewItem* ) ), + this, SLOT( onDoubleClicked( QListViewItem* ) ) ); setRootObject( root ); } @@ -1089,3 +1091,9 @@ void OB_Browser::openBranch( QListViewItem* item, const int level ) item = item->nextSibling(); } } + +void OB_Browser::onDoubleClicked( QListViewItem* item ) +{ + if ( item ) + emit doubleClicked( dataObject( item ) ); +} diff --git a/src/ObjBrowser/OB_Browser.h b/src/ObjBrowser/OB_Browser.h index 944a8ccf3..838896769 100755 --- a/src/ObjBrowser/OB_Browser.h +++ b/src/ObjBrowser/OB_Browser.h @@ -101,12 +101,14 @@ public: signals: void selectionChanged(); + void doubleClicked( SUIT_DataObject* ); void dropped( DataObjectList, SUIT_DataObject*, int ); private slots: void onExpand(); void onColumnVisible( int ); void onDestroyed( SUIT_DataObject* ); + void onDoubleClicked ( QListViewItem* ); void onDropped( QPtrList, QListViewItem*, int ); protected: -- 2.39.2