summaryrefslogtreecommitdiffstats
path: root/ksig/siglistviewitem.cpp
diff options
context:
space:
mode:
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++) {