summaryrefslogtreecommitdiffstats
path: root/akregator/src/treenodeitem.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /akregator/src/treenodeitem.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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/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)