mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Removed live and commented print statements
This commit is contained in:
parent
e61e40bdf0
commit
7f965d8506
@ -114,7 +114,6 @@ class TagCategories(QDialog, Ui_TagCategories):
|
|||||||
'<b>permanently deleted</b>. Are you sure?')
|
'<b>permanently deleted</b>. Are you sure?')
|
||||||
+'</p>', 'tag_category_delete', self):
|
+'</p>', 'tag_category_delete', self):
|
||||||
return
|
return
|
||||||
print 'here', self.current_category
|
|
||||||
if self.current_cat_name is not None:
|
if self.current_cat_name is not None:
|
||||||
if self.current_cat_name == unicode(self.category_box.currentText()):
|
if self.current_cat_name == unicode(self.category_box.currentText()):
|
||||||
del self.categories[self.current_cat_label][self.current_cat_name]
|
del self.categories[self.current_cat_label][self.current_cat_name]
|
||||||
|
@ -227,7 +227,6 @@ class SavedSearchBox(QComboBox):
|
|||||||
self.clear_to_help()
|
self.clear_to_help()
|
||||||
|
|
||||||
def normalize_state(self):
|
def normalize_state(self):
|
||||||
#print 'in normalize_state'
|
|
||||||
self.setEditText('')
|
self.setEditText('')
|
||||||
self.line_edit.setStyleSheet(
|
self.line_edit.setStyleSheet(
|
||||||
'QLineEdit { color: black; background-color: %s; }' %
|
'QLineEdit { color: black; background-color: %s; }' %
|
||||||
@ -235,7 +234,6 @@ class SavedSearchBox(QComboBox):
|
|||||||
self.help_state = False
|
self.help_state = False
|
||||||
|
|
||||||
def clear_to_help(self):
|
def clear_to_help(self):
|
||||||
#print 'in clear_to_help'
|
|
||||||
self.setToolTip(self.tool_tip_text)
|
self.setToolTip(self.tool_tip_text)
|
||||||
self.initialize_saved_search_names()
|
self.initialize_saved_search_names()
|
||||||
self.setEditText(self.help_text)
|
self.setEditText(self.help_text)
|
||||||
@ -246,12 +244,10 @@ class SavedSearchBox(QComboBox):
|
|||||||
self.normal_background)
|
self.normal_background)
|
||||||
|
|
||||||
def focus_out(self, event):
|
def focus_out(self, event):
|
||||||
#print 'in focus_out'
|
|
||||||
if self.currentText() == '':
|
if self.currentText() == '':
|
||||||
self.clear_to_help()
|
self.clear_to_help()
|
||||||
|
|
||||||
def key_pressed(self, event):
|
def key_pressed(self, event):
|
||||||
#print 'in key_pressed'
|
|
||||||
if self.help_state:
|
if self.help_state:
|
||||||
self.normalize_state()
|
self.normalize_state()
|
||||||
|
|
||||||
@ -260,7 +256,6 @@ class SavedSearchBox(QComboBox):
|
|||||||
self.normalize_state()
|
self.normalize_state()
|
||||||
|
|
||||||
def saved_search_selected (self, qname):
|
def saved_search_selected (self, qname):
|
||||||
#print 'in saved_search_selected'
|
|
||||||
qname = unicode(qname)
|
qname = unicode(qname)
|
||||||
if qname is None or not qname.strip():
|
if qname is None or not qname.strip():
|
||||||
return
|
return
|
||||||
@ -270,7 +265,6 @@ class SavedSearchBox(QComboBox):
|
|||||||
self.setToolTip(self.saved_searches.lookup(qname))
|
self.setToolTip(self.saved_searches.lookup(qname))
|
||||||
|
|
||||||
def initialize_saved_search_names(self):
|
def initialize_saved_search_names(self):
|
||||||
#print 'in initialize_saved_search_names'
|
|
||||||
self.clear()
|
self.clear()
|
||||||
qnames = self.saved_searches.names()
|
qnames = self.saved_searches.names()
|
||||||
self.addItems(qnames)
|
self.addItems(qnames)
|
||||||
@ -278,7 +272,6 @@ class SavedSearchBox(QComboBox):
|
|||||||
|
|
||||||
# SIGNALed from the main UI
|
# SIGNALed from the main UI
|
||||||
def delete_search_button_clicked(self):
|
def delete_search_button_clicked(self):
|
||||||
#print 'in delete_search_button_clicked'
|
|
||||||
if not confirm('<p>'+_('The selected search will be '
|
if not confirm('<p>'+_('The selected search will be '
|
||||||
'<b>permanently deleted</b>. Are you sure?')
|
'<b>permanently deleted</b>. Are you sure?')
|
||||||
+'</p>', 'saved_search_delete', self):
|
+'</p>', 'saved_search_delete', self):
|
||||||
@ -293,7 +286,6 @@ class SavedSearchBox(QComboBox):
|
|||||||
|
|
||||||
# SIGNALed from the main UI
|
# SIGNALed from the main UI
|
||||||
def save_search_button_clicked(self):
|
def save_search_button_clicked(self):
|
||||||
#print 'in save_search_button_clicked'
|
|
||||||
name = unicode(self.currentText())
|
name = unicode(self.currentText())
|
||||||
if self.help_state or not name.strip():
|
if self.help_state or not name.strip():
|
||||||
name = unicode(self.search_box.text()).replace('"', '')
|
name = unicode(self.search_box.text()).replace('"', '')
|
||||||
@ -310,10 +302,7 @@ class SavedSearchBox(QComboBox):
|
|||||||
|
|
||||||
# SIGNALed from the main UI
|
# SIGNALed from the main UI
|
||||||
def copy_search_button_clicked (self):
|
def copy_search_button_clicked (self):
|
||||||
#print 'in copy_search_button_clicked'
|
|
||||||
idx = self.currentIndex();
|
idx = self.currentIndex();
|
||||||
if idx < 0:
|
if idx < 0:
|
||||||
return
|
return
|
||||||
self.search_box.set_search_string(self.saved_searches.lookup(unicode(self.currentText())))
|
self.search_box.set_search_string(self.saved_searches.lookup(unicode(self.currentText())))
|
||||||
|
|
||||||
|
|
@ -212,7 +212,6 @@ class SearchQueryParser(object):
|
|||||||
location = argument[0]
|
location = argument[0]
|
||||||
query = argument[1]
|
query = argument[1]
|
||||||
if location.lower() == 'search':
|
if location.lower() == 'search':
|
||||||
# print "looking for named search " + query
|
|
||||||
if query.startswith('='):
|
if query.startswith('='):
|
||||||
query = query[1:]
|
query = query[1:]
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user