diff options
Diffstat (limited to 'ksig/siglistviewitem.cpp')
-rw-r--r-- | ksig/siglistviewitem.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ksig/siglistviewitem.cpp b/ksig/siglistviewitem.cpp index 7f6d12f..0442c2e 100644 --- a/ksig/siglistviewitem.cpp +++ b/ksig/siglistviewitem.cpp @@ -56,14 +56,14 @@ void SigListViewItem::refreshText() void SigListViewItem::nodeToText(const TQDomNode &n, TQString &s) { - TQDomNodeList tqchildren = n.childNodes(); + TQDomNodeList children = n.childNodes(); - for(uint i = 0; i < tqchildren.count(); i++) { - if(tqchildren.item(i).isText()) - s.append(tqchildren.item(i).toText().data()); + for(uint i = 0; i < children.count(); i++) { + if(children.item(i).isText()) + s.append(children.item(i).toText().data()); else { - nodeToText(tqchildren.item(i), s); - if(tqchildren.item(i).isElement() && tqchildren.item(i).toElement().tagName() == "p") { + nodeToText(children.item(i), s); + if(children.item(i).isElement() && children.item(i).toElement().tagName() == "p") { s.append("\n"); } } @@ -90,12 +90,12 @@ SigListViewItem::SigListViewItem(TQListView *parent, TQDomDocument document, TQD void SigListViewItem::render() { if(dirty) { - TQDomNodeList tqchildren = element.childNodes(); + TQDomNodeList children = element.childNodes(); while(!element.firstChild().isNull()) element.removeChild(element.firstChild()); - // create new tqchildren + // create new children TQStringList lines = TQStringList::split("\n", elementText, true); for(TQStringList::Iterator it = lines.begin(); it != lines.end(); it++) { |