From ba19d4e88e687aad97978636d232eebacaf996a0 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 18 Nov 2015 14:54:53 +0200 Subject: [PATCH] Try hide very annoying, Qt related, warnings in Mac OS X. --HG-- branch : develop --- src/app/tape/mapplication.cpp | 9 +++++++++ src/app/valentina/core/vapplication.cpp | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/src/app/tape/mapplication.cpp b/src/app/tape/mapplication.cpp index 258b924b4..4ff0eef36 100644 --- a/src/app/tape/mapplication.cpp +++ b/src/app/tape/mapplication.cpp @@ -84,6 +84,15 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con type = QtWarningMsg; } +#if defined(Q_OS_MAC) + // Try hide very annoying, Qt related, warnings in Mac OS X + // Remove after Qt fix will be released + if ((type == QtWarningMsg) && msg.contains("QNSView")) + { + type = QtDebugMsg; + } +#endif + // this is another one that doesn't make sense as just a debug message. pretty serious // sign of a problem // http://www.developer.nokia.com/Community/Wiki/QPainter::begin:Paint_device_returned_engine_%3D%3D_0_(Known_Issue) diff --git a/src/app/valentina/core/vapplication.cpp b/src/app/valentina/core/vapplication.cpp index d57f0b52a..f53a638d9 100644 --- a/src/app/valentina/core/vapplication.cpp +++ b/src/app/valentina/core/vapplication.cpp @@ -79,6 +79,15 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con type = QtWarningMsg; } +#if defined(Q_OS_MAC) + // Try hide very annoying, Qt related, warnings in Mac OS X + // Remove after Qt fix will be released + if ((type == QtWarningMsg) && msg.contains("QNSView")) + { + type = QtDebugMsg; + } +#endif + // this is another one that doesn't make sense as just a debug message. pretty serious // sign of a problem // http://www.developer.nokia.com/Community/Wiki/QPainter::begin:Paint_device_returned_engine_%3D%3D_0_(Known_Issue)