summaryrefslogtreecommitdiffstats
path: root/librss/article.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /librss/article.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'librss/article.cpp')
-rw-r--r--librss/article.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/librss/article.cpp b/librss/article.cpp
index 4161e0d5..8c6e8f91 100644
--- a/librss/article.cpp
+++ b/librss/article.cpp
@@ -43,13 +43,13 @@ Article::Article(const TQDomNode &node) : d(new Private)
{
TQString elemText;
- if (!(elemText = extractNode(node, TQString::fromLatin1("title"))).isNull())
+ if (!(elemText = extractNode(node, TQString::tqfromLatin1("title"))).isNull())
d->title = elemText;
- if (!(elemText = extractNode(node, TQString::fromLatin1("link"))).isNull())
+ if (!(elemText = extractNode(node, TQString::tqfromLatin1("link"))).isNull())
d->link = elemText;
- if (!(elemText = extractNode(node, TQString::fromLatin1("description"))).isNull())
+ if (!(elemText = extractNode(node, TQString::tqfromLatin1("description"))).isNull())
d->description = elemText;
- if (!(elemText = extractNode(node, TQString::fromLatin1("pubDate"))).isNull()) {
+ if (!(elemText = extractNode(node, TQString::tqfromLatin1("pubDate"))).isNull()) {
time_t _time = KRFCDate::parseDate(elemText);
/* \bug This isn't really the right way since it will set the date to
* Jan 1 1970, 1:00:00 if the passed date was invalid; this means that
@@ -57,7 +57,7 @@ Article::Article(const TQDomNode &node) : d(new Private)
*/
d->pubDate.setTime_t(_time);
}
- if (!(elemText = extractNode(node, TQString::fromLatin1("dc:date"))).isNull()) {
+ if (!(elemText = extractNode(node, TQString::tqfromLatin1("dc:date"))).isNull()) {
time_t _time = KRFCDate::parseDateISO8601(elemText);
/* \bug This isn't really the right way since it will set the date to
* Jan 1 1970, 1:00:00 if the passed date was invalid; this means that
@@ -66,12 +66,12 @@ Article::Article(const TQDomNode &node) : d(new Private)
d->pubDate.setTime_t(_time);
}
- TQDomNode n = node.namedItem(TQString::fromLatin1("guid"));
+ TQDomNode n = node.namedItem(TQString::tqfromLatin1("guid"));
if (!n.isNull()) {
d->guidIsPermaLink = true;
- if (n.toElement().attribute(TQString::fromLatin1("isPermaLink"), "true") == "false") d->guidIsPermaLink = false;
+ if (n.toElement().attribute(TQString::tqfromLatin1("isPermaLink"), "true") == "false") d->guidIsPermaLink = false;
- if (!(elemText = extractNode(node, TQString::fromLatin1("guid"))).isNull())
+ if (!(elemText = extractNode(node, TQString::tqfromLatin1("guid"))).isNull())
d->guid = elemText;
}
}
@@ -112,9 +112,9 @@ const TQDateTime &Article::pubDate() const
return d->pubDate;
}
-KURLLabel *Article::widget(TQWidget *parent, const char *name) const
+KURLLabel *Article::widget(TQWidget *tqparent, const char *name) const
{
- KURLLabel *label = new KURLLabel(d->link.url(), d->title, parent, name);
+ KURLLabel *label = new KURLLabel(d->link.url(), d->title, tqparent, name);
label->setUseTips(true);
if (!d->description.isNull())
label->setTipText(d->description);