summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-04-28 23:36:44 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-04-28 23:36:44 (GMT)
commit6ba666275f7f6a2e64b1cd4f3f5ec7477150c392 (patch)
tree971e312fe4a1dfe2b59a37b7f306ab05210b3097 /src/corelib
parente65477020b0b70c105606bab3d6c43fbde027117 (diff)
parentbad50f8a2ef285aa9943291400cd322a6ec7af82 (diff)
downloadQt-6ba666275f7f6a2e64b1cd4f3f5ec7477150c392.zip
Qt-6ba666275f7f6a2e64b1cd4f3f5ec7477150c392.tar.gz
Qt-6ba666275f7f6a2e64b1cd4f3f5ec7477150c392.tar.bz2
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into kinetic-declarativeui
Diffstat (limited to 'src/corelib')
-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 ff59540..b53e91f 100644
--- a/src/corelib/kernel/qvariant.cpp
+++ b/src/corelib/kernel/qvariant.cpp
@@ -2558,10 +2558,11 @@ static const quint32 qCanConvertMatrix[QVariant::LastCoreType + 1] =
bool QVariant::canConvert(Type t) const
{
//we can treat floats as double
- //the reason for not doing it the "proper" way is that QMetaTye Float's value is 135,
+ //the reason for not doing it the "proper" way is that QMetaType::Float's value is 135,
//which can't be handled by qCanConvertMatrix
+ //In addition QVariant::Type doesn't have a Float value, so we're using QMetaType::Float
const uint currentType = ((d.type == QMetaType::Float) ? QVariant::Double : d.type);
- if (t == QMetaType::Float) t = QVariant::Double;
+ if (uint(t) == uint(QMetaType::Float)) t = QVariant::Double;
if (currentType == uint(t))
return true;