Updated debug info
This commit is contained in:
@@ -547,6 +547,9 @@ class GuiDocEditor(QTextEdit):
|
|||||||
theCursor.endEditBlock()
|
theCursor.endEditBlock()
|
||||||
theCursor.setPosition(xPos)
|
theCursor.setPosition(xPos)
|
||||||
self.setTextCursor(theCursor)
|
self.setTextCursor(theCursor)
|
||||||
|
logger.verbose("Replaced occurrence of '%s' with '%s' on line %d" % (
|
||||||
|
searchFor, replWith, theCursor.blockNumber()
|
||||||
|
))
|
||||||
if searchFor != "":
|
if searchFor != "":
|
||||||
self._findNext()
|
self._findNext()
|
||||||
return
|
return
|
||||||
|
|||||||
+1
-5
@@ -81,15 +81,11 @@ class GuiSearchBar(QFrame):
|
|||||||
##
|
##
|
||||||
|
|
||||||
def setSearchText(self, theText):
|
def setSearchText(self, theText):
|
||||||
|
|
||||||
if not self.isVisible():
|
if not self.isVisible():
|
||||||
self.setVisible(True)
|
self.setVisible(True)
|
||||||
|
|
||||||
self.searchBox.setText(theText)
|
self.searchBox.setText(theText)
|
||||||
self.searchBox.setFocus(True)
|
self.searchBox.setFocus(True)
|
||||||
|
logger.verbose("Setting search text to '%s'" % theText)
|
||||||
logger.debug("Setting search text to '%s'" % theText)
|
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def setReplaceText(self, theText):
|
def setReplaceText(self, theText):
|
||||||
|
|||||||
Reference in New Issue
Block a user