summaryrefslogtreecommitdiffstats
path: root/src/designer/src/lib/shared/qdesigner_propertycommand.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-06-04 10:11:24 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-06-05 10:26:13 +0200
commitf562ee4402c957d66f4a5ae5b39cd2679d0c4b24 (patch)
tree14869b9080d5569e1f3b23413bfab1710992b3f2 /src/designer/src/lib/shared/qdesigner_propertycommand.cpp
parent96b70c3a3e269c671f6ecae9c81a0cf7aad1f325 (diff)
Qt Designer: Replace 'typedef' by 'using'
Apply Fixits by Qt Creator with some amendments (use Qt standard typedefs for QWidget/QObjectList and QOverload for slots). Change-Id: Icf0600d8e5381e83ae8037895c07a09d7e6b481a Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/designer/src/lib/shared/qdesigner_propertycommand.cpp')
-rw-r--r--src/designer/src/lib/shared/qdesigner_propertycommand.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/designer/src/lib/shared/qdesigner_propertycommand.cpp b/src/designer/src/lib/shared/qdesigner_propertycommand.cpp
index 9f4eec9ce..0e6287137 100644
--- a/src/designer/src/lib/shared/qdesigner_propertycommand.cpp
+++ b/src/designer/src/lib/shared/qdesigner_propertycommand.cpp
@@ -1004,7 +1004,7 @@ PropertyHelper *PropertyListCommand::createPropertyHelper(QObject *object, Speci
}
// Init from a list and make sure referenceObject is added first to obtain the right property group
-bool PropertyListCommand::initList(const ObjectList &list, const QString &apropertyName, QObject *referenceObject)
+bool PropertyListCommand::initList(const QObjectList &list, const QString &apropertyName, QObject *referenceObject)
{
propertyHelperList().clear();
@@ -1209,7 +1209,7 @@ bool SetPropertyCommand::init(QObject *object, const QString &apropertyName, con
return true;
}
-bool SetPropertyCommand::init(const ObjectList &list, const QString &apropertyName, const QVariant &newValue,
+bool SetPropertyCommand::init(const QObjectList &list, const QString &apropertyName, const QVariant &newValue,
QObject *referenceObject, bool enableSubPropertyHandling)
{
if (!initList(list, apropertyName, referenceObject))
@@ -1319,10 +1319,10 @@ bool ResetPropertyCommand::init(QObject *object, const QString &apropertyName)
return true;
}
-bool ResetPropertyCommand::init(const ObjectList &list, const QString &apropertyName, QObject *referenceObject)
+bool ResetPropertyCommand::init(const QObjectList &list, const QString &apropertyName, QObject *referenceObject)
{
- ObjectList modifiedList = list; // filter out modified properties
- for (ObjectList::iterator it = modifiedList.begin(); it != modifiedList.end() ; ) {
+ QObjectList modifiedList = list; // filter out modified properties
+ for (auto it = modifiedList.begin(); it != modifiedList.end() ; ) {
QDesignerPropertySheetExtension* sheet = propertySheet(*it);
Q_ASSERT(sheet);
const int index = sheet->indexOf(apropertyName);