Make user row unselectable (to fix *nix icon glitch)

This commit is contained in:
Et0h 2015-01-24 15:35:56 +00:00
parent 305e400eac
commit 8f77896559

View File

@ -170,6 +170,10 @@ class MainWindow(QtGui.QMainWindow):
filenameitem.setFlags(filenameitem.flags() & ~Qt.ItemIsEditable)
filesizeitem.setFlags(filesizeitem.flags() & ~Qt.ItemIsEditable)
filedurationitem.setFlags(filedurationitem.flags() & ~Qt.ItemIsEditable)
useritem.setSelectable(False)
filesizeitem.setSelectable(False)
filedurationitem.setSelectable(False)
filenameitem.setSelectable(False)
roomitem.appendRow((useritem, filesizeitem, filedurationitem, filenameitem))
self.listTreeModel = self._usertreebuffer
self.listTreeView.setModel(self.listTreeModel)