diff options
author | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2020-09-30 09:34:00 +0200 |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2020-09-30 12:25:53 +0200 |
commit | 97197f94b4098783e7dc444b0cc4028ab1b25a4f (patch) | |
tree | e57089c5ea2b89cf5851c09eddb04afcf527987b /tests/manual | |
parent | c6b5b14910876fa506f03509e3932104223c170e (diff) |
manual style, nativestyle: don't set style from main.cpp
We now select the default style from the QQuickControls
plugin, so the removed code snippet is no longer needed.
Change-Id: I8117912d424ed7da87f81ce1f90f423a13545e54
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'tests/manual')
-rw-r--r-- | tests/manual/nativestyle/main.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/manual/nativestyle/main.cpp b/tests/manual/nativestyle/main.cpp index b064dd96..cc487531 100644 --- a/tests/manual/nativestyle/main.cpp +++ b/tests/manual/nativestyle/main.cpp @@ -42,20 +42,6 @@ int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); - // TODO: when no style is specified, default to the appropriate native - // platform style if available, otherwise use Basic: QTBUG-86403 - const QString style = qEnvironmentVariable("DESKTOPGALLERY_STYLE"); - if (!style.isEmpty()) - QQuickStyle::setStyle(style); - else -#if defined(Q_OS_MACOS) - QQuickStyle::setStyle("macOS"); -#elif defined(Q_OS_WINDOWS) - QQuickStyle::setStyle("Windows"); -#else - QQuickStyle::setStyle("Fusion"); -#endif - QQmlApplicationEngine engine; const QUrl url(QStringLiteral("qrc:/main.qml")); QObject::connect(&engine, &QQmlApplicationEngine::objectCreated, |