forked from openlp/openlp
Head
This commit is contained in:
commit
81ebf05b8f
@ -241,7 +241,7 @@ class Renderer(object):
|
|||||||
``screen``
|
``screen``
|
||||||
The QSize of the screen.
|
The QSize of the screen.
|
||||||
"""
|
"""
|
||||||
log.debug(u'calculate default %s', screen)
|
log.debug(u'_calculate default %s', screen)
|
||||||
self.width = screen.width()
|
self.width = screen.width()
|
||||||
self.height = screen.height()
|
self.height = screen.height()
|
||||||
self.screen_ratio = float(self.height) / float(self.width)
|
self.screen_ratio = float(self.height) / float(self.width)
|
||||||
@ -286,7 +286,7 @@ class Renderer(object):
|
|||||||
``rect_footer``
|
``rect_footer``
|
||||||
The footer text block.
|
The footer text block.
|
||||||
"""
|
"""
|
||||||
log.debug(u'set_text_rectangle %s , %s' % (rect_main, rect_footer))
|
log.debug(u'_set_text_rectangle %s , %s' % (rect_main, rect_footer))
|
||||||
self._rect = rect_main
|
self._rect = rect_main
|
||||||
self._rect_footer = rect_footer
|
self._rect_footer = rect_footer
|
||||||
self.page_width = self._rect.width()
|
self.page_width = self._rect.width()
|
||||||
@ -339,7 +339,7 @@ class Renderer(object):
|
|||||||
# Text too long so go to next page.
|
# Text too long so go to next page.
|
||||||
if self.web_frame.contentsSize().height() > self.page_height:
|
if self.web_frame.contentsSize().height() > self.page_height:
|
||||||
if force_page and line_count > 0:
|
if force_page and line_count > 0:
|
||||||
Receiver.send_message(u'theme_line_count', line_count)
|
Receiver.send_message(u'theme_line_count', line_count - 1)
|
||||||
line_count = -1
|
line_count = -1
|
||||||
while html_text.endswith(u'<br>'):
|
while html_text.endswith(u'<br>'):
|
||||||
html_text = html_text[:-4]
|
html_text = html_text[:-4]
|
||||||
|
@ -202,7 +202,7 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard):
|
|||||||
Updates the lines on a page on the wizard
|
Updates the lines on a page on the wizard
|
||||||
"""
|
"""
|
||||||
self.mainLineCountLabel.setText(unicode(translate('OpenLP.ThemeForm',
|
self.mainLineCountLabel.setText(unicode(translate('OpenLP.ThemeForm',
|
||||||
'(%d lines per slide)')) % int(lines))
|
'(approximately %d lines per slide)')) % int(lines))
|
||||||
|
|
||||||
def resizeEvent(self, event=None):
|
def resizeEvent(self, event=None):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user