diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
commit | 48d4a26399959121f33d2bc3bfe51c7827b654fc (patch) | |
tree | 5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /lib/util/domutil.h | |
parent | 7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff) | |
download | tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip |
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/util/domutil.h')
-rw-r--r-- | lib/util/domutil.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/util/domutil.h b/lib/util/domutil.h index 08d2571a..394b3600 100644 --- a/lib/util/domutil.h +++ b/lib/util/domutil.h @@ -45,7 +45,7 @@ typedef TQValueList<DomPathElement> DomPath; class DomUtil { public: - typedef QPair<TQString, TQString> Pair; + typedef TQPair<TQString, TQString> Pair; typedef TQValueList<Pair> PairList; /** * Remove all child elements from a given element. @@ -54,7 +54,7 @@ public: /** * Reads a string entry. */ - static TQString readEntry(const TQDomDocument &doc, const TQString &path, const TQString &defaultEntry = TQString::null); + static TQString readEntry(const TQDomDocument &doc, const TQString &path, const TQString &defaultEntry = TQString()); /** * Reads a number entry. */ @@ -168,13 +168,13 @@ public: Retrieve an element specified with extended path examples: - - 1: "widget|class=QDialog/property|name=geometry" - or "widget|class=QDialog/property||1" + - 1: "widget|class=TQDialog/property|name=tqgeometry" + or "widget|class=TQDialog/property||1" - 2: "widget/property|name=caption/string" or "widget/property||2/string" . \verbatim - <widget class="TQDialog"> + <widget class=TQDIALOG_OBJECT_NAME_STRING> <property name="name"> <cstring>KdevFormName</cstring> </property> @@ -205,17 +205,17 @@ public: static bool saveDOMFile(TQDomDocument &doc, TQString filename); /** - * Remove all child text nodes of parent described in pathExt + * Remove all child text nodes of tqparent described in pathExt */ static bool removeTextNodes(TQDomDocument doc,TQString pathExt); /** - * Add child text node to parent described in pathExt + * Add child text node to tqparent described in pathExt */ static bool appendText(TQDomDocument doc, TQString pathExt, TQString text); /** - * Replace all chilt text nodes of parent described in pathExt with one new. + * Replace all chilt text nodes of tqparent described in pathExt with one new. */ static bool replaceText(TQDomDocument doc, TQString pathExt, TQString text); |