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