summaryrefslogtreecommitdiffstats
path: root/ksig/siglistviewitem.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 17:00:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 17:00:31 +0000
commit395a904bff7b4d6ead445c342f7ac0c5fbf29121 (patch)
tree9829cadb79d2cc7c29a940627fadb28b11e54150 /ksig/siglistviewitem.cpp
parent399f47c376fdf4d19192732a701ea9578d11619d (diff)
downloadtdeaddons-395a904bff7b4d6ead445c342f7ac0c5fbf29121.tar.gz
tdeaddons-395a904bff7b4d6ead445c342f7ac0c5fbf29121.zip
TQt4 port kdeaddons
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1237404 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksig/siglistviewitem.cpp')
-rw-r--r--ksig/siglistviewitem.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/ksig/siglistviewitem.cpp b/ksig/siglistviewitem.cpp
index 0442c2e..a9f4f5e 100644
--- a/ksig/siglistviewitem.cpp
+++ b/ksig/siglistviewitem.cpp
@@ -29,7 +29,7 @@
SigListViewItem::~SigListViewItem()
{
// remove the element from the tree
- element.parentNode().removeChild(element);
+ element.tqparentNode().removeChild(element);
}
TQString SigListViewItem::text() const
@@ -56,14 +56,14 @@ void SigListViewItem::refreshText()
void SigListViewItem::nodeToText(const TQDomNode &n, TQString &s)
{
- TQDomNodeList children = n.childNodes();
+ TQDomNodeList tqchildren = n.childNodes();
- for(uint i = 0; i < children.count(); i++) {
- if(children.item(i).isText())
- s.append(children.item(i).toText().data());
+ for(uint i = 0; i < tqchildren.count(); i++) {
+ if(tqchildren.item(i).isText())
+ s.append(tqchildren.item(i).toText().data());
else {
- nodeToText(children.item(i), s);
- if(children.item(i).isElement() && children.item(i).toElement().tagName() == "p") {
+ nodeToText(tqchildren.item(i), s);
+ if(tqchildren.item(i).isElement() && tqchildren.item(i).toElement().tagName() == "p") {
s.append("\n");
}
}
@@ -74,14 +74,14 @@ void SigListViewItem::nodeToText(const TQDomNode &n, TQString &s)
// private members
////////////////////////////////////////////////////////////////////////////////
-SigListViewItem::SigListViewItem(TQListView *parent, TQDomDocument document, TQDomElement signatureElement) : KListViewItem(parent)
+SigListViewItem::SigListViewItem(TQListView *tqparent, TQDomDocument document, TQDomElement signatureElement) : KListViewItem(tqparent)
{
emptySigString = i18n("<empty signature>");
doc = document;
element = signatureElement;
nodeToText(element, elementText);
- elementText.replace(TQRegExp("\n$"), "");
+ elementText.tqreplace(TQRegExp("\n$"), "");
dirty = false;
refreshText();
@@ -90,12 +90,12 @@ SigListViewItem::SigListViewItem(TQListView *parent, TQDomDocument document, TQD
void SigListViewItem::render()
{
if(dirty) {
- TQDomNodeList children = element.childNodes();
+ TQDomNodeList tqchildren = element.childNodes();
while(!element.firstChild().isNull())
element.removeChild(element.firstChild());
- // create new children
+ // create new tqchildren
TQStringList lines = TQStringList::split("\n", elementText, true);
for(TQStringList::Iterator it = lines.begin(); it != lines.end(); it++) {