summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSzabolcs David <davidsz@inf.u-szeged.hu>2017-11-16 13:56:13 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-12-04 08:13:38 +0000
commit1c6cacf3020c0c201cd484ba165126123046e53b (patch)
tree2d91ff0714272fa54c3408acb147097a98b89220 /tests
parent71e02bc92c8f93f1063f79507b2250a229db6380 (diff)
Remove extra profile from quicktestbrowser
Quicktestbrowser had two different profiles with the same property name. Remove the unnecessary one to fix several bugs. Change-Id: I62a4722b8dab3c6a0132234badb2c2576efb6c60 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/quicktestbrowser/main.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/tests/quicktestbrowser/main.cpp b/tests/quicktestbrowser/main.cpp
index 65cb81821..3f513f6a6 100644
--- a/tests/quicktestbrowser/main.cpp
+++ b/tests/quicktestbrowser/main.cpp
@@ -70,17 +70,7 @@ int main(int argc, char **argv)
Utils utils;
appEngine.rootContext()->setContextProperty("utils", &utils);
appEngine.load(QUrl("qrc:/ApplicationRoot.qml"));
- QObject *rootObject = appEngine.rootObjects().first();
-
- QQuickWebEngineProfile *profile = new QQuickWebEngineProfile(rootObject);
-
- const QMetaObject *rootMeta = rootObject->metaObject();
- int index = rootMeta->indexOfProperty("testProfile");
- Q_ASSERT(index != -1);
- QMetaProperty profileProperty = rootMeta->property(index);
- profileProperty.write(rootObject, qVariantFromValue(profile));
-
- QMetaObject::invokeMethod(rootObject, "load", Q_ARG(QVariant, startupUrl()));
+ QMetaObject::invokeMethod(appEngine.rootObjects().first(), "load", Q_ARG(QVariant, startupUrl()));
return app.exec();
}