[vlc-commits] [Git][videolan/vlc][master] qt: do not use dynamic property for badge number with Qt 6.13

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Thu Oct 1 17:24:01 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
e4f2d3a3 by Fatih Uzunoglu at 2026-10-01T19:13:15+02:00
qt: do not use dynamic property for badge number with Qt 6.13

Qt 6.13 introduces a property for it (c0c15aa).

- - - - -


1 changed file:

- modules/gui/qt/dialogs/dialogs/dialogmodel.cpp


Changes:

=====================================
modules/gui/qt/dialogs/dialogs/dialogmodel.cpp
=====================================
@@ -132,11 +132,17 @@ void DialogErrorModel::pushError(const DialogError & error)
 
 #if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
     assert(qGuiApp);
+
+#if QT_VERSION >= QT_VERSION_CHECK(6, 13, 0)
+    const qint64 badgeNumber = qGuiApp->badgeNumber() + 1;
+#else
     const int badgeNumber = qGuiApp->property("badgeNumber").toInt() + 1;
-    qGuiApp->setBadgeNumber(badgeNumber);
     qGuiApp->setProperty("badgeNumber", badgeNumber);
 #endif
 
+    qGuiApp->setBadgeNumber(badgeNumber);
+#endif
+
     emit countChanged();
 }
 
@@ -166,8 +172,10 @@ void DialogErrorModel::resetRepeatedMessageCount()
     // Errors are dismissed, or error dialog is opened.
     assert(qGuiApp);
     qGuiApp->setBadgeNumber(0);
+#if QT_VERSION < QT_VERSION_CHECK(6, 13, 0)
     qGuiApp->setProperty("badgeNumber", 0);
 #endif
+#endif
 }
 
 //=================================================================================================



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e4f2d3a3990195a134c71ec33c07f3fcfe6d12bb

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e4f2d3a3990195a134c71ec33c07f3fcfe6d12bb
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list