]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Signal OB_Browser::doubleClicked( SUIT_DataObject* ).
authorstv <stv@opencascade.com>
Mon, 14 Nov 2005 07:33:32 +0000 (07:33 +0000)
committerstv <stv@opencascade.com>
Mon, 14 Nov 2005 07:33:32 +0000 (07:33 +0000)
src/ObjBrowser/OB_Browser.cxx
src/ObjBrowser/OB_Browser.h

index 178a4797725cd939455f8789558673430c473f44..dfaa688ff0b87a88516d8cf1c0c120885f51c5d7 100755 (executable)
@@ -93,6 +93,8 @@ myRootDecorated( true )
   connect( myView, SIGNAL( dropped( QPtrList<QListViewItem>, QListViewItem*, int ) ),
            this, SLOT( onDropped( QPtrList<QListViewItem>, 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 ) );
+}
index 944a8ccf3780383661271685a378e0f2391d1219..838896769456c2d67e07e4cccba0a03afe6fd60d 100755 (executable)
@@ -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>, QListViewItem*, int );
 
 protected: