From f95616e62d4e7558c31d4a7b96746fb58731e45a Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Tue, 25 Sep 2012 06:38:10 +0200 Subject: Load Mac specific resources in a static build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When Qt was built statically then the Mac specific resources were not being loaded which meant some style specific images were not used. Task-number: QTBUG-25391 Change-Id: Iad538b5f1935ed1744617d6e47ae3e68aa36afac Reviewed-by: Morten Johan Sørvig --- src/gui/kernel/qapplication.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp index 0a08a35..9f5060e 100644 --- a/src/gui/kernel/qapplication.cpp +++ b/src/gui/kernel/qapplication.cpp @@ -150,7 +150,10 @@ static void initResources() Q_INIT_RESOURCE_EXTERN(qprintdialog) Q_INIT_RESOURCE(qprintdialog); #endif - +#ifdef Q_WS_MAC + Q_INIT_RESOURCE_EXTERN(macresources) + Q_INIT_RESOURCE(macresources); +#endif } QT_BEGIN_NAMESPACE -- cgit v0.12