Add Postscript to supported formats
This commit is contained in:
parent
4526aedcc8
commit
6180c3733d
4 changed files with 17 additions and 3 deletions
|
@ -51,6 +51,10 @@ Page {
|
||||||
{
|
{
|
||||||
selectedFileType = "application/pdf"
|
selectedFileType = "application/pdf"
|
||||||
}
|
}
|
||||||
|
else if(Utils.endsWith(".ps", selectedFile))
|
||||||
|
{
|
||||||
|
selectedFileType = "application/postscript"
|
||||||
|
}
|
||||||
else if(Utils.endsWith(".jpg", selectedFile) || Utils.endsWith(".jpeg", selectedFile))
|
else if(Utils.endsWith(".jpg", selectedFile) || Utils.endsWith(".jpeg", selectedFile))
|
||||||
{
|
{
|
||||||
selectedFileType = "image/jpeg"
|
selectedFileType = "image/jpeg"
|
||||||
|
@ -280,7 +284,7 @@ Page {
|
||||||
FilePickerPage {
|
FilePickerPage {
|
||||||
title: fileButton.label
|
title: fileButton.label
|
||||||
showSystemFiles: false
|
showSystemFiles: false
|
||||||
nameFilters: ["*.pdf", "*.jpg", "*.jpeg", "*.pwg", "*.urf"]
|
nameFilters: ["*.pdf", "*.jpg", "*.jpeg", "*.ps"]
|
||||||
|
|
||||||
onSelectedContentPropertiesChanged: {
|
onSelectedContentPropertiesChanged: {
|
||||||
page.selectedFile = selectedContentProperties.filePath
|
page.selectedFile = selectedContentProperties.filePath
|
||||||
|
|
|
@ -8,6 +8,11 @@ function supported_formats(printer)
|
||||||
mimetypes.push("application/pdf");
|
mimetypes.push("application/pdf");
|
||||||
supported.push("PDF");
|
supported.push("PDF");
|
||||||
}
|
}
|
||||||
|
if(has(formats, "application/postscript"))
|
||||||
|
{
|
||||||
|
mimetypes.push("application/postscript");
|
||||||
|
supported.push("Postscript");
|
||||||
|
}
|
||||||
if(has(formats, "image/jpeg"))
|
if(has(formats, "image/jpeg"))
|
||||||
{
|
{
|
||||||
mimetypes.push("image/jpeg");
|
mimetypes.push("image/jpeg");
|
||||||
|
@ -27,6 +32,11 @@ function supported_formats(printer)
|
||||||
mimetypes.push("application/pdf");
|
mimetypes.push("application/pdf");
|
||||||
maybe.push("PDF");
|
maybe.push("PDF");
|
||||||
}
|
}
|
||||||
|
if(!has(supported, "Postscript") && has(info[i].split(":")[1].split(","), "POSTSCRIPT"))
|
||||||
|
{
|
||||||
|
mimetypes.push("application/postscript");
|
||||||
|
maybe.push("Postscript");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ Name: harbour-seaprint
|
||||||
|
|
||||||
Summary: SeaPrint
|
Summary: SeaPrint
|
||||||
Version: 0.4.2
|
Version: 0.4.2
|
||||||
Release: 1
|
Release: 2
|
||||||
Group: Qt/Qt
|
Group: Qt/Qt
|
||||||
License: LICENSE
|
License: LICENSE
|
||||||
URL: http://example.org/
|
URL: http://example.org/
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
Name: harbour-seaprint
|
Name: harbour-seaprint
|
||||||
Summary: SeaPrint
|
Summary: SeaPrint
|
||||||
Version: 0.4.2
|
Version: 0.4.2
|
||||||
Release: 1
|
Release: 2
|
||||||
# The contents of the Group field should be one of the groups listed here:
|
# The contents of the Group field should be one of the groups listed here:
|
||||||
# https://github.com/mer-tools/spectacle/blob/master/data/GROUPS
|
# https://github.com/mer-tools/spectacle/blob/master/data/GROUPS
|
||||||
Group: Qt/Qt
|
Group: Qt/Qt
|
||||||
|
|
Loading…
Reference in a new issue