diff -r 1ad892c1a709 -r 31841b366d5e texteditor.cpp --- a/texteditor.cpp Tue Mar 02 13:59:19 2010 +0000 +++ b/texteditor.cpp Mon Mar 15 11:49:42 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()