aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cmakeprojectmanager/configmodel.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2017-09-27 12:28:11 +0200
committerTobias Hunger <tobias.hunger@qt.io>2017-10-17 08:21:07 +0000
commitb1157e4e63768501d1d630aa21f1e0c68e5671e4 (patch)
treecdc93bf284923ab3dea8da88cfdfd95e89c99a53 /src/plugins/cmakeprojectmanager/configmodel.h
parentaeb45f5cbea06d49c30e50f6628104589f07a6bc (diff)
CMake: Allow to unset configuration values
Change-Id: I649323e3c2cc51ea69dd7e216f30eeb653f3873b Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/configmodel.h')
-rw-r--r--src/plugins/cmakeprojectmanager/configmodel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/cmakeprojectmanager/configmodel.h b/src/plugins/cmakeprojectmanager/configmodel.h
index 6fb96e2990..fbe9b1b090 100644
--- a/src/plugins/cmakeprojectmanager/configmodel.h
+++ b/src/plugins/cmakeprojectmanager/configmodel.h
@@ -52,6 +52,7 @@ public:
bool isHidden = false;
bool isAdvanced = false;
bool inCMakeCache = false;
+ bool isUnset = false;
QString value;
QString description;
QStringList values;
@@ -79,6 +80,8 @@ public:
bool canForceTo(const QModelIndex &idx, const DataItem::Type type) const;
void forceTo(const QModelIndex &idx, const DataItem::Type type);
+ void toggleUnsetFlag(const QModelIndex &idx);
+
static DataItem dataItemFromIndex(const QModelIndex &idx);
QList<DataItem> configurationChanges() const;