diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-09 02:23:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-09 02:23:29 +0000 |
commit | 7c71ab86d1f7e387fc3df63b48df07231f111862 (patch) | |
tree | 30ba2d2f840ff5fd458b6113e9c3f2e8a71d510d /kexi/formeditor/scripting/scriptIO.cpp | |
parent | afbfdc507bfaafc8824a9808311d57a9ece87510 (diff) | |
download | koffice-7c71ab86d1f7e387fc3df63b48df07231f111862.tar.gz koffice-7c71ab86d1f7e387fc3df63b48df07231f111862.zip |
Remove the tq in front of these incorrectly TQt4-converted methods/data members:
tqrepaint[...]
tqinvalidate[...]
tqparent[...]
tqmask[...]
tqlayout[...]
tqalignment[...]
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1240522 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kexi/formeditor/scripting/scriptIO.cpp')
-rw-r--r-- | kexi/formeditor/scripting/scriptIO.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kexi/formeditor/scripting/scriptIO.cpp b/kexi/formeditor/scripting/scriptIO.cpp index ee0b1f59..b124a99a 100644 --- a/kexi/formeditor/scripting/scriptIO.cpp +++ b/kexi/formeditor/scripting/scriptIO.cpp @@ -27,30 +27,30 @@ #include "main/scriptcontainer.h" bool -ScriptIO::saveFormEvents(TQDomNode &tqparentNode, FormScript *formScript) +ScriptIO::saveFormEvents(TQDomNode &parentNode, FormScript *formScript) { - TQDomDocument domDoc = tqparentNode.ownerDocument(); + TQDomDocument domDoc = parentNode.ownerDocument(); // Save the form's code if(!formScript->getCode().isEmpty()) { TQDomElement script = domDoc.createElement("script"); script.setAttribute("language", formScript->scriptContainer()->getInterpreterName()); - tqparentNode.appendChild(script); + parentNode.appendChild(script); TQDomText scriptCode = domDoc.createTextNode(formScript->getCode()); script.appendChild(scriptCode); } // Save all form events if(!formScript->eventList()->isEmpty()) - saveEventList(formScript->eventList(), tqparentNode); + saveEventList(formScript->eventList(), parentNode); return true; } bool -ScriptIO::loadFormEvents(TQDomNode &tqparentNode, Form *form, ScriptManager *manager) +ScriptIO::loadFormEvents(TQDomNode &parentNode, Form *form, ScriptManager *manager) { - TQDomElement script = tqparentNode.namedItem("script").toElement(); - TQDomElement events = tqparentNode.namedItem("events").toElement(); + TQDomElement script = parentNode.namedItem("script").toElement(); + TQDomElement events = parentNode.namedItem("events").toElement(); // Load script code FormScript *formScript = new FormScript(form, manager); @@ -76,15 +76,15 @@ ScriptIO::saveAllEventsForWidget(TQObject *widget, FormScript *formScript, TQDom } void -ScriptIO::saveEvent(Event *event, TQDomNode &tqparentNode) +ScriptIO::saveEvent(Event *event, TQDomNode &parentNode) { if(!event) return; - TQDomDocument domDoc = tqparentNode.ownerDocument(); + TQDomDocument domDoc = parentNode.ownerDocument(); TQDomElement eventNode = domDoc.createElement("event"); eventNode.setAttribute("type", event->type()); - tqparentNode.appendChild(eventNode); + parentNode.appendChild(eventNode); switch(event->type()) { case Event::Slot: { @@ -138,14 +138,14 @@ ScriptIO::saveEvent(Event *event, TQDomNode &tqparentNode) } void -ScriptIO::saveEventList(EventList *list, TQDomNode &tqparentNode) +ScriptIO::saveEventList(EventList *list, TQDomNode &parentNode) { if(!list || list->isEmpty()) return; - TQDomDocument domDoc = tqparentNode.ownerDocument(); + TQDomDocument domDoc = parentNode.ownerDocument(); TQDomElement events = domDoc.createElement("events"); - tqparentNode.appendChild(events); + parentNode.appendChild(events); TQValueListConstIterator<Event*> endIt = list->constEnd(); for(TQValueListConstIterator<Event*> it = list->constBegin(); it != endIt; ++it) |