SystemInfo is never installed by default, so make it optional.

This commit is contained in:
Sacha committed 2014-07-25 14:41:23 +10:00
1 parent 14141b5a9e
commit f339bda6e2
1 file changed
+3 -1
+3 -1
View File
@@ -15,8 +15,10 @@
#if QT_VERSION > QT_VERSION_CHECK(5, 0, 0)
#include <QStandardPaths>
#ifdef QT_HAS_SYSTEMINFO
#include <QScreenSaver>
#endif
#endif
#ifdef __SYMBIAN32__
#include <QSystemScreenSaver>
@@ -128,7 +130,7 @@ static int mainInternal(QApplication &a)
QSystemScreenSaver ssObject(emugl);
ssObject.setScreenSaverInhibit();
QScopedPointer<SymbianMediaKeys> mediakeys(new SymbianMediaKeys());
#elif QT_VERSION > QT_VERSION_CHECK(5, 0, 0)
#elif defined(QT_HAS_SYSTEMINFO)
QScreenSaver ssObject(emugl);
ssObject.setScreenSaverEnabled(false);
#endif