From bec0adc8ed1199c444c73b7db33c11f4e3090fcc Mon Sep 17 00:00:00 2001 From: bionel Date: Sun, 24 Sep 2017 22:43:49 +0300 Subject: remove rmv from model, filter is enough --- src/frontend/gui/sisyphus-gui.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/frontend/gui/sisyphus-gui.py b/src/frontend/gui/sisyphus-gui.py index 05212af..1c71edf 100755 --- a/src/frontend/gui/sisyphus-gui.py +++ b/src/frontend/gui/sisyphus-gui.py @@ -73,8 +73,6 @@ class Sisyphus(QtWidgets.QMainWindow): self.abort.clicked.connect(self.sisyphusExit) - #hide removable column - self.database.horizontalHeader().hideSection(5) def centerOnScreen(self): resolution = QtWidgets.QDesktopWidget().screenGeometry() @@ -122,10 +120,10 @@ class Sisyphus(QtWidgets.QMainWindow): Sisyphus.PKGCOUNT = len(rows) Sisyphus.PKGSELECTED = 0 model = QtGui.QStandardItemModel(len(rows), 5) - model.setHorizontalHeaderLabels(['Category', 'Name', 'Available Version', 'Installed Version', 'Description', 'Rmv']) + model.setHorizontalHeaderLabels(['Category', 'Name', 'Available Version', 'Installed Version', 'Description']) for row in rows: indx = rows.index(row) - for column in range(0, 6): + for column in range(0, 5): item = QtGui.QStandardItem("%s"%(row[column])) model.setItem(indx, column, item) self.database.setModel(model) -- cgit v1.2.3