Commit 8d6a2a5d authored by Boudewijn Rempt's avatar Boudewijn Rempt

Do not load the platform theme when created a test QApplication

Doing so breaks the plasma qpa so the global menu plasmoid doesn't
work anymore.

BUG:408015
Differential Revision: https://phabricator.kde.org/D21886
Patch by David Edmundson, thanks!
parent 60a3bdda
...@@ -122,7 +122,7 @@ KisOpenGLModeProber::probeFormat(const QSurfaceFormat &format, bool adjustGlobal ...@@ -122,7 +122,7 @@ KisOpenGLModeProber::probeFormat(const QSurfaceFormat &format, bool adjustGlobal
QScopedPointer<AppAttributeSetter> glSetter; QScopedPointer<AppAttributeSetter> glSetter;
QScopedPointer<AppAttributeSetter> glesSetter; QScopedPointer<AppAttributeSetter> glesSetter;
QScopedPointer<SurfaceFormatSetter> formatSetter; QScopedPointer<SurfaceFormatSetter> formatSetter;
QScopedPointer<QApplication> application; QScopedPointer<QGuiApplication> application;
int argc = 1; int argc = 1;
QByteArray probeAppName("krita"); QByteArray probeAppName("krita");
...@@ -139,7 +139,10 @@ KisOpenGLModeProber::probeFormat(const QSurfaceFormat &format, bool adjustGlobal ...@@ -139,7 +139,10 @@ KisOpenGLModeProber::probeFormat(const QSurfaceFormat &format, bool adjustGlobal
} }
formatSetter.reset(new SurfaceFormatSetter(format)); formatSetter.reset(new SurfaceFormatSetter(format));
application.reset(new QApplication(argc, &argv));
QGuiApplication::setDesktopSettingsAware(false);
application.reset(new QGuiApplication(argc, &argv));
QGuiApplication::setDesktopSettingsAware(true);
} }
QWindow surface; QWindow surface;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment