Display now works

This commit is contained in:
Tim Bentley 2011-09-29 18:57:48 +01:00
parent 9142ffb488
commit 128b6b80bf
1 changed files with 2 additions and 1 deletions

View File

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