From 28b5103d93f417c9de7e4691427375efeccc4404 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Thu, 6 Oct 2022 09:20:02 +0200 Subject: [PATCH] remove qml_test plugin, remove plugin settings test --- electrum/plugins/qml_test/__init__.py | 5 -- electrum/plugins/qml_test/qml.py | 15 ------ electrum/plugins/trustedcoin/qml.py | 3 -- electrum/plugins/trustedcoin/qml/Settings.qml | 46 ------------------- 4 files changed, 69 deletions(-) delete mode 100644 electrum/plugins/qml_test/__init__.py delete mode 100644 electrum/plugins/qml_test/qml.py delete mode 100644 electrum/plugins/trustedcoin/qml/Settings.qml diff --git a/electrum/plugins/qml_test/__init__.py b/electrum/plugins/qml_test/__init__.py deleted file mode 100644 index 62e390176..000000000 --- a/electrum/plugins/qml_test/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -from electrum.i18n import _ - -fullname = 'QML Plugin Test' -description = '%s\n%s' % (_("Plugin to test QML integration from plugins."), _("Note: Used for development")) -available_for = ['qml'] diff --git a/electrum/plugins/qml_test/qml.py b/electrum/plugins/qml_test/qml.py deleted file mode 100644 index 0d5233812..000000000 --- a/electrum/plugins/qml_test/qml.py +++ /dev/null @@ -1,15 +0,0 @@ -from typing import TYPE_CHECKING -from PyQt5.QtQml import QQmlApplicationEngine -from electrum.plugin import hook, BasePlugin -from electrum.logging import get_logger - -if TYPE_CHECKING: - from electrum.gui.qml import ElectrumGui - -class Plugin(BasePlugin): - def __init__(self, parent, config, name): - BasePlugin.__init__(self, parent, config, name) - - @hook - def init_qml(self, gui: 'ElectrumGui'): - self.logger.debug('init_qml hook called') diff --git a/electrum/plugins/trustedcoin/qml.py b/electrum/plugins/trustedcoin/qml.py index dde9fb929..85b7e11b0 100644 --- a/electrum/plugins/trustedcoin/qml.py +++ b/electrum/plugins/trustedcoin/qml.py @@ -49,9 +49,6 @@ class Plugin(TrustedCoinPlugin): def __init__(self, plugin, parent): super().__init__(plugin, parent) - @pyqtSlot(result=str) - def settingsComponent(self): return '../../../plugins/trustedcoin/qml/Settings.qml' - @pyqtProperty(str, notify=disclaimerChanged) def disclaimer(self): return '\n\n'.join(MOBILE_DISCLAIMER) diff --git a/electrum/plugins/trustedcoin/qml/Settings.qml b/electrum/plugins/trustedcoin/qml/Settings.qml deleted file mode 100644 index c8b7560f4..000000000 --- a/electrum/plugins/trustedcoin/qml/Settings.qml +++ /dev/null @@ -1,46 +0,0 @@ -import QtQuick 2.6 -import QtQuick.Layouts 1.0 -import QtQuick.Controls 2.14 -import QtQuick.Controls.Material 2.0 - -import org.electrum 1.0 - -//import "controls" - -Item { - width: parent.width - height: rootLayout.height - - property QtObject plugin - - RowLayout { - id: rootLayout - Button { - text: 'Force upload' - enabled: !plugin.busy - onClicked: plugin.upload() - } - Button { - text: 'Force download' - enabled: !plugin.busy - onClicked: plugin.download() - } - } - - Connections { - target: plugin - function onUploadSuccess() { - console.log('upload success') - } - function onUploadFailed() { - console.log('upload failed') - } - function onDownloadSuccess() { - console.log('download success') - } - function onDownloadFailed() { - console.log('download failed') - } - } - -}