Port to OverlaySheet.title

This commit is contained in:
Carl Schwan
2021-10-16 17:41:48 +02:00
parent 8648b4a3bf
commit d42ad85b30
7 changed files with 9 additions and 32 deletions

View File

@@ -14,9 +14,7 @@ Kirigami.OverlaySheet {
parent: applicationWindow().overlay
header: Kirigami.Heading {
text: i18n("Create a Room")
}
title: i18n("Create a Room")
contentItem: Kirigami.FormLayout {
TextField {

View File

@@ -22,10 +22,7 @@ Kirigami.OverlaySheet {
parent: applicationWindow().overlay
header: Kirigami.Heading {
text: i18nc("%1 is the room name", "Room Settings - %1", room.displayName)
elide: Text.ElideRight
}
title: i18nc("%1 is the room name", "Room Settings - %1", room.displayName)
contentItem: ColumnLayout {
RowLayout {

View File

@@ -27,13 +27,7 @@ Kirigami.OverlaySheet {
rightPadding: 0
topPadding: 0
header: Kirigami.Heading {
id: heading
text: i18nc("@title:menu Account detail dialog", "Account detail")
elide: Text.ElideRight
QQC2.ToolTip.visible: truncated && hovered
QQC2.ToolTip.text: text
}
title: i18nc("@title:menu Account detail dialog", "Account detail")
contentItem: ColumnLayout {
spacing: 0

View File

@@ -12,9 +12,7 @@ Kirigami.OverlaySheet {
property string sourceText
header: Kirigami.Heading {
text: i18n("Message Source")
}
title: i18n("Message Source")
TextArea {
id: sourceTextArea

View File

@@ -133,9 +133,7 @@ Kirigami.Page {
property var connection
header: Kirigami.Heading {
text: i18n("Edit Account")
}
title: i18n("Edit Account")
Kirigami.FormLayout {
RowLayout {

View File

@@ -82,9 +82,7 @@ Kirigami.Page {
property var index
header: Kirigami.Heading {
text: i18n("Remove device")
}
title: i18n("Remove device")
Kirigami.FormLayout {
Controls.TextField {
id: passwordField
@@ -107,9 +105,7 @@ Kirigami.Page {
property int index
property string name
header: Kirigami.Heading {
text: i18n("Edit device")
}
title: i18n("Edit device")
Kirigami.FormLayout {
Controls.TextField {
id: nameField

View File

@@ -361,9 +361,7 @@ Kirigami.ApplicationWindow {
property string url: ""
header: Kirigami.Heading {
text: i18n("User consent")
}
title: i18n("User consent")
QQC2.Label {
id: label
@@ -402,9 +400,7 @@ Kirigami.ApplicationWindow {
required property var user;
parent: QQC2.ApplicationWindow.overlay
header: Kirigami.Heading {
text: i18n("Start a chat")
}
title: i18n("Start a chat")
contentItem: QQC2.Label {
text: i18n("Do you want to start a chat with %1?", user.displayName)
wrapMode: Text.WordWrap