diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-11-26 09:27:26 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-12-09 14:33:45 +0100 |
commit | ee87edebe6f934ec915b7cb4a0f5a28f73e9f221 (patch) | |
tree | e1e7108b4d8dd9de4ed390f1421a57bb4f455c0d /src/designer/src/components/formeditor/qdesigner_resource.cpp | |
parent | aa40303166b8596bf21cdcf4286cb3d548b7ac9e (diff) |
Qt Designer: Migrate from QList to QVector
Change-Id: I75f6f4b7157616ba86bf520e1936536571a66ba5
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/designer/src/components/formeditor/qdesigner_resource.cpp')
-rw-r--r-- | src/designer/src/components/formeditor/qdesigner_resource.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/designer/src/components/formeditor/qdesigner_resource.cpp b/src/designer/src/components/formeditor/qdesigner_resource.cpp index ff4a42744..0725f9d1e 100644 --- a/src/designer/src/components/formeditor/qdesigner_resource.cpp +++ b/src/designer/src/components/formeditor/qdesigner_resource.cpp @@ -108,7 +108,7 @@ Q_DECLARE_METATYPE(QWidgetList) QT_BEGIN_NAMESPACE namespace { - using DomPropertyList = QList<DomProperty *>; + using DomPropertyList = QVector<DomProperty *>; } static const char *currentUiVersion = "4.0"; @@ -939,7 +939,7 @@ static bool readDomEnumerationValue(const DomProperty *p, return false; } -void QDesignerResource::applyProperties(QObject *o, const QList<DomProperty*> &properties) +void QDesignerResource::applyProperties(QObject *o, const QVector<DomProperty*> &properties) { if (properties.isEmpty()) return; @@ -1387,7 +1387,7 @@ DomWidget *QDesignerResource::saveWidget(QTabWidget *widget, DomWidget *ui_paren designerWarning(msgUnmanagedPage(core(), widget, i, page)); continue; } - QList<DomProperty*> ui_attribute_list; + QVector<DomProperty*> ui_attribute_list; const QFormBuilderStrings &strings = QFormBuilderStrings::instance(); // attribute `icon' @@ -1456,7 +1456,7 @@ DomWidget *QDesignerResource::saveWidget(QToolBox *widget, DomWidget *ui_parentW } // attribute `label' - QList<DomProperty*> ui_attribute_list; + QVector<DomProperty*> ui_attribute_list; const QFormBuilderStrings &strings = QFormBuilderStrings::instance(); @@ -1889,13 +1889,13 @@ bool QDesignerResource::canCompressSpacings(QObject *object) const return false; } -QList<DomProperty*> QDesignerResource::computeProperties(QObject *object) +QVector<DomProperty*> QDesignerResource::computeProperties(QObject *object) { - QList<DomProperty*> properties; + QVector<DomProperty*> properties; if (QDesignerPropertySheetExtension *sheet = qt_extension<QDesignerPropertySheetExtension*>(core()->extensionManager(), object)) { QDesignerDynamicPropertySheetExtension *dynamicSheet = qt_extension<QDesignerDynamicPropertySheetExtension*>(core()->extensionManager(), object); const int count = sheet->count(); - QList<DomProperty *> spacingProperties; + QVector<DomProperty *> spacingProperties; const bool compressSpacings = canCompressSpacings(object); for (int index = 0; index < count; ++index) { if (!sheet->isChanged(index) && (!dynamicSheet || !dynamicSheet->isDynamicProperty(index))) |