forked from openlp/openlp
Display now works
This commit is contained in:
parent
9142ffb488
commit
128b6b80bf
@ -249,7 +249,8 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard):
|
||||
paint.setPen(QtGui.QPen(QtCore.Qt.red, 2))
|
||||
paint.drawRect(self.thememanager.mainwindow.renderer.get_footer_rectangle(self.theme))
|
||||
paint.end()
|
||||
pixmap = pixmap.scaledToWidth(200, QtCore.Qt.SmoothTransformation)
|
||||
pixmap = pixmap.scaledToHeight(150, QtCore.Qt.SmoothTransformation)
|
||||
self.themeLayoutLabel.setFixedSize(pixmap.width() + 2, pixmap.height() + 2)
|
||||
self.themeLayoutLabel.setPixmap(pixmap)
|
||||
self.displayAspectRatio = float(pixmap.width()) / pixmap.height()
|
||||
self.resizeEvent()
|
||||
|
Loading…
Reference in New Issue
Block a user