From: stv Date: Mon, 14 Nov 2005 07:33:32 +0000 (+0000) Subject: Signal OB_Browser::doubleClicked( SUIT_DataObject* ). X-Git-Tag: V3_1_0a3~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3a1ffa5576bff18b3a0886db01f55333d3067e6f;p=modules%2Fgui.git Signal OB_Browser::doubleClicked( SUIT_DataObject* ). --- 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: