mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-01-03 15:44:48 +00:00
* Fix build on Ubuntu 18.04
This commit is contained in:
committed by
borgmanJeremy
parent
7daca5ff90
commit
a2a84ff764
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user