Commit 8c32b850 authored by Jouni Pentikäinen's avatar Jouni Pentikäinen

Fix building with Qt 5.9

parent 35cfa745
......@@ -564,7 +564,11 @@ static QRect screenRect(QWidget *widget, int screen)
if (screen == -1) {
return QGuiApplication::primaryScreen()->availableVirtualGeometry();
} else if (screen == -3) {
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
return QGuiApplication::screenAt(QCursor::pos())->availableVirtualGeometry();
#else
screen = desktop->screenNumber(QCursor::pos());
#endif
} else {
screen = desktop->screenNumber(widget);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment