aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qwidgetsinqml/qwidgetsinqml.pro
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-11-29 14:04:27 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2017-09-21 09:00:35 +0000
commit82fbaa78f3840bcc289adc4e1ec64e337346f148 (patch)
tree88111a1b65d04f2d990c43f5b33f01d981df04bb /tests/auto/qml/qwidgetsinqml/qwidgetsinqml.pro
parentd8d3259b2340baed2e7f8273907bd0bb5598b540 (diff)
Fix support for creating QWidgets in QML
When creating QWidgets, it is important to replace any call to QObject::setParent with QWidget::setParent. We do this now with the hook introduced in commit fc8adfea9f5e09e5f47ac4e592e5d9db471caede in qtbase. Change-Id: I2e069696b7ceb7f3b77d0f17e058f5a00ca4a029 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/qml/qwidgetsinqml/qwidgetsinqml.pro')
-rw-r--r--tests/auto/qml/qwidgetsinqml/qwidgetsinqml.pro7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qml/qwidgetsinqml/qwidgetsinqml.pro b/tests/auto/qml/qwidgetsinqml/qwidgetsinqml.pro
new file mode 100644
index 0000000000..c86365d5ea
--- /dev/null
+++ b/tests/auto/qml/qwidgetsinqml/qwidgetsinqml.pro
@@ -0,0 +1,7 @@
+CONFIG += testcase
+CONFIG += parallel_test
+TARGET = tst_qwidgetsinqml
+macos:CONFIG -= app_bundle
+QT += qml widgets testlib gui-private
+SOURCES += tst_qwidgetsinqml.cpp
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0