aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlpreview/tests/qmlpreviewplugin_test.cpp
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@qt.io>2020-09-28 08:20:23 +0200
committerTim Jenssen <tim.jenssen@qt.io>2020-10-07 14:55:17 +0000
commit9dda8af0b06ca9d0818553681668d657acb6764d (patch)
tree1b13bf29629a271ce2f17388e5a0aa58b41f1f30 /src/plugins/qmlpreview/tests/qmlpreviewplugin_test.cpp
parentac0ae2f1eb582c343aee00095e35779affddba99 (diff)
qmlprieview: fix that init language is the chosen one
* removes language feature from preview service * it is handled by an extra DebugTranslationService until now * Qt versions without that extra service can not preview languages anymore * Introduce the use of QmlPreviewRunnerSetting. It makes it easier to add more properties in the future * Language needs an extra handling because it needs the loadUrl to find existing languages. So we save the language to a m_scheduledInitLanguage and emit this after the loadFile call happend. Change-Id: I7f4aec97f7b61d6b290f225282169da594eb9160 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Diffstat (limited to 'src/plugins/qmlpreview/tests/qmlpreviewplugin_test.cpp')
-rw-r--r--src/plugins/qmlpreview/tests/qmlpreviewplugin_test.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/plugins/qmlpreview/tests/qmlpreviewplugin_test.cpp b/src/plugins/qmlpreview/tests/qmlpreviewplugin_test.cpp
index 9ca2f38b08..0e3306f15d 100644
--- a/src/plugins/qmlpreview/tests/qmlpreviewplugin_test.cpp
+++ b/src/plugins/qmlpreview/tests/qmlpreviewplugin_test.cpp
@@ -78,21 +78,6 @@ void QmlPreviewPluginTest::testZoomFactorProperty()
QCOMPARE(spy.count(), 2);
}
-void QmlPreviewPluginTest::testLocaleProperty()
-{
- ExtensionSystem::IPlugin *plugin = getPlugin();
- QVERIFY(plugin);
-
- QSignalSpy spy(plugin, SIGNAL(localeChanged(QString)));
-
- QCOMPARE(plugin->property("locale").toString(), QString());
- plugin->setProperty("locale", "de_DE");
- QCOMPARE(plugin->property("locale").toString(), QString("de_DE"));
- plugin->setProperty("locale", "qt_QT");
- QCOMPARE(plugin->property("locale").toString(), QString("qt_QT"));
- QCOMPARE(spy.count(), 2);
-}
-
void QmlPreviewPluginTest::testFpsHandlerProperty()
{
ExtensionSystem::IPlugin *plugin = getPlugin();