Fix job page header
This commit is contained in:
parent
41bd50a3ce
commit
8e2bf39833
4 changed files with 20 additions and 56 deletions
|
@ -42,8 +42,8 @@ Page {
|
||||||
|
|
||||||
header: PageHeader {
|
header: PageHeader {
|
||||||
id: pageHeader
|
id: pageHeader
|
||||||
title: printer.name
|
title: printer.attrs["printer-name"].value
|
||||||
|
description: printer.jobs.length==1 ? printer.jobs.length+" "+qsTr("job") : printer.jobs.length+" "+qsTr("jobs")
|
||||||
}
|
}
|
||||||
|
|
||||||
delegate: ListItem {
|
delegate: ListItem {
|
||||||
|
|
|
@ -1,30 +0,0 @@
|
||||||
import QtQuick 2.0
|
|
||||||
import Sailfish.Silica 1.0
|
|
||||||
|
|
||||||
Page {
|
|
||||||
id: page
|
|
||||||
|
|
||||||
// The effective value will be restricted by ApplicationWindow.allowedOrientations
|
|
||||||
allowedOrientations: Orientation.All
|
|
||||||
|
|
||||||
SilicaListView {
|
|
||||||
id: listView
|
|
||||||
model: 20
|
|
||||||
anchors.fill: parent
|
|
||||||
header: PageHeader {
|
|
||||||
title: qsTr("Nested Page")
|
|
||||||
}
|
|
||||||
delegate: BackgroundItem {
|
|
||||||
id: delegate
|
|
||||||
|
|
||||||
Label {
|
|
||||||
x: Theme.horizontalPageMargin
|
|
||||||
text: qsTr("Item") + " " + index
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
color: delegate.highlighted ? Theme.highlightColor : Theme.primaryColor
|
|
||||||
}
|
|
||||||
onClicked: console.log("Clicked " + index)
|
|
||||||
}
|
|
||||||
VerticalScrollDecorator {}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -116,17 +116,25 @@
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Cancel job</source>
|
<source>jobs</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Untitled job</source>
|
<source>Untitled job</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Cancel job</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Cancelling job</source>
|
<source>Cancelling job</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>job</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>PrinterPage</name>
|
<name>PrinterPage</name>
|
||||||
|
@ -155,15 +163,4 @@
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
|
||||||
<name>SecondPage</name>
|
|
||||||
<message>
|
|
||||||
<source>Nested Page</source>
|
|
||||||
<translation>Unterseite</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Item</source>
|
|
||||||
<translation>Element</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
</TS>
|
</TS>
|
||||||
|
|
|
@ -116,17 +116,25 @@
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Cancel job</source>
|
<source>jobs</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Untitled job</source>
|
<source>Untitled job</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Cancel job</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Cancelling job</source>
|
<source>Cancelling job</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>job</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>PrinterPage</name>
|
<name>PrinterPage</name>
|
||||||
|
@ -155,15 +163,4 @@
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
|
||||||
<name>SecondPage</name>
|
|
||||||
<message>
|
|
||||||
<source>Nested Page</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Item</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
</TS>
|
</TS>
|
||||||
|
|
Loading…
Reference in a new issue