mirror of
https://github.com/tnodir/fort
synced 2024-11-15 03:46:13 +00:00
UI: Use textChanged() signal instead of editingFinished().
To use edited text when clicked on OK immediately.
This commit is contained in:
parent
ef8c4960c5
commit
8f2a8930df
@ -4,7 +4,7 @@ import QtQuick.Controls 2.2
|
||||
Frame {
|
||||
id: frame
|
||||
|
||||
signal editingFinished() // Workaround for QTBUG-59908
|
||||
signal textChanged() // Workaround for QTBUG-59908
|
||||
|
||||
readonly property alias textArea: textArea
|
||||
|
||||
@ -16,7 +16,7 @@ Frame {
|
||||
TextArea {
|
||||
id: textArea
|
||||
clip: true // to clip placeholder text
|
||||
onEditingFinished: frame.editingFinished()
|
||||
onTextChanged: frame.textChanged()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ ColumnLayout {
|
||||
text: addressGroup.text
|
||||
}
|
||||
|
||||
onEditingFinished: {
|
||||
onTextChanged: {
|
||||
addressGroup.text = textArea.text;
|
||||
|
||||
setConfEdited();
|
||||
|
@ -59,7 +59,7 @@ C:\\Program Files\\Internet Explorer\\iexplore.exe
|
||||
text: appGroup.blockText
|
||||
}
|
||||
|
||||
onEditingFinished: {
|
||||
onTextChanged: {
|
||||
appGroup.blockText = textArea.text;
|
||||
|
||||
setConfEdited();
|
||||
@ -80,7 +80,7 @@ C:\\Program Files\\Skype\\Phone\\Skype.exe
|
||||
text: appGroup.allowText
|
||||
}
|
||||
|
||||
onEditingFinished: {
|
||||
onTextChanged: {
|
||||
appGroup.allowText = textArea.text;
|
||||
|
||||
setConfEdited();
|
||||
|
@ -9,7 +9,7 @@ ColumnLayout {
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
||||
signal editingFinished() // Workaround for QTBUG-59908
|
||||
signal textChanged() // Workaround for QTBUG-59908
|
||||
|
||||
readonly property alias title: title
|
||||
readonly property alias textArea: textAreaFrame.textArea
|
||||
@ -25,6 +25,6 @@ ColumnLayout {
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
||||
onEditingFinished: container.editingFinished()
|
||||
onTextChanged: container.textChanged()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user