summaryrefslogtreecommitdiffstats
path: root/src/designer/src/lib/shared/qdesigner_propertycommand_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/designer/src/lib/shared/qdesigner_propertycommand_p.h')
-rw-r--r--src/designer/src/lib/shared/qdesigner_propertycommand_p.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/designer/src/lib/shared/qdesigner_propertycommand_p.h b/src/designer/src/lib/shared/qdesigner_propertycommand_p.h
index 2ee57ad2c..ab7662f2a 100644
--- a/src/designer/src/lib/shared/qdesigner_propertycommand_p.h
+++ b/src/designer/src/lib/shared/qdesigner_propertycommand_p.h
@@ -148,7 +148,7 @@ public:
protected:
using PropertyHelperPtr = QSharedPointer<PropertyHelper>;
- using PropertyHelperList = QList<PropertyHelperPtr>;
+ using PropertyHelperList = QVector<PropertyHelperPtr>;
// add an object
bool add(QObject *object, const QString &propertyName);
@@ -259,14 +259,14 @@ class QDESIGNER_SHARED_EXPORT AddDynamicPropertyCommand: public QDesignerFormWin
public:
explicit AddDynamicPropertyCommand(QDesignerFormWindowInterface *formWindow);
- bool init(const QList<QObject *> &selection, QObject *current, const QString &propertyName, const QVariant &value);
+ bool init(const QVector<QObject *> &selection, QObject *current, const QString &propertyName, const QVariant &value);
virtual void redo();
virtual void undo();
private:
void setDescription();
QString m_propertyName;
- QList<QObject *> m_selection;
+ QVector<QObject *> m_selection;
QVariant m_value;
};
@@ -276,7 +276,7 @@ class QDESIGNER_SHARED_EXPORT RemoveDynamicPropertyCommand: public QDesignerForm
public:
explicit RemoveDynamicPropertyCommand(QDesignerFormWindowInterface *formWindow);
- bool init(const QList<QObject *> &selection, QObject *current, const QString &propertyName);
+ bool init(const QVector<QObject *> &selection, QObject *current, const QString &propertyName);
virtual void redo();
virtual void undo();