mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
...
This commit is contained in:
parent
7b588d8def
commit
2a9b2488ff
@ -594,7 +594,6 @@ class dialog_setting_game_internal(QWidget):
|
|||||||
def __init__(self, parent, exepath) -> None:
|
def __init__(self, parent, exepath) -> None:
|
||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
vbox = QVBoxLayout(self)
|
vbox = QVBoxLayout(self)
|
||||||
vbox.setContentsMargins(0, 0, 0, 0)
|
|
||||||
self.setLayout(vbox)
|
self.setLayout(vbox)
|
||||||
formLayout = QFormLayout()
|
formLayout = QFormLayout()
|
||||||
self.exepath = exepath
|
self.exepath = exepath
|
||||||
@ -1235,12 +1234,12 @@ class dialog_setting_game(QDialog):
|
|||||||
l = QHBoxLayout(self)
|
l = QHBoxLayout(self)
|
||||||
self.setLayout(l)
|
self.setLayout(l)
|
||||||
l.addWidget(_)
|
l.addWidget(_)
|
||||||
|
l.setContentsMargins(0,0,0,0)
|
||||||
self.show()
|
self.show()
|
||||||
try:
|
try:
|
||||||
self.setGeometry(
|
self.setGeometry(
|
||||||
calculate_centered_rect(
|
calculate_centered_rect(
|
||||||
_global_dialog_savedgame_new.geometry(), self.size()
|
_global_dialog_savedgame_new.parent().parent().geometry(), self.size()
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
@ -2249,8 +2248,7 @@ class dialog_savedgame_v3(QWidget):
|
|||||||
tabadd_lazy(
|
tabadd_lazy(
|
||||||
self.righttop,
|
self.righttop,
|
||||||
savehook_new_data[k]["title"],
|
savehook_new_data[k]["title"],
|
||||||
lambda v: v.addWidget(dialog_setting_game_internal(self, k)),
|
lambda v: v.addWidget(dialog_setting_game_internal(self, k))
|
||||||
margin0=False,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
except:
|
except:
|
||||||
|
@ -853,12 +853,11 @@ class threebuttons(QWidget):
|
|||||||
layout.addWidget(button3)
|
layout.addWidget(button3)
|
||||||
|
|
||||||
|
|
||||||
def tabadd_lazy(tab, title, getrealwidgetfunction, margin0=True):
|
def tabadd_lazy(tab, title, getrealwidgetfunction):
|
||||||
q = QWidget()
|
q = QWidget()
|
||||||
v = QVBoxLayout()
|
v = QVBoxLayout()
|
||||||
q.setLayout(v)
|
q.setLayout(v)
|
||||||
if margin0:
|
v.setContentsMargins(0, 0, 0, 0)
|
||||||
v.setContentsMargins(0, 0, 0, 0)
|
|
||||||
q.lazyfunction = functools.partial(getrealwidgetfunction, v)
|
q.lazyfunction = functools.partial(getrealwidgetfunction, v)
|
||||||
tab.addTab(q, title)
|
tab.addTab(q, title)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user