22 #ifndef TREEVIEWCOMBOBOX_H 23 #define TREEVIEWCOMBOBOX_H 28 #include <tulip/tulipconf.h> 30 class TLP_QT_SCOPE TreeViewComboBox :
public QComboBox {
36 QModelIndex _lastIndex;
39 explicit TreeViewComboBox(QWidget *parent = NULL);
41 void setModel(QAbstractItemModel * model);
43 virtual void showPopup();
44 virtual void hidePopup();
46 QModelIndex selectedIndex()
const;
48 bool eventFilter(QObject*, QEvent*);
52 void selectIndex(
const QModelIndex&);
53 void rowsRemoved(
const QModelIndex&,
int,
int);
54 void currentIndexChanged();
58 void currentItemChanged();
62 #endif // TREEVIEWCOMBOBOX_H