diff options
author | David Boddie <dboddie@trolltech.com> | 2009-04-01 13:47:08 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2009-04-01 13:47:08 (GMT) |
commit | 5ed526bea6331055941360e01024a1a1af57feed (patch) | |
tree | 0d9e081d40557c61b42657dc34f07bf9dc93f17b /src/corelib/global | |
parent | c2ad3b2ab704b751f2900729892099a13ef200a0 (diff) | |
parent | aaf765dfb797da6b72807fad61fd2a1d19187c0c (diff) | |
download | Qt-5ed526bea6331055941360e01024a1a1af57feed.zip Qt-5ed526bea6331055941360e01024a1a1af57feed.tar.gz Qt-5ed526bea6331055941360e01024a1a1af57feed.tar.bz2 |
Merge branch '4.5' of /home/dboddie/git/qt-45/ into 4.5
Diffstat (limited to 'src/corelib/global')
-rw-r--r-- | src/corelib/global/qglobal.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp index 68c213e..1645279 100644 --- a/src/corelib/global/qglobal.cpp +++ b/src/corelib/global/qglobal.cpp @@ -1934,9 +1934,11 @@ QString qt_error_string(int errorCode) The message handler is a function that prints out debug messages, warnings, critical and fatal error messages. The Qt library (debug - version) contains hundreds of warning messages that are printed + mode) contains hundreds of warning messages that are printed when internal errors (usually invalid function arguments) - occur. If you implement your own message handler, you get total + occur. Qt built in release mode also contains such warnings unless + QT_NO_WARNING_OUTPUT and/or QT_NO_DEBUG_OUTPUT have been set during + compilation. If you implement your own message handler, you get total control of these messages. The default message handler prints the message to the standard @@ -2942,7 +2944,12 @@ bool QInternal::callFunction(InternalFunction func, void **args) Compares the floating point value \a p1 and \a p2 and returns \c true if they are considered equal, otherwise \c false. - + + Note that comparing values where either \a p1 or \a p2 is 0.0 will not work. + The solution to this is to compare against values greater than or equal to 1.0 + + \snippet doc/src/snippets/code/src_corelib_global_qglobal.cpp 46 + The two numbers are compared in a relative way, where the exactness is stronger the smaller the numbers are. */ |