forked from M-Labs/artiq
waveform: fixes
This commit is contained in:
parent
b870d23f13
commit
435af6daa6
@ -512,11 +512,11 @@ class _WaveformView(QtWidgets.QWidget):
|
|||||||
self._splitter.setMaximumHeight(Waveform.MAX_HEIGHT * self._model.rowCount())
|
self._splitter.setMaximumHeight(Waveform.MAX_HEIGHT * self._model.rowCount())
|
||||||
|
|
||||||
|
|
||||||
class _WaveformModel(QtWidgets.QAbstractTableModel):
|
class _WaveformModel(QtCore.QAbstractTableModel):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.backing_struct = []
|
self.backing_struct = []
|
||||||
self.headers = ["name", "type", "width", "data"]
|
self.headers = ["name", "type", "width", "data"]
|
||||||
QtWidgets.QAbstractTableModel.__init__(self)
|
QtCore.QAbstractTableModel.__init__(self)
|
||||||
|
|
||||||
def rowCount(self):
|
def rowCount(self):
|
||||||
return len(self.backing_struct)
|
return len(self.backing_struct)
|
||||||
@ -594,8 +594,7 @@ class WaveformArea(QtWidgets.QWidget):
|
|||||||
scroll_area.setFrameShape(QtWidgets.QFrame.NoFrame)
|
scroll_area.setFrameShape(QtWidgets.QFrame.NoFrame)
|
||||||
layout.addWidget(scroll_area)
|
layout.addWidget(scroll_area)
|
||||||
|
|
||||||
# TODO: name changed to VDragDropSplitter
|
self._splitter = VDragDropSplitter(parent=scroll_area)
|
||||||
self._splitter = DragDropSplitter(parent=scroll_area)
|
|
||||||
self._splitter.setHandleWidth(1)
|
self._splitter.setHandleWidth(1)
|
||||||
scroll_area.setWidget(self._splitter)
|
scroll_area.setWidget(self._splitter)
|
||||||
|
|
||||||
@ -856,8 +855,7 @@ class WaveformDock(QtWidgets.QDockWidget):
|
|||||||
self._file_menu.addAction(action)
|
self._file_menu.addAction(action)
|
||||||
|
|
||||||
def _update_log_channels(self):
|
def _update_log_channels(self):
|
||||||
for log in self._state['logs']:
|
self._channel_model.update(self._state['logs'])
|
||||||
self._channel_model[log] = (0, WaveformType.LOG)
|
|
||||||
|
|
||||||
def on_dump_receive(self, data):
|
def on_dump_receive(self, data):
|
||||||
decoded_dump = comm_analyzer.decode_dump(data)
|
decoded_dump = comm_analyzer.decode_dump(data)
|
||||||
|
Loading…
Reference in New Issue
Block a user