浏览代码

cmake-gui: Fix theme on Windows with Qt >= 5.10

In Qt 5.10 the theme support moved to a separate QWindowsVistaStyle
plugin.

Issue: #19147
mistersandman 6 年之前
父节点
当前提交
fce03306ee
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Source/QtDialog/CMakeSetup.cxx

+ 3 - 0
Source/QtDialog/CMakeSetup.cxx

@@ -48,6 +48,9 @@ Q_IMPORT_PLUGIN(QXcbIntegrationPlugin);
 
 #if defined(USE_QWindowsIntegrationPlugin)
 Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin);
+#  if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
+Q_IMPORT_PLUGIN(QWindowsVistaStylePlugin);
+#  endif
 #endif
 
 int main(int argc, char** argv)