diff -r fac2248e2afa -r 832e96c9abb6 texteditor.cpp --- a/texteditor.cpp Mon Mar 08 12:22:15 2010 +0000 +++ b/texteditor.cpp Mon Mar 08 12:24:26 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()