Commit 2e231f2e authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[widgets][mainwindow] Use a QSplitter rather than horizontal layout

This allows the user to make better use of available space.
parent 6987cd9e
......@@ -23,9 +23,8 @@
# #
###############################################################################
from PyQt5.QtWidgets import QHBoxLayout
from PyQt5.QtWidgets import QMainWindow
from PyQt5.QtWidgets import QWidget
from PyQt5.QtWidgets import QSplitter
from PyQt5.QtWidgets import qApp
from PyQt5.QtCore import QSettings
......@@ -56,10 +55,9 @@ class MainWindow(QMainWindow):
self.assetBrowser = AssetBrowser()
self.assetWidget = AssetWidget()
centralWidget = QWidget()
layout = QHBoxLayout(centralWidget)
layout.addWidget(self.assetBrowser)
layout.addWidget(self.assetWidget)
centralWidget = QSplitter()
centralWidget.addWidget(self.assetBrowser)
centralWidget.addWidget(self.assetWidget)
self.setCentralWidget(centralWidget)
self.assetBrowser.json_selected.connect(self.assetWidget.load_json)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment