Add test code for printing date-strings
This commit is contained in:
parent
5898be8807
commit
3e4db6cfcc
@ -736,6 +736,19 @@ void ATBDeviceControllerPlugin::requestPrintTicket(const QHash<QString, QVariant
|
||||
QString parkingEndDateString = TicketUtils::getLocaleDateString(this->printerLocale, parkingEndDateTime.date());
|
||||
QString currentDateString = TicketUtils::getLocaleDateString(this->printerLocale, currentDateTime.date());
|
||||
|
||||
/*******************************************************************************************
|
||||
* TEST date formate strings:
|
||||
QLocale ltLocale("lt_LT");
|
||||
QLocale deLocale("de_DE");
|
||||
|
||||
QString ltShortDate = ltLocale.toString(currentDateTime.date(), QLocale::ShortFormat);
|
||||
QString deShortDate = deLocale.toString(currentDateTime.date(), QLocale::ShortFormat);
|
||||
|
||||
qCritical() << "*********************************************************************";
|
||||
qCritical() << " ltShortDate = " << ltShortDate;
|
||||
qCritical() << " deShortDate = " << deShortDate;
|
||||
qCritical() << "*********************************************************************";
|
||||
*/
|
||||
|
||||
/* -----------------------------------------------------------------------------------------
|
||||
* note: the following highly depends on printer template files!
|
||||
|
Loading…
Reference in New Issue
Block a user