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.

Differential Revision:
Patch by David Edmundson, thanks!
parent 60a3bdda
......@@ -122,7 +122,7 @@ KisOpenGLModeProber::probeFormat(const QSurfaceFormat &format, bool adjustGlobal
QScopedPointer<AppAttributeSetter> glSetter;
QScopedPointer<AppAttributeSetter> glesSetter;
QScopedPointer<SurfaceFormatSetter> formatSetter;
QScopedPointer<QApplication> application;
QScopedPointer<QGuiApplication> application;
int argc = 1;
QByteArray probeAppName("krita");
......@@ -139,7 +139,10 @@ KisOpenGLModeProber::probeFormat(const QSurfaceFormat &format, bool adjustGlobal
formatSetter.reset(new SurfaceFormatSetter(format));
application.reset(new QApplication(argc, &argv));
application.reset(new QGuiApplication(argc, &argv));
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