summaryrefslogtreecommitdiffstats
path: root/kexi/formeditor/scripting
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-09 02:23:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-09 02:23:29 +0000
commit7c71ab86d1f7e387fc3df63b48df07231f111862 (patch)
tree30ba2d2f840ff5fd458b6113e9c3f2e8a71d510d /kexi/formeditor/scripting
parentafbfdc507bfaafc8824a9808311d57a9ece87510 (diff)
downloadkoffice-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')
-rw-r--r--kexi/formeditor/scripting/scriptIO.cpp26
-rw-r--r--kexi/formeditor/scripting/scriptIO.h10
2 files changed, 18 insertions, 18 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)
diff --git a/kexi/formeditor/scripting/scriptIO.h b/kexi/formeditor/scripting/scriptIO.h
index 319de0fd..9261d75c 100644
--- a/kexi/formeditor/scripting/scriptIO.h
+++ b/kexi/formeditor/scripting/scriptIO.h
@@ -42,17 +42,17 @@ class ScriptIO
/*! Save the evnts of a form.
Creates an \<events\> tag, and then one \<event\> tag for each event.
Each event tqcontains \<sender\> and \<receiver\> tags, with attributes depending on event type. */
- static bool saveFormEvents(TQDomNode &tqparentNode, FormScript *script);
- /*! Reads the \<events\> tag (\a tqparentNode), then creates and fills a FormScript object linked to this \a form.
+ static bool saveFormEvents(TQDomNode &parentNode, FormScript *script);
+ /*! Reads the \<events\> tag (\a parentNode), then creates and fills a FormScript object linked to this \a form.
The new FormScript object is then added to ScriptManager list.*/
- static bool loadFormEvents(TQDomNode &tqparentNode, Form *form, ScriptManager *manager);
+ static bool loadFormEvents(TQDomNode &parentNode, Form *form, ScriptManager *manager);
/*! Save only the events related to widget \a name in the FormScript \a fscript.
Used eg when copying/pasting widgets to keep also events related to it.*/
static bool saveAllEventsForWidget(TQObject *widget, FormScript *fscript, TQDomNode &node);
- static void saveEvent(Event *event, TQDomNode &tqparentNode);
- static void saveEventList(EventList *list, TQDomNode &tqparentNode);
+ static void saveEvent(Event *event, TQDomNode &parentNode);
+ static void saveEventList(EventList *list, TQDomNode &parentNode);
static void loadEvent(TQDomNode &node, EventList *list, Form *form);
protected: