moninj: add channel dummy button

This commit is contained in:
Simon Renblad 2024-04-16 14:26:03 +08:00
parent 2a16b84df9
commit d1decc9198

View File

@ -794,8 +794,14 @@ class _MonInjDock(QtWidgets.QDockWidget):
QtWidgets.QDockWidget.DockWidgetFloatable) QtWidgets.QDockWidget.DockWidgetFloatable)
layout = LayoutWidget() layout = LayoutWidget()
self.setWidget(layout) self.setWidget(layout)
add_channel_btn = QtWidgets.QToolButton()
add_channel_btn.setToolTip("Add channels...")
add_channel_btn.setIcon(
QtWidgets.QApplication.style().standardIcon(
QtWidgets.QStyle.SP_FileDialogListView))
layout.addWidget(add_channel_btn, 0, 0, colspan=1)
scroll_area = QtWidgets.QScrollArea() scroll_area = QtWidgets.QScrollArea()
layout.addWidget(scroll_area) layout.addWidget(scroll_area, 1, 0, colspan=10)
self.grid = FlowLayout() self.grid = FlowLayout()
grid_widget = QtWidgets.QWidget() grid_widget = QtWidgets.QWidget()
grid_widget.setLayout(self.grid) grid_widget.setLayout(self.grid)