Fix messages, cleanup

This commit is contained in:
Anton Thomasson 2021-11-15 21:47:16 +01:00
parent fce3974d51
commit 497f860aaf
10 changed files with 11 additions and 13 deletions

View file

@ -115,7 +115,7 @@ Page {
tag: IppMsg.IntegerRange
name: "page-ranges"
prettyName: qsTr("Page range")
valid: (selectedFileType == "application/pdf" || Mimer.isOffice(selectedFileType))
valid: (selectedFileType == Mimer.PDF || Mimer.isOffice(selectedFileType))
property var pdfpages: ConvertChecker.pdfPages(selectedFile)
high: pdfpages == 0 ? 65535 : pdfpages

View file

@ -48,7 +48,7 @@ void ConvertWorker::cancelJob(QByteArray msg)
void ConvertWorker::justUpload(QString filename, QByteArray header)
{
qDebug() << "justupload";
emit busyMessage(tr("Printing"));
CurlRequester cid(_printer->httpUrl());
cid.setFinishedCallback(_printer, &IppPrinter::printRequestFinished);
@ -70,10 +70,8 @@ void ConvertWorker::convertPdf(QString filename, QByteArray header,
try {
Format format;
qDebug() << "to pdf" << HwResX << HwResY;
emit busyMessage(tr("Printing"));
if(targetFormat == Mimer::URF)
{
format = Format::URF;

View file

@ -586,7 +586,7 @@ void IppPrinter::print(QJsonObject jobAttrs, QString filename)
Tumble = true;
}
setBusyMessage(tr("Converting"));
setBusyMessage(tr("Preparing"));
if(mimeType == Mimer::PDF)
{

View file

@ -339,7 +339,7 @@
<translation>Unbekannte Dokumentenformat Größe</translation>
</message>
<message>
<source>Converting</source>
<source>Preparing</source>
<translation type="unfinished"></translation>
</message>
</context>

View file

@ -339,7 +339,7 @@
<translation type="unfinished"></translation>
</message>
<message>
<source>Converting</source>
<source>Preparing</source>
<translation type="unfinished"></translation>
</message>
</context>

View file

@ -339,7 +339,7 @@
<translation type="unfinished"></translation>
</message>
<message>
<source>Converting</source>
<source>Preparing</source>
<translation type="unfinished"></translation>
</message>
</context>

View file

@ -339,7 +339,7 @@
<translation>Onbekende afmetingen van documentformaat</translation>
</message>
<message>
<source>Converting</source>
<source>Preparing</source>
<translation type="unfinished"></translation>
</message>
</context>

View file

@ -339,7 +339,7 @@
<translation type="unfinished"></translation>
</message>
<message>
<source>Converting</source>
<source>Preparing</source>
<translation type="unfinished"></translation>
</message>
</context>

View file

@ -339,8 +339,8 @@
<translation></translation>
</message>
<message>
<source>Converting</source>
<translation></translation>
<source>Preparing</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>

View file

@ -339,7 +339,7 @@
<translation type="unfinished"></translation>
</message>
<message>
<source>Converting</source>
<source>Preparing</source>
<translation type="unfinished"></translation>
</message>
</context>