Use basename of file in PrinterPage header
This commit is contained in:
parent
0087596a69
commit
e0eb980220
2 changed files with 6 additions and 1 deletions
|
@ -66,7 +66,7 @@ Page {
|
|||
PageHeader {
|
||||
id: pageHeader
|
||||
title: printer.attrs["printer-name"].value
|
||||
description: selectedFile
|
||||
description: Utils.basename(selectedFile)
|
||||
}
|
||||
|
||||
Item {
|
||||
|
|
|
@ -379,6 +379,11 @@ function unknownForEmptyString(s)
|
|||
}
|
||||
}
|
||||
|
||||
function basename(filewithpath)
|
||||
{
|
||||
return filewithpath.substring(filewithpath.lastIndexOf("/")+1);
|
||||
}
|
||||
|
||||
var media =
|
||||
{"asme_f_28x40in": "28 x 40″",
|
||||
"choice_iso_a4_210x297mm_na_letter_8.5x11in": "A4 or US Letter",
|
||||
|
|
Loading…
Reference in a new issue