diff options
author | Carl Schwan <carl.schwan@kdab.com> | 2023-04-03 18:05:52 +0200 |
---|---|---|
committer | Carl Schwan <carl.schwan@kdab.com> | 2023-04-04 23:53:37 +0200 |
commit | ac973cb74fecdaedf31922dfd48ea522a7af8f51 (patch) | |
tree | 411f48905d17e475bc8f6cede51d21d877b87244 /src/gui/kernel/qguiapplication.cpp | |
parent | 447f3ade9a284d52552352e2752c53be2cf0a57e (diff) | |
download | qtbase-ac973cb74fecdaedf31922dfd48ea522a7af8f51.tar.gz |
Implement setBadgeNumber for xcb backend
This use the unity launcher specification which is defined here
https://wiki.ubuntu.com/Unity/LauncherAPI
This spec is used by Plasma and Unity. On other Linux desktop platform
where the unity DBus interface is not detected this is no-op.
Change-Id: I81a9b95fe4886ad597bb4e775641926b161c49a5
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: David Edmundson <davidedmundson@kde.org>
Diffstat (limited to 'src/gui/kernel/qguiapplication.cpp')
-rw-r--r-- | src/gui/kernel/qguiapplication.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index 96f1a02971..febef13c98 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -751,7 +751,8 @@ QString QGuiApplication::applicationDisplayName() of unread messages or similar. The badge will be overlaid on the application's icon in the Dock - on \macos, the home screen icon on iOS, or the task bar on Windows. + on \macos, the home screen icon on iOS, or the task bar on Windows + and Linux. If the number is outside the range supported by the platform, the number will be clamped to the supported range. If the number does |