Update "Furious/Qt/GuiEditorXXX.py"

Signed-off-by: LorenEteval <loren.eteval@proton.me>
This commit is contained in:
LorenEteval
2026-06-21 15:56:20 +08:00
committed by Loren Eteval
parent 70cbe9ca99
commit 3c45e5fed5
+6 -4
View File
@@ -317,13 +317,15 @@ class GuiEditorWidgetQGroupBox(GuiEditorWidget, AppQGroupBox):
class GuiEditorWidgetQDialog(GuiEditorItemFactory, AppQDialog):
def __init__(self, *args, **kwargs):
tabText = kwargs.pop('tabText', '')
tabTranslatable = kwargs.pop('tabTranslatable', False)
style = kwargs.pop('style', 'grid')
tabText, tabTranslatable, style = (
kwargs.pop('tabText', ''),
kwargs.pop('tabTranslatable', False),
kwargs.pop('style', 'grid'),
)
super().__init__(*args, **kwargs)
dialogHeight = 480 * GOLDEN_RATIO
dialogHeight = 770
self.setWindowModality(QtCore.Qt.WindowModality.WindowModal)
self.setFixedSize(int(dialogHeight * GOLDEN_RATIO), int(dialogHeight))