summaryrefslogtreecommitdiffstats
path: root/kandy/src/commanditem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kandy/src/commanditem.cpp')
-rw-r--r--kandy/src/commanditem.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kandy/src/commanditem.cpp b/kandy/src/commanditem.cpp
index fde599c3f..4785e89ff 100644
--- a/kandy/src/commanditem.cpp
+++ b/kandy/src/commanditem.cpp
@@ -22,7 +22,7 @@
without including the source code for Qt in the source distribution.
*/
-#include <qdom.h>
+#include <tqdom.h>
#include <kdebug.h>
@@ -30,8 +30,8 @@
#include "commanditem.h"
-CommandItem::CommandItem(QListView *listView,ATCommand *command)
- : QListViewItem(listView)
+CommandItem::CommandItem(TQListView *listView,ATCommand *command)
+ : TQListViewItem(listView)
{
mCommand = command;
@@ -47,15 +47,15 @@ ATCommand *CommandItem::command()
return mCommand;
}
-void CommandItem::load(QDomElement *c)
+void CommandItem::load(TQDomElement *c)
{
mCommand->setCmdName(c->attribute("name","unknown"));
mCommand->setCmdString(c->attribute("string","at"));
mCommand->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"));
@@ -70,24 +70,24 @@ void CommandItem::load(QDomElement *c)
setItemText();
}
-void CommandItem::save(QDomDocument *doc,QDomElement *parent)
+void CommandItem::save(TQDomDocument *doc,TQDomElement *parent)
{
- QDomElement c = doc->createElement("command");
+ TQDomElement c = doc->createElement("command");
c.setAttribute("name",mCommand->cmdName());
c.setAttribute("string",mCommand->cmdString());
c.setAttribute("hexoutput",mCommand->hexOutput() ? "y" : "n");
parent->appendChild(c);
- QPtrList<ATParameter> paras = mCommand->parameters();
+ TQPtrList<ATParameter> paras = mCommand->parameters();
for(uint i=0;i<paras.count();++i) {
saveParameter(paras.at(i),doc,&c);
}
}
-void CommandItem::saveParameter(ATParameter *p, QDomDocument *doc,
- QDomElement *parent)
+void CommandItem::saveParameter(ATParameter *p, TQDomDocument *doc,
+ TQDomElement *parent)
{
- QDomElement e = doc->createElement("parameter");
+ TQDomElement e = doc->createElement("parameter");
e.setAttribute("name",p->name());
e.setAttribute("value",p->value());
e.setAttribute("userinput",p->userInput() ? "y" : "n");