texteditor.cpp
changeset 829 832e96c9abb6
parent 825 1ad892c1a709
child 842 bec082472471
     1.1 --- a/texteditor.cpp	Mon Mar 08 12:22:15 2010 +0000
     1.2 +++ b/texteditor.cpp	Mon Mar 08 12:24:26 2010 +0000
     1.3 @@ -232,12 +232,18 @@
     1.4  	setFontHint (note.getFontHint() );
     1.5  }
     1.6  
     1.7 -bool TextEditor::findText(const QString &t, const QTextDocument::FindFlags &flags)
     1.8 +bool TextEditor::findText(const QString &t, const QTextDocument::FindFlags &flags, QTextCursor &cursor)
     1.9  {
    1.10  	if (e->find (t,flags))
    1.11 +	{
    1.12 +		cursor=e->textCursor();
    1.13  		return true;
    1.14 +	}	
    1.15  	else	
    1.16 +	{
    1.17 +		cursor=QTextCursor();
    1.18  		return false;
    1.19 +	}
    1.20  }
    1.21  
    1.22  void TextEditor::setupFileActions()