From 6bc19afdbe844ac56b9a2d974cb5122c7d1bbde0 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Sun, 19 May 2013 11:53:14 +0200 Subject: [PATCH] Add indication that a column is quickview'able to the column header tooltip --- src/calibre/gui2/library/models.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/library/models.py b/src/calibre/gui2/library/models.py index d252af6395..f047cdb2f8 100644 --- a/src/calibre/gui2/library/models.py +++ b/src/calibre/gui2/library/models.py @@ -897,7 +897,11 @@ class BooksModel(QAbstractTableModel): # {{{ ht = self.column_map[section] if ht == 'timestamp': # change help text because users know this field as 'date' ht = 'date' - return QVariant(_('The lookup/search name is "{0}"').format(ht)) + if self.db.field_metadata[self.column_map[section]]['is_category']: + is_cat = _('. This column can be Quickview\'ed') + else: + is_cat = '' + return QVariant(_('The lookup/search name is "{0}"{1}').format(ht, is_cat)) if role == Qt.DisplayRole: return QVariant(self.headers[self.column_map[section]]) return NONE