21 #ifndef TREEVIEWCOMBOBOX_H 22 #define TREEVIEWCOMBOBOX_H 27 #include <tulip/tulipconf.h> 29 class TLP_QT_SCOPE TreeViewComboBox :
public QComboBox {
34 QModelIndex _lastIndex;
37 explicit TreeViewComboBox(QWidget *parent =
nullptr);
39 void setModel(QAbstractItemModel *model);
41 void showPopup()
override;
42 void hidePopup()
override;
44 QModelIndex selectedIndex()
const;
48 void selectIndex(
const QModelIndex &);
49 void rowsRemoved(
const QModelIndex &,
int,
int);
50 void currentIndexChanged();
54 void currentItemChanged();
57 #endif // TREEVIEWCOMBOBOX_H