Commit aa4e05f0 authored by Tobias Hunger's avatar Tobias Hunger

CMakeBuildSettingsWidget: Fix filtering in cmake configuration

This got broken with the introduction of the grouping.

Task-number: QTCREATORBUG-15814
Change-Id: Ic9908d01a1ecb636db0c8f4b7f1db926ccaedd4e
Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
parent b49722c8
......@@ -39,6 +39,7 @@
#include <projectexplorer/target.h>
#include <utils/asconst.h>
#include <utils/categorysortfiltermodel.h>
#include <utils/detailswidget.h>
#include <utils/fancylineedit.h>
#include <utils/headerviewstretcher.h>
......@@ -83,8 +84,8 @@ static QModelIndex mapToSource(const QAbstractItemView *view, const QModelIndex
CMakeBuildSettingsWidget::CMakeBuildSettingsWidget(CMakeBuildConfiguration *bc) :
m_buildConfiguration(bc),
m_configModel(new ConfigModel(this)),
m_configFilterModel(new QSortFilterProxyModel),
m_configTextFilterModel(new QSortFilterProxyModel)
m_configFilterModel(new Utils::CategorySortFilterModel),
m_configTextFilterModel(new Utils::CategorySortFilterModel)
{
QTC_CHECK(bc);
......
......@@ -38,6 +38,7 @@ class QMenu;
QT_END_NAMESPACE
namespace Utils {
class CategorySortFilterModel;
class FancyLineEdit;
class ProgressIndicator;
} // namespace Utils
......@@ -72,8 +73,8 @@ private:
CMakeBuildConfiguration *m_buildConfiguration;
QTreeView *m_configView;
ConfigModel *m_configModel;
QSortFilterProxyModel *m_configFilterModel;
QSortFilterProxyModel *m_configTextFilterModel;
Utils::CategorySortFilterModel *m_configFilterModel;
Utils::CategorySortFilterModel *m_configTextFilterModel;
Utils::ProgressIndicator *m_progressIndicator;
QPushButton *m_addButton;
QMenu *m_addButtonMenu;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment