diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
commit | 48d4a26399959121f33d2bc3bfe51c7827b654fc (patch) | |
tree | 5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /languages/ada/addclass.cpp | |
parent | 7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff) | |
download | tdevelop-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 'languages/ada/addclass.cpp')
-rw-r--r-- | languages/ada/addclass.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/languages/ada/addclass.cpp b/languages/ada/addclass.cpp index ee28ff93..8605e42a 100644 --- a/languages/ada/addclass.cpp +++ b/languages/ada/addclass.cpp @@ -33,7 +33,7 @@ AddClassInfo::AddClassInfo() TQString AddClassInfo::adaFileName() const { TQString dest = className; - dest.replace(TQRegExp("\\."), "/"); + dest.tqreplace(TQRegExp("\\."), "/"); return sourceDir + "/" + dest + ".ada"; } @@ -183,12 +183,12 @@ bool AddClass::generate() " * published by the Free Software Foundation; either version 2 of the\n" " * License, or (at your option) any later version.\n"; } - else if (m_info.license == "QPL") + else if (m_info.license == "TQPL") { code += " * This program may be distributed under the terms of the Q Public\n" " * License as defined by Trolltech AS of Norway and appearing in the\n" - " * file LICENSE.QPL included in the packaging of this file.\n" + " * file LICENSE.TQPL included in the packaging of this file.\n" " *\n" " * This program is distributed in the hope that it will be useful,\n" " * but WITHOUT ANY WARRANTY; without even the implied warranty of\n" @@ -206,7 +206,7 @@ bool AddClass::generate() // find class and package name TQString className, packageName; - int i = m_info.className.findRev('.'); + int i = m_info.className.tqfindRev('.'); if (i == -1) { packageName = ""; @@ -322,7 +322,7 @@ bool AddClass::generate() // create directories TQString dest = packageName; - dest.replace(TQRegExp("\\."), "/"); + dest.tqreplace(TQRegExp("\\."), "/"); dest = m_info.sourceDir + "/" + dest; if (!makeDirs(dest)) |