Speed up ticket printing
This commit is contained in:
parent
48d6a34b16
commit
91d9280a4a
@ -145,7 +145,7 @@ void ATBDeviceControllerPlugin::requestPrintTicket(const QHash<QString, QVariant
|
||||
return;
|
||||
}
|
||||
|
||||
QTimer::singleShot(1000, this, SLOT(onPrinterDataPrepared()));
|
||||
QTimer::singleShot(500, this, SLOT(onPrinterDataPrepared()));
|
||||
}
|
||||
|
||||
|
||||
@ -173,12 +173,12 @@ void ATBDeviceControllerPlugin::onPrinterPrintNextTemplate()
|
||||
this->currentTemplate = 0;
|
||||
|
||||
// FAKE SIGNAL:
|
||||
QTimer::singleShot(1000, this, SLOT(onPrintFinishedOK()));
|
||||
QTimer::singleShot(500, this, SLOT(onPrintFinishedOK()));
|
||||
}
|
||||
else {
|
||||
// print next template
|
||||
this->currentTemplate++;
|
||||
QTimer::singleShot(3000, this, SLOT(onPrinterPrintNextTemplate()));
|
||||
QTimer::singleShot(1000, this, SLOT(onPrinterPrintNextTemplate()));
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user