diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-07-13 12:03:39 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-07-13 12:04:44 (GMT) |
commit | 32182d107fa75e5619ecc91a81f50626f429ebe1 (patch) | |
tree | 97d8ed9480b92d053e39850b214a14f696f1ed6b /src/corelib/kernel/qmimedata.cpp | |
parent | d54224252d56a50b42c8991308840ea1acde8f30 (diff) | |
download | Qt-32182d107fa75e5619ecc91a81f50626f429ebe1.zip Qt-32182d107fa75e5619ecc91a81f50626f429ebe1.tar.gz Qt-32182d107fa75e5619ecc91a81f50626f429ebe1.tar.bz2 |
QTreeView: now dragging lots of items is fast
Diffstat (limited to 'src/corelib/kernel/qmimedata.cpp')
-rw-r--r-- | src/corelib/kernel/qmimedata.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qmimedata.cpp b/src/corelib/kernel/qmimedata.cpp index 3d2a7cb..4a1ba9f 100644 --- a/src/corelib/kernel/qmimedata.cpp +++ b/src/corelib/kernel/qmimedata.cpp @@ -105,7 +105,7 @@ QVariant QMimeDataPrivate::retrieveTypedData(const QString &format, QVariant::Ty Q_Q(const QMimeData); QVariant data = q->retrieveData(format, type); - if (data.type() == type || data.type() == QVariant::Invalid) + if (data.type() == type || !data.isValid()) return data; // provide more conversion possiblities than just what QVariant provides |