summaryrefslogtreecommitdiffstats
path: root/languages/cpp/qtdesignercppintegration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/qtdesignercppintegration.cpp')
-rw-r--r--languages/cpp/qtdesignercppintegration.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/languages/cpp/qtdesignercppintegration.cpp b/languages/cpp/qtdesignercppintegration.cpp
index b39d3ea1..943fda92 100644
--- a/languages/cpp/qtdesignercppintegration.cpp
+++ b/languages/cpp/qtdesignercppintegration.cpp
@@ -70,7 +70,7 @@ void QtDesignerCppIntegration::addFunctionToClass( KInterfaceDesigner::Function
TQString access = accessID( *it );
TQPair<int, int> funEndPoint = tqMakePair( funEndLine, funEndColumn );
- if ( !points.tqcontains( access ) || points[ access ] < funEndPoint )
+ if ( !points.contains( access ) || points[ access ] < funEndPoint )
{
points[ access ] = funEndPoint;
}
@@ -91,7 +91,7 @@ void QtDesignerCppIntegration::addFunctionToClass( KInterfaceDesigner::Function
str = " " + str;
TQPair<int, int> pt;
- if ( points.tqcontains( access ) )
+ if ( points.contains( access ) )
{
pt = points[ access ];
}
@@ -103,7 +103,7 @@ void QtDesignerCppIntegration::addFunctionToClass( KInterfaceDesigner::Function
}
editIface->insertText( pt.first + insertedLine + 1, 0 /*pt.second*/, str );
- insertedLine += str.tqcontains( TQChar( '\n' ) );
+ insertedLine += str.contains( TQChar( '\n' ) );
CppSupportPart *cppPart = dynamic_cast<CppSupportPart *>( m_part );
cppPart->backgroundParser() ->addFile( klass->fileName() );
@@ -121,7 +121,7 @@ void QtDesignerCppIntegration::addFunctionToClass( KInterfaceDesigner::Function
TQFileInfo fi( klass->fileName() );
TQString implementationFile = fi.absFilePath();
- implementationFile.tqreplace( ".h", ".cpp" );
+ implementationFile.replace( ".h", ".cpp" );
TQFileInfo fileInfo( implementationFile );
if ( !TQFile::exists( fileInfo.absFilePath() ) )
@@ -158,7 +158,7 @@ void QtDesignerCppIntegration::addFunctionToClass( KInterfaceDesigner::Function
}
else
{
- if ( editIface->textLine( line ).tqcontains( TQRegExp( ".*#include .*\\.tqmoc.*" ) ) )
+ if ( editIface->textLine( line ).contains( TQRegExp( ".*#include .*\\.tqmoc.*" ) ) )
atLine = line;
break;
}
@@ -210,7 +210,7 @@ TQString QtDesignerCppIntegration::accessID( FunctionDom fun ) const
void QtDesignerCppIntegration::processImplementationName( TQString &name )
{
- name.tqreplace( ".h", ".cpp" );
+ name.replace( ".h", ".cpp" );
}
#include "qtdesignercppintegration.moc"