diff --git a/openlp/core/ui/themeform.py b/openlp/core/ui/themeform.py index 950a46d7b..506b7450d 100644 --- a/openlp/core/ui/themeform.py +++ b/openlp/core/ui/themeform.py @@ -186,12 +186,12 @@ class ThemeForm(QtWidgets.QWizard, Ui_ThemeWizard, RegistryProperties): pixmap.fill(QtCore.Qt.white) paint = QtGui.QPainter(pixmap) paint.setPen(QtGui.QPen(QtCore.Qt.blue, 2)) - main_rect = QtCore.QRect(self.theme.font_main_x, self.theme.font_main_y, - self.theme.font_main_width - 1, self.theme.font_main_height - 1) + main_rect = QtCore.QRect(int(self.theme.font_main_x), int(self.theme.font_main_y), + int(self.theme.font_main_width - 1), int(self.theme.font_main_height - 1)) paint.drawRect(main_rect) paint.setPen(QtGui.QPen(QtCore.Qt.red, 2)) - footer_rect = QtCore.QRect(self.theme.font_footer_x, self.theme.font_footer_y, - self.theme.font_footer_width - 1, self.theme.font_footer_height - 1) + footer_rect = QtCore.QRect(int(self.theme.font_footer_x), int(self.theme.font_footer_y), + int(self.theme.font_footer_width - 1), int(self.theme.font_footer_height - 1)) paint.drawRect(footer_rect) paint.end() self.theme_layout_form.exec(pixmap) @@ -372,8 +372,12 @@ class ThemeForm(QtWidgets.QWizard, Ui_ThemeWizard, RegistryProperties): self.theme.font_main_color = self.main_area_page.font_color self.theme.font_main_size = self.main_area_page.font_size self.theme.font_main_line_adjustment = self.main_area_page.line_spacing + self.theme.font_main_outline = self.main_area_page.is_outline_enabled + self.theme.font_main_outline_color = self.main_area_page.outline_color self.theme.font_main_outline_size = self.main_area_page.outline_size + self.theme.font_main_shadow = self.main_area_page.is_shadow_enabled self.theme.font_main_shadow_size = self.main_area_page.shadow_size + self.main_area_page.shadow_color = self.theme.font_main_shadow_color self.theme.font_main_bold = self.main_area_page.is_bold self.theme.font_main_italics = self.main_area_page.is_italic # footer page diff --git a/openlp/core/ui/themelayoutform.py b/openlp/core/ui/themelayoutform.py index bae39191f..a94305843 100644 --- a/openlp/core/ui/themelayoutform.py +++ b/openlp/core/ui/themelayoutform.py @@ -45,5 +45,5 @@ class ThemeLayoutForm(QtWidgets.QDialog, Ui_ThemeLayoutDialog): pixmap.setDevicePixelRatio(self.theme_display_label.devicePixelRatio()) self.theme_display_label.setPixmap(pixmap) display_aspect_ratio = float(image.width()) / image.height() - self.theme_display_label.setFixedSize(400, 400 / display_aspect_ratio) + self.theme_display_label.setFixedSize(400, int(400 / display_aspect_ratio)) return QtWidgets.QDialog.exec(self) diff --git a/openlp/plugins/planningcenter/lib/planningcentertab.py b/openlp/plugins/planningcenter/lib/planningcentertab.py index 0efb3cab4..c023238db 100644 --- a/openlp/plugins/planningcenter/lib/planningcentertab.py +++ b/openlp/plugins/planningcenter/lib/planningcentertab.py @@ -80,8 +80,8 @@ class PlanningCenterTab(SettingsTab): ) self.instructions_label.setText( translate('PlanningCenterPlugin.PlanningCenterTab', - """Enter your Planning Center Online Personal Access Token details in the text boxes \ -below. Personal Access Tokens are created by doing the following: + """Enter your Planning Center Online Personal Access Token details in the text \ +boxes below. Personal Access Tokens are created by doing the following: