Drag and drop ordering for quirks
This commit is contained in:
parent
427eefb383
commit
cd99a85df2
1 changed files with 7 additions and 5 deletions
2
menus.py
2
menus.py
|
@ -34,6 +34,8 @@ class PesterQuirkList(QtGui.QListWidget):
|
||||||
item = PesterQuirkItem(q, self)
|
item = PesterQuirkItem(q, self)
|
||||||
self.addItem(item)
|
self.addItem(item)
|
||||||
#self.sortItems()
|
#self.sortItems()
|
||||||
|
self.setDragEnabled(True)
|
||||||
|
self.setDragDropMode(QtGui.QAbstractItemView.InternalMove)
|
||||||
|
|
||||||
def currentQuirk(self):
|
def currentQuirk(self):
|
||||||
return self.item(self.currentRow())
|
return self.item(self.currentRow())
|
||||||
|
|
Loading…
Reference in a new issue