1
0

qml: cosmetic changes

This commit is contained in:
Sander van Grieken
2022-08-16 14:44:36 +02:00
parent fad9f87303
commit 1c29ef12b5
3 changed files with 6 additions and 9 deletions

View File

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

View File

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

View File

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