diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-11-25 16:19:07 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-11-28 18:02:00 +0100 |
commit | 4fe071b518e792fdf069eb81ac326cf0f27f5e73 (patch) | |
tree | 692a820f2f93efa60f3cec07e2c2af35845fd6bc /platform/qt | |
parent | 11281d15e9c36b82dda3361c518161fb11c13ef9 (diff) | |
download | qtlocation-mapboxgl-4fe071b518e792fdf069eb81ac326cf0f27f5e73.tar.gz |
[build] upgrade to variant 1.1.4 and dependencies
Diffstat (limited to 'platform/qt')
-rw-r--r-- | platform/qt/src/qt_conversion.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/qt/src/qt_conversion.hpp b/platform/qt/src/qt_conversion.hpp index acb7ed7d54..e49b6dbe3e 100644 --- a/platform/qt/src/qt_conversion.hpp +++ b/platform/qt/src/qt_conversion.hpp @@ -94,9 +94,9 @@ inline optional<Value> toValue(const QVariant& value) { } else if (value.type() == QVariant::Color) { return { value.value<QColor>().name().toStdString() }; } else if (value.type() == QVariant::Int) { - return { value.toInt() }; + return { int64_t(value.toInt()) }; } else if (value.canConvert(QVariant::Double)) { - return { value.toFloat() }; + return { value.toDouble() }; } else { return {}; } |