forked from openlp/openlp
more visible lines
This commit is contained in:
parent
ff32139b2e
commit
9142ffb488
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user