Add printUpdateStatus() helper for QString

This commit is contained in:
Gerhard Hoffmann 2023-10-19 13:34:07 +02:00
parent fcba120dfa
commit 37bd5c90d3
2 changed files with 7 additions and 0 deletions

View File

@ -68,6 +68,12 @@ void Utils::printUpdateStatusMsg(QStringList const &updateMsg) {
qCritical() << QString(80, 'U'); qCritical() << QString(80, 'U');
} }
void Utils::printUpdateStatusMsg(QString const &updateMsg) {
qCritical() << QString(80, 'U');
qCritical() << updateMsg;
qCritical() << QString(80, 'U');
}
void Utils::printInfoMsg(QString const &infoMsg) { void Utils::printInfoMsg(QString const &infoMsg) {
qCritical() << QString(80, 'I'); qCritical() << QString(80, 'I');
qCritical() << infoMsg; qCritical() << infoMsg;

View File

@ -17,6 +17,7 @@ namespace Utils {
void printInfoMsg(QString const &infoMsg); void printInfoMsg(QString const &infoMsg);
void printInfoMsg(QStringList const &infoMsg); void printInfoMsg(QStringList const &infoMsg);
void printUpdateStatusMsg(QStringList const &updateMsg); void printUpdateStatusMsg(QStringList const &updateMsg);
void printUpdateStatusMsg(QString const &updateMsg);
void printLineEditInfo(QStringList const &lines); void printLineEditInfo(QStringList const &lines);
QString getTariffLoadTime(QString fileName); QString getTariffLoadTime(QString fileName);
QString rstrip(QString const &str); QString rstrip(QString const &str);