summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/gui/devicestate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/gui/devicestate.cpp')
-rw-r--r--utils/themeeditor/gui/devicestate.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/themeeditor/gui/devicestate.cpp b/utils/themeeditor/gui/devicestate.cpp
index 63d80342c1..21f95bfa10 100644
--- a/utils/themeeditor/gui/devicestate.cpp
+++ b/utils/themeeditor/gui/devicestate.cpp
@@ -402,6 +402,14 @@ QVariant DeviceState::data(QString tag, int paramCount,
{
return data("?cw");
}
+ else if(tag == "cs")
+ {
+ int seconds = data("seconds").toInt();
+ if(seconds < 10)
+ return "0" + QString::number(seconds);
+ else
+ return seconds;
+ }
QPair<InputType, QWidget*> found =
inputs.value(tag, QPair<InputType, QWidget*>(Slide, 0));