From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kandy/src/commandset.cpp | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'kandy/src/commandset.cpp') diff --git a/kandy/src/commandset.cpp b/kandy/src/commandset.cpp index f44899cac..17a50b811 100644 --- a/kandy/src/commandset.cpp +++ b/kandy/src/commandset.cpp @@ -22,9 +22,9 @@ without including the source code for Qt in the source distribution. */ -#include -#include -#include +#include +#include +#include #include @@ -51,12 +51,12 @@ void CommandSet::deleteCommand(ATCommand *command) mList.removeRef(command); } -bool CommandSet::loadFile(const QString& filename) +bool CommandSet::loadFile(const TQString& filename) { // kdDebug(5960) << "CommandSet::loadFile(): " << filename << endl; - QDomDocument doc("Kandy"); - QFile f(filename); + TQDomDocument doc("Kandy"); + TQFile f(filename); if (!f.open(IO_ReadOnly)) return false; if (!doc.setContent(&f)) { @@ -65,9 +65,9 @@ bool CommandSet::loadFile(const QString& filename) } f.close(); - QDomNodeList commands = doc.elementsByTagName("command"); + TQDomNodeList commands = doc.elementsByTagName("command"); for(uint i=0;isetCmdName(c->attribute("name","unknown")); command->setCmdString(c->attribute("string","at")); command->setHexOutput(c->attribute("hexoutput","n") == "y"); - QDomNode n = c->firstChild(); + TQDomNode n = c->firstChild(); while(!n.isNull()) { - QDomElement e = n.toElement(); + TQDomElement e = n.toElement(); if (!e.isNull()) { ATParameter *p = new ATParameter; p->setName(e.attribute("name","unnamed")); @@ -128,25 +128,25 @@ void CommandSet::loadCommand(ATCommand *command,QDomElement *c) } } -void CommandSet::saveCommand(ATCommand *command,QDomDocument *doc, - QDomElement *parent) +void CommandSet::saveCommand(ATCommand *command,TQDomDocument *doc, + TQDomElement *parent) { - QDomElement c = doc->createElement("command"); + TQDomElement c = doc->createElement("command"); c.setAttribute("name",command->cmdName()); c.setAttribute("string",command->cmdString()); c.setAttribute("hexoutput",command->hexOutput() ? "y" : "n"); parent->appendChild(c); - QPtrList paras = command->parameters(); + TQPtrList paras = command->parameters(); for(uint i=0;icreateElement("parameter"); + TQDomElement e = doc->createElement("parameter"); e.setAttribute("name",p->name()); e.setAttribute("value",p->value()); e.setAttribute("userinput",p->userInput() ? "y" : "n"); -- cgit v1.2.1