This commit is contained in:
Kovid Goyal 2008-05-18 08:03:28 -07:00
parent 94e8b22b85
commit 1e39c5ee21

View File

@ -298,13 +298,12 @@ class BooksModel(QAbstractTableModel):
if col == 0: if col == 0:
text = self.db.title(row) text = self.db.title(row)
if text: if text:
return QVariant(BooksView.wrap(text, width=35)) return QVariant(text)
elif col == 1: elif col == 1:
au = self.db.authors(row) au = self.db.authors(row)
if au: if au:
au = au.split(',') au = au.split(',')
jau = [ BooksView.wrap(a, width=30).strip() for a in au ] return QVariant("\n".join(au))
return QVariant("\n".join(jau))
elif col == 2: elif col == 2:
size = self.db.max_size(row) size = self.db.max_size(row)
if size: if size: