aboutsummaryrefslogtreecommitdiff
path: root/components/RemoteNodeEdit.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/RemoteNodeEdit.qml')
-rw-r--r--components/RemoteNodeEdit.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/RemoteNodeEdit.qml b/components/RemoteNodeEdit.qml
index 4b003969..52b3b46e 100644
--- a/components/RemoteNodeEdit.qml
+++ b/components/RemoteNodeEdit.qml
@@ -58,6 +58,11 @@ GridLayout {
property bool lineEditFontBold: true
signal editingFinished()
+ signal textChanged()
+
+ function isValid() {
+ return daemonAddr.text.trim().length > 0 && daemonPort.acceptableInput
+ }
function getAddress() {
return daemonAddr.text.trim() + ":" + daemonPort.text.trim()
@@ -79,6 +84,7 @@ GridLayout {
fontBold: lineEditFontBold
fontSize: lineEditFontSize
onEditingFinished: root.editingFinished()
+ onTextChanged: root.textChanged()
}
LineEdit {
@@ -96,7 +102,9 @@ GridLayout {
fontColor: lineEditFontColor
fontBold: lineEditFontBold
fontSize: lineEditFontSize
+ validator: IntValidator{bottom: 1; top: 65535;}
onEditingFinished: root.editingFinished()
+ onTextChanged: root.textChanged()
}
}