- 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

@@ -9,7 +9,8 @@ from PyQt6 import QtCore, QtWidgets, QtGui
from appTool import AppTool
from appGUI.GUIElements import RadioSet, FCDoubleSpinner, FCCheckBox, \
OptionalHideInputSection, FCComboBox, FCFileSaveDialog, FCButton, FCLabel, FCSpinner, VerticalScrollArea
OptionalHideInputSection, FCComboBox, FCFileSaveDialog, FCButton, FCLabel, FCSpinner, \
VerticalScrollArea, FCGridLayout
from copy import deepcopy
import logging
@@ -1174,7 +1175,7 @@ class FilmUI:
self.title_box.addWidget(self.level)
# Grid Layout
grid0 = QtWidgets.QGridLayout()
grid0 = FCGridLayout(v_spacing=3)
self.tools_box.addLayout(grid0)
grid0.setColumnStretch(0, 0)
@@ -1448,7 +1449,7 @@ class FilmUI:
self.punch_frame = QtWidgets.QFrame()
self.punch_frame.setContentsMargins(0, 0, 0, 0)
self.layout.addWidget(self.punch_frame)
punch_grid = QtWidgets.QGridLayout()
punch_grid = FCGridLayout(v_spacing=3)
punch_grid.setContentsMargins(0, 0, 0, 0)
self.punch_frame.setLayout(punch_grid)
@@ -1498,7 +1499,7 @@ class FilmUI:
self.punch_size_label.hide()
self.punch_size_spinner.hide()
self.grid1 = QtWidgets.QGridLayout()
self.grid1 = FCGridLayout(v_spacing=3)
self.layout.addLayout(self.grid1)
self.grid1.setColumnStretch(0, 0)
self.grid1.setColumnStretch(1, 1)