diff options
Diffstat (limited to 'akregator/src/articlelistview.cpp')
-rw-r--r-- | akregator/src/articlelistview.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/akregator/src/articlelistview.cpp b/akregator/src/articlelistview.cpp index c9df89633..68e41730d 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<Article, ArticleItem*> 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; |