Bump required Qt version to 5.12
This commit is contained in:
@@ -84,11 +84,7 @@ QDBusArgument &operator<<(QDBusArgument &arg, const QImage &image) {
|
||||
qint32 bitspersample = i.depth() / channels;
|
||||
arg << bitspersample;
|
||||
arg << channels;
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
|
||||
arg << QByteArray(reinterpret_cast<const char*>(i.constBits()), static_cast<int>(i.sizeInBytes()));
|
||||
#else
|
||||
arg << QByteArray(reinterpret_cast<const char*>(i.constBits()), i.byteCount());
|
||||
#endif
|
||||
arg.endStructure();
|
||||
|
||||
return arg;
|
||||
|
||||
@@ -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