Qt's but QTBUG-42846 "QNSView mouseDragged: Internal mouse button tracking

invalid (missing Qt::LeftButton)" was fixed. No need to hide the warning message
anymore.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-05-04 16:40:15 +03:00
parent a3b95f5927
commit 5f7c250415
2 changed files with 22 additions and 8 deletions

View File

@ -85,9 +85,20 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con
}
#if defined(Q_OS_MAC)
// Try hide very annoying, Qt related, warnings in Mac OS X
# if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0) && QT_VERSION < QT_VERSION_CHECK(5, 7, 0)
// Try hide very annoying, Qt related, warnings in Mac OS X
// QNSView mouseDragged: Internal mouse button tracking invalid (missing Qt::LeftButton)
// https://bugreports.qt.io/browse/QTBUG-42846
if ((type == QtWarningMsg) && msg.contains("QNSView"))
{
type = QtDebugMsg;
}
# endif
// Hide Qt bug 'Assertion when reading an icns file'
// https://bugreports.qt.io/browse/QTBUG-45537
// Remove after Qt fix will be released
if ((type == QtWarningMsg) && msg.contains("QNSView"))
if ((type == QtWarningMsg) && msg.contains("QICNSHandler::read()"))
{
type = QtDebugMsg;
}

View File

@ -81,12 +81,15 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con
}
#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;
}
# if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0) && QT_VERSION < QT_VERSION_CHECK(5, 7, 0)
// Try hide very annoying, Qt related, warnings in Mac OS X
// QNSView mouseDragged: Internal mouse button tracking invalid (missing Qt::LeftButton)
// https://bugreports.qt.io/browse/QTBUG-42846
if ((type == QtWarningMsg) && msg.contains("QNSView"))
{
type = QtDebugMsg;
}
# endif
// Hide Qt bug 'Assertion when reading an icns file'
// https://bugreports.qt.io/browse/QTBUG-45537