From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: Initial conversion of kdepim to TQt This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- akregator/src/articlelistview.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'akregator/src/articlelistview.cpp') diff --git a/akregator/src/articlelistview.cpp b/akregator/src/articlelistview.cpp index c9df8963..68e41730 100644 --- a/akregator/src/articlelistview.cpp +++ b/akregator/src/articlelistview.cpp @@ -18,8 +18,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. As a special exception, permission is given to link this program - with any edition of Qt, and distribute the resulting executable, - without including the source code for Qt in the source distribution. + with any edition of TQt, and distribute the resulting executable, + without including the source code for TQt in the source distribution. */ #include "akregatorconfig.h" @@ -60,17 +60,17 @@ class ArticleListView::ArticleListViewPrivate { public: - ArticleListViewPrivate(ArticleListView* parent) : m_parent(parent) { } + ArticleListViewPrivate(ArticleListView* tqparent) : m_tqparent(tqparent) { } void ensureCurrentItemVisible() { - if (m_parent->currentItem()) + if (m_tqparent->currentItem()) { - m_parent->center( m_parent->contentsX(), m_parent->itemPos(m_parent->currentItem()), 0, 9.0 ); + m_tqparent->center( m_tqparent->contentsX(), m_tqparent->itemPos(m_tqparent->currentItem()), 0, 9.0 ); } } - ArticleListView* m_parent; + ArticleListView* m_tqparent; /** maps article to article item */ TQMap articleMap; @@ -131,7 +131,7 @@ class ArticleListView::ArticleItem : public KListViewItem friend class ArticleListView; public: - ArticleItem( TQListView *parent, const Article& a); + ArticleItem( TQListView *tqparent, const Article& a); ~ArticleItem(); Article& article(); @@ -155,8 +155,8 @@ class ArticleListView::ArticleItem : public KListViewItem }; // FIXME: Remove resolveEntities for KDE 4.0, it's now done in the parser -ArticleListView::ArticleItem::ArticleItem( TQListView *parent, const Article& a) - : KListViewItem( parent, KCharsets::resolveEntities(a.title()), a.feed()->title(), KGlobal::locale()->formatDateTime(a.pubDate(), true, false) ), m_article(a), m_pubDate(a.pubDate().toTime_t()) +ArticleListView::ArticleItem::ArticleItem( TQListView *tqparent, const Article& a) + : KListViewItem( tqparent, KCharsets::resolveEntities(a.title()), a.feed()->title(), KGlobal::locale()->formatDateTime(a.pubDate(), true, false) ), m_article(a), m_pubDate(a.pubDate().toTime_t()) { if (a.keep()) setPixmap(0, keepFlag()); @@ -182,9 +182,9 @@ void ArticleListView::ArticleItem::paintCell ( TQPainter * p, const TQColorGroup TQColorGroup cg2(cg); if (article().status() == Article::Unread) - cg2.setColor(TQColorGroup::Text, Qt::blue); + cg2.setColor(TQColorGroup::Text, TQt::blue); else // New - cg2.setColor(TQColorGroup::Text, Qt::red); + cg2.setColor(TQColorGroup::Text, TQt::red); KListViewItem::paintCell( p, cg2, column, width, align ); } @@ -213,8 +213,8 @@ int ArticleListView::ArticleItem::compare(TQListViewItem *i, int col, bool ascen /* ==================================================================================== */ -ArticleListView::ArticleListView(TQWidget *parent, const char *name) - : KListView(parent, name) +ArticleListView::ArticleListView(TQWidget *tqparent, const char *name) + : KListView(tqparent, name) { d = new ArticleListViewPrivate(this); d->noneSelected = true; @@ -577,7 +577,7 @@ void ArticleListView::viewportPaintEvent(TQPaintEvent *e) if(!e) return; - TQString message = TQString::null; + TQString message = TQString(); //kdDebug() << "visible articles: " << visibleArticles() << endl; -- cgit v1.2.3