diff options
Diffstat (limited to 'utils/themeeditor/gui/devicestate.cpp')
-rw-r--r-- | utils/themeeditor/gui/devicestate.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/themeeditor/gui/devicestate.cpp b/utils/themeeditor/gui/devicestate.cpp index 89985bf730..e766a64835 100644 --- a/utils/themeeditor/gui/devicestate.cpp +++ b/utils/themeeditor/gui/devicestate.cpp | |||
@@ -225,7 +225,7 @@ QVariant DeviceState::data(QString tag, int paramCount, | |||
225 | QString path = tag[0].isLower() | 225 | QString path = tag[0].isLower() |
226 | ? data("file").toString() : data("nextfile").toString(); | 226 | ? data("file").toString() : data("nextfile").toString(); |
227 | if(paramCount > 0) | 227 | if(paramCount > 0) |
228 | return directory(path, params[0].data.numeric); | 228 | return directory(path, params[0].data.number); |
229 | else | 229 | else |
230 | return QVariant(); | 230 | return QVariant(); |
231 | } | 231 | } |
@@ -255,7 +255,7 @@ QVariant DeviceState::data(QString tag, int paramCount, | |||
255 | else if(tag == "pS") | 255 | else if(tag == "pS") |
256 | { | 256 | { |
257 | double threshhold = paramCount > 0 | 257 | double threshhold = paramCount > 0 |
258 | ? std::atof(params[0].data.text) : 10; | 258 | ? params[0].data.number / 10. : 10; |
259 | if(data("?pc").toDouble() <= threshhold) | 259 | if(data("?pc").toDouble() <= threshhold) |
260 | return true; | 260 | return true; |
261 | else | 261 | else |
@@ -264,7 +264,7 @@ QVariant DeviceState::data(QString tag, int paramCount, | |||
264 | else if(tag == "pE") | 264 | else if(tag == "pE") |
265 | { | 265 | { |
266 | double threshhold = paramCount > 0 | 266 | double threshhold = paramCount > 0 |
267 | ? std::atof(params[0].data.text) : 10; | 267 | ? params[0].data.number / 10. : 10; |
268 | if(data("?pt").toDouble() - data("?pc").toDouble() <= threshhold) | 268 | if(data("?pt").toDouble() - data("?pc").toDouble() <= threshhold) |
269 | return true; | 269 | return true; |
270 | else | 270 | else |