more visible lines

This commit is contained in:
Tim Bentley 2011-09-28 21:43:30 +01:00
parent ff32139b2e
commit 9142ffb488
2 changed files with 2 additions and 5 deletions

View File

@ -304,8 +304,6 @@ class Renderer(object):
The theme to build a text block for.
"""
log.debug(u'_build_text_rectangle')
main_rect = None
footer_rect = None
main_rect = self.get_main_rectangle(theme)
footer_rect = self.get_main_rectangle(theme)
self._set_text_rectangle(main_rect, footer_rect)

View File

@ -241,13 +241,12 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard):
def _generate_layout(self):
width = self.thememanager.mainwindow.renderer.width
height = self.thememanager.mainwindow.renderer.height
footer_start = int(height * 0.90)
pixmap = QtGui.QPixmap(width, height)
pixmap.fill(QtCore.Qt.white)
paint = QtGui.QPainter(pixmap)
paint.setPen(QtGui.QPen(QtCore.Qt.blue))
paint.setPen(QtGui.QPen(QtCore.Qt.blue, 2))
paint.drawRect(self.thememanager.mainwindow.renderer.get_main_rectangle(self.theme))
paint.setPen(QtGui.QPen(QtCore.Qt.red))
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)