forked from M-Labs/artiq
1
0
Fork 0

moninj: add dock label

This commit is contained in:
Simon Renblad 2024-05-02 15:24:36 +08:00
parent a1d23b271e
commit bd276ffd68
1 changed files with 4 additions and 1 deletions

View File

@ -8,7 +8,7 @@ from PyQt5 import QtCore, QtWidgets
from artiq.coredevice.comm_moninj import CommMonInj, TTLOverride, TTLProbe from artiq.coredevice.comm_moninj import CommMonInj, TTLOverride, TTLProbe
from artiq.coredevice.ad9912_reg import AD9912_SER_CONF 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.flowlayout import FlowLayout
from artiq.gui.models import DictSyncTreeSepModel from artiq.gui.models import DictSyncTreeSepModel
@ -825,6 +825,9 @@ class _MonInjDock(QDockWidgetCloseDetect):
dialog_btn.clicked.connect(self.channel_dialog.open) dialog_btn.clicked.connect(self.channel_dialog.open)
grid.addWidget(dialog_btn, 0, 1) grid.addWidget(dialog_btn, 0, 1)
self.label = DoubleClickLineEdit(name)
grid.addWidget(self.label, 0, 2)
scroll_area = QtWidgets.QScrollArea() scroll_area = QtWidgets.QScrollArea()
grid.addWidget(scroll_area, 1, 0, 1, 10) grid.addWidget(scroll_area, 1, 0, 1, 10)
self.flow = FlowLayout() self.flow = FlowLayout()