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/commanditem.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'kandy/src/commanditem.cpp') diff --git a/kandy/src/commanditem.cpp b/kandy/src/commanditem.cpp index fde599c3..4785e89f 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 +#include #include @@ -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 paras = mCommand->parameters(); + TQPtrList paras = mCommand->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.3