Delay printing ...

... printing day tickets need this delay
This commit is contained in:
Siegfried Siegert 2023-05-22 11:23:28 +02:00
parent a97ef4ea04
commit 2ac0f5b275
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -134,6 +134,8 @@ void ATBDeviceControllerPlugin::requestPrintTicket(const QHash<QString, QVariant
}
// TODO: wird hier nur 'licensePlate' gedruckt?
if (!this->hw->prn_sendDynamicPrnValues(dynTicketData->licensePlate)) {
this->errorCode = "hwapi::prn_sendDynamicPrnValues";
@ -152,7 +154,7 @@ void ATBDeviceControllerPlugin::requestPrintTicket(const QHash<QString, QVariant
return;
}
QTimer::singleShot(500, this, SLOT(onPrinterDataPrepared()));
QTimer::singleShot(1000, this, SLOT(onPrinterDataPrepared()));
}
@ -185,7 +187,7 @@ void ATBDeviceControllerPlugin::onPrinterPrintNextTemplate()
else {
// print next template
this->currentTemplate++;
QTimer::singleShot(1000, this, SLOT(onPrinterPrintNextTemplate()));
QTimer::singleShot(2000, this, SLOT(onPrinterPrintNextTemplate()));
}
}