aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cmakeprojectmanager/configmodel.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2017-09-14 15:18:50 +0200
committerTobias Hunger <tobias.hunger@qt.io>2017-09-19 08:42:20 +0000
commitf4ff420036656e453c26d1502bf1b8f96f4cea59 (patch)
tree48fc7b227dafa0c57293514d52e3ddcb1584125d /src/plugins/cmakeprojectmanager/configmodel.h
parent632f2a77098e57eeecdaac39efd32741dfc68e76 (diff)
CMake: Improve delegates for CMake configuration
Change-Id: Ib1d2bfca1b2faafd36c53f24c6649e73ee0af190 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/configmodel.h')
-rw-r--r--src/plugins/cmakeprojectmanager/configmodel.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/cmakeprojectmanager/configmodel.h b/src/plugins/cmakeprojectmanager/configmodel.h
index 0bb06f59b5..adf6edc87e 100644
--- a/src/plugins/cmakeprojectmanager/configmodel.h
+++ b/src/plugins/cmakeprojectmanager/configmodel.h
@@ -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: