summaryrefslogtreecommitdiffstats
path: root/examples/widgets/desktop/systray/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/desktop/systray/window.cpp')
-rw-r--r--examples/widgets/desktop/systray/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/desktop/systray/window.cpp b/examples/widgets/desktop/systray/window.cpp
index 3238e3bf31..e62b5fc0d0 100644
--- a/examples/widgets/desktop/systray/window.cpp
+++ b/examples/widgets/desktop/systray/window.cpp
@@ -111,7 +111,7 @@ void Window::setVisible(bool visible)
//! [2]
void Window::closeEvent(QCloseEvent *event)
{
-#ifdef Q_OS_OSX
+#ifdef Q_OS_MACOS
if (!event->spontaneous() || !isVisible()) {
return;
}