Padding in review screen fixed

This commit is contained in:
Balthasar Reuter
2018-06-29 01:15:34 +02:00
parent c768510e90
commit fc24c3cc4c
2 changed files with 4 additions and 4 deletions

View File

@@ -170,11 +170,11 @@ class PictureMessage(QtWidgets.QFrame):
pix = QtGui.QPixmap.fromImage(self._picture) pix = QtGui.QPixmap.fromImage(self._picture)
else: else:
pix = QtGui.QPixmap(self._picture) pix = QtGui.QPixmap(self._picture)
pix = pix.scaled(self.rect().size(), QtCore.Qt.KeepAspectRatio, pix = pix.scaled(self.contentsRect().size(), QtCore.Qt.KeepAspectRatio,
QtCore.Qt.SmoothTransformation) QtCore.Qt.SmoothTransformation)
origin = ((self.rect().width() - pix.width()) // 2, origin = ((self.width() - pix.width()) // 2,
(self.rect().height() - pix.height()) // 2) (self.height() - pix.height()) // 2)
painter.drawPixmap(QtCore.QPoint(*origin), pix) painter.drawPixmap(QtCore.QPoint(*origin), pix)
def paintEvent(self, event): def paintEvent(self, event):

View File

@@ -112,7 +112,7 @@ QFrame#WaitMessage QLabel {
/* Picture Screen*/ /* Picture Screen*/
QFrame#PictureMessage { QFrame#PictureMessage {
margin: 40px; margin: 30px;
} }
/* Customizing settings */ /* Customizing settings */