mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
fix
This commit is contained in:
parent
f30fbb7180
commit
7205bc8f87
@ -107,7 +107,7 @@ class LCheckBox(QCheckBox, LBase):
|
||||
super().setText(_TR(self._text))
|
||||
|
||||
|
||||
class LGroupBox(QGroupBox, LBase):
|
||||
class LGroupBox(QGroupBox):
|
||||
|
||||
def __init__(self, *argc, **kwarg):
|
||||
super().__init__(*argc, **kwarg)
|
||||
@ -122,7 +122,10 @@ class LGroupBox(QGroupBox, LBase):
|
||||
super().setTitle(_TR(self._text))
|
||||
|
||||
def changeEvent(self, e: QEvent):
|
||||
super(LGroupBox, self).changeEvent(e)
|
||||
if e.type() == QEvent.Type.LanguageChange:
|
||||
self.updatelangtext()
|
||||
super().changeEvent(e)
|
||||
|
||||
|
||||
class LListWidgetItem(QListWidgetItem):
|
||||
def __init__(self, text):
|
||||
|
@ -58,9 +58,6 @@ class LFocusCombo(FocusCombo, LBase):
|
||||
for i in range(self.count()):
|
||||
self.setItemText(i, _TR(self.__items[i]))
|
||||
|
||||
def changeEvent(self, e: QEvent):
|
||||
super(LFocusCombo, self).changeEvent(e)
|
||||
|
||||
|
||||
class FocusFontCombo(QFontComboBox, FocusCombo):
|
||||
pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user