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 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
40 void setModel(QAbstractItemModel *model);
42 void setModel(QAbstractItemModel *model)
override;
45 void showPopup()
override;
46 void hidePopup()
override;
48 QModelIndex selectedIndex()
const;
52 void selectIndex(
const QModelIndex &);
53 void rowsRemoved(
const QModelIndex &,
int,
int);
54 void currentIndexChanged();
58 void currentItemChanged();