~tomasgroth/openlp/portable-path

« back to all changes in this revision

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

  • Committer: Tomas Groth
  • Date: 2019-04-30 19:02:42 UTC
  • mfrom: (2829.2.32 openlp)
  • Revision ID: tomasgroth@yahoo.dk-20190430190242-6zwjk8724tyux70m
trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
###############################################################################
5
5
# OpenLP - Open Source Lyrics Projection                                      #
6
6
# --------------------------------------------------------------------------- #
7
 
# Copyright (c) 2008-2018 OpenLP Developers                                   #
 
7
# Copyright (c) 2008-2019 OpenLP Developers                                   #
8
8
# --------------------------------------------------------------------------- #
9
9
# This program is free software; you can redistribute it and/or modify it     #
10
10
# under the terms of the GNU General Public License as published by the Free  #
33
33
    """
34
34
    The UI widgets for the rename dialog
35
35
    """
36
 
    def setupUi(self, file_rename_dialog):
 
36
    def setup_ui(self, file_rename_dialog):
37
37
        """
38
38
        Set up the UI
39
39
        """
51
51
        self.dialog_layout.addWidget(self.file_name_edit, 0, 1)
52
52
        self.button_box = create_button_box(file_rename_dialog, 'button_box', ['cancel', 'ok'])
53
53
        self.dialog_layout.addWidget(self.button_box, 1, 0, 1, 2)
54
 
        self.retranslateUi(file_rename_dialog)
 
54
        self.retranslate_ui(file_rename_dialog)
55
55
        self.setMaximumHeight(self.sizeHint().height())
56
56
 
57
 
    def retranslateUi(self, file_rename_dialog):
 
57
    def retranslate_ui(self, file_rename_dialog):
58
58
        """
59
59
        Translate the UI on the fly.
60
60
        """