diff --git a/autotests/wayland/kwin_wayland_test.h b/autotests/wayland/kwin_wayland_test.h index 44b6a5b3b8..72715156e8 100644 --- a/autotests/wayland/kwin_wayland_test.h +++ b/autotests/wayland/kwin_wayland_test.h @@ -60,7 +60,9 @@ int main(int argc, char *argv[]) \ KWin::WaylandTestApplication app(argc, argv); \ app.setAttribute(Qt::AA_Use96Dpi, true); \ TestObject tc; \ +#if (QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)) \ QTest::setMainSourcePath("anonymous"); \ +#endif \ return QTest::qExec(&tc, argc, argv); \ }