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 spacing: Theme.paddingSmall
header: PageHeader {
id: pageHeader
title: "SeaPrint"
description: qsTr("Available printers")
}
delegate: ListItem { delegate: ListItem {
id: delegate id: delegate
contentItem.height: visible ? Math.max(column.implicitHeight, Theme.itemSizeLarge+2*Theme.paddingMedium) : 0 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 width: parent.width - 2*Theme.paddingLarge
spacing: Theme.paddingLarge spacing: Theme.paddingLarge
PageHeader{} PageHeader{
title: qsTr("Settings")
}
TextSwitch { TextSwitch {
text: qsTr("Show nag-screen") text: qsTr("Show nag-screen")

View file

@ -210,6 +210,10 @@
<source>Settings</source> <source>Settings</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Available printers</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>IppPrinter</name> <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> <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> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Settings</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>utils</name> <name>utils</name>

View file

@ -210,6 +210,10 @@
<source>Settings</source> <source>Settings</source>
<translation>Ajustes</translation> <translation>Ajustes</translation>
</message> </message>
<message>
<source>Available printers</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>IppPrinter</name> <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> <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> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Settings</source>
<translation type="unfinished">Ajustes</translation>
</message>
</context> </context>
<context> <context>
<name>utils</name> <name>utils</name>

View file

@ -210,6 +210,10 @@
<source>Settings</source> <source>Settings</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Available printers</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>IppPrinter</name> <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> <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> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Settings</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>utils</name> <name>utils</name>

View file

@ -210,6 +210,10 @@
<source>Settings</source> <source>Settings</source>
<translation></translation> <translation></translation>
</message> </message>
<message>
<source>Available printers</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>IppPrinter</name> <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> <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> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Settings</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>utils</name> <name>utils</name>

View file

@ -210,6 +210,10 @@
<source>Settings</source> <source>Settings</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Available printers</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>IppPrinter</name> <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> <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> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Settings</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>utils</name> <name>utils</name>