- created a new custom layout based on the Grid Layout where I can set the horizontal and vertical spacings between grid items and used it throughout the app

This commit is contained in:
Marius Stanciu
2021-08-07 11:46:45 +03:00
committed by Marius
parent 3c06280d3d
commit 461aa763ad
88 changed files with 325 additions and 281 deletions

View File

@@ -14,6 +14,7 @@ import appTranslation as fcTranslate
import builtins
from appGUI.preferences.OptionUI import OptionUI
from appGUI.GUIElements import FCGridLayout
fcTranslate.apply_language('strings')
if '_' not in builtins.__dict__:
@@ -47,7 +48,7 @@ class OptionsGroupUI2(OptionsGroupUI):
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.grid = QtWidgets.QGridLayout()
self.grid = FCGridLayout(v_spacing=3)
self.layout.addLayout(self.grid)
self.grid.setColumnStretch(0, 0)
self.grid.setColumnStretch(1, 1)