summaryrefslogtreecommitdiffstats
path: root/ksig/siglistviewitem.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
commit7346aee26bf190a7e70333c40fab4caca847cd27 (patch)
tree4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /ksig/siglistviewitem.cpp
parent23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff)
downloadtdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz
tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 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 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));
}