From 6e8ed5b341a82708dce0e5147fbeae923a6ad01e Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Wed, 13 Aug 2025 22:23:16 +0200 Subject: [PATCH] Fix qml warnings in NewPollDialog --- src/app/qml/NewPollDialog.qml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/app/qml/NewPollDialog.qml b/src/app/qml/NewPollDialog.qml index 7bcb60026..116cc602d 100644 --- a/src/app/qml/NewPollDialog.qml +++ b/src/app/qml/NewPollDialog.qml @@ -1,6 +1,8 @@ // SPDX-FileCopyrightText: 2025 James Graham // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL +pragma ComponentBehavior: Bound + import QtQuick import QtQuick.Controls as QQC2 import QtQuick.Layouts @@ -8,11 +10,8 @@ import QtQuick.Layouts import org.kde.kirigami as Kirigami import org.kde.kirigamiaddons.formcard as FormCard -import org.kde.kirigamiaddons.labs.components as KirigamiComponents import org.kde.kirigamiaddons.delegates as Delegates -import Quotient - import org.kde.neochat Kirigami.Dialog { @@ -43,22 +42,22 @@ Kirigami.Dialog { FormCard.FormComboBoxDelegate { id: pollTypeCombo - text: i18n("Poll type:") + text: i18nc("@label", "Poll type:") currentIndex: 0 textRole: "text" valueRole: "value" model: [ - { value: PollKind.Disclosed, text: i18n("Open poll") }, - { value: PollKind.Undisclosed, text: i18n("Closed poll") } + { value: PollKind.Disclosed, text: i18nc("@item:inlistbox", "Open poll") }, + { value: PollKind.Undisclosed, text: i18nc("@item:inlistbox", "Closed poll") } ] } FormCard.FormTextDelegate { verticalPadding: 0 - text: pollTypeCombo.currentValue == 0 ? i18n("Voters can see the result as soon as they have voted") : i18n("Results are revealed only after the poll has closed") + text: pollTypeCombo.currentValue == 0 ? i18nc("@info", "Voters can see the result as soon as they have voted") : i18nc("@info", "Results are revealed only after the poll has closed") } FormCard.FormTextFieldDelegate { id: questionTextField - label: i18n("Question:") + label: i18nc("@label", "Question:") } Repeater { id: optionRepeater