diff options
Diffstat (limited to 'lib/util/kdeveditorutil.cpp')
| -rw-r--r-- | lib/util/kdeveditorutil.cpp | 20 | 
1 files changed, 10 insertions, 10 deletions
| diff --git a/lib/util/kdeveditorutil.cpp b/lib/util/kdeveditorutil.cpp index fdf044d5..ca946ce6 100644 --- a/lib/util/kdeveditorutil.cpp +++ b/lib/util/kdeveditorutil.cpp @@ -33,15 +33,15 @@ bool KDevEditorUtil::currentPositionReal( unsigned int * line, unsigned int * co  	return true;  } -QString KDevEditorUtil::currentLine( KTextEditor::Document * doc, KTextEditor::View * view ) +TQString KDevEditorUtil::currentLine( KTextEditor::Document * doc, KTextEditor::View * view )  {  	KTextEditor::EditInterface * editIface = dynamic_cast<KTextEditor::EditInterface*>( doc ); -	if ( !editIface ) return QString(); +	if ( !editIface ) return TQString();  	view = view ? view : dynamic_cast<KTextEditor::View*>( doc->widget() );  	KTextEditor::ViewCursorInterface * cursorIface = dynamic_cast<KTextEditor::ViewCursorInterface*>( view ); -	if ( !cursorIface ) return QString(); +	if ( !cursorIface ) return TQString();  	uint line = 0;  	uint col = 0; @@ -50,21 +50,21 @@ QString KDevEditorUtil::currentLine( KTextEditor::Document * doc, KTextEditor::V  	return editIface->textLine(line);  } -QString KDevEditorUtil::currentWord( KTextEditor::Document * doc, KTextEditor::View * view ) +TQString KDevEditorUtil::currentWord( KTextEditor::Document * doc, KTextEditor::View * view )  {  	KTextEditor::EditInterface * editIface = dynamic_cast<KTextEditor::EditInterface*>( doc ); -	if ( !editIface ) return QString(); +	if ( !editIface ) return TQString();  	view = view ? view : dynamic_cast<KTextEditor::View*>( doc->widget() );  	KTextEditor::ViewCursorInterface * cursorIface = dynamic_cast<KTextEditor::ViewCursorInterface*>( view ); -	if ( !cursorIface ) return QString(); +	if ( !cursorIface ) return TQString();  	uint line = 0;  	uint col = 0;  	cursorIface->cursorPositionReal(&line, &col); -	QString linestr = editIface->textLine(line); +	TQString linestr = editIface->textLine(line);  	int startPos = QMAX( QMIN( (int)col, (int)linestr.length()-1 ), 0 );  	int endPos = startPos; @@ -74,14 +74,14 @@ QString KDevEditorUtil::currentWord( KTextEditor::Document * doc, KTextEditor::V  	while (endPos < (int)linestr.length() && ( linestr[endPos].isLetterOrNumber() || linestr[endPos] == '_' ) )  		endPos++; -	return ( ( startPos == endPos ) ? QString::null : linestr.mid( startPos+1, endPos-startPos-1 ) ); +	return ( ( startPos == endPos ) ? TQString::null : linestr.mid( startPos+1, endPos-startPos-1 ) );  } -QString KDevEditorUtil::currentSelection( KTextEditor::Document * doc ) +TQString KDevEditorUtil::currentSelection( KTextEditor::Document * doc )  {  	KTextEditor::SelectionInterface * selectIface = dynamic_cast<KTextEditor::SelectionInterface*>( doc ); -	return selectIface ? selectIface->selection() : QString(); +	return selectIface ? selectIface->selection() : TQString();  } | 
