summaryrefslogtreecommitdiffstats
path: root/akregator/src/treenodeitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'akregator/src/treenodeitem.cpp')
-rw-r--r--akregator/src/treenodeitem.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/akregator/src/treenodeitem.cpp b/akregator/src/treenodeitem.cpp
index 8dd7ebdb4..92a36859a 100644
--- a/akregator/src/treenodeitem.cpp
+++ b/akregator/src/treenodeitem.cpp
@@ -25,10 +25,10 @@
#include "treenode.h"
#include "treenodeitem.h"
#include "folderitem.h"
-#include <qfont.h>
-#include <qheader.h>
-#include <qpainter.h>
-#include <qstring.h>
+#include <tqfont.h>
+#include <tqheader.h>
+#include <tqpainter.h>
+#include <tqstring.h>
#include <kstringhandler.h>
@@ -69,9 +69,9 @@ void TreeNodeItem::initialize(TreeNode* node)
TreeNodeItem::~TreeNodeItem()
{}
-QString TreeNodeItem::toolTip() const
+TQString TreeNodeItem::toolTip() const
{
- return QString::null;
+ return TQString::null;
}
TreeNode* TreeNodeItem::node()
@@ -106,7 +106,7 @@ FolderItem* TreeNodeItem::parent() const
// TODO: reverse for reverse layout
-void TreeNodeItem::paintCell( QPainter * p, const QColorGroup & cg,
+void TreeNodeItem::paintCell( TQPainter * p, const TQColorGroup & cg,
int column, int width, int align )
{
@@ -119,7 +119,7 @@ void TreeNodeItem::paintCell( QPainter * p, const QColorGroup & cg,
}
// from kfoldertree
- QString oldText = text(column);
+ TQString oldText = text(column);
setText( column, " " );
// draw bg
@@ -128,21 +128,21 @@ void TreeNodeItem::paintCell( QPainter * p, const QColorGroup & cg,
setText( column, oldText);
// draw fg
- QFont f = p->font();
- f.setWeight(QFont::Bold);
+ TQFont f = p->font();
+ f.setWeight(TQFont::Bold);
p->setFont(f);
- QFontMetrics fm( p->fontMetrics() );
- QListView *lv = listView();
+ TQFontMetrics fm( p->fontMetrics() );
+ TQListView *lv = listView();
int x = lv ? lv->itemMargin() : 1;
int m=x;
- const QPixmap *icon = pixmap( column );
- QRect br;
+ const TQPixmap *icon = pixmap( column );
+ TQRect br;
if (icon)
x += icon->width() + m;
- QString txt = " (" + QString::number(u) + ")";
+ TQString txt = " (" + TQString::number(u) + ")";
int txtW=fm.width( txt );
if (fm.width( oldText ) + txtW + x > width)