Speed up ticket printing

This commit is contained in:
Siegfried Siegert 2023-05-18 14:01:07 +02:00
parent 48d6a34b16
commit 91d9280a4a
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -145,7 +145,7 @@ void ATBDeviceControllerPlugin::requestPrintTicket(const QHash<QString, QVariant
return; return;
} }
QTimer::singleShot(1000, this, SLOT(onPrinterDataPrepared())); QTimer::singleShot(500, this, SLOT(onPrinterDataPrepared()));
} }
@ -173,12 +173,12 @@ void ATBDeviceControllerPlugin::onPrinterPrintNextTemplate()
this->currentTemplate = 0; this->currentTemplate = 0;
// FAKE SIGNAL: // FAKE SIGNAL:
QTimer::singleShot(1000, this, SLOT(onPrintFinishedOK())); QTimer::singleShot(500, this, SLOT(onPrintFinishedOK()));
} }
else { else {
// print next template // print next template
this->currentTemplate++; this->currentTemplate++;
QTimer::singleShot(3000, this, SLOT(onPrinterPrintNextTemplate())); QTimer::singleShot(1000, this, SLOT(onPrinterPrintNextTemplate()));
} }
} }