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 parent: applicationWindow().overlay
header: Kirigami.Heading { title: i18n("Create a Room")
text: i18n("Create a Room")
}
contentItem: Kirigami.FormLayout { contentItem: Kirigami.FormLayout {
TextField { TextField {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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