summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorten Engvoldsen <morten.engvoldsen@nokia.com>2009-05-13 12:59:52 (GMT)
committerMorten Engvoldsen <morten.engvoldsen@nokia.com>2009-05-13 13:00:07 (GMT)
commit960d2a7639062b6582d460aaae140b4d2e0a8b70 (patch)
tree6137d84de87d679adcd339d69d10af582ff1e246
parenta61b4758965095437b2993bbbec2e9c2977eb1bb (diff)
downloadQt-960d2a7639062b6582d460aaae140b4d2e0a8b70.zip
Qt-960d2a7639062b6582d460aaae140b4d2e0a8b70.tar.gz
Qt-960d2a7639062b6582d460aaae140b4d2e0a8b70.tar.bz2
Adding details to QVariant docs
Adding note about requriements for converting QVariants Task-number: 192607 Rev-by: David Boddie
-rw-r--r--src/corelib/kernel/qvariant.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/corelib/kernel/qvariant.cpp b/src/corelib/kernel/qvariant.cpp
index b4427c0..0a0500d 100644
--- a/src/corelib/kernel/qvariant.cpp
+++ b/src/corelib/kernel/qvariant.cpp
@@ -1187,8 +1187,9 @@ const QVariant::Handler *QVariant::handler = &qt_kernel_variant_handler;
and versatile, but may prove less memory and speed efficient than
storing specific types in standard data structures.
- QVariant also supports the notion of null values, where you have
- a defined type with no value set.
+ QVariant also supports the notion of null values, where you can
+ have a defined type with no value set. However, note that QVariant
+ types can only be cast when they have had a value set.
\snippet doc/src/snippets/code/src_corelib_kernel_qvariant.cpp 1