From 48d4a26399959121f33d2bc3bfe51c7827b654fc Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 14 Jun 2011 16:45:05 +0000 Subject: 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 --- languages/ada/addclass.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'languages/ada/addclass.cpp') 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)) -- cgit v1.2.1