From d516d80093a1f3903a771513f5f62da974166a1e Mon Sep 17 00:00:00 2001 From: beville Date: Sun, 6 Jul 2014 18:19:50 +0000 Subject: [PATCH] Removed unused FileTableWidget, and explicitly set the column count. This fixes a problem on ArchLinux systems git-svn-id: http://comictagger.googlecode.com/svn/trunk@744 6c5673fe-1810-88d6-992b-cd32ca31540c --- comictaggerlib/fileselectionlist.py | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/comictaggerlib/fileselectionlist.py b/comictaggerlib/fileselectionlist.py index 813d25c..2f6c9ba 100644 --- a/comictaggerlib/fileselectionlist.py +++ b/comictaggerlib/fileselectionlist.py @@ -36,17 +36,6 @@ import utils import platform import os -class FileTableWidget( QTableWidget ): - - def __init__(self, parent ): - super(FileTableWidget, self).__init__(parent) - - - self.setColumnCount(5) - self.setHorizontalHeaderLabels (["File", "Folder", "CR", "CBL", ""]) - self.horizontalHeader().setStretchLastSection( True ) - - class FileTableWidgetItem(QTableWidgetItem): def __lt__(self, other): return (self.data(Qt.UserRole).toBool() < @@ -79,7 +68,10 @@ class FileSelectionList(QWidget): self.settings = settings utils.reduceWidgetFontSize( self.twList ) - + + self.twList.setColumnCount(6) + #self.twlist.setHorizontalHeaderLabels (["File", "Folder", "CR", "CBL", ""]) + #self.twList.horizontalHeader().setStretchLastSection( True ) self.twList.currentItemChanged.connect( self.currentItemChangedCB ) self.currentItem = None