summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbionel <ionel.busuioc@gmail.com>2017-09-24 22:43:49 +0300
committerbionel <ionel.busuioc@gmail.com>2017-09-24 22:43:49 +0300
commitbec0adc8ed1199c444c73b7db33c11f4e3090fcc (patch)
treedaf9ba24d6eafb0ea9804efa6f670080dfde09d0 /src
parent2462ed33f72f648f78581d49e688b51d32abe74a (diff)
remove rmv from model, filter is enough
Diffstat (limited to 'src')
-rwxr-xr-xsrc/frontend/gui/sisyphus-gui.py6
1 files 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)