forked from qt-creator/qt-creator
Utils: More aspects with new scheme
Task-number: QTCREATORBUG-29167 Change-Id: I76977d4d740556d28423ce9f632ee47e81822ee6 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -2283,7 +2283,8 @@ void StringListAspect::removeValues(const QStringList &values)
|
||||
that is a list of strings.
|
||||
*/
|
||||
|
||||
IntegersAspect::IntegersAspect()
|
||||
IntegersAspect::IntegersAspect(AspectContainer *container)
|
||||
: BaseAspect(container)
|
||||
{
|
||||
setDefaultValue({});
|
||||
}
|
||||
|
||||
@@ -290,6 +290,7 @@ public:
|
||||
void setVolatileValue(const QVariant &val) override;
|
||||
void finish() override;
|
||||
|
||||
int operator()() const { return value(); }
|
||||
int value() const;
|
||||
void setValue(int val);
|
||||
|
||||
@@ -585,12 +586,13 @@ class QTCREATOR_UTILS_EXPORT IntegersAspect : public BaseAspect
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
IntegersAspect();
|
||||
IntegersAspect(AspectContainer *container = nullptr);
|
||||
~IntegersAspect() override;
|
||||
|
||||
void addToLayout(Layouting::LayoutItem &parent) override;
|
||||
void emitChangedValue() override;
|
||||
|
||||
QList<int> operator()() const { return value(); }
|
||||
QList<int> value() const;
|
||||
void setValue(const QList<int> &value);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user