diff -r 1ad892c1a709 -r e4a44912646c texteditor.cpp --- a/texteditor.cpp Tue Mar 02 13:59:19 2010 +0000 +++ b/texteditor.cpp Thu Mar 18 11:38:14 2010 +0000 @@ -232,12 +232,18 @@ setFontHint (note.getFontHint() ); } -bool TextEditor::findText(const QString &t, const QTextDocument::FindFlags &flags) +bool TextEditor::findText(const QString &t, const QTextDocument::FindFlags &flags, QTextCursor &cursor) { if (e->find (t,flags)) + { + cursor=e->textCursor(); return true; + } else + { + cursor=QTextCursor(); return false; + } } void TextEditor::setupFileActions()