summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qvariant.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-07-13 12:03:39 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-07-13 12:04:44 (GMT)
commit32182d107fa75e5619ecc91a81f50626f429ebe1 (patch)
tree97d8ed9480b92d053e39850b214a14f696f1ed6b /src/corelib/kernel/qvariant.cpp
parentd54224252d56a50b42c8991308840ea1acde8f30 (diff)
downloadQt-32182d107fa75e5619ecc91a81f50626f429ebe1.zip
Qt-32182d107fa75e5619ecc91a81f50626f429ebe1.tar.gz
Qt-32182d107fa75e5619ecc91a81f50626f429ebe1.tar.bz2
QTreeView: now dragging lots of items is fast
Diffstat (limited to 'src/corelib/kernel/qvariant.cpp')
-rw-r--r--src/corelib/kernel/qvariant.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/kernel/qvariant.cpp b/src/corelib/kernel/qvariant.cpp
index 8bf70cb..2ef9de4 100644
--- a/src/corelib/kernel/qvariant.cpp
+++ b/src/corelib/kernel/qvariant.cpp
@@ -1905,7 +1905,7 @@ void QVariant::load(QDataStream &s)
create(static_cast<int>(u), 0);
d.is_null = is_null;
- if (d.type == QVariant::Invalid) {
+ if (!isValid()) {
// Since we wrote something, we should read something
QString x;
s >> x;
@@ -1949,7 +1949,7 @@ void QVariant::save(QDataStream &s) const
s << QMetaType::typeName(userType());
}
- if (d.type == QVariant::Invalid) {
+ if (!isValid()) {
s << QString();
return;
}