From 8118355f39b114e309faad4574abf71c40bfe534 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Fri, 9 Aug 2024 23:30:30 +0200 Subject: macOS: remove deprecated screenshot function --- src/main/oshelper.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/main') diff --git a/src/main/oshelper.cpp b/src/main/oshelper.cpp index 766aac5d..f9e33d13 100644 --- a/src/main/oshelper.cpp +++ b/src/main/oshelper.cpp @@ -70,9 +70,6 @@ namespace QPixmap screenshot() { -#ifdef Q_OS_MAC - return MacOSHelper::screenshot(); -#else std::unordered_set hidden; const QWindowList windows = QGuiApplication::allWindows(); for (QWindow *window : windows) @@ -91,7 +88,6 @@ QPixmap screenshot() }); return QGuiApplication::primaryScreen()->grabWindow(0); -#endif } } // namespace -- cgit v1.2.3