From 395a904bff7b4d6ead445c342f7ac0c5fbf29121 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 18 Jun 2011 17:00:31 +0000 Subject: 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 --- ksig/siglistviewitem.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'ksig/siglistviewitem.cpp') 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(""); 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++) { -- cgit v1.2.1