summaryrefslogtreecommitdiffstats
path: root/languages/kjssupport/subclassingdlg.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/kjssupport/subclassingdlg.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/kjssupport/subclassingdlg.cpp')
-rw-r--r--languages/kjssupport/subclassingdlg.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/languages/kjssupport/subclassingdlg.cpp b/languages/kjssupport/subclassingdlg.cpp
index a74b1e00..a4697569 100644
--- a/languages/kjssupport/subclassingdlg.cpp
+++ b/languages/kjssupport/subclassingdlg.cpp
@@ -165,7 +165,7 @@ m_newFileNames(dummy), m_kjsSupport( kjsSupport )
bool SubclassingDlg::alreadyInSubclass(const TQString &method)
{
for (uint i=0;i<m_parsedMethods.count();i++)
- if (method.tqfind(m_parsedMethods[i])==0)
+ if (method.find(m_parsedMethods[i])==0)
return true;
return false;
}
@@ -293,15 +293,15 @@ void SubclassingDlg::updateDlg()
{
}
-void SubclassingDlg::tqreplace(TQString &string, const TQString& search, const TQString& tqreplace)
+void SubclassingDlg::replace(TQString &string, const TQString& search, const TQString& replace)
//==========================================================================================
{
- int nextPos = string.tqfind(search);
+ int nextPos = string.find(search);
unsigned int searchLength = search.length();
while (nextPos>-1)
{
- string = string.tqreplace(nextPos,searchLength,tqreplace);
- nextPos = string.tqfind(search,nextPos+tqreplace.length());
+ string = string.replace(nextPos,searchLength,replace);
+ nextPos = string.find(search,nextPos+replace.length());
}
}
@@ -324,23 +324,23 @@ bool SubclassingDlg::loadBuffer(TQString &buffer, const TQString& filename)
bool SubclassingDlg::replaceKeywords(TQString &buffer,bool canBeModal)
//===================================================================
{
- tqreplace(buffer,"$NEWFILENAMEUC$",m_edFileName->text().upper());
- tqreplace(buffer,"$BASEFILENAMELC$",m_formName.lower());
- tqreplace(buffer,"$BASEFILENAME$",m_formName);
- tqreplace(buffer,"$NEWCLASS$",m_edClassName->text());
- tqreplace(buffer,"$BASECLASS$",m_baseClassName);
- tqreplace(buffer,"$NEWFILENAMELC$",m_edFileName->text().lower());
+ replace(buffer,"$NEWFILENAMEUC$",m_edFileName->text().upper());
+ replace(buffer,"$BASEFILENAMELC$",m_formName.lower());
+ replace(buffer,"$BASEFILENAME$",m_formName);
+ replace(buffer,"$NEWCLASS$",m_edClassName->text());
+ replace(buffer,"$BASECLASS$",m_baseClassName);
+ replace(buffer,"$NEWFILENAMELC$",m_edFileName->text().lower());
if (canBeModal)
{
- tqreplace(buffer,"$CAN_BE_MODAL_H$",", bool modal = FALSE");
- tqreplace(buffer,"$CAN_BE_MODAL_CPP1$",", bool modal");
- tqreplace(buffer,"$CAN_BE_MODAL_CPP2$",", modal");
+ replace(buffer,"$CAN_BE_MODAL_H$",", bool modal = FALSE");
+ replace(buffer,"$CAN_BE_MODAL_CPP1$",", bool modal");
+ replace(buffer,"$CAN_BE_MODAL_CPP2$",", modal");
}
else
{
- tqreplace(buffer,"$CAN_BE_MODAL_H$","");
- tqreplace(buffer,"$CAN_BE_MODAL_CPP1$","");
- tqreplace(buffer,"$CAN_BE_MODAL_CPP2$","");
+ replace(buffer,"$CAN_BE_MODAL_H$","");
+ replace(buffer,"$CAN_BE_MODAL_CPP1$","");
+ replace(buffer,"$CAN_BE_MODAL_CPP2$","");
}
return true;
@@ -397,8 +397,8 @@ void SubclassingDlg::accept()
TQFileInfo fi(m_filename + ".js");
TQString module = fi.baseName();
TQString basefilename = fi.baseName(true);
- buffer.tqreplace(TQRegExp("\\$MODULE\\$"),module);
- buffer.tqreplace(TQRegExp("\\$FILENAME\\$"),basefilename);
+ buffer.replace(TQRegExp("\\$MODULE\\$"),module);
+ buffer.replace(TQRegExp("\\$FILENAME\\$"),basefilename);
}
else
loadBuffer(buffer,m_filename+".js");
@@ -419,11 +419,11 @@ void SubclassingDlg::accept()
slitem->m_alreadyInSubclass)
continue;
TQString impl = implementation;
- tqreplace(impl,"$RETURNTYPE$",slitem->m_returnType);
- tqreplace(impl,"$NEWCLASS$",m_edClassName->text());
- tqreplace(impl,"$METHOD$", slitem->m_methodName);
- tqreplace(impl,"$TQTBASECLASS$", m_qtBaseClassName);
- tqreplace(buffer,"/*$SPECIALIZATION$*/",impl);
+ replace(impl,"$RETURNTYPE$",slitem->m_returnType);
+ replace(impl,"$NEWCLASS$",m_edClassName->text());
+ replace(impl,"$METHOD$", slitem->m_methodName);
+ replace(impl,"$TQTBASECLASS$", m_qtBaseClassName);
+ replace(buffer,"/*$SPECIALIZATION$*/",impl);
}
kdDebug() << buffer << endl;