summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/tools/kstarsplotwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kstars/kstars/tools/kstarsplotwidget.cpp')
-rw-r--r--kstars/kstars/tools/kstarsplotwidget.cpp64
1 files changed, 32 insertions, 32 deletions
diff --git a/kstars/kstars/tools/kstarsplotwidget.cpp b/kstars/kstars/tools/kstarsplotwidget.cpp
index dcbe36b7..d07c3e36 100644
--- a/kstars/kstars/tools/kstarsplotwidget.cpp
+++ b/kstars/kstars/tools/kstarsplotwidget.cpp
@@ -28,8 +28,8 @@
-KStarsPlotWidget::KStarsPlotWidget( double x1, double x2, double y1, double y2, TQWidget *parent, const char* name )
- : KPlotWidget( x1, x2, y1, y2, parent, name ),
+KStarsPlotWidget::KStarsPlotWidget( double x1, double x2, double y1, double y2, TQWidget *tqparent, const char* name )
+ : KPlotWidget( x1, x2, y1, y2, tqparent, name ),
dXtick2(0.0), dYtick2(0.0),
nmajX2(0), nminX2(0), nmajY2(0), nminY2(0),
XAxisType(DOUBLE), YAxisType(DOUBLE), XAxisType_0(DOUBLE), YAxisType_0(DOUBLE),
@@ -283,7 +283,7 @@ void KStarsPlotWidget::updateTickmarks() {
void KStarsPlotWidget::drawBox( TQPainter *p ) {
int pW = PixRect.width(), pH = PixRect.height();
- //First, fill in padding region with bgColor() to mask out-of-bounds plot data
+ //First, fill in padding region with bgColor() to tqmask out-of-bounds plot data
p->setPen( bgColor() );
p->setBrush( bgColor() );
@@ -319,7 +319,7 @@ void KStarsPlotWidget::drawBox( TQPainter *p ) {
}
p->setPen( fgColor() );
- p->setBrush( Qt::NoBrush );
+ p->setBrush( TQt::NoBrush );
if ( LeftAxis.isVisible() || BottomAxis.isVisible() ) p->drawRect( PixRect ); //box outline
@@ -358,14 +358,14 @@ void KStarsPlotWidget::drawBox( TQPainter *p ) {
switch ( xAxisType() ) {
case DOUBLE :
{
- TQString str = TQString( "%1" ).arg( lab, 0, 'g', 2 );
- int idot = str.find( '.' );
+ TQString str = TQString( "%1" ).tqarg( lab, 0, 'g', 2 );
+ int idot = str.tqfind( '.' );
if ( idot >= 0 )
- str = str.replace( idot, 1, KGlobal::locale()->decimalSymbol() );
+ str = str.tqreplace( idot, 1, KGlobal::locale()->decimalSymbol() );
if ( px > 0 && px < pW ) {
TQRect r( px - BIGTICKSIZE, pH+BIGTICKSIZE, 2*BIGTICKSIZE, BIGTICKSIZE );
- p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
+ p->drawText( r, TQt::AlignCenter | TQt::DontClip, str );
}
break;
}
@@ -379,7 +379,7 @@ void KStarsPlotWidget::drawBox( TQPainter *p ) {
TQString str = TQString().sprintf( "%02d:%02d", h, m );
if ( px > 0 && px < pW ) {
TQRect r( px - BIGTICKSIZE, pH+BIGTICKSIZE, 2*BIGTICKSIZE, BIGTICKSIZE );
- p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
+ p->drawText( r, TQt::AlignCenter | TQt::DontClip, str );
}
break;
}
@@ -388,7 +388,7 @@ void KStarsPlotWidget::drawBox( TQPainter *p ) {
TQString str = TQString().sprintf( "%d%c", int(lab), 176 );
if ( px > 0 && px < pW ) {
TQRect r( px - BIGTICKSIZE, pH+BIGTICKSIZE, 2*BIGTICKSIZE, BIGTICKSIZE );
- p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
+ p->drawText( r, TQt::AlignCenter | TQt::DontClip, str );
}
break;
}
@@ -426,14 +426,14 @@ void KStarsPlotWidget::drawBox( TQPainter *p ) {
switch ( yAxisType() ) {
case DOUBLE :
{
- TQString str = TQString( "%1" ).arg( lab, 0, 'g', 2 );
- int idot = str.find( '.' );
+ TQString str = TQString( "%1" ).tqarg( lab, 0, 'g', 2 );
+ int idot = str.tqfind( '.' );
if ( idot >= 0 )
- str = str.replace( idot, 1, KGlobal::locale()->decimalSymbol() );
+ str = str.tqreplace( idot, 1, KGlobal::locale()->decimalSymbol() );
if ( py > 0 && py < pH ) {
TQRect r( -2*BIGTICKSIZE, py-SMALLTICKSIZE, 2*BIGTICKSIZE, 2*SMALLTICKSIZE );
- p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
+ p->drawText( r, TQt::AlignCenter | TQt::DontClip, str );
}
break;
}
@@ -447,7 +447,7 @@ void KStarsPlotWidget::drawBox( TQPainter *p ) {
TQString str = TQString().sprintf( "%02d:%02d", h, m );
if ( py > 0 && py < pH ) {
TQRect r( -3*BIGTICKSIZE, py-SMALLTICKSIZE, 2*BIGTICKSIZE, 2*SMALLTICKSIZE );
- p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
+ p->drawText( r, TQt::AlignCenter | TQt::DontClip, str );
}
break;
}
@@ -456,7 +456,7 @@ void KStarsPlotWidget::drawBox( TQPainter *p ) {
TQString str = TQString().sprintf( "%d%c", int(lab), 176 );
if ( py > 0 && py < pH ) {
TQRect r( -3*BIGTICKSIZE, py-SMALLTICKSIZE, 2*BIGTICKSIZE, 2*SMALLTICKSIZE );
- p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
+ p->drawText( r, TQt::AlignCenter | TQt::DontClip, str );
}
break;
}
@@ -492,14 +492,14 @@ void KStarsPlotWidget::drawBox( TQPainter *p ) {
switch ( xAxisType() ) {
case DOUBLE :
{
- TQString str = TQString( "%1" ).arg( lab, 0, 'g', 2 );
- int idot = str.find( '.' );
+ TQString str = TQString( "%1" ).tqarg( lab, 0, 'g', 2 );
+ int idot = str.tqfind( '.' );
if ( idot >= 0 )
- str = str.replace( idot, 1, KGlobal::locale()->decimalSymbol() );
+ str = str.tqreplace( idot, 1, KGlobal::locale()->decimalSymbol() );
if ( px > 0 && px < pW ) {
TQRect r( px - BIGTICKSIZE, -2*BIGTICKSIZE, 2*BIGTICKSIZE, BIGTICKSIZE );
- p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
+ p->drawText( r, TQt::AlignCenter | TQt::DontClip, str );
}
break;
}
@@ -513,7 +513,7 @@ void KStarsPlotWidget::drawBox( TQPainter *p ) {
TQString str = TQString().sprintf( "%02d:%02d", h, m );
if ( px > 0 && px < pW ) {
TQRect r( px - BIGTICKSIZE, -2*BIGTICKSIZE, 2*BIGTICKSIZE, BIGTICKSIZE );
- p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
+ p->drawText( r, TQt::AlignCenter | TQt::DontClip, str );
}
break;
}
@@ -522,7 +522,7 @@ void KStarsPlotWidget::drawBox( TQPainter *p ) {
TQString str = TQString().sprintf( "%d%c", int(lab), 176 );
if ( px > 0 && px < pW ) {
TQRect r( px - BIGTICKSIZE, -2*BIGTICKSIZE, 2*BIGTICKSIZE, BIGTICKSIZE );
- p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
+ p->drawText( r, TQt::AlignCenter | TQt::DontClip, str );
}
break;
}
@@ -556,14 +556,14 @@ void KStarsPlotWidget::drawBox( TQPainter *p ) {
switch ( yAxisType() ) {
case DOUBLE :
{
- TQString str = TQString( "%1" ).arg( lab, 0, 'g', 2 );
- int idot = str.find( '.' );
+ TQString str = TQString( "%1" ).tqarg( lab, 0, 'g', 2 );
+ int idot = str.tqfind( '.' );
if ( idot >= 0 )
- str = str.replace( idot, 1, KGlobal::locale()->decimalSymbol() );
+ str = str.tqreplace( idot, 1, KGlobal::locale()->decimalSymbol() );
if ( py > 0 && py < pH ) {
TQRect r( pW + 2*BIGTICKSIZE, py-SMALLTICKSIZE, 2*BIGTICKSIZE, 2*SMALLTICKSIZE );
- p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
+ p->drawText( r, TQt::AlignCenter | TQt::DontClip, str );
}
break;
}
@@ -577,7 +577,7 @@ void KStarsPlotWidget::drawBox( TQPainter *p ) {
TQString str = TQString().sprintf( "%02d:%02d", h, m );
if ( py > 0 && py < pH ) {
TQRect r( pW + 2*BIGTICKSIZE, py-SMALLTICKSIZE, 2*BIGTICKSIZE, 2*SMALLTICKSIZE );
- p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
+ p->drawText( r, TQt::AlignCenter | TQt::DontClip, str );
}
break;
}
@@ -586,7 +586,7 @@ void KStarsPlotWidget::drawBox( TQPainter *p ) {
TQString str = TQString().sprintf( "%d%c", int(lab), 176 );
if ( py > 0 && py < pH ) {
TQRect r( pW + 3*BIGTICKSIZE, py-SMALLTICKSIZE, 2*BIGTICKSIZE, 2*SMALLTICKSIZE );
- p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
+ p->drawText( r, TQt::AlignCenter | TQt::DontClip, str );
}
break;
}
@@ -611,11 +611,11 @@ void KStarsPlotWidget::drawBox( TQPainter *p ) {
//Draw X Axis Label(s)
if ( ! BottomAxis.label().isEmpty() ) {
TQRect r( 0, PixRect.height() + 2*YPADDING, PixRect.width(), YPADDING );
- p->drawText( r, Qt::AlignCenter | Qt::DontClip, BottomAxis.label() );
+ p->drawText( r, TQt::AlignCenter | TQt::DontClip, BottomAxis.label() );
}
if ( ! XAxisLabel2.isEmpty() ) {
TQRect r( 0, -3*YPADDING, PixRect.width(), YPADDING );
- p->drawText( r, Qt::AlignCenter | Qt::DontClip, XAxisLabel2 );
+ p->drawText( r, TQt::AlignCenter | TQt::DontClip, XAxisLabel2 );
}
//Draw Y Axis Label(s). We need to draw the text sideways.
@@ -628,7 +628,7 @@ void KStarsPlotWidget::drawBox( TQPainter *p ) {
p->rotate( -90.0 );
TQRect r( 0, 0, PixRect.height(), XPADDING );
- p->drawText( r, Qt::AlignCenter | Qt::DontClip, LeftAxis.label() ); //draw the label, now that we are sideways
+ p->drawText( r, TQt::AlignCenter | TQt::DontClip, LeftAxis.label() ); //draw the label, now that we are sideways
p->restore(); //restore translation/rotation state
}
@@ -641,7 +641,7 @@ void KStarsPlotWidget::drawBox( TQPainter *p ) {
p->rotate( -90.0 );
TQRect r( 0, 0, PixRect.height(), XPADDING );
- p->drawText( r, Qt::AlignCenter | Qt::DontClip, YAxisLabel2 ); //draw the label, now that we are sideways
+ p->drawText( r, TQt::AlignCenter | TQt::DontClip, YAxisLabel2 ); //draw the label, now that we are sideways
p->restore(); //restore translation/rotation state
}