Drag and drop ordering for quirks

This commit is contained in:
Kiooeht 2011-04-02 01:45:55 -07:00
parent 427eefb383
commit cd99a85df2

View file

@ -34,6 +34,8 @@ class PesterQuirkList(QtGui.QListWidget):
item = PesterQuirkItem(q, self)
self.addItem(item)
#self.sortItems()
self.setDragEnabled(True)
self.setDragDropMode(QtGui.QAbstractItemView.InternalMove)
def currentQuirk(self):
return self.item(self.currentRow())