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 );
}
item = item->nextSibling();
}
}
+
+void OB_Browser::onDoubleClicked( QListViewItem* item )
+{
+ if ( item )
+ emit doubleClicked( dataObject( item ) );
+}
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: