From 1c29ef12b55125fed0be49dfb29a428aad658e88 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Tue, 16 Aug 2022 14:44:36 +0200 Subject: [PATCH] qml: cosmetic changes --- electrum/gui/qml/components/controls/QRScan.qml | 7 ++----- electrum/gui/qml/components/controls/TextHighlightPane.qml | 3 +++ electrum/gui/qml/qeqr.py | 5 +---- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/electrum/gui/qml/components/controls/QRScan.qml b/electrum/gui/qml/components/controls/QRScan.qml index 514fd2591..97d398396 100644 --- a/electrum/gui/qml/components/controls/QRScan.qml +++ b/electrum/gui/qml/components/controls/QRScan.qml @@ -147,11 +147,8 @@ Item { Component.onCompleted: { console.log('Scan page initialized') QtMultimedia.availableCameras.forEach(function(item) { - console.log('cam found') - console.log(item.deviceId) - console.log(item.displayName) - console.log(item.position) - console.log(item.orientation) + console.log('cam found, id=' + item.deviceId + ' name=' + item.displayName) + console.log('pos=' + item.position + ' orientation=' + item.orientation) if (QtMultimedia.defaultCamera.deviceId == item.deviceId) { vo.orientation = item.orientation } diff --git a/electrum/gui/qml/components/controls/TextHighlightPane.qml b/electrum/gui/qml/components/controls/TextHighlightPane.qml index 7e38b327f..7d715af2f 100644 --- a/electrum/gui/qml/components/controls/TextHighlightPane.qml +++ b/electrum/gui/qml/components/controls/TextHighlightPane.qml @@ -6,6 +6,9 @@ import QtQuick.Controls.Material 2.0 Pane { topPadding: constants.paddingSmall bottomPadding: constants.paddingSmall + leftPadding: constants.paddingSmall + rightPadding: constants.paddingSmall + background: Rectangle { color: Qt.lighter(Material.background, 1.15) radius: constants.paddingSmall diff --git a/electrum/gui/qml/qeqr.py b/electrum/gui/qml/qeqr.py index 43e4a19ae..1af6eaeff 100644 --- a/electrum/gui/qml/qeqr.py +++ b/electrum/gui/qml/qeqr.py @@ -48,10 +48,7 @@ class QEQRParser(QObject): self._parseQR(image) def logImageStats(self, image): - self._logger.info('width: ' + str(image.width())) - self._logger.info('height: ' + str(image.height())) - self._logger.info('depth: ' + str(image.depth())) - self._logger.info('format: ' + str(image.format())) + self._logger.info(f'width: {image.width()} height: {image.height()} depth: {image.depth()} format: {image.format()}') def _parseQR(self, image): self.w = image.width()