Add PageHeaders

This commit is contained in:
Anton Thomasson 2020-08-09 15:23:05 +02:00
parent e7e8ce0752
commit 98a8928c33
7 changed files with 49 additions and 1 deletions

View file

@ -112,6 +112,12 @@ Page {
spacing: Theme.paddingSmall
header: PageHeader {
id: pageHeader
title: "SeaPrint"
description: qsTr("Available printers")
}
delegate: ListItem {
id: delegate
contentItem.height: visible ? Math.max(column.implicitHeight, Theme.itemSizeLarge+2*Theme.paddingMedium) : 0

View file

@ -15,7 +15,9 @@ Page {
width: parent.width - 2*Theme.paddingLarge
spacing: Theme.paddingLarge
PageHeader{}
PageHeader{
title: qsTr("Settings")
}
TextSwitch {
text: qsTr("Show nag-screen")

View file

@ -210,6 +210,10 @@
<source>Settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Available printers</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>IppPrinter</name>
@ -403,6 +407,10 @@
<source>Use the attribute media-col instead of media for paper sizes. I.e. do parametric selection of print media rather than by name. If you use zero print margins, parametric selection will be used regardless of this setting.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Settings</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>utils</name>

View file

@ -210,6 +210,10 @@
<source>Settings</source>
<translation>Ajustes</translation>
</message>
<message>
<source>Available printers</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>IppPrinter</name>
@ -403,6 +407,10 @@
<source>Use the attribute media-col instead of media for paper sizes. I.e. do parametric selection of print media rather than by name. If you use zero print margins, parametric selection will be used regardless of this setting.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Settings</source>
<translation type="unfinished">Ajustes</translation>
</message>
</context>
<context>
<name>utils</name>

View file

@ -210,6 +210,10 @@
<source>Settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Available printers</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>IppPrinter</name>
@ -403,6 +407,10 @@
<source>Use the attribute media-col instead of media for paper sizes. I.e. do parametric selection of print media rather than by name. If you use zero print margins, parametric selection will be used regardless of this setting.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Settings</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>utils</name>

View file

@ -210,6 +210,10 @@
<source>Settings</source>
<translation></translation>
</message>
<message>
<source>Available printers</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>IppPrinter</name>
@ -403,6 +407,10 @@
<source>Use the attribute media-col instead of media for paper sizes. I.e. do parametric selection of print media rather than by name. If you use zero print margins, parametric selection will be used regardless of this setting.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Settings</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>utils</name>

View file

@ -210,6 +210,10 @@
<source>Settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Available printers</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>IppPrinter</name>
@ -403,6 +407,10 @@
<source>Use the attribute media-col instead of media for paper sizes. I.e. do parametric selection of print media rather than by name. If you use zero print margins, parametric selection will be used regardless of this setting.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Settings</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>utils</name>