forked from M-Labs/artiq
waveform: remove unused setTimescale
This commit is contained in:
parent
c794e51c1c
commit
c151f0c3ce
|
@ -180,9 +180,6 @@ class _BaseWaveform(pg.PlotWidget):
|
|||
self.stopped_x = stopped_x
|
||||
self.view_box.setLimits(xMax=stopped_x)
|
||||
|
||||
def setTimescale(self, timescale):
|
||||
self.timescale = timescale
|
||||
|
||||
def setData(self, data):
|
||||
if len(data) == 0:
|
||||
self.x_data, self.y_data = [], []
|
||||
|
@ -465,8 +462,6 @@ class _WaveformView(QtWidgets.QWidget):
|
|||
def setTimescale(self, timescale):
|
||||
self._timescale = timescale
|
||||
self._top.setScale(1e-12 * timescale)
|
||||
for i in range(self._model.rowCount()):
|
||||
self._splitter.widget(i).setTimescale(timescale)
|
||||
|
||||
def setStoppedX(self, stopped_x):
|
||||
self._stopped_x = stopped_x
|
||||
|
@ -522,7 +517,6 @@ class _WaveformView(QtWidgets.QWidget):
|
|||
w = waveform_cls(name, width, precision, unit, parent=self._splitter)
|
||||
w.setXLink(self._ref_vb)
|
||||
w.setStoppedX(self._stopped_x)
|
||||
w.setTimescale(self._timescale)
|
||||
w.cursorMove.connect(self.cursorMove)
|
||||
w.onCursorMove(self._cursor_x)
|
||||
action = QtWidgets.QAction("Delete waveform", w)
|
||||
|
|
Loading…
Reference in New Issue