forked from M-Labs/artiq
waveform: working, no cursor
This commit is contained in:
parent
53cbd62aa0
commit
78e0810457
@ -518,7 +518,7 @@ class _WaveformModel(QtCore.QAbstractTableModel):
|
|||||||
def move(self, src, dest):
|
def move(self, src, dest):
|
||||||
if src == dest:
|
if src == dest:
|
||||||
return
|
return
|
||||||
if dest == src + 1:
|
if src < dest:
|
||||||
dest, src = src, dest
|
dest, src = src, dest
|
||||||
self.beginMoveRows(QtCore.QModelIndex(), src, src, QtCore.QModelIndex(), dest)
|
self.beginMoveRows(QtCore.QModelIndex(), src, src, QtCore.QModelIndex(), dest)
|
||||||
self.backing_struct.insert(dest, self.backing_struct.pop(src))
|
self.backing_struct.insert(dest, self.backing_struct.pop(src))
|
||||||
|
Loading…
Reference in New Issue
Block a user