Remove hard coded (szeged) zone names
This commit is contained in:
parent
5beb235d92
commit
0d00faf493
@ -110,19 +110,19 @@ QString Utils::getTariffInfo(QString fileName) {
|
||||
}
|
||||
|
||||
QString Utils::zoneName(quint8 i) {
|
||||
static constexpr char const *zName[] = {
|
||||
"",
|
||||
"purple",
|
||||
"blue",
|
||||
"yellow",
|
||||
"green",
|
||||
"yellow (mars)",
|
||||
"green (mars)"
|
||||
};
|
||||
if (i < (sizeof(zName)/sizeof(char const *))) {
|
||||
return zName[i];
|
||||
}
|
||||
return "N/A";
|
||||
//static constexpr char const *zName[] = {
|
||||
// "",
|
||||
// "purple",
|
||||
// "blue",
|
||||
// "yellow",
|
||||
// "green",
|
||||
// "yellow (mars)",
|
||||
// "green (mars)"
|
||||
//};
|
||||
//if (i < (sizeof(zName)/sizeof(char const *))) {
|
||||
// return zName[i];
|
||||
//}
|
||||
return "---";
|
||||
}
|
||||
|
||||
void Utils::printCriticalErrorMsg(QString const &errorMsg, bool upper, bool lower) {
|
||||
|
Loading…
Reference in New Issue
Block a user