mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
SystemInfo is never installed by default, so make it optional.
This commit is contained in:
parent
14141b5a9e
commit
f339bda6e2
@ -15,8 +15,10 @@
|
|||||||
|
|
||||||
#if QT_VERSION > QT_VERSION_CHECK(5, 0, 0)
|
#if QT_VERSION > QT_VERSION_CHECK(5, 0, 0)
|
||||||
#include <QStandardPaths>
|
#include <QStandardPaths>
|
||||||
|
#ifdef QT_HAS_SYSTEMINFO
|
||||||
#include <QScreenSaver>
|
#include <QScreenSaver>
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __SYMBIAN32__
|
#ifdef __SYMBIAN32__
|
||||||
#include <QSystemScreenSaver>
|
#include <QSystemScreenSaver>
|
||||||
@ -128,7 +130,7 @@ static int mainInternal(QApplication &a)
|
|||||||
QSystemScreenSaver ssObject(emugl);
|
QSystemScreenSaver ssObject(emugl);
|
||||||
ssObject.setScreenSaverInhibit();
|
ssObject.setScreenSaverInhibit();
|
||||||
QScopedPointer<SymbianMediaKeys> mediakeys(new SymbianMediaKeys());
|
QScopedPointer<SymbianMediaKeys> mediakeys(new SymbianMediaKeys());
|
||||||
#elif QT_VERSION > QT_VERSION_CHECK(5, 0, 0)
|
#elif defined(QT_HAS_SYSTEMINFO)
|
||||||
QScreenSaver ssObject(emugl);
|
QScreenSaver ssObject(emugl);
|
||||||
ssObject.setScreenSaverEnabled(false);
|
ssObject.setScreenSaverEnabled(false);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user