Closed prjemian closed 1 year ago
This refactoring will better fit the planned layout for the search filter panel (#15).
Main window is responsible for this view:
Only make changes in the .ui
file.
Ok, minor code change for handling the FilterPanel()
widget. It's an improvement, IMO.
Also reflow the filterpanel UI from horizontal to vertical.
Refactored UI:
The QSplitters are used to move the divider between the two parts. Also, a QScrollArea is used in the Search Catalog and Search Terms and another one in the Matching Run(s) in case the content starts to take up too much space.
In each QGroupBox, the designer automatically adds a QWidget inside the QScrollArea. If you delete the QWidget, the designer also deletes the encompassing QScrollArea.
Summary: Do not delete the QWidget.
Instead, give each QScrollArea a name and we'll replace its widget in the mainwindow.py
file. https://github.com/BCDA-APS/tiled-viz2023/blob/77acfc854e6aca2e39bfa81d88d3db076ded28dd/gemviz23/demo/mainwindow.py#L24
Adjust the main window design to better match the storyboard design. Include consideration of a QtCore.QSplitter (as mentioned in #23) which allows the user to adjust the size balance of two adjacent panels.