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