mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
6bfd24c278
commit
556ed59e96
@ -9,7 +9,7 @@ import os
|
|||||||
from functools import partial
|
from functools import partial
|
||||||
|
|
||||||
from PyQt4.Qt import QTableView, Qt, QAbstractItemView, QMenu, pyqtSignal, \
|
from PyQt4.Qt import QTableView, Qt, QAbstractItemView, QMenu, pyqtSignal, \
|
||||||
QModelIndex
|
QModelIndex, QIcon
|
||||||
|
|
||||||
from calibre.gui2.library.delegates import RatingDelegate, PubDateDelegate, \
|
from calibre.gui2.library.delegates import RatingDelegate, PubDateDelegate, \
|
||||||
TextDelegate, DateDelegate, TagsDelegate, CcTextDelegate, \
|
TextDelegate, DateDelegate, TagsDelegate, CcTextDelegate, \
|
||||||
@ -172,6 +172,7 @@ class BooksView(QTableView): # {{{
|
|||||||
|
|
||||||
if self.can_add_columns:
|
if self.can_add_columns:
|
||||||
self.column_header_context_menu.addAction(
|
self.column_header_context_menu.addAction(
|
||||||
|
QIcon(I('column.png')),
|
||||||
_('Add your own columns'),
|
_('Add your own columns'),
|
||||||
partial(self.column_header_context_handler,
|
partial(self.column_header_context_handler,
|
||||||
action='addcustcol', column=col))
|
action='addcustcol', column=col))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user