From d1decc91988d5c401d67f302f6adcf09ac3d6964 Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Tue, 16 Apr 2024 14:26:03 +0800 Subject: [PATCH] moninj: add channel dummy button --- artiq/dashboard/moninj.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/artiq/dashboard/moninj.py b/artiq/dashboard/moninj.py index 77ca07a74..019c3cd5d 100644 --- a/artiq/dashboard/moninj.py +++ b/artiq/dashboard/moninj.py @@ -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)