summary refs log tree commit diff
path: root/resources/qml/dialogs/InputDialog.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-10-26 21:43:05 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-10-26 21:48:55 +0200
commit6fef6ad5f1c7138ebe0bc07174ad28a62c493231 (patch)
treef81d637f22f81dd58808cc50d6200b08797657bb /resources/qml/dialogs/InputDialog.qml
parentAdd basic qml linter config (diff)
downloadnheko-6fef6ad5f1c7138ebe0bc07174ad28a62c493231.tar.xz
Enable even more qml linter warnings
Diffstat (limited to 'resources/qml/dialogs/InputDialog.qml')
-rw-r--r--resources/qml/dialogs/InputDialog.qml5
1 files changed, 2 insertions, 3 deletions
diff --git a/resources/qml/dialogs/InputDialog.qml b/resources/qml/dialogs/InputDialog.qml

index 49becc67..8bd95d09 100644 --- a/resources/qml/dialogs/InputDialog.qml +++ b/resources/qml/dialogs/InputDialog.qml
@@ -13,7 +13,7 @@ ApplicationWindow { property alias prompt: promptLabel.text property alias echoMode: statusInput.echoMode - property var onAccepted: undefined + signal accepted(text: string) modality: Qt.NonModal flags: Qt.Dialog @@ -55,8 +55,7 @@ ApplicationWindow { standardButtons: DialogButtonBox.Ok | DialogButtonBox.Cancel onAccepted: { - if (inputDialog.onAccepted) - inputDialog.onAccepted(statusInput.text); + inputDialog.accepted(statusInput.text); inputDialog.close(); }