Bump required Qt version to 5.12
This commit is contained in:
@@ -542,13 +542,7 @@ void OSDPretty::mouseReleaseEvent(QMouseEvent *) {
|
||||
|
||||
QScreen *OSDPretty::current_screen(const QPoint pos) const {
|
||||
|
||||
QScreen *screen(nullptr);
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
|
||||
screen = QGuiApplication::screenAt(pos);
|
||||
#else
|
||||
Q_UNUSED(pos)
|
||||
if (window() && window()->windowHandle()) screen = window()->windowHandle()->screen();
|
||||
#endif
|
||||
QScreen *screen = QGuiApplication::screenAt(pos);
|
||||
if (!screen) screen = QGuiApplication::primaryScreen();
|
||||
|
||||
return screen;
|
||||
|
||||
Reference in New Issue
Block a user