This commit is contained in:
Kovid Goyal 2025-01-20 20:50:29 +05:30
parent a26eba374d
commit e1072478cb
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
5 changed files with 7 additions and 7 deletions

View File

@ -20,7 +20,6 @@ from qt.core import (
QListView,
QListWidget,
Qt,
QTabWidget,
QTableWidget,
QVBoxLayout,
QWidget,

View File

@ -10,6 +10,7 @@ from qt.core import QAbstractListModel, QIcon, QItemSelectionModel, Qt
from calibre.gui2.book_details import get_field_list
class DisplayedFields(QAbstractListModel): # {{{
def __init__(self, db, parent=None, pref_name=None, category_icons=None):

View File

@ -9,7 +9,6 @@ __docformat__ = 'restructuredtext en'
from qt.core import QKeySequence
from calibre.gui2 import config, gprefs
from calibre.gui2.dialogs.template_dialog import TemplateDialog
from calibre.gui2.preferences import ConfigTabWidget, ConfigWidgetBase, set_help_tips
from calibre.gui2.preferences.look_feel_tabs.cover_view_ui import Ui_Form
@ -63,4 +62,3 @@ class CoverView(ConfigTabWidget, Ui_Form):
gui.cover_flow.setActivateOnDoubleClick(gprefs['cb_double_click_to_activate'])
gui.update_cover_flow_subtitle_font()
gui.cover_flow.template_inited = False

View File

@ -5,8 +5,8 @@ __license__ = 'GPL v3'
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
from functools import partial
import json
from functools import partial
from qt.core import QListWidgetItem, Qt
@ -15,6 +15,7 @@ from calibre.gui2.preferences import ConfigTabWidget
from calibre.gui2.preferences.look_feel_tabs import DisplayedFields
from calibre.gui2.preferences.look_feel_tabs.tb_hierarchy_ui import Ui_Form
class TBHierarchicalFields(DisplayedFields): # {{{
# The code in this class depends on the fact that the tag browser is
# initialized before this class is instantiated.

View File

@ -6,8 +6,8 @@ __copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import copy
from functools import partial
import os
from functools import partial
from qt.core import QAbstractItemView, QApplication, QIcon, QMenu, Qt, QTableWidgetItem
@ -168,3 +168,4 @@ class TbIconRulesTab(ConfigTabWidget, Ui_Form):
if len(v[category]) == 0:
v.pop(category, None)
gprefs['tags_browser_value_icons'] = v
return rr