diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-03-15 15:29:26 (GMT) |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-03-15 15:31:02 (GMT) |
commit | b17ee2af5e3453191bb4568a388ea042562e1abc (patch) | |
tree | 26a64833df07afce9352e383a5ce533d44145e37 /tools/designer/src/components | |
parent | fd8183129d0efe99e0d28f524264c59fb9155b80 (diff) | |
download | Qt-b17ee2af5e3453191bb4568a388ea042562e1abc.zip Qt-b17ee2af5e3453191bb4568a388ea042562e1abc.tar.gz Qt-b17ee2af5e3453191bb4568a388ea042562e1abc.tar.bz2 |
Designer: Fix a bug clearing the Z-Order when adding a new widget.
Wrong list was used when adding widgets.
Task-number: QTBUG-18120
Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com>
Diffstat (limited to 'tools/designer/src/components')
-rw-r--r-- | tools/designer/src/components/formeditor/qdesigner_resource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/designer/src/components/formeditor/qdesigner_resource.cpp b/tools/designer/src/components/formeditor/qdesigner_resource.cpp index 430b070..6d718bb 100644 --- a/tools/designer/src/components/formeditor/qdesigner_resource.cpp +++ b/tools/designer/src/components/formeditor/qdesigner_resource.cpp @@ -1190,7 +1190,7 @@ QWidget *QDesignerResource::createWidget(const QString &widgetName, QWidget *par parentWidget->setProperty("_q_widgetOrder", qVariantFromValue(list)); QList<QWidget *> zOrder = qVariantValue<QWidgetList>(parentWidget->property("_q_zOrder")); zOrder.append(w); - parentWidget->setProperty("_q_zOrder", qVariantFromValue(list)); + parentWidget->setProperty("_q_zOrder", qVariantFromValue(zOrder)); } } else { core()->metaDataBase()->add(w); |