From 98a8928c336e3da303f54aa8a2f91dedd90fa5f8 Mon Sep 17 00:00:00 2001 From: Anton Thomasson Date: Sun, 9 Aug 2020 15:23:05 +0200 Subject: [PATCH] Add PageHeaders --- qml/pages/FirstPage.qml | 6 ++++++ qml/pages/SettingsPage.qml | 4 +++- translations/harbour-seaprint-de.ts | 8 ++++++++ translations/harbour-seaprint-es.ts | 8 ++++++++ translations/harbour-seaprint-fr.ts | 8 ++++++++ translations/harbour-seaprint-zh_CN.ts | 8 ++++++++ translations/harbour-seaprint.ts | 8 ++++++++ 7 files changed, 49 insertions(+), 1 deletion(-) diff --git a/qml/pages/FirstPage.qml b/qml/pages/FirstPage.qml index 91b9827..1908fef 100644 --- a/qml/pages/FirstPage.qml +++ b/qml/pages/FirstPage.qml @@ -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 diff --git a/qml/pages/SettingsPage.qml b/qml/pages/SettingsPage.qml index 00d9c75..f600485 100644 --- a/qml/pages/SettingsPage.qml +++ b/qml/pages/SettingsPage.qml @@ -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") diff --git a/translations/harbour-seaprint-de.ts b/translations/harbour-seaprint-de.ts index e318917..db2eedd 100644 --- a/translations/harbour-seaprint-de.ts +++ b/translations/harbour-seaprint-de.ts @@ -210,6 +210,10 @@ Settings + + Available printers + + IppPrinter @@ -403,6 +407,10 @@ 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. + + Settings + + utils diff --git a/translations/harbour-seaprint-es.ts b/translations/harbour-seaprint-es.ts index ca328ca..74d1b57 100644 --- a/translations/harbour-seaprint-es.ts +++ b/translations/harbour-seaprint-es.ts @@ -210,6 +210,10 @@ Settings Ajustes + + Available printers + + IppPrinter @@ -403,6 +407,10 @@ 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. + + Settings + Ajustes + utils diff --git a/translations/harbour-seaprint-fr.ts b/translations/harbour-seaprint-fr.ts index c5fff54..2b6cca5 100644 --- a/translations/harbour-seaprint-fr.ts +++ b/translations/harbour-seaprint-fr.ts @@ -210,6 +210,10 @@ Settings + + Available printers + + IppPrinter @@ -403,6 +407,10 @@ 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. + + Settings + + utils diff --git a/translations/harbour-seaprint-zh_CN.ts b/translations/harbour-seaprint-zh_CN.ts index 4c13835..924aacb 100644 --- a/translations/harbour-seaprint-zh_CN.ts +++ b/translations/harbour-seaprint-zh_CN.ts @@ -210,6 +210,10 @@ Settings 设置 + + Available printers + + IppPrinter @@ -403,6 +407,10 @@ 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. + + Settings + 设置 + utils diff --git a/translations/harbour-seaprint.ts b/translations/harbour-seaprint.ts index fe2be60..9950e1a 100644 --- a/translations/harbour-seaprint.ts +++ b/translations/harbour-seaprint.ts @@ -210,6 +210,10 @@ Settings + + Available printers + + IppPrinter @@ -403,6 +407,10 @@ 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. + + Settings + + utils