summaryrefslogtreecommitdiffstats
path: root/src/part/radialMap/labels.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/part/radialMap/labels.cpp')
-rw-r--r--src/part/radialMap/labels.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/part/radialMap/labels.cpp b/src/part/radialMap/labels.cpp
index 73a7ba8..402a7f7 100644
--- a/src/part/radialMap/labels.cpp
+++ b/src/part/radialMap/labels.cpp
@@ -2,10 +2,10 @@
//Copyright: See COPYING file that comes with this distribution
#include <kstringhandler.h>
-#include <qfont.h>
-#include <qfontmetrics.h>
-#include <qpainter.h>
-#include <qptrlist.h>
+#include <tqfont.h>
+#include <tqfontmetrics.h>
+#include <tqpainter.h>
+#include <tqptrlist.h>
#include "Config.h"
#include "fileTree.h"
@@ -30,13 +30,13 @@ namespace RadialMap
int x1, y1, x2, y2, x3;
int tx, ty;
- QString qs;
+ TQString qs;
};
- class LabelList : public QPtrList<Label>
+ class LabelList : public TQPtrList<Label>
{
protected:
- int compareItems( QPtrCollection::Item item1, QPtrCollection::Item item2 )
+ int compareItems( TQPtrCollection::Item item1, TQPtrCollection::Item item2 )
{
//you add 1440 to work round the fact that later you want the circle split vertically
//and as it is you start at 3 o' clock. It's to do with rightPrevY, stops annoying bug
@@ -60,12 +60,12 @@ namespace RadialMap
void
-RadialMap::Widget::paintExplodedLabels( QPainter &paint ) const
+RadialMap::Widget::paintExplodedLabels( TQPainter &paint ) const
{
//we are a friend of RadialMap::Map
LabelList list; list.setAutoDelete( true );
- QPtrListIterator<Label> it( list );
+ TQPtrListIterator<Label> it( list );
unsigned int startLevel = 0;
@@ -80,7 +80,7 @@ RadialMap::Widget::paintExplodedLabels( QPainter &paint ) const
//find the range of levels we will be potentially drawing labels for
//startLevel is the level above whatever m_focus is in
for( const Directory *p = (const Directory*)m_focus->file(); p != m_tree; ++startLevel )
- p = p->parent();
+ p = p->tqparent();
//range=2 means 2 levels to draw labels for
@@ -122,7 +122,7 @@ RadialMap::Widget::paintExplodedLabels( QPainter &paint ) const
// if so, remove the least significant labels
it.toFirst();
- QPtrListIterator<Label> jt( it );
+ TQPtrListIterator<Label> jt( it );
++jt;
while( jt ) //**** no need to check _it_ as jt will be NULL if _it_ was too
@@ -202,15 +202,15 @@ RadialMap::Widget::paintExplodedLabels( QPainter &paint ) const
bool rightSide;
- QFont font;
+ TQFont font;
for( it.toFirst(); it != 0; ++it )
{
- //** bear in mind that text is drawn with QPoint param as BOTTOM left corner of text box
- QString qs = (*it)->segment->file()->name();
+ //** bear in mind that text is drawn with TQPoint param as BOTTOM left corner of text box
+ TQString qs = (*it)->segment->file()->name();
if( varySizes )
font.setPointSize( sizes[(*it)->lvl] );
- QFontMetrics fm( font );
+ TQFontMetrics fm( font );
int fmh = fm.height(); //used to ensure label texts don't overlap
int fmhD4 = fmh / 4;
@@ -305,14 +305,14 @@ RadialMap::Widget::paintExplodedLabels( QPainter &paint ) const
//5. Render labels
- paint.setPen( QPen( Qt::black, 1 ) );
+ paint.setPen( TQPen( TQt::black, 1 ) );
for( it.toFirst(); it != 0; ++it )
{
if( varySizes ) {
- //**** how much overhead in making new QFont each time?
+ //**** how much overhead in making new TQFont each time?
// (implicate sharing remember)
- QFont font = paint.font();
+ TQFont font = paint.font();
font.setPointSize( sizes[(*it)->lvl] );
paint.setFont( font );
}