mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove text alignment from rating/bool type columns
This commit is contained in:
parent
0376c0a6ef
commit
a28c63dc1f
@ -111,6 +111,10 @@ class BooksView(QTableView): # {{{
|
||||
ac = a if self._model.sorted_on[1] == Qt.AscendingOrder else d
|
||||
ac.setCheckable(True)
|
||||
ac.setChecked(True)
|
||||
if col not in ('ondevice', 'rating', 'inlibrary') and \
|
||||
(not self.model().is_custom_column(col) or \
|
||||
self.model().custom_columns[col]['datatype'] not in ('bool',
|
||||
'rating')):
|
||||
m = self.column_header_context_menu.addMenu(
|
||||
_('Change text alignment for %s') % name)
|
||||
al = self._model.alignment_map.get(col, 'left')
|
||||
|
Loading…
x
Reference in New Issue
Block a user