diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /akregator/src/tag.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'akregator/src/tag.cpp')
-rw-r--r-- | akregator/src/tag.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/akregator/src/tag.cpp b/akregator/src/tag.cpp index 251c4e633..12cc7a7ff 100644 --- a/akregator/src/tag.cpp +++ b/akregator/src/tag.cpp @@ -26,20 +26,20 @@ #include "tag.h" #include "tagset.h" -#include <qstring.h> -#include <qvaluelist.h> +#include <tqstring.h> +#include <tqvaluelist.h> namespace Akregator { class Tag::TagPrivate : public Shared { public: - QString id; - QString name; - QString scheme; - QString icon; + TQString id; + TQString name; + TQString scheme; + TQString icon; - QValueList<TagSet*> tagSets; + TQValueList<TagSet*> tagSets; bool operator==(const TagPrivate& other) const { return id == other.id; // name is ignored! @@ -49,7 +49,7 @@ class Tag::TagPrivate : public Shared Tag::Tag() : d(new TagPrivate) {} -Tag::Tag(const QString& id, const QString& name, const QString& scheme) : d(new TagPrivate) +Tag::Tag(const TQString& id, const TQString& name, const TQString& scheme) : d(new TagPrivate) { d->id = id; d->name = name.isNull() ? id : name; @@ -57,7 +57,7 @@ Tag::Tag(const QString& id, const QString& name, const QString& scheme) : d(new d->icon = "rss_tag"; } -Tag Tag::fromCategory(const QString& term, const QString& scheme, const QString& name) +Tag Tag::fromCategory(const TQString& term, const TQString& scheme, const TQString& name) { Tag tag(scheme + "/" + term, name, scheme); return tag; @@ -106,38 +106,38 @@ bool Tag::isNull() const return d->id.isNull(); } -QString Tag::name() const +TQString Tag::name() const { return d->name; } -QString Tag::scheme() const +TQString Tag::scheme() const { return d->scheme; } -QString Tag::icon() const +TQString Tag::icon() const { return d->icon; } -void Tag::setIcon(const QString& icon) +void Tag::setIcon(const TQString& icon) { if (icon != d->icon) { d->icon = icon; - for (QValueList<TagSet*>::ConstIterator it = d->tagSets.begin(); it != d->tagSets.end(); ++it) + for (TQValueList<TagSet*>::ConstIterator it = d->tagSets.begin(); it != d->tagSets.end(); ++it) (*it)->tagUpdated(*this); } } -void Tag::setName(const QString& name) +void Tag::setName(const TQString& name) { if (name != d->name) { d->name = name; - for (QValueList<TagSet*>::ConstIterator it = d->tagSets.begin(); it != d->tagSets.end(); ++it) + for (TQValueList<TagSet*>::ConstIterator it = d->tagSets.begin(); it != d->tagSets.end(); ++it) (*it)->tagUpdated(*this); } } @@ -152,7 +152,7 @@ void Tag::removedFromTagSet(TagSet* tagSet) const d->tagSets.remove(tagSet); } -QString Tag::id() const +TQString Tag::id() const { return d->id; } |