Fix default title value in Furious/Qt/GuiEditorXXX.py

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2026-04-05 00:06:02 +08:00
parent dd04ddf6cb
commit e5aa92e2be
+12 -3
View File
@@ -51,7 +51,10 @@ class GuiEditorItemTextInput(GuiEditorItemWidgetContainer):
super().__init__(*args, **kwargs)
self._title = AppQLabel(_(title), translatable=translatable, parent=parent)
if translatable:
title = _(title)
self._title = AppQLabel(title, translatable=translatable, parent=parent)
self._input = QLineEdit(parent=parent)
def text(self) -> str:
@@ -72,7 +75,10 @@ class GuiEditorItemTextSpinBox(GuiEditorItemWidgetContainer):
super().__init__(*args, **kwargs)
self._title = AppQLabel(_(title), translatable=translatable, parent=parent)
if translatable:
title = _(title)
self._title = AppQLabel(title, translatable=translatable, parent=parent)
self._input = QSpinBox(parent=parent)
def value(self) -> int:
@@ -96,7 +102,10 @@ class GuiEditorItemTextComboBox(GuiEditorItemWidgetContainer):
super().__init__(*args, **kwargs)
self._title = AppQLabel(_(title), translatable=translatable, parent=parent)
if translatable:
title = _(title)
self._title = AppQLabel(title, translatable=translatable, parent=parent)
self._input = AppQComboBox(parent=parent, translatable=False)
def text(self) -> str: