aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhjk <[email protected]>2025-07-02 13:22:45 +0200
committerhjk <[email protected]>2025-07-02 12:29:23 +0000
commitb017ceeed924715c7ea94ddb92317a0d252eefc2 (patch)
treec78018df7ada8c488cfad1ecd0db037e051224ca
parent9538bef6506d22161d8d6326349bdc401e73824e (diff)
Utils: Use real type for TypedSelectionAspect setters
The inherited setters using 'int' values don't work painlessly if the Type is a enum class. Change-Id: I82e2541362a5c8750270121f1da4fd516c441de4 Reviewed-by: Marcus Tillmanns <[email protected]>
-rw-r--r--src/libs/utils/aspects.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libs/utils/aspects.h b/src/libs/utils/aspects.h
index 7f4d1f3b262..53da89670be 100644
--- a/src/libs/utils/aspects.h
+++ b/src/libs/utils/aspects.h
@@ -594,8 +594,13 @@ public:
ValueType operator()() const { return static_cast<ValueType>(SelectionAspect::operator()()); }
ValueType value() const { return static_cast<ValueType>(SelectionAspect::value()); }
+ void setValue(ValueType value) { SelectionAspect::setValue(int(value)); }
+
ValueType defaultValue() const { return static_cast<ValueType>(SelectionAspect::defaultValue()); }
+ void setDefaultValue(ValueType value) { SelectionAspect::setDefaultValue(int(value)); }
+
ValueType volatileValue() const { return static_cast<ValueType>(SelectionAspect::volatileValue()); }
+ void setVolatileValue(ValueType value) { SelectionAspect::setVolatileValue(int(value)); }
};
class QTCREATOR_UTILS_EXPORT MultiSelectionAspect : public TypedAspect<QStringList>