From 49dbda7476683fc99bec60cebb5aaba2efe5686d Mon Sep 17 00:00:00 2001 From: Edwin Lunando Date: Sun, 25 Mar 2012 19:37:22 +0700 Subject: [PATCH] themeform.py line 426 at function setPositionPageValues(self): added main and footer page width and height based on the screen size --- openlp/core/ui/themeform.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/openlp/core/ui/themeform.py b/openlp/core/ui/themeform.py index face5938f..63df0ab8d 100644 --- a/openlp/core/ui/themeform.py +++ b/openlp/core/ui/themeform.py @@ -427,25 +427,28 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard): """ Handle the display and state of the Position page. """ + # Get the QRect of a screen + screen = QtGui.QDesktopWidget().availableGeometry() # Main Area self.mainPositionCheckBox.setChecked(not self.theme.font_main_override) self.setField(u'mainPositionX', QtCore.QVariant(self.theme.font_main_x)) self.setField(u'mainPositionY', QtCore.QVariant(self.theme.font_main_y)) self.setField(u'mainPositionHeight', - QtCore.QVariant(self.theme.font_main_height)) + QtCore.QVariant(screen.height() - 110)) self.setField(u'mainPositionWidth', - QtCore.QVariant(self.theme.font_main_width)) + QtCore.QVariant(screen.width() - 20)) # Footer self.footerPositionCheckBox.setChecked( not self.theme.font_footer_override) self.setField(u'footerPositionX', QtCore.QVariant(self.theme.font_footer_x)) self.setField(u'footerPositionY', - QtCore.QVariant(self.theme.font_footer_y)) + QtCore.QVariant(screen.height() - 100)) self.setField(u'footerPositionHeight', - QtCore.QVariant(self.theme.font_footer_height)) + QtCore.QVariant(120)) + self.setField(u'footerPositionWidth', - QtCore.QVariant(self.theme.font_footer_width)) + QtCore.QVariant(screen.width() - 20)) def setAlignmentPageValues(self): """