forked from M-Labs/artiq
moninj: add dock label
This commit is contained in:
parent
a1d23b271e
commit
bd276ffd68
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue