From 22e2b599da728809f050eced2610cda07b99125e Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Thu, 1 Jan 2015 21:02:51 +0100 Subject: [PATCH] Added Qt static plugin initialization. --- MUtilities_VS2013.vcxproj | 1 - src/Startup.cpp | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/MUtilities_VS2013.vcxproj b/MUtilities_VS2013.vcxproj index b651360..f0fa6c3 100644 --- a/MUtilities_VS2013.vcxproj +++ b/MUtilities_VS2013.vcxproj @@ -212,7 +212,6 @@ $(ProjectDir)\include;$(QTDIR)\include;$(QTDIR)\include\QtCore;$(QTDIR)\include\QtGui;$(SolutionDir)\..\Prerequisites\VisualLeakDetector\include;%(AdditionalIncludeDirectories) true false - None Windows diff --git a/src/Startup.cpp b/src/Startup.cpp index aaa82cd..7524560 100644 --- a/src/Startup.cpp +++ b/src/Startup.cpp @@ -35,6 +35,21 @@ #include #include #include +#include + +/////////////////////////////////////////////////////////////////////////////// +// Qt Plugin Initialization +/////////////////////////////////////////////////////////////////////////////// + +#ifdef QT_NODLL +#if QT_VERSION < QT_VERSION_CHECK(5,0,0) +Q_IMPORT_PLUGIN(qico) +Q_IMPORT_PLUGIN(qsvg) +#else +Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin) +Q_IMPORT_PLUGIN(QICOPlugin) +#endif +#endif /////////////////////////////////////////////////////////////////////////////// // MESSAGE HANDLER