mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-08 04:00:44 +00:00
Update channel LOOKUP data type to show unspecified options as integers.
This commit is contained in:
parent
c271a64625
commit
3749a73fd1
@ -1128,7 +1128,11 @@ QString Daily::getMachineSettings(Day * day) {
|
|||||||
QString data;
|
QString data;
|
||||||
|
|
||||||
if (chan.datatype() == schema::LOOKUP) {
|
if (chan.datatype() == schema::LOOKUP) {
|
||||||
data = chan.option(it.value().toInt());
|
int value = it.value().toInt();
|
||||||
|
data = chan.option(value);
|
||||||
|
if (data.isEmpty()) {
|
||||||
|
data = QString().number(value) + " " + chan.units();;
|
||||||
|
}
|
||||||
} else if (chan.datatype() == schema::BOOL) {
|
} else if (chan.datatype() == schema::BOOL) {
|
||||||
data = (it.value().toBool() ? STR_TR_Yes : STR_TR_No);
|
data = (it.value().toBool() ? STR_TR_Yes : STR_TR_No);
|
||||||
} else if (chan.datatype() == schema::DOUBLE) {
|
} else if (chan.datatype() == schema::DOUBLE) {
|
||||||
|
Loading…
Reference in New Issue
Block a user