summaryrefslogtreecommitdiffstats
path: root/parts/appwizard/kdevlicense.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
commit48d4a26399959121f33d2bc3bfe51c7827b654fc (patch)
tree5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /parts/appwizard/kdevlicense.cpp
parent7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff)
downloadtdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz
tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/appwizard/kdevlicense.cpp')
-rw-r--r--parts/appwizard/kdevlicense.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/parts/appwizard/kdevlicense.cpp b/parts/appwizard/kdevlicense.cpp
index 5e189422..688c3177 100644
--- a/parts/appwizard/kdevlicense.cpp
+++ b/parts/appwizard/kdevlicense.cpp
@@ -70,12 +70,12 @@ TQString KDevLicense::assemble( KDevFile::CommentingStyle commentingStyle, const
strFill + " * $EMAIL$ *\n" +
strFill + " * *\n";
-// str = str.arg(TQDate::currentDate().year()).arg(author.left(45),-45).arg(email.left(67),-67);
+// str = str.tqarg(TQDate::tqcurrentDate().year()).tqarg(author.left(45),-45).tqarg(email.left(67),-67);
TQStringList::Iterator it;
for( it = m_rawLines.begin(); it != m_rawLines.end(); ++it )
{
- str += TQString( "%1 * %2 *\n").arg( strFill ).arg( *it, -69 );
+ str += TQString( "%1 * %2 *\n").tqarg( strFill ).tqarg( *it, -69 );
}
str += strFill + " ***************************************************************************/\n";
@@ -87,28 +87,28 @@ TQString KDevLicense::assemble( KDevFile::CommentingStyle commentingStyle, const
return str;
case KDevFile::PascalStyle:
- str.replace(TQRegExp("/\\**\n \\*"), "{\n ");
- str.replace(TQRegExp("\\*\n \\*"), " \n ");
- str.replace(TQRegExp(" *\\**/\n"), "}\n");
+ str.tqreplace(TQRegExp("/\\**\n \\*"), "{\n ");
+ str.tqreplace(TQRegExp("\\*\n \\*"), " \n ");
+ str.tqreplace(TQRegExp(" *\\**/\n"), "}\n");
return str;
case KDevFile::AdaStyle:
- str.replace(TQRegExp("/\\*"), "--");
- str.replace(TQRegExp(" \\*"), "--");
- str.replace(TQRegExp("\\*/"), "*");
+ str.tqreplace(TQRegExp("/\\*"), "--");
+ str.tqreplace(TQRegExp(" \\*"), "--");
+ str.tqreplace(TQRegExp("\\*/"), "*");
return str;
case KDevFile::BashStyle:
- str.replace(TQRegExp("\\*|/"), "#");
- str.replace(TQRegExp("\n ##"), "\n##");
- str.replace(TQRegExp("\n #"), "\n# ");
+ str.tqreplace(TQRegExp("\\*|/"), "#");
+ str.tqreplace(TQRegExp("\n ##"), "\n##");
+ str.tqreplace(TQRegExp("\n #"), "\n# ");
return str;
case KDevFile::XMLStyle:
- str.replace(TQRegExp("/\\*"), "<!--");
- str.replace(TQRegExp("\n \\*"), "\n<!--");
- str.replace(TQRegExp("\\*/?\n"), "-->\n");
- str.replace(TQRegExp("\\*"), "_");
+ str.tqreplace(TQRegExp("/\\*"), "<!--");
+ str.tqreplace(TQRegExp("\n \\*"), "\n<!--");
+ str.tqreplace(TQRegExp("\\*/?\n"), "-->\n");
+ str.tqreplace(TQRegExp("\\*"), "_");
return str;
}