Fix some qml warnings

This commit is contained in:
Tobias Fella
2025-08-31 22:38:24 +02:00
parent c257ac504b
commit cf85d0fc0d

View File

@@ -51,14 +51,14 @@ ColumnLayout {
Kirigami.Action { Kirigami.Action {
id: emojis id: emojis
icon.name: "smiley" icon.name: "smiley"
text: i18n("Emojis") text: i18nc("@action:button", "Emojis")
checked: true checked: true
onTriggered: root.selectedType = 0 onTriggered: root.selectedType = 0
}, },
Kirigami.Action { Kirigami.Action {
id: stickers id: stickers
icon.name: "stickers" icon.name: "stickers"
text: i18n("Stickers") text: i18nc("@action:button", "Stickers")
onTriggered: root.selectedType = 1 onTriggered: root.selectedType = 1
} }
] ]
@@ -107,7 +107,7 @@ ColumnLayout {
id: searchField id: searchField
Layout.margins: Kirigami.Units.smallSpacing Layout.margins: Kirigami.Units.smallSpacing
Layout.fillWidth: true Layout.fillWidth: true
visible: selectedType === 0 visible: root.selectedType === 0
/** /**
* The focus is manged by the parent and we don't want to use the standard * The focus is manged by the parent and we don't want to use the standard
@@ -131,13 +131,13 @@ ColumnLayout {
} }
Kirigami.Separator { Kirigami.Separator {
visible: showQuickReaction visible: root.showQuickReaction
Layout.fillWidth: true Layout.fillWidth: true
Layout.preferredHeight: 1 Layout.preferredHeight: 1
} }
QQC2.ScrollView { QQC2.ScrollView {
visible: showQuickReaction visible: root.showQuickReaction
Layout.fillWidth: true Layout.fillWidth: true
Layout.preferredHeight: root.categoryIconSize + QQC2.ScrollBar.horizontal.height Layout.preferredHeight: root.categoryIconSize + QQC2.ScrollBar.horizontal.height
QQC2.ScrollBar.horizontal.height: QQC2.ScrollBar.horizontal.visible ? QQC2.ScrollBar.horizontal.implicitHeight : 0 QQC2.ScrollBar.horizontal.height: QQC2.ScrollBar.horizontal.visible ? QQC2.ScrollBar.horizontal.implicitHeight : 0