qml: consistency camelcase public slots qetxdetails, qelnpaymentdetails, qechannelopener, qeaddressdetails
This commit is contained in:
@@ -123,7 +123,7 @@ Pane {
|
|||||||
icon.color: 'transparent'
|
icon.color: 'transparent'
|
||||||
onClicked: {
|
onClicked: {
|
||||||
labelContent.editmode = false
|
labelContent.editmode = false
|
||||||
addressdetails.set_label(labelEdit.text)
|
addressdetails.setLabel(labelEdit.text)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ToolButton {
|
ToolButton {
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ Pane {
|
|||||||
icon.color: 'transparent'
|
icon.color: 'transparent'
|
||||||
onClicked: {
|
onClicked: {
|
||||||
labelContent.editmode = false
|
labelContent.editmode = false
|
||||||
lnpaymentdetails.set_label(labelEdit.text)
|
lnpaymentdetails.setLabel(labelEdit.text)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ToolButton {
|
ToolButton {
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ ElDialog {
|
|||||||
icon.height: constants.iconSizeMedium
|
icon.height: constants.iconSizeMedium
|
||||||
icon.width: constants.iconSizeMedium
|
icon.width: constants.iconSizeMedium
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (channelopener.validate_connect_str(AppController.clipboardToText())) {
|
if (channelopener.validateConnectString(AppController.clipboardToText())) {
|
||||||
channelopener.connectStr = AppController.clipboardToText()
|
channelopener.connectStr = AppController.clipboardToText()
|
||||||
node.text = channelopener.connectStr
|
node.text = channelopener.connectStr
|
||||||
}
|
}
|
||||||
@@ -111,7 +111,7 @@ ElDialog {
|
|||||||
hint: qsTr('Scan a channel connect string')
|
hint: qsTr('Scan a channel connect string')
|
||||||
})
|
})
|
||||||
dialog.onFound.connect(function() {
|
dialog.onFound.connect(function() {
|
||||||
if (channelopener.validate_connect_str(dialog.scanData)) {
|
if (channelopener.validateConnectString(dialog.scanData)) {
|
||||||
channelopener.connectStr = dialog.scanData
|
channelopener.connectStr = dialog.scanData
|
||||||
node.text = channelopener.connectStr
|
node.text = channelopener.connectStr
|
||||||
}
|
}
|
||||||
@@ -196,7 +196,7 @@ ElDialog {
|
|||||||
text: qsTr('Open Channel')
|
text: qsTr('Open Channel')
|
||||||
icon.source: '../../icons/confirmed.png'
|
icon.source: '../../icons/confirmed.png'
|
||||||
enabled: channelopener.valid
|
enabled: channelopener.valid
|
||||||
onClicked: channelopener.open_channel()
|
onClicked: channelopener.openChannel()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -225,7 +225,7 @@ ElDialog {
|
|||||||
var dialog = app.messageDialog.createObject(app, { 'text': message, 'yesno': true })
|
var dialog = app.messageDialog.createObject(app, { 'text': message, 'yesno': true })
|
||||||
dialog.open()
|
dialog.open()
|
||||||
dialog.accepted.connect(function() {
|
dialog.accepted.connect(function() {
|
||||||
channelopener.open_channel(true)
|
channelopener.openChannel(true)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
onFinalizerChanged: {
|
onFinalizerChanged: {
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ Pane {
|
|||||||
icon.color: 'transparent'
|
icon.color: 'transparent'
|
||||||
onClicked: {
|
onClicked: {
|
||||||
labelContent.editmode = false
|
labelContent.editmode = false
|
||||||
txdetails.set_label(labelEdit.text)
|
txdetails.setLabel(labelEdit.text)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ToolButton {
|
ToolButton {
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ class QEAddressDetails(QObject):
|
|||||||
self._wallet.balanceChanged.emit()
|
self._wallet.balanceChanged.emit()
|
||||||
|
|
||||||
@pyqtSlot(str)
|
@pyqtSlot(str)
|
||||||
def set_label(self, label: str):
|
def setLabel(self, label: str):
|
||||||
if label != self._label:
|
if label != self._label:
|
||||||
self._wallet.wallet.set_label(self._address, label)
|
self._wallet.wallet.set_label(self._address, label)
|
||||||
self._label = label
|
self._label = label
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ class QEChannelOpener(QObject, AuthMixin):
|
|||||||
self.validChanged.emit()
|
self.validChanged.emit()
|
||||||
|
|
||||||
@pyqtSlot(str, result=bool)
|
@pyqtSlot(str, result=bool)
|
||||||
def validate_connect_str(self, connect_str):
|
def validateConnectString(self, connect_str):
|
||||||
try:
|
try:
|
||||||
node_id, rest = extract_nodeid(connect_str)
|
node_id, rest = extract_nodeid(connect_str)
|
||||||
except ConnStringFormatError as e:
|
except ConnStringFormatError as e:
|
||||||
@@ -143,7 +143,7 @@ class QEChannelOpener(QObject, AuthMixin):
|
|||||||
# FIXME "max" button in amount_dialog should enforce LN_MAX_FUNDING_SAT
|
# FIXME "max" button in amount_dialog should enforce LN_MAX_FUNDING_SAT
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
@pyqtSlot(bool)
|
@pyqtSlot(bool)
|
||||||
def open_channel(self, confirm_backup_conflict=False):
|
def openChannel(self, confirm_backup_conflict=False):
|
||||||
if not self.valid:
|
if not self.valid:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ class QELnPaymentDetails(QObject):
|
|||||||
return self._label
|
return self._label
|
||||||
|
|
||||||
@pyqtSlot(str)
|
@pyqtSlot(str)
|
||||||
def set_label(self, label: str):
|
def setLabel(self, label: str):
|
||||||
if label != self._label:
|
if label != self._label:
|
||||||
self._wallet.wallet.set_label(self._key, label)
|
self._wallet.wallet.set_label(self._key, label)
|
||||||
self._label = label
|
self._label = label
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ class QETxDetails(QObject, QtEventListener):
|
|||||||
return self._label
|
return self._label
|
||||||
|
|
||||||
@pyqtSlot(str)
|
@pyqtSlot(str)
|
||||||
def set_label(self, label: str):
|
def setLabel(self, label: str):
|
||||||
if label != self._label:
|
if label != self._label:
|
||||||
self._wallet.wallet.set_label(self._txid, label)
|
self._wallet.wallet.set_label(self._txid, label)
|
||||||
self._label = label
|
self._label = label
|
||||||
|
|||||||
Reference in New Issue
Block a user