summaryrefslogtreecommitdiffstats
path: root/languages/cpp/qtdesignercppintegration.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit330c33ab6f97b279737bf9527c9add7bb1475450 (patch)
tree85cb998d3077ae295d65944ebb4d0189fc660ead /languages/cpp/qtdesignercppintegration.cpp
parent093de0db4fea89b3f94a2359c6981f353d035eb7 (diff)
downloadtdevelop-330c33ab6f97b279737bf9527c9add7bb1475450.tar.gz
tdevelop-330c33ab6f97b279737bf9527c9add7bb1475450.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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"