From bf9420a781ef65f972b8b1a88654f75556a36a50 Mon Sep 17 00:00:00 2001 From: Simon Hanna Date: Wed, 30 Dec 2015 16:03:35 +0100 Subject: [PATCH] Update forms to remove the help button in the statusbar Fixes: https://launchpad.net/bugs/1490184 --- openlp/core/ui/aboutform.py | 5 +++-- openlp/core/ui/exceptionform.py | 3 ++- openlp/core/ui/filerenameform.py | 5 +++-- openlp/core/ui/firsttimelanguageform.py | 5 +++-- openlp/core/ui/formattingtagform.py | 5 +++-- openlp/core/ui/pluginform.py | 5 +++-- openlp/core/ui/printserviceform.py | 3 ++- openlp/core/ui/projector/editform.py | 3 ++- openlp/core/ui/projector/sourceselectform.py | 6 ++++-- openlp/core/ui/serviceitemeditform.py | 5 +++-- openlp/core/ui/servicenoteform.py | 5 +++-- openlp/core/ui/settingsform.py | 3 ++- openlp/core/ui/shortcutlistform.py | 3 ++- openlp/core/ui/starttimeform.py | 5 +++-- openlp/plugins/alerts/forms/alertform.py | 3 ++- openlp/plugins/bibles/forms/booknameform.py | 3 ++- openlp/plugins/bibles/forms/editbibleform.py | 5 +++-- openlp/plugins/bibles/forms/languageform.py | 4 +++- openlp/plugins/custom/forms/editcustomform.py | 5 +++-- openlp/plugins/custom/forms/editcustomslideform.py | 5 +++-- openlp/plugins/images/forms/addgroupform.py | 5 +++-- openlp/plugins/images/forms/choosegroupform.py | 5 +++-- openlp/plugins/media/forms/mediaclipselectorform.py | 3 ++- openlp/plugins/songs/forms/authorsform.py | 5 +++-- openlp/plugins/songs/forms/editsongform.py | 3 ++- openlp/plugins/songs/forms/editverseform.py | 5 +++-- openlp/plugins/songs/forms/mediafilesform.py | 3 ++- openlp/plugins/songs/forms/songbookform.py | 5 +++-- openlp/plugins/songs/forms/songmaintenanceform.py | 3 ++- openlp/plugins/songs/forms/songselectform.py | 3 ++- openlp/plugins/songs/forms/topicsform.py | 5 +++-- openlp/plugins/songusage/forms/songusagedeleteform.py | 5 +++-- openlp/plugins/songusage/forms/songusagedetailform.py | 5 +++-- 33 files changed, 88 insertions(+), 53 deletions(-) diff --git a/openlp/core/ui/aboutform.py b/openlp/core/ui/aboutform.py index 67e0a971f..018ef84bc 100644 --- a/openlp/core/ui/aboutform.py +++ b/openlp/core/ui/aboutform.py @@ -24,7 +24,7 @@ The About dialog. """ import webbrowser -from PyQt5 import QtWidgets +from PyQt5 import QtCore, QtWidgets from openlp.core.lib import translate from openlp.core.utils import get_application_version @@ -40,7 +40,8 @@ class AboutForm(QtWidgets.QDialog, UiAboutDialog): """ Do some initialisation stuff """ - super(AboutForm, self).__init__(parent) + super(AboutForm, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self._setup() def _setup(self): diff --git a/openlp/core/ui/exceptionform.py b/openlp/core/ui/exceptionform.py index cc6362290..0624f492d 100644 --- a/openlp/core/ui/exceptionform.py +++ b/openlp/core/ui/exceptionform.py @@ -89,7 +89,8 @@ class ExceptionForm(QtWidgets.QDialog, Ui_ExceptionDialog, RegistryProperties): """ Constructor. """ - super(ExceptionForm, self).__init__() + super(ExceptionForm, self).__init__(None, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.setupUi(self) self.settings_section = 'crashreport' self.report_text = '**OpenLP Bug Report**\n' \ diff --git a/openlp/core/ui/filerenameform.py b/openlp/core/ui/filerenameform.py index 7d84a97d2..9da573f04 100644 --- a/openlp/core/ui/filerenameform.py +++ b/openlp/core/ui/filerenameform.py @@ -23,7 +23,7 @@ The file rename dialog. """ -from PyQt5 import QtWidgets +from PyQt5 import QtCore, QtWidgets from .filerenamedialog import Ui_FileRenameDialog @@ -38,7 +38,8 @@ class FileRenameForm(QtWidgets.QDialog, Ui_FileRenameDialog, RegistryProperties) """ Constructor """ - super(FileRenameForm, self).__init__(Registry().get('main_window')) + super(FileRenameForm, self).__init__(Registry().get('main_window'), + QtCore.Qt.WindowSystemMenuHint | QtCore.Qt.WindowTitleHint) self._setup() def _setup(self): diff --git a/openlp/core/ui/firsttimelanguageform.py b/openlp/core/ui/firsttimelanguageform.py index b1bd7e7f4..329cae398 100644 --- a/openlp/core/ui/firsttimelanguageform.py +++ b/openlp/core/ui/firsttimelanguageform.py @@ -22,7 +22,7 @@ """ The language selection dialog. """ -from PyQt5 import QtWidgets +from PyQt5 import QtCore, QtWidgets from openlp.core.lib.ui import create_action from openlp.core.utils import LanguageManager @@ -37,7 +37,8 @@ class FirstTimeLanguageForm(QtWidgets.QDialog, Ui_FirstTimeLanguageDialog): """ Constructor """ - super(FirstTimeLanguageForm, self).__init__(parent) + super(FirstTimeLanguageForm, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.setupUi(self) self.qm_list = LanguageManager.get_qm_list() self.language_combo_box.addItem('Autodetect') diff --git a/openlp/core/ui/formattingtagform.py b/openlp/core/ui/formattingtagform.py index bd2a32978..7e48b2613 100644 --- a/openlp/core/ui/formattingtagform.py +++ b/openlp/core/ui/formattingtagform.py @@ -25,7 +25,7 @@ Custom tags can be defined and saved. The Custom Tag arrays are saved in a json Base Tags cannot be changed. """ -from PyQt5 import QtWidgets +from PyQt5 import QtCore, QtWidgets from openlp.core.common import translate from openlp.core.lib import FormattingTags @@ -51,7 +51,8 @@ class FormattingTagForm(QtWidgets.QDialog, Ui_FormattingTagDialog, FormattingTag """ Constructor """ - super(FormattingTagForm, self).__init__(parent) + super(FormattingTagForm, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.setupUi(self) self._setup() diff --git a/openlp/core/ui/pluginform.py b/openlp/core/ui/pluginform.py index 4eacebdab..1a8bfcc35 100644 --- a/openlp/core/ui/pluginform.py +++ b/openlp/core/ui/pluginform.py @@ -24,7 +24,7 @@ The actual plugin view form """ import logging -from PyQt5 import QtWidgets +from PyQt5 import QtCore, QtWidgets from openlp.core.common import RegistryProperties, translate from openlp.core.lib import PluginStatus @@ -41,7 +41,8 @@ class PluginForm(QtWidgets.QDialog, Ui_PluginViewDialog, RegistryProperties): """ Constructor """ - super(PluginForm, self).__init__(parent) + super(PluginForm, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.active_plugin = None self.programatic_change = False self.setupUi(self) diff --git a/openlp/core/ui/printserviceform.py b/openlp/core/ui/printserviceform.py index cfe0d883a..b62aac9a5 100644 --- a/openlp/core/ui/printserviceform.py +++ b/openlp/core/ui/printserviceform.py @@ -112,7 +112,8 @@ class PrintServiceForm(QtWidgets.QDialog, Ui_PrintServiceDialog, RegistryPropert """ Constructor """ - super(PrintServiceForm, self).__init__(Registry().get('main_window')) + super(PrintServiceForm, self).__init__(Registry().get('main_window'), + QtCore.Qt.WindowSystemMenuHint | QtCore.Qt.WindowTitleHint) self.printer = QtPrintSupport.QPrinter() self.print_dialog = QtPrintSupport.QPrintDialog(self.printer, self) self.document = QtGui.QTextDocument() diff --git a/openlp/core/ui/projector/editform.py b/openlp/core/ui/projector/editform.py index df0c57b4c..b4447b605 100644 --- a/openlp/core/ui/projector/editform.py +++ b/openlp/core/ui/projector/editform.py @@ -144,7 +144,8 @@ class ProjectorEditForm(QDialog, Ui_ProjectorEditForm): editProjector = pyqtSignal(object) def __init__(self, parent=None, projectordb=None): - super(ProjectorEditForm, self).__init__(parent=parent) + super(ProjectorEditForm, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.projectordb = projectordb self.setupUi(self) self.button_box.accepted.connect(self.accept_me) diff --git a/openlp/core/ui/projector/sourceselectform.py b/openlp/core/ui/projector/sourceselectform.py index de0cbd2c8..c135d3422 100644 --- a/openlp/core/ui/projector/sourceselectform.py +++ b/openlp/core/ui/projector/sourceselectform.py @@ -236,7 +236,8 @@ class SourceSelectTabs(QDialog): :param projectordb: ProjectorDB session to use """ log.debug('Initializing SourceSelectTabs()') - super(SourceSelectTabs, self).__init__(parent) + super(SourceSelectTabs, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.setMinimumWidth(350) self.projectordb = projectordb self.edit = edit @@ -385,7 +386,8 @@ class SourceSelectSingle(QDialog): """ log.debug('Initializing SourceSelectSingle()') self.projectordb = projectordb - super(SourceSelectSingle, self).__init__(parent) + super(SourceSelectSingle, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.edit = edit if self.edit: title = translate('OpenLP.SourceSelectForm', 'Edit Projector Source Text') diff --git a/openlp/core/ui/serviceitemeditform.py b/openlp/core/ui/serviceitemeditform.py index 3e8b140c1..cc705f1bb 100644 --- a/openlp/core/ui/serviceitemeditform.py +++ b/openlp/core/ui/serviceitemeditform.py @@ -22,7 +22,7 @@ """ The service item edit dialog """ -from PyQt5 import QtWidgets +from PyQt5 import QtCore, QtWidgets from openlp.core.common import Registry, RegistryProperties @@ -37,7 +37,8 @@ class ServiceItemEditForm(QtWidgets.QDialog, Ui_ServiceItemEditDialog, RegistryP """ Constructor """ - super(ServiceItemEditForm, self).__init__(Registry().get('main_window')) + super(ServiceItemEditForm, self).__init__(Registry().get('main_window'), + QtCore.Qt.WindowSystemMenuHint | QtCore.Qt.WindowTitleHint) self.setupUi(self) self.item_list = [] self.list_widget.currentRowChanged.connect(self.on_current_row_changed) diff --git a/openlp/core/ui/servicenoteform.py b/openlp/core/ui/servicenoteform.py index 54a09ee25..1c9deb452 100644 --- a/openlp/core/ui/servicenoteform.py +++ b/openlp/core/ui/servicenoteform.py @@ -22,7 +22,7 @@ """ The :mod:`~openlp.core.ui.servicenoteform` module contains the `ServiceNoteForm` class. """ -from PyQt5 import QtWidgets +from PyQt5 import QtCore, QtWidgets from openlp.core.common import Registry, RegistryProperties, translate from openlp.core.lib import SpellTextEdit @@ -37,7 +37,8 @@ class ServiceNoteForm(QtWidgets.QDialog, RegistryProperties): """ Constructor """ - super(ServiceNoteForm, self).__init__(Registry().get('main_window')) + super(ServiceNoteForm, self).__init__(Registry().get('main_window'), + QtCore.Qt.WindowSystemMenuHint | QtCore.Qt.WindowTitleHint) self.setupUi() self.retranslateUi() diff --git a/openlp/core/ui/settingsform.py b/openlp/core/ui/settingsform.py index 628cd68a8..fc1ec2470 100644 --- a/openlp/core/ui/settingsform.py +++ b/openlp/core/ui/settingsform.py @@ -46,7 +46,8 @@ class SettingsForm(QtWidgets.QDialog, Ui_SettingsDialog, RegistryProperties): """ Registry().register('settings_form', self) Registry().register_function('bootstrap_post_set_up', self.bootstrap_post_set_up) - super(SettingsForm, self).__init__(parent) + super(SettingsForm, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.processes = [] self.setupUi(self) self.setting_list_widget.currentRowChanged.connect(self.list_item_changed) diff --git a/openlp/core/ui/shortcutlistform.py b/openlp/core/ui/shortcutlistform.py index 5af14cb80..40d72bb9a 100644 --- a/openlp/core/ui/shortcutlistform.py +++ b/openlp/core/ui/shortcutlistform.py @@ -44,7 +44,8 @@ class ShortcutListForm(QtWidgets.QDialog, Ui_ShortcutListDialog, RegistryPropert """ Constructor """ - super(ShortcutListForm, self).__init__(parent) + super(ShortcutListForm, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.setupUi(self) self.changed_actions = {} self.action_list = ActionList.get_instance() diff --git a/openlp/core/ui/starttimeform.py b/openlp/core/ui/starttimeform.py index c37c4dacf..7e30e7a6a 100644 --- a/openlp/core/ui/starttimeform.py +++ b/openlp/core/ui/starttimeform.py @@ -22,7 +22,7 @@ """ The actual start time form. """ -from PyQt5 import QtWidgets +from PyQt5 import QtCore, QtWidgets from .starttimedialog import Ui_StartTimeDialog @@ -38,7 +38,8 @@ class StartTimeForm(QtWidgets.QDialog, Ui_StartTimeDialog, RegistryProperties): """ Constructor """ - super(StartTimeForm, self).__init__(Registry().get('main_window')) + super(StartTimeForm, self).__init__(Registry().get('main_window'), + QtCore.Qt.WindowSystemMenuHint | QtCore.Qt.WindowTitleHint) self.setupUi(self) def exec(self): diff --git a/openlp/plugins/alerts/forms/alertform.py b/openlp/plugins/alerts/forms/alertform.py index 8656ef193..09de831fa 100644 --- a/openlp/plugins/alerts/forms/alertform.py +++ b/openlp/plugins/alerts/forms/alertform.py @@ -36,10 +36,11 @@ class AlertForm(QtWidgets.QDialog, Ui_AlertDialog): """ Initialise the alert form """ + super(AlertForm, self).__init__(Registry().get('main_window'), + QtCore.Qt.WindowSystemMenuHint | QtCore.Qt.WindowTitleHint) self.manager = plugin.manager self.plugin = plugin self.item_id = None - super(AlertForm, self).__init__(Registry().get('main_window')) self.setupUi(self) self.display_button.clicked.connect(self.on_display_clicked) self.display_close_button.clicked.connect(self.on_display_close_clicked) diff --git a/openlp/plugins/bibles/forms/booknameform.py b/openlp/plugins/bibles/forms/booknameform.py index 2fe79510b..fc27711b3 100644 --- a/openlp/plugins/bibles/forms/booknameform.py +++ b/openlp/plugins/bibles/forms/booknameform.py @@ -49,7 +49,8 @@ class BookNameForm(QDialog, Ui_BookNameDialog): """ Constructor """ - super(BookNameForm, self).__init__(parent) + super(BookNameForm, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.setupUi(self) self.custom_signals() self.book_names = BibleStrings().BookNames diff --git a/openlp/plugins/bibles/forms/editbibleform.py b/openlp/plugins/bibles/forms/editbibleform.py index 64399dc2d..9d8f7a228 100644 --- a/openlp/plugins/bibles/forms/editbibleform.py +++ b/openlp/plugins/bibles/forms/editbibleform.py @@ -24,7 +24,7 @@ import logging import os import re -from PyQt5 import QtWidgets +from PyQt5 import QtCore, QtWidgets from openlp.core.common import RegistryProperties, UiStrings, translate from openlp.core.lib.ui import critical_error_message_box @@ -45,7 +45,8 @@ class EditBibleForm(QtWidgets.QDialog, Ui_EditBibleDialog, RegistryProperties): """ Constructor """ - super(EditBibleForm, self).__init__(parent) + super(EditBibleForm, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.media_item = media_item self.book_names = BibleStrings().BookNames self.setupUi(self) diff --git a/openlp/plugins/bibles/forms/languageform.py b/openlp/plugins/bibles/forms/languageform.py index f0e270a4a..ef255b5d5 100644 --- a/openlp/plugins/bibles/forms/languageform.py +++ b/openlp/plugins/bibles/forms/languageform.py @@ -26,6 +26,7 @@ Module implementing LanguageForm. import logging from PyQt5.QtWidgets import QDialog +from PyQt5 import QtCore from openlp.core.common import translate from openlp.core.lib.ui import critical_error_message_box @@ -46,7 +47,8 @@ class LanguageForm(QDialog, Ui_LanguageDialog): """ Constructor """ - super(LanguageForm, self).__init__(parent) + super(LanguageForm, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.setupUi(self) def exec(self, bible_name): diff --git a/openlp/plugins/custom/forms/editcustomform.py b/openlp/plugins/custom/forms/editcustomform.py index 42dad7410..00997a3d9 100644 --- a/openlp/plugins/custom/forms/editcustomform.py +++ b/openlp/plugins/custom/forms/editcustomform.py @@ -22,7 +22,7 @@ import logging -from PyQt5 import QtWidgets +from PyQt5 import QtCore, QtWidgets from openlp.core.common import Registry, translate from openlp.core.lib.ui import critical_error_message_box, find_and_set_in_combo_box @@ -44,7 +44,8 @@ class EditCustomForm(QtWidgets.QDialog, Ui_CustomEditDialog): """ Constructor """ - super(EditCustomForm, self).__init__(parent) + super(EditCustomForm, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.manager = manager self.media_item = media_item self.setupUi(self) diff --git a/openlp/plugins/custom/forms/editcustomslideform.py b/openlp/plugins/custom/forms/editcustomslideform.py index fb4ba3535..e7d812c4a 100644 --- a/openlp/plugins/custom/forms/editcustomslideform.py +++ b/openlp/plugins/custom/forms/editcustomslideform.py @@ -22,7 +22,7 @@ import logging -from PyQt5 import QtWidgets +from PyQt5 import QtCore, QtWidgets from .editcustomslidedialog import Ui_CustomSlideEditDialog @@ -39,7 +39,8 @@ class EditCustomSlideForm(QtWidgets.QDialog, Ui_CustomSlideEditDialog): """ Constructor """ - super(EditCustomSlideForm, self).__init__(parent) + super(EditCustomSlideForm, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.setupUi(self) # Connecting signals and slots self.insert_button.clicked.connect(self.on_insert_button_clicked) diff --git a/openlp/plugins/images/forms/addgroupform.py b/openlp/plugins/images/forms/addgroupform.py index 6dc5c51d3..9db89ada9 100644 --- a/openlp/plugins/images/forms/addgroupform.py +++ b/openlp/plugins/images/forms/addgroupform.py @@ -20,7 +20,7 @@ # Temple Place, Suite 330, Boston, MA 02111-1307 USA # ############################################################################### -from PyQt5 import QtWidgets +from PyQt5 import QtCore, QtWidgets from openlp.core.common import translate from openlp.core.lib.ui import critical_error_message_box @@ -35,7 +35,8 @@ class AddGroupForm(QtWidgets.QDialog, Ui_AddGroupDialog): """ Constructor """ - super(AddGroupForm, self).__init__(parent) + super(AddGroupForm, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.setupUi(self) def exec(self, clear=True, show_top_level_group=False, selected_group=None): diff --git a/openlp/plugins/images/forms/choosegroupform.py b/openlp/plugins/images/forms/choosegroupform.py index 6ab560bf4..864d84ba6 100644 --- a/openlp/plugins/images/forms/choosegroupform.py +++ b/openlp/plugins/images/forms/choosegroupform.py @@ -20,7 +20,7 @@ # Temple Place, Suite 330, Boston, MA 02111-1307 USA # ############################################################################### -from PyQt5 import QtWidgets +from PyQt5 import QtCore, QtWidgets from openlp.plugins.images.forms.choosegroupdialog import Ui_ChooseGroupDialog @@ -33,7 +33,8 @@ class ChooseGroupForm(QtWidgets.QDialog, Ui_ChooseGroupDialog): """ Constructor """ - super(ChooseGroupForm, self).__init__(parent) + super(ChooseGroupForm, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.setupUi(self) def exec(self, selected_group=None): diff --git a/openlp/plugins/media/forms/mediaclipselectorform.py b/openlp/plugins/media/forms/mediaclipselectorform.py index 94e58926d..3cf9c8cc3 100644 --- a/openlp/plugins/media/forms/mediaclipselectorform.py +++ b/openlp/plugins/media/forms/mediaclipselectorform.py @@ -52,7 +52,8 @@ class MediaClipSelectorForm(QtWidgets.QDialog, Ui_MediaClipSelector, RegistryPro """ Constructor """ - super(MediaClipSelectorForm, self).__init__(parent) + super(MediaClipSelectorForm, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.vlc_instance = None self.vlc_media_player = None self.vlc_media = None diff --git a/openlp/plugins/songs/forms/authorsform.py b/openlp/plugins/songs/forms/authorsform.py index 3f0ef62cc..ed28679c9 100644 --- a/openlp/plugins/songs/forms/authorsform.py +++ b/openlp/plugins/songs/forms/authorsform.py @@ -20,7 +20,7 @@ # Temple Place, Suite 330, Boston, MA 02111-1307 USA # ############################################################################### -from PyQt5 import QtWidgets +from PyQt5 import QtCore, QtWidgets from openlp.core.lib import translate from openlp.core.lib.ui import critical_error_message_box @@ -35,7 +35,8 @@ class AuthorsForm(QtWidgets.QDialog, Ui_AuthorsDialog): """ Set up the screen and common data """ - super(AuthorsForm, self).__init__(parent) + super(AuthorsForm, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.setupUi(self) self.auto_display_name = False self.first_name_edit.textEdited.connect(self.on_first_name_edited) diff --git a/openlp/plugins/songs/forms/editsongform.py b/openlp/plugins/songs/forms/editsongform.py index 4158d8210..58ee8e02f 100644 --- a/openlp/plugins/songs/forms/editsongform.py +++ b/openlp/plugins/songs/forms/editsongform.py @@ -55,7 +55,8 @@ class EditSongForm(QtWidgets.QDialog, Ui_EditSongDialog, RegistryProperties): """ Constructor """ - super(EditSongForm, self).__init__(parent) + super(EditSongForm, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.media_item = media_item self.song = None # can this be automated? diff --git a/openlp/plugins/songs/forms/editverseform.py b/openlp/plugins/songs/forms/editverseform.py index 83e667660..31e694ee4 100644 --- a/openlp/plugins/songs/forms/editverseform.py +++ b/openlp/plugins/songs/forms/editverseform.py @@ -23,7 +23,7 @@ import re import logging -from PyQt5 import QtGui, QtWidgets +from PyQt5 import QtCore, QtGui, QtWidgets from openlp.plugins.songs.lib import VerseType from .editversedialog import Ui_EditVerseDialog @@ -41,7 +41,8 @@ class EditVerseForm(QtWidgets.QDialog, Ui_EditVerseDialog): """ Constructor """ - super(EditVerseForm, self).__init__(parent) + super(EditVerseForm, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.setupUi(self) self.has_single_verse = False self.insert_button.clicked.connect(self.on_insert_button_clicked) diff --git a/openlp/plugins/songs/forms/mediafilesform.py b/openlp/plugins/songs/forms/mediafilesform.py index 9ff328f9e..68b245d7b 100644 --- a/openlp/plugins/songs/forms/mediafilesform.py +++ b/openlp/plugins/songs/forms/mediafilesform.py @@ -37,7 +37,8 @@ class MediaFilesForm(QtWidgets.QDialog, Ui_MediaFilesDialog): log.info('%s MediaFilesForm loaded', __name__) def __init__(self, parent): - super(MediaFilesForm, self).__init__() + super(MediaFilesForm, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.setupUi(self) def populate_files(self, files): diff --git a/openlp/plugins/songs/forms/songbookform.py b/openlp/plugins/songs/forms/songbookform.py index 7207a3859..755947f95 100644 --- a/openlp/plugins/songs/forms/songbookform.py +++ b/openlp/plugins/songs/forms/songbookform.py @@ -23,7 +23,7 @@ This module contains the song book form """ -from PyQt5 import QtWidgets +from PyQt5 import QtCore, QtWidgets from openlp.core.lib import translate from openlp.core.lib.ui import critical_error_message_box @@ -38,7 +38,8 @@ class SongBookForm(QtWidgets.QDialog, Ui_SongBookDialog): """ Constructor """ - super(SongBookForm, self).__init__(parent) + super(SongBookForm, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.setupUi(self) def exec(self, clear=True): diff --git a/openlp/plugins/songs/forms/songmaintenanceform.py b/openlp/plugins/songs/forms/songmaintenanceform.py index 1f05ae3a5..cff25237a 100644 --- a/openlp/plugins/songs/forms/songmaintenanceform.py +++ b/openlp/plugins/songs/forms/songmaintenanceform.py @@ -44,7 +44,8 @@ class SongMaintenanceForm(QtWidgets.QDialog, Ui_SongMaintenanceDialog, RegistryP """ Constructor """ - super(SongMaintenanceForm, self).__init__(parent) + super(SongMaintenanceForm, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.setupUi(self) self.manager = manager self.author_form = AuthorsForm(self) diff --git a/openlp/plugins/songs/forms/songselectform.py b/openlp/plugins/songs/forms/songselectform.py index b8d410c43..b69d9061f 100755 --- a/openlp/plugins/songs/forms/songselectform.py +++ b/openlp/plugins/songs/forms/songselectform.py @@ -81,7 +81,8 @@ class SongSelectForm(QtWidgets.QDialog, Ui_SongSelectDialog): """ def __init__(self, parent=None, plugin=None, db_manager=None): - QtWidgets.QDialog.__init__(self, parent) + QtWidgets.QDialog.__init__(self, parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.plugin = plugin self.db_manager = db_manager self.setup_ui(self) diff --git a/openlp/plugins/songs/forms/topicsform.py b/openlp/plugins/songs/forms/topicsform.py index 35fdafdc3..da3ca1da4 100644 --- a/openlp/plugins/songs/forms/topicsform.py +++ b/openlp/plugins/songs/forms/topicsform.py @@ -23,7 +23,7 @@ This module contains the topic edit form. """ -from PyQt5 import QtWidgets +from PyQt5 import QtCore, QtWidgets from openlp.core.lib import translate from openlp.core.lib.ui import critical_error_message_box @@ -38,7 +38,8 @@ class TopicsForm(QtWidgets.QDialog, Ui_TopicsDialog): """ Constructor """ - super(TopicsForm, self).__init__(parent) + super(TopicsForm, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.setupUi(self) def exec(self, clear=True): diff --git a/openlp/plugins/songusage/forms/songusagedeleteform.py b/openlp/plugins/songusage/forms/songusagedeleteform.py index 173f371a8..a7a8df408 100644 --- a/openlp/plugins/songusage/forms/songusagedeleteform.py +++ b/openlp/plugins/songusage/forms/songusagedeleteform.py @@ -20,7 +20,7 @@ # Temple Place, Suite 330, Boston, MA 02111-1307 USA # ############################################################################### -from PyQt5 import QtWidgets +from PyQt5 import QtCore, QtWidgets from openlp.core.common import RegistryProperties, translate from openlp.plugins.songusage.lib.db import SongUsageItem @@ -36,7 +36,8 @@ class SongUsageDeleteForm(QtWidgets.QDialog, Ui_SongUsageDeleteDialog, RegistryP Constructor """ self.manager = manager - super(SongUsageDeleteForm, self).__init__(parent) + super(SongUsageDeleteForm, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.setupUi(self) self.button_box.clicked.connect(self.on_button_box_clicked) diff --git a/openlp/plugins/songusage/forms/songusagedetailform.py b/openlp/plugins/songusage/forms/songusagedetailform.py index 680b258e0..4b20a603b 100644 --- a/openlp/plugins/songusage/forms/songusagedetailform.py +++ b/openlp/plugins/songusage/forms/songusagedetailform.py @@ -23,7 +23,7 @@ import logging import os -from PyQt5 import QtWidgets +from PyQt5 import QtCore, QtWidgets from sqlalchemy.sql import and_ from openlp.core.common import RegistryProperties, Settings, check_directory_exists, translate @@ -44,7 +44,8 @@ class SongUsageDetailForm(QtWidgets.QDialog, Ui_SongUsageDetailDialog, RegistryP """ Initialise the form """ - super(SongUsageDetailForm, self).__init__(parent) + super(SongUsageDetailForm, self).__init__(parent, QtCore.Qt.WindowSystemMenuHint + | QtCore.Qt.WindowTitleHint) self.plugin = plugin self.setupUi(self)