qml: cosmetic changes
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user