- 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

@@ -75,7 +75,7 @@ from appGUI.PlotCanvas import *
from appGUI.PlotCanvasLegacy import *
from appGUI.PlotCanvas3d import *
from appGUI.MainGUI import *
from appGUI.GUIElements import FCFileSaveDialog, message_dialog, FlatCAMSystemTray, FCInputDialogSlider
from appGUI.GUIElements import FCFileSaveDialog, message_dialog, FlatCAMSystemTray, FCInputDialogSlider, FCGridLayout
# FlatCAM Pre-processors
from appPreProcessor import load_preprocessors
@@ -3421,7 +3421,7 @@ class App(QtCore.QObject):
},
]
self.prog_grid_lay = QtWidgets.QGridLayout()
self.prog_grid_lay = FCGridLayout(v_spacing=3)
self.prog_grid_lay.setHorizontalSpacing(20)
self.prog_grid_lay.setColumnStretch(0, 0)
self.prog_grid_lay.setColumnStretch(2, 1)
@@ -3464,7 +3464,7 @@ class App(QtCore.QObject):
self.prog_grid_lay.addWidget(QtWidgets.QLabel(''), line, 0)
line += 1
self.translator_grid_lay = QtWidgets.QGridLayout()
self.translator_grid_lay = FCGridLayout(v_spacing=3)
self.translator_grid_lay.setColumnStretch(0, 0)
self.translator_grid_lay.setColumnStretch(1, 0)
self.translator_grid_lay.setColumnStretch(2, 1)
@@ -3684,7 +3684,7 @@ class App(QtCore.QObject):
self.intro_tab_layout.setContentsMargins(2, 2, 2, 2)
tab_widget.addTab(self.intro_tab, _("Contribute"))
self.grid_lay = QtWidgets.QGridLayout()
self.grid_lay = FCGridLayout(v_spacing=3)
self.grid_lay.setHorizontalSpacing(20)
self.grid_lay.setColumnStretch(0, 0)
self.grid_lay.setColumnStretch(1, 1)