CMake: Improve delegates for CMake configuration

Change-Id: Ib1d2bfca1b2faafd36c53f24c6649e73ee0af190
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tobias Hunger
2017-09-14 15:18:50 +02:00
parent 632f2a7709
commit f4ff420036
6 changed files with 173 additions and 61 deletions

View File

@@ -38,9 +38,7 @@ class ConfigModel : public Utils::TreeModel<>
public:
enum Roles {
ItemTypeRole = Qt::UserRole,
ItemValuesRole,
ItemIsAdvancedRole
ItemIsAdvancedRole = Qt::UserRole,
};
class DataItem {
@@ -78,6 +76,8 @@ public:
bool canForceToString(const QModelIndex &idx) const;
void forceToString(const QModelIndex &idx);
static DataItem dataItemFromIndex(const QModelIndex &idx);
QList<DataItem> configurationChanges() const;
private: