~raoul-snyman/openlp/fix-macos-pdf-test

« back to all changes in this revision

Viewing changes to openlp/core/ui/servicenoteform.py

  • Committer: Raoul Snyman
  • Date: 2019-02-14 07:04:30 UTC
  • mfrom: (2766.3.118 webengine-migrate)
  • Revision ID: raoul@snyman.info-20190214070430-nxe1vaeaapq3ult5
Migration from WebKit to Webengine. Also introduced reveal.js for slide rendering, new screen setup dialogs and many other changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        """
42
42
        super(ServiceNoteForm, self).__init__(Registry().get('main_window'), QtCore.Qt.WindowSystemMenuHint |
43
43
                                              QtCore.Qt.WindowTitleHint | QtCore.Qt.WindowCloseButtonHint)
44
 
        self.setupUi()
45
 
        self.retranslateUi()
 
44
        self.setup_ui()
 
45
        self.retranslate_ui()
46
46
 
47
47
    def exec(self):
48
48
        """
51
51
        self.text_edit.setFocus()
52
52
        return QtWidgets.QDialog.exec(self)
53
53
 
54
 
    def setupUi(self):
 
54
    def setup_ui(self):
55
55
        """
56
56
        Set up the UI of the dialog
57
57
        """
66
66
        self.button_box = create_button_box(self, 'button_box', ['cancel', 'save'])
67
67
        self.dialog_layout.addWidget(self.button_box)
68
68
 
69
 
    def retranslateUi(self):
 
69
    def retranslate_ui(self):
70
70
        """
71
71
        Translate the UI on the fly
72
72
        """