[vlc-commits] [Git][videolan/vlc][master] qt: use `QStyle::name()` instead of `QObject::objectName()`

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Mon Mar 16 10:01:05 UTC 2026



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


Commits:
eaead7c7 by Fatih Uzunoglu at 2026-03-16T10:31:40+01:00
qt: use `QStyle::name()` instead of `QObject::objectName()`

Qt 6.1 introduces `QStyle::name()`, we do not need to use
the object name anymore.

- - - - -


1 changed file:

- modules/gui/qt/qt.cpp


Changes:

=====================================
modules/gui/qt/qt.cpp
=====================================
@@ -889,7 +889,7 @@ static void *Thread( void *obj )
 
     /* Start the QApplication here */
     QApplication app( argc, argv );
-    app.setProperty("initialStyle", app.style()->objectName());
+    app.setProperty("initialStyle", app.style()->name());
 
     {
         // Install custom translator:



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/eaead7c79695170a3018b2df8422b55e83fff603
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list