forked from qt-creator/qt-creator
ProjectExtensionsPage: Rework project combo box
Show a actual tree in the combobox. Task-number: QTCREATORBUG-12002 Change-Id: I22b62f444923193972109a096bc6eef26a31bf9f Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com> Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -52,6 +52,7 @@ public:
|
||||
TreeViewComboBox(QWidget *parent = 0);
|
||||
|
||||
void wheelEvent(QWheelEvent *e);
|
||||
void keyPressEvent(QKeyEvent *e);
|
||||
void setCurrentIndex(const QModelIndex &index);
|
||||
bool eventFilter(QObject* object, QEvent* event);
|
||||
void showPopup();
|
||||
@@ -60,6 +61,10 @@ public:
|
||||
TreeViewComboBoxView *view() const;
|
||||
|
||||
private:
|
||||
QModelIndex indexBelow(QModelIndex index);
|
||||
QModelIndex indexAbove(QModelIndex index);
|
||||
QModelIndex lastIndex(const QModelIndex index);
|
||||
|
||||
TreeViewComboBoxView *m_view;
|
||||
bool m_skipNextHide;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user