From fce03306ee995894f6f835ca4340cfa34ce9184b Mon Sep 17 00:00:00 2001 From: mistersandman <9495-mistersandman@users.noreply.gitlab.kitware.com> Date: Mon, 8 Apr 2019 18:17:15 +0200 Subject: 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 --- Source/QtDialog/CMakeSetup.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx index cd30ad5..8d9a50c 100644 --- a/Source/QtDialog/CMakeSetup.cxx +++ b/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) -- cgit v0.12