This commit is contained in:
恍兮惚兮 2024-07-22 00:20:07 +08:00
parent f30fbb7180
commit 7205bc8f87
2 changed files with 5 additions and 5 deletions

View File

@ -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):

View File

@ -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