From 99a2774ca6f1cab334de5d43fe36fc44ae889a4c Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 12 Jun 2011 01:36:19 +0000 Subject: TQt4 convert kdesdk This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236185 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kfile-plugins/c++/kfile_cpp.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'kfile-plugins/c++/kfile_cpp.cpp') diff --git a/kfile-plugins/c++/kfile_cpp.cpp b/kfile-plugins/c++/kfile_cpp.cpp index 0840ab7f..59f4fa7e 100644 --- a/kfile-plugins/c++/kfile_cpp.cpp +++ b/kfile-plugins/c++/kfile_cpp.cpp @@ -31,9 +31,9 @@ typedef KGenericFactory CppFactory; K_EXPORT_COMPONENT_FACTORY(kfile_cpp, CppFactory("kfile_cpp")) -KCppPlugin::KCppPlugin(TQObject *parent, const char *name, +KCppPlugin::KCppPlugin(TQObject *tqparent, const char *name, const TQStringList &args) - : KFilePlugin(parent, name, args) + : KFilePlugin(tqparent, name, args) { kdDebug(7034) << "c++ plugin\n"; makeMimeTypeInfo("text/x-c++src"); @@ -94,25 +94,25 @@ bool KCppPlugin::readInfo( KFileMetaInfo& info, uint ) continue; } - if (line.contains("/*")) inComment = true; + if (line.tqcontains("/*")) inComment = true; if (!inComment) { codeLines++; - if (line.contains(TQRegExp("^\\s*#\\s*include"))) Includes++; + if (line.tqcontains(TQRegExp("^\\s*#\\s*include"))) Includes++; - int pos = line.find("//"); + int pos = line.tqfind("//"); if (pos>=0) commentLines++; // truncate the comment - we don't want to count strings in it line.truncate(pos); - Strings+=line.contains(TQRegExp("\".*\"")); - Stringsi18n+=line.contains(TQRegExp("(?:i18n|I18N_NOOP)\\s*\\(")); + Strings+=line.tqcontains(TQRegExp("\".*\"")); + Stringsi18n+=line.tqcontains(TQRegExp("(?:i18n|I18N_NOOP)\\s*\\(")); } else commentLines++; - if (line.contains("*/")) inComment = false; + if (line.tqcontains("*/")) inComment = false; } KFileMetaInfoGroup group = appendGroup(info, "General"); -- cgit v1.2.1