22 #ifndef TREEVIEWCOMBOBOX_H
23 #define TREEVIEWCOMBOBOX_H
27 #include <tulip/tulipconf.h>
31 class TLP_QT_SCOPE TreeViewComboBox :
public QComboBox {
37 QModelIndex _lastIndex;
40 explicit TreeViewComboBox(QWidget *parent = NULL);
42 void setModel(QAbstractItemModel * model);
44 virtual void showPopup();
45 virtual void hidePopup();
47 QModelIndex selectedIndex()
const;
49 bool eventFilter(QObject*, QEvent*);
53 void selectIndex(
const QModelIndex&);
54 void rowsRemoved(
const QModelIndex&,
int,
int);
55 void currentIndexChanged();
59 void currentItemChanged();
63 #endif // TREEVIEWCOMBOBOX_H