~jelmer/qbrz/relative

« back to all changes in this revision

Viewing changes to lib/ui_branch.py

  • Committer: RJL situp
  • Date: 2021-01-06 11:42:36 UTC
  • Revision ID: it@file-away.co.uk-20210106114236-xd8fs0svua93wdiy
Corrected lazy import in commands.py (Qt4 -> 5). Built UIs for Qt5

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
# Form implementation generated from reading ui file 'ui/branch.ui'
4
4
#
5
 
# Created by: PyQt4 UI code generator 4.12.3
 
5
# Created by: PyQt5 UI code generator 5.12.3
6
6
#
7
7
# WARNING! All changes made in this file will be lost!
8
8
 
 
9
 
9
10
from PyQt5 import QtCore, QtGui, QtWidgets
10
 
 
11
 
try:
12
 
    _encoding = QtWidgets.QApplication.UnicodeUTF8
13
 
    def _translate(context, text, disambig):
14
 
        return QtCore.QCoreApplication.translate(context, text, disambig, _encoding)
15
 
except AttributeError:
16
 
    def _translate(context, text, disambig):
17
 
        return QtCore.QCoreApplication.translate(context, text, disambig)
 
11
from breezy.plugins.qbrz.lib.i18n import gettext
 
12
 
 
13
 
18
14
 
19
15
class Ui_BranchForm(object):
20
16
    def setupUi(self, BranchForm):
92
88
        self.revision_label.setBuddy(self.revision)
93
89
 
94
90
        self.retranslateUi(BranchForm)
95
 
        BranchForm.disableUi[bool].connect(self.groupBox.setDisabled)
 
91
        BranchForm.disableUi['bool'].connect(self.groupBox.setDisabled)
96
92
        QtCore.QMetaObject.connectSlotsByName(BranchForm)
97
93
 
98
94
    def retranslateUi(self, BranchForm):
99
 
        BranchForm.setWindowTitle(_translate("BranchForm", "Branch", None))
100
 
        self.groupBox.setTitle(_translate("BranchForm", "Locations", None))
101
 
        self.from_label.setText(_translate("BranchForm", "&From:", None))
102
 
        self.from_picker.setText(_translate("BranchForm", "Browse...", None))
103
 
        self.to_label.setText(_translate("BranchForm", "&To:", None))
104
 
        self.to_picker.setText(_translate("BranchForm", "Browse...", None))
105
 
        self.groupBox_2.setTitle(_translate("BranchForm", "Options", None))
106
 
        self.bind.setText(_translate("BranchForm", "Bind new branch to parent location", None))
107
 
        self.revision_label.setText(_translate("BranchForm", "&Revision:", None))
108
 
 
 
95
        _translate = QtCore.QCoreApplication.translate
 
96
        BranchForm.setWindowTitle(_translate("BranchForm", "Branch"))
 
97
        self.groupBox.setTitle(_translate("BranchForm", "Locations"))
 
98
        self.from_label.setText(_translate("BranchForm", "&From:"))
 
99
        self.from_picker.setText(_translate("BranchForm", "Browse..."))
 
100
        self.to_label.setText(_translate("BranchForm", "&To:"))
 
101
        self.to_picker.setText(_translate("BranchForm", "Browse..."))
 
102
        self.groupBox_2.setTitle(_translate("BranchForm", "Options"))
 
103
        self.bind.setText(_translate("BranchForm", "Bind new branch to parent location"))
 
104
        self.revision_label.setText(_translate("BranchForm", "&Revision:"))