summaryrefslogtreecommitdiff
path: root/map65/Radio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'map65/Radio.cpp')
-rw-r--r--map65/Radio.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/map65/Radio.cpp b/map65/Radio.cpp
index 5ee29040..e90f5b3f 100644
--- a/map65/Radio.cpp
+++ b/map65/Radio.cpp
@@ -33,7 +33,7 @@ namespace Radio
Frequency frequency (QVariant const& v, int scale, bool * ok, QLocale const& locale)
{
double value {0.};
- if (QVariant::String == v.type ())
+ if (QMetaType::QString == v.userType())
{
value = locale.toDouble (v.value<QString> (), ok);
}
@@ -70,7 +70,7 @@ namespace Radio
FrequencyDelta frequency_delta (QVariant const& v, int scale, bool * ok, QLocale const& locale)
{
double value {0.};
- if (QVariant::String == v.type ())
+ if (QMetaType::QString == v.userType())
{
value = locale.toDouble (v.value<QString> (), ok);
}