Hide an error message "setGeometryDp: Unable to set geometry" for release
builds. --HG-- branch : develop
This commit is contained in:
parent
d13937fb40
commit
b7b1ea3db7
|
@ -84,6 +84,14 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con
|
||||||
type = QtWarningMsg;
|
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 defined(Q_OS_MAC)
|
||||||
# if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0) && QT_VERSION < QT_VERSION_CHECK(5, 7, 0)
|
# 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
|
// Try hide very annoying, Qt related, warnings in Mac OS X
|
||||||
|
|
|
@ -80,6 +80,14 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con
|
||||||
type = QtWarningMsg;
|
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 defined(Q_OS_MAC)
|
||||||
# if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0) && QT_VERSION < QT_VERSION_CHECK(5, 7, 0)
|
# 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
|
// Try hide very annoying, Qt related, warnings in Mac OS X
|
||||||
|
|
Loading…
Reference in New Issue
Block a user