diff options
author | Dominik Holland <dominik.holland@qt.io> | 2020-02-05 09:41:23 +0100 |
---|---|---|
committer | Dominik Holland <dominik.holland@qt.io> | 2020-02-07 10:37:22 +0100 |
commit | 8788ee2e1fe681533f1ec6f50e4f9cb4a3d64452 (patch) | |
tree | 0dc1476778a5117abb043ff8ba2db5505bea54c1 | |
parent | 9ca588c7711e43212e40931ff4a0072bbd1deb28 (diff) |
ivimedia-simulation-server: Don't show an icon in the dock
Because we need a QGuiApplication for playback on macos, we also
get an app icon in the dock.
Use QT_MAC_DISABLE_FOREGROUND_APPLICATION_TRANSFORM to prevent this.
Change-Id: I7806e4c8e113c22820cddafa19db34b8bec57a50
Reviewed-by: Robert Griebl <robert.griebl@qt.io>
-rw-r--r-- | src/tools/media-simulation-server/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/media-simulation-server/main.cpp b/src/tools/media-simulation-server/main.cpp index 7729d30..fa83a21 100644 --- a/src/tools/media-simulation-server/main.cpp +++ b/src/tools/media-simulation-server/main.cpp @@ -63,7 +63,9 @@ int main(int argc, char *argv[]) { #ifdef Q_OS_MACOS - //QtMultimedia doesn't work with a QCoreApplication on macos + // QtMultimedia doesn't work with a QCoreApplication on macos + // Use the env variable to prevent Qt from creating an app icon in the dock + qputenv("QT_MAC_DISABLE_FOREGROUND_APPLICATION_TRANSFORM", "1"); QGuiApplication app(argc, argv); #else QCoreApplication app(argc, argv); |