diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /karm/plannerparser.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'karm/plannerparser.cpp')
-rw-r--r-- | karm/plannerparser.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/karm/plannerparser.cpp b/karm/plannerparser.cpp index 21e0c4f76..67f7bd53f 100644 --- a/karm/plannerparser.cpp +++ b/karm/plannerparser.cpp @@ -48,22 +48,22 @@ test cases: return true; } - bool PlannerParser::startElement( const QString&, const QString&, const QString& qName, const QXmlAttributes& att ) + bool PlannerParser::startElement( const TQString&, const TQString&, const TQString& qName, const TQXmlAttributes& att ) { kdDebug() << "entering startElement" << endl; - QString taskName; + TQString taskName; int taskComplete=0; // only <task>s within <tasks> are processed - if (qName == QString::fromLatin1("tasks")) withInTasks=true; - if ((qName == QString::fromLatin1("task")) && (withInTasks)) + if (qName == TQString::fromLatin1("tasks")) withInTasks=true; + if ((qName == TQString::fromLatin1("task")) && (withInTasks)) { // find out name and percent-complete for (int i=0; i<att.length(); i++) { - if (att.qName(i) == QString::fromLatin1("name")) taskName=att.value(i); - if (att.qName(i)==QString::fromLatin1("percent-complete")) taskComplete=att.value(i).toInt(); + if (att.qName(i) == TQString::fromLatin1("name")) taskName=att.value(i); + if (att.qName(i)==TQString::fromLatin1("percent-complete")) taskComplete=att.value(i).toInt(); } // at the moment, task is still the old task or the old father task (if an endElement occurred) or not existing (if the @@ -87,7 +87,7 @@ test cases: return true; } - bool PlannerParser::endElement( const QString&, const QString&, const QString& qName) + bool PlannerParser::endElement( const TQString&, const TQString&, const TQString& qName) { // only <task>s within <tasks> increased level, so only decrease for <task>s within <tasks> if (withInTasks) |