From 7fae395b883dba4b88493fc0cc092a5a9185c75d Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Thu, 2 May 2024 15:24:36 +0800 Subject: [PATCH] moninj: add dock label --- artiq/dashboard/moninj.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/artiq/dashboard/moninj.py b/artiq/dashboard/moninj.py index 1efacb845..10276d30d 100644 --- a/artiq/dashboard/moninj.py +++ b/artiq/dashboard/moninj.py @@ -8,7 +8,7 @@ from PyQt5 import QtCore, QtWidgets from artiq.coredevice.comm_moninj import CommMonInj, TTLOverride, TTLProbe from artiq.coredevice.ad9912_reg import AD9912_SER_CONF -from artiq.gui.tools import LayoutWidget, QDockWidgetCloseDetect +from artiq.gui.tools import LayoutWidget, QDockWidgetCloseDetect, DoubleClickLineEdit from artiq.gui.flowlayout import FlowLayout from artiq.gui.models import DictSyncTreeSepModel @@ -825,6 +825,10 @@ class _MonInjDock(QDockWidgetCloseDetect): dialog_btn.clicked.connect(self.channel_dialog.open) grid.addWidget(dialog_btn, 0, 1) + self.label = DoubleClickLineEdit(name) + self.label.setStyleSheet("background:transparent;") + grid.addWidget(self.label, 0, 2) + scroll_area = QtWidgets.QScrollArea() grid.addWidget(scroll_area, 1, 0, 1, 10) self.flow = FlowLayout()