mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
changed how the margins of main window are
This commit is contained in:
parent
4d05ebaa71
commit
8a1c164f51
2 changed files with 6 additions and 5 deletions
|
|
@ -74,7 +74,7 @@ class SystemWidget(QtWidgets.QWidget):
|
|||
footer_layout.addWidget(save_btn, 0)
|
||||
|
||||
layout = QtWidgets.QVBoxLayout(self)
|
||||
layout.setContentsMargins(5, 0, 5, 0)
|
||||
layout.setContentsMargins(0, 0, 0, 0)
|
||||
layout.setSpacing(0)
|
||||
self.setLayout(layout)
|
||||
|
||||
|
|
@ -400,7 +400,7 @@ class ProjectWidget(QtWidgets.QWidget):
|
|||
|
||||
configurations_widget = QtWidgets.QWidget()
|
||||
configurations_layout = QtWidgets.QVBoxLayout(configurations_widget)
|
||||
configurations_layout.setContentsMargins(5, 0, 5, 0)
|
||||
configurations_layout.setContentsMargins(0, 0, 0, 0)
|
||||
configurations_layout.setSpacing(0)
|
||||
|
||||
configurations_layout.addWidget(scroll_widget, 1)
|
||||
|
|
|
|||
|
|
@ -8,18 +8,19 @@ class MainWidget(QtWidgets.QWidget):
|
|||
|
||||
def __init__(self, develop, parent=None):
|
||||
super(MainWidget, self).__init__(parent)
|
||||
self.setObjectName("MainWidget")
|
||||
|
||||
self.resize(self.widget_width, self.widget_height)
|
||||
|
||||
header_tab_widget = QtWidgets.QTabWidget(parent=self)
|
||||
|
||||
studio_widget = SystemWidget(develop)
|
||||
project_widget = ProjectWidget(develop)
|
||||
studio_widget = SystemWidget(develop, header_tab_widget)
|
||||
project_widget = ProjectWidget(develop, header_tab_widget)
|
||||
header_tab_widget.addTab(studio_widget, "System")
|
||||
header_tab_widget.addTab(project_widget, "Project")
|
||||
|
||||
layout = QtWidgets.QVBoxLayout(self)
|
||||
layout.setContentsMargins(0, 0, 0, 0)
|
||||
layout.setContentsMargins(5, 5, 5, 5)
|
||||
layout.setSpacing(0)
|
||||
layout.addWidget(header_tab_widget)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue