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 6744f87..0442c2e 100644
--- a/ksig/siglistviewitem.cpp
+++ b/ksig/siglistviewitem.cpp
@@ -20,7 +20,7 @@
#include <klocale.h>
#include <kdebug.h>
-#include <qregexp.h>
+#include <tqregexp.h>
////////////////////////////////////////////////////////////////////////////////
// public members
@@ -32,12 +32,12 @@ SigListViewItem::~SigListViewItem()
element.parentNode().removeChild(element);
}
-QString SigListViewItem::text() const
+TQString SigListViewItem::text() const
{
return(elementText);
}
-void SigListViewItem::setText(const QString &t)
+void SigListViewItem::setText(const TQString &t)
{
if(t != elementText) {
elementText = t;
@@ -54,9 +54,9 @@ void SigListViewItem::refreshText()
KListViewItem::setText(0, emptySigString);
}
-void SigListViewItem::nodeToText(const QDomNode &n, QString &s)
+void SigListViewItem::nodeToText(const TQDomNode &n, TQString &s)
{
- QDomNodeList children = n.childNodes();
+ TQDomNodeList children = n.childNodes();
for(uint i = 0; i < children.count(); i++) {
if(children.item(i).isText())
@@ -74,14 +74,14 @@ void SigListViewItem::nodeToText(const QDomNode &n, QString &s)
// private members
////////////////////////////////////////////////////////////////////////////////
-SigListViewItem::SigListViewItem(QListView *parent, QDomDocument document, QDomElement signatureElement) : KListViewItem(parent)
+SigListViewItem::SigListViewItem(TQListView *parent, TQDomDocument document, TQDomElement signatureElement) : KListViewItem(parent)
{
emptySigString = i18n("<empty signature>");
doc = document;
element = signatureElement;
nodeToText(element, elementText);
- elementText.replace(QRegExp("\n$"), "");
+ elementText.replace(TQRegExp("\n$"), "");
dirty = false;
refreshText();
@@ -90,16 +90,16 @@ SigListViewItem::SigListViewItem(QListView *parent, QDomDocument document, QDomE
void SigListViewItem::render()
{
if(dirty) {
- QDomNodeList children = element.childNodes();
+ TQDomNodeList children = element.childNodes();
while(!element.firstChild().isNull())
element.removeChild(element.firstChild());
// create new children
- QStringList lines = QStringList::split("\n", elementText, true);
+ TQStringList lines = TQStringList::split("\n", elementText, true);
- for(QStringList::Iterator it = lines.begin(); it != lines.end(); it++) {
- QDomElement p = doc.createElement("p");
+ for(TQStringList::Iterator it = lines.begin(); it != lines.end(); it++) {
+ TQDomElement p = doc.createElement("p");
element.appendChild(p);
p.appendChild(doc.createTextNode(*it));
}