CMake: Filter CMake variables

Add a text field to filter CMake variables in the CMake project
configuration view. As in the cmake-gui, the filter does a simple
string search over all variable names and values.

Task-number: QTCREATORBUG-17973
Change-Id: Id7219c16509c620c39978cb05c5e0e62cf9c19df
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Felix Kälberer
2017-05-14 23:18:31 +02:00
parent 4198952214
commit accac479e0
2 changed files with 21 additions and 2 deletions

View File

@@ -40,6 +40,8 @@ class QSortFilterProxyModel;
class QMenu;
QT_END_NAMESPACE
namespace Utils { class FancyLineEdit; }
namespace CMakeProjectManager {
class ConfigModel;
@@ -66,6 +68,7 @@ private:
QTreeView *m_configView;
ConfigModel *m_configModel;
QSortFilterProxyModel *m_configFilterModel;
QSortFilterProxyModel *m_configTextFilterModel;
Utils::ProgressIndicator *m_progressIndicator;
QPushButton *m_addButton;
QMenu *m_addButtonMenu;
@@ -74,6 +77,7 @@ private:
QCheckBox *m_showAdvancedCheckBox;
QPushButton *m_reconfigureButton;
QTimer m_showProgressTimer;
Utils::FancyLineEdit *m_filterEdit;
QLabel *m_errorLabel;
QLabel *m_warningLabel;
QLabel *m_errorMessageLabel;