mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile-widgets/qml: add TemplateButton
Do "git mv SsrfButton TemplateButton", and search/replace all uses. The general idea of the templates are to secure common layout, but also to isolate the Kirigami parts (slowly) in the templates. Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
fb7920ef58
commit
3aa43f3ea5
8 changed files with 24 additions and 24 deletions
|
@ -95,7 +95,7 @@ Item {
|
|||
Layout.margins: Kirigami.Units.smallSpacing
|
||||
spacing: Kirigami.Units.smallSpacing
|
||||
visible: showPin
|
||||
SsrfButton {
|
||||
TemplateButton {
|
||||
id: registerpin
|
||||
text: qsTr("Register")
|
||||
onClicked: {
|
||||
|
@ -106,7 +106,7 @@ Item {
|
|||
text: "" // Spacer between 2 button groups
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
SsrfButton {
|
||||
TemplateButton {
|
||||
id: cancelpin
|
||||
text: qsTr("Cancel")
|
||||
onClicked: {
|
||||
|
@ -122,7 +122,7 @@ Item {
|
|||
spacing: Kirigami.Units.smallSpacing
|
||||
visible: !showPin
|
||||
|
||||
SsrfButton {
|
||||
TemplateButton {
|
||||
id: signin_register_normal
|
||||
text: qsTr("Sign-in or Register")
|
||||
onClicked: {
|
||||
|
@ -133,7 +133,7 @@ Item {
|
|||
text: "" // Spacer between 2 button groups
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
SsrfButton {
|
||||
TemplateButton {
|
||||
id: toNoCloudMode
|
||||
text: qsTr("No cloud mode")
|
||||
onClicked: {
|
||||
|
@ -146,7 +146,7 @@ Item {
|
|||
}
|
||||
}
|
||||
}
|
||||
SsrfButton {
|
||||
TemplateButton {
|
||||
id: signin_forgot_password
|
||||
text: qsTr("Forgot password?")
|
||||
onClicked: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue