Browse Source

qml: cosmetic changes

patch-4
Sander van Grieken 2 years ago
parent
commit
1c29ef12b5
  1. 7
      electrum/gui/qml/components/controls/QRScan.qml
  2. 3
      electrum/gui/qml/components/controls/TextHighlightPane.qml
  3. 5
      electrum/gui/qml/qeqr.py

7
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
}

3
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

5
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()

Loading…
Cancel
Save