diff --git a/src/calibre/gui2/tweak_book/search.py b/src/calibre/gui2/tweak_book/search.py index df038ef161..7376eeec7c 100644 --- a/src/calibre/gui2/tweak_book/search.py +++ b/src/calibre/gui2/tweak_book/search.py @@ -12,7 +12,7 @@ from collections import OrderedDict from PyQt4.Qt import ( QWidget, QToolBar, Qt, QHBoxLayout, QSize, QIcon, QGridLayout, QLabel, QTimer, - QPushButton, pyqtSignal, QComboBox, QCheckBox, QSizePolicy, QVBoxLayout, + QPushButton, pyqtSignal, QComboBox, QCheckBox, QSizePolicy, QVBoxLayout, QFont, QLineEdit, QToolButton, QListView, QFrame, QApplication, QStyledItemDelegate, QAbstractListModel, QVariant, QFormLayout, QModelIndex, QMenu, QItemSelection) @@ -65,7 +65,7 @@ class HistoryLineEdit(HistoryLineEdit2): class WhereBox(QComboBox): - def __init__(self, parent): + def __init__(self, parent, emphasize=False): QComboBox.__init__(self) self.addItems([_('Current file'), _('All text files'), _('All style files'), _('Selected files'), _('Marked text')]) self.setToolTip('' + _( @@ -83,6 +83,7 @@ class WhereBox(QComboBox):