From f56c69540ed9fd14ac19640fc2b40fd90c469889 Mon Sep 17 00:00:00 2001 From: Yuriy Puchkov Date: Mon, 11 Jan 2021 18:49:14 +0200 Subject: [PATCH] fix - MacOS - It's impossible to make a screenshot of all screens (change message according to Mac philosophy) (cherry picked from commit 9decaf287b11c0e523bc702165d348f7f26c5f32) --- src/widgets/capturelauncher.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/widgets/capturelauncher.cpp b/src/widgets/capturelauncher.cpp index f7c7c83b..18455712 100644 --- a/src/widgets/capturelauncher.cpp +++ b/src/widgets/capturelauncher.cpp @@ -58,8 +58,17 @@ CaptureLauncher::CaptureLauncher(QDialog* parent) // TODO remember number m_captureType->insertItem( 1, tr("Rectangular Region"), CaptureRequest::GRAPHICAL_MODE); + +#if (defined(Q_OS_MAC) || defined(Q_OS_MAC64) || defined(Q_OS_MACOS) || \ + defined(Q_OS_MACX)) + // Following to MacOS philosophy (one application cannot be displayed on + // more than one display) + m_captureType->insertItem( + 2, tr("Full Screen (Current Display)"), CaptureRequest::FULLSCREEN_MODE); +#else m_captureType->insertItem( 2, tr("Full Screen (All Monitors)"), CaptureRequest::FULLSCREEN_MODE); +#endif // m_captureType->insertItem(3, tr("Single Screen"), // CaptureRequest::SCREEN_MODE);