macOS: remove deprecated screenshot function

This commit is contained in:
tobtoht
2024-08-09 23:30:30 +02:00
committed by selsta
parent f0b1b8cd08
commit 8118355f39
3 changed files with 0 additions and 40 deletions

View File

@@ -70,9 +70,6 @@ namespace
QPixmap screenshot()
{
#ifdef Q_OS_MAC
return MacOSHelper::screenshot();
#else
std::unordered_set<QWindow *> hidden;
const QWindowList windows = QGuiApplication::allWindows();
for (QWindow *window : windows)
@@ -91,7 +88,6 @@ QPixmap screenshot()
});
return QGuiApplication::primaryScreen()->grabWindow(0);
#endif
}
} // namespace