[vlc-devel] [PATCH 2/2] gui:qt: use Vista styling on Windows

Steve Lhomme robux4 at ycbcr.xyz
Tue Aug 21 16:50:39 CEST 2018


Fixes #20780
---
 modules/gui/qt/Makefile.am | 2 +-
 modules/gui/qt/qt.cpp      | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/Makefile.am b/modules/gui/qt/Makefile.am
index a37baeb1a9..55580bec21 100644
--- a/modules/gui/qt/Makefile.am
+++ b/modules/gui/qt/Makefile.am
@@ -33,7 +33,7 @@ libqt_plugin_la_CXXFLAGS += $(WAYLAND_CLIENT_CFLAGS)
 libqt_plugin_la_LIBADD += $(WAYLAND_CLIENT_LIBS)
 endif
 if HAVE_WIN32
-libqt_plugin_la_LIBADD += $(LIBCOM) -lcomctl32 -luuid
+libqt_plugin_la_LIBADD += $(LIBCOM) -lcomctl32 -luuid -lQt5Widgets
 endif
 if UPDATE_CHECK
 libqt_plugin_la_CPPFLAGS += -DUPDATE_CHECK
diff --git a/modules/gui/qt/qt.cpp b/modules/gui/qt/qt.cpp
index affdea492b..c85e64d967 100644
--- a/modules/gui/qt/qt.cpp
+++ b/modules/gui/qt/qt.cpp
@@ -76,6 +76,9 @@ extern "C" char **environ;
   #if !HAS_QT56
    Q_IMPORT_PLUGIN(AccessibleFactory)
   #endif
+  #ifdef _WIN32
+   Q_IMPORT_PLUGIN(QWindowsVistaStylePlugin)
+  #endif
  #endif
 #endif
 
-- 
2.17.0



More information about the vlc-devel mailing list