Try hide very annoying, Qt related, warnings in Mac OS X.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-11-18 14:54:53 +02:00
parent e38dc9d866
commit ba19d4e88e
2 changed files with 18 additions and 0 deletions

View File

@ -84,6 +84,15 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con
type = QtWarningMsg; 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 // this is another one that doesn't make sense as just a debug message. pretty serious
// sign of a problem // sign of a problem
// http://www.developer.nokia.com/Community/Wiki/QPainter::begin:Paint_device_returned_engine_%3D%3D_0_(Known_Issue) // http://www.developer.nokia.com/Community/Wiki/QPainter::begin:Paint_device_returned_engine_%3D%3D_0_(Known_Issue)

View File

@ -79,6 +79,15 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con
type = QtWarningMsg; 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 // this is another one that doesn't make sense as just a debug message. pretty serious
// sign of a problem // sign of a problem
// http://www.developer.nokia.com/Community/Wiki/QPainter::begin:Paint_device_returned_engine_%3D%3D_0_(Known_Issue) // http://www.developer.nokia.com/Community/Wiki/QPainter::begin:Paint_device_returned_engine_%3D%3D_0_(Known_Issue)