[autotests] Only use QTest::setMainSourcePath if we have Qt 5.5

Update to f5fbdaa6ca which didn't solve
the problem. Seems to be new function in Qt 5.5.
This commit is contained in:
Martin Gräßlin 2015-10-03 09:50:37 +02:00
parent f5fbdaa6ca
commit 4b917da861

View file

@ -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); \
}