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 /knode/knscoring.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 'knode/knscoring.cpp')
-rw-r--r-- | knode/knscoring.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/knode/knscoring.cpp b/knode/knscoring.cpp index cad44fc81..c83cbccde 100644 --- a/knode/knscoring.cpp +++ b/knode/knscoring.cpp @@ -12,7 +12,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US */ -#include <qstring.h> +#include <tqstring.h> #include <kwin.h> #include <kscoringeditor.h> @@ -43,35 +43,35 @@ void KNScorableArticle::addScore(short s) _a->setChanged(true); } -void KNScorableArticle::changeColor(const QColor& c) +void KNScorableArticle::changeColor(const TQColor& c) { _a->setColor(c); } -void KNScorableArticle::displayMessage(const QString& s) +void KNScorableArticle::displayMessage(const TQString& s) { if (!_a->isNew()) return; if (!notifyC) notifyC = new NotifyCollection(); notifyC->addNote(*this,s); } -QString KNScorableArticle::from() const +TQString KNScorableArticle::from() const { return _a->from()->asUnicodeString(); } -QString KNScorableArticle::subject() const +TQString KNScorableArticle::subject() const { return _a->subject()->asUnicodeString(); } -QString KNScorableArticle::getHeaderByType(const QString& s) const +TQString KNScorableArticle::getHeaderByType(const TQString& s) const { KMime::Headers::Base *h = _a->getHeaderByType(s.latin1()); if (!h) return ""; - QString t = _a->getHeaderByType(s.latin1())->asUnicodeString(); + TQString t = _a->getHeaderByType(s.latin1())->asUnicodeString(); Q_ASSERT( !t.isEmpty() ); return t; } @@ -105,13 +105,13 @@ KNScoringManager::~KNScoringManager() } -QStringList KNScoringManager::getGroups() const +TQStringList KNScoringManager::getGroups() const { KNAccountManager *am = knGlobals.accountManager(); - QStringList res; - QValueList<KNNntpAccount*>::Iterator it; + TQStringList res; + TQValueList<KNNntpAccount*>::Iterator it; for ( it = am->begin(); it != am->end(); ++it ) { - QStringList groups; + TQStringList groups; knGlobals.groupManager()->getSubscribed( (*it), groups); res += groups; } @@ -120,9 +120,9 @@ QStringList KNScoringManager::getGroups() const } -QStringList KNScoringManager::getDefaultHeaders() const +TQStringList KNScoringManager::getDefaultHeaders() const { - QStringList l = KScoringManager::getDefaultHeaders(); + TQStringList l = KScoringManager::getDefaultHeaders(); l << "Lines"; l << "References"; return l; |