summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qglobal.cpp
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2013-02-21 10:37:21 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-21 10:37:21 +0100
commit8fd1330029eafc3f9496febd1ac2597e786ba324 (patch)
tree00acd1c068972d2de0083933227fae77824f5447 /src/corelib/global/qglobal.cpp
parentf9fc180d505382e559ebca8a2e6dd09ea3ae52bc (diff)
parentdcb710dd87ab15c3af803133ff2449902dbec036 (diff)
Merge "Merge remote-tracking branch 'origin/stable' into dev" into refs/staging/dev
Diffstat (limited to 'src/corelib/global/qglobal.cpp')
-rw-r--r--src/corelib/global/qglobal.cpp22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp
index 9cd19ccae9..67d26301a4 100644
--- a/src/corelib/global/qglobal.cpp
+++ b/src/corelib/global/qglobal.cpp
@@ -643,11 +643,29 @@ Q_CORE_EXPORT void *qMemSet(void *dest, int c, size_t n);
*/
/*!
+ \typedef qintptr
+ \relates <QtGlobal>
+
+ Integral type for representing pointers in a signed integer (useful for
+ hashing, etc.).
+
+ Typedef for either qint32 or qint64. This type is guaranteed to
+ be the same size as a pointer on all platforms supported by Qt. On
+ a system with 32-bit pointers, qintptr is a typedef for qint32;
+ on a system with 64-bit pointers, qintptr is a typedef for
+ qint64.
+
+ Note that qintptr is signed. Use quintptr for unsigned values.
+
+ \sa qptrdiff, qint32, qint64
+*/
+
+/*!
\typedef quintptr
\relates <QtGlobal>
- Integral type for representing a pointers (useful for hashing,
- etc.).
+ Integral type for representing pointers in an unsigned integer (useful for
+ hashing, etc.).
Typedef for either quint32 or quint64. This type is guaranteed to
be the same size as a pointer on all platforms supported by Qt. On