forked from M-Labs/artiq
moninj: add drag drop
This commit is contained in:
parent
1c7f2dd148
commit
91241bd5c2
|
@ -9,7 +9,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, DoubleClickLineEdit
|
||||
from artiq.gui.flowlayout import FlowLayout
|
||||
from artiq.gui.dndwidgets import VDragScrollArea, DragDropFlowLayoutWidget
|
||||
from artiq.gui.models import DictSyncTreeSepModel
|
||||
|
||||
|
||||
|
@ -830,13 +830,11 @@ class _MonInjDock(QDockWidgetCloseDetect):
|
|||
self.label = DoubleClickLineEdit(name)
|
||||
grid.addWidget(self.label, 0, 2)
|
||||
|
||||
scroll_area = QtWidgets.QScrollArea()
|
||||
scroll_area = VDragScrollArea(self)
|
||||
grid.addWidget(scroll_area, 1, 0, 1, 10)
|
||||
self.flow = FlowLayout()
|
||||
grid_widget = QtWidgets.QWidget()
|
||||
grid_widget.setLayout(self.flow)
|
||||
self.flow = DragDropFlowLayoutWidget()
|
||||
scroll_area.setWidgetResizable(True)
|
||||
scroll_area.setWidget(grid_widget)
|
||||
scroll_area.setWidget(self.flow)
|
||||
|
||||
def add_channels(self):
|
||||
channels = self.channel_dialog.channels
|
||||
|
|
Loading…
Reference in New Issue