Hide an error message "setGeometryDp: Unable to set geometry" for release

builds.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-05-24 13:06:51 +03:00
parent d13937fb40
commit b7b1ea3db7
2 changed files with 16 additions and 0 deletions

View File

@ -84,6 +84,14 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con
type = QtWarningMsg;
}
#if !defined(V_NO_DEBUG)
// I have decided to hide this annoing message for release builds.
if ((type == QtWarningMsg) && msg.contains("setGeometryDp: Unable to set geometry"))
{
type = QtDebugMsg;
}
#endif //!defined(V_NO_DEBUG)
#if defined(Q_OS_MAC)
# 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

View File

@ -80,6 +80,14 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con
type = QtWarningMsg;
}
#if !defined(V_NO_DEBUG)
// I have decided to hide this annoing message for release builds.
if ((type == QtWarningMsg) && msg.contains("setGeometryDp: Unable to set geometry"))
{
type = QtDebugMsg;
}
#endif //!defined(V_NO_DEBUG)
#if defined(Q_OS_MAC)
# 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