Simplify build_tab()

This commit is contained in:
David Robertson
2020-05-06 03:10:40 +01:00
parent f05540a587
commit 1c0dc433a7
2 changed files with 2 additions and 16 deletions

View File

@@ -32,23 +32,9 @@ class PreferencesSectionUI(QtWidgets.QWidget):
return result
def build_tab(self):
tab = QtWidgets.QWidget()
tab_lay = QtWidgets.QVBoxLayout()
tab_lay.setContentsMargins(2, 2, 2, 2)
tab.setLayout(tab_lay)
# Not sure what the point of this is ???
hlay1 = QtWidgets.QHBoxLayout()
hlay1.addStretch()
tab_lay.addLayout(hlay1)
scroll_area = QtWidgets.QScrollArea()
scroll_area.setWidget(self)
self.show()
tab_lay.addWidget(scroll_area)
return tab
return scroll_area
def get_tab_id(self) -> str:
raise NotImplementedError