* Fix build on Ubuntu 18.04

This commit is contained in:
Mantas-2155X
2021-01-25 17:52:11 +02:00
committed by borgmanJeremy
parent 7daca5ff90
commit a2a84ff764

View File

@@ -322,8 +322,8 @@ void CaptureWidget::paintEvent(QPaintEvent*)
painter.setClipRect(rect());
if (m_showInitialMsg) {
#if (defined(Q_OS_MAC) || defined(Q_OS_MAC64) || defined(Q_OS_MACOS) || \
defined(Q_OS_MACX) || defined(Q_OS_LINUX))
#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0) && (defined(Q_OS_MAC) || defined(Q_OS_MAC64) || defined(Q_OS_MACOS) || \
defined(Q_OS_MACX) || defined(Q_OS_LINUX)))
QRect helpRect;
QScreen* currentScreen = QGuiApplication::screenAt(QCursor::pos());
if (currentScreen) {
@@ -712,8 +712,8 @@ void CaptureWidget::initPanel()
{
QRect panelRect = rect();
if (m_context.fullscreen) {
#if (defined(Q_OS_MAC) || defined(Q_OS_MAC64) || defined(Q_OS_MACOS) || \
defined(Q_OS_MACX) || defined(Q_OS_LINUX))
#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0) && (defined(Q_OS_MAC) || defined(Q_OS_MAC64) || defined(Q_OS_MACOS) || \
defined(Q_OS_MACX) || defined(Q_OS_LINUX)))
QScreen* currentScreen = QGuiApplication::screenAt(QCursor::pos());
if (currentScreen) {
panelRect = currentScreen->geometry();