forked from M-Labs/artiq
1
0
Fork 0

moninj: add channel dummy button

This commit is contained in:
Simon Renblad 2024-04-16 14:26:03 +08:00
parent 2a16b84df9
commit d1decc9198
1 changed files with 7 additions and 1 deletions

View File

@ -794,8 +794,14 @@ class _MonInjDock(QtWidgets.QDockWidget):
QtWidgets.QDockWidget.DockWidgetFloatable)
layout = LayoutWidget()
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()
layout.addWidget(scroll_area)
layout.addWidget(scroll_area, 1, 0, colspan=10)
self.grid = FlowLayout()
grid_widget = QtWidgets.QWidget()
grid_widget.setLayout(self.grid)