21 #ifndef TREEVIEWCOMBOBOX_H 22 #define TREEVIEWCOMBOBOX_H 27 #include <tulip/tulipconf.h> 29 class TLP_QT_SCOPE TreeViewComboBox :
public QComboBox {
35 QModelIndex _lastIndex;
38 explicit TreeViewComboBox(QWidget *parent =
nullptr);
40 void setModel(QAbstractItemModel *model);
42 void showPopup()
override;
43 void hidePopup()
override;
45 QModelIndex selectedIndex()
const;
47 bool eventFilter(QObject *, QEvent *)
override;
51 void selectIndex(
const QModelIndex &);
52 void rowsRemoved(
const QModelIndex &,
int,
int);
53 void currentIndexChanged();
57 void currentItemChanged();
60 #endif // TREEVIEWCOMBOBOX_H