diff options
Diffstat (limited to 'kpresenter/KPrTextPreview.cpp')
-rw-r--r-- | kpresenter/KPrTextPreview.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kpresenter/KPrTextPreview.cpp b/kpresenter/KPrTextPreview.cpp index b77e067ea..27bb8b5b6 100644 --- a/kpresenter/KPrTextPreview.cpp +++ b/kpresenter/KPrTextPreview.cpp @@ -2,11 +2,11 @@ #include <KoGlobal.h> -#include <qpainter.h> -#include <qfont.h> +#include <tqpainter.h> +#include <tqfont.h> -KPrTextPreview::KPrTextPreview( QWidget* parent, const char* name ) - : QFrame( parent, name ), +KPrTextPreview::KPrTextPreview( TQWidget* tqparent, const char* name ) + : TQFrame( tqparent, name ), shadowDirection( SD_LEFT_BOTTOM ), shadowDistance( 0 ), angle( 0 ) @@ -15,19 +15,19 @@ KPrTextPreview::KPrTextPreview( QWidget* parent, const char* name ) setFrameStyle( NoFrame ); } -void KPrTextPreview::drawContents( QPainter* painter ) +void KPrTextPreview::drawContents( TQPainter* painter ) { - QFont font(KoGlobal::defaultFont().family(), 30, QFont::Bold); - QFontMetrics fm( font ); + TQFont font(KoGlobal::defaultFont().family(), 30, TQFont::Bold); + TQFontMetrics fm( font ); - QRect br = fm.boundingRect( "KOffice" ); + TQRect br = fm.boundingRect( "KOffice" ); int pw = br.width(); int ph = br.height(); - QRect r = br; + TQRect r = br; int textYPos = -r.y(); int textXPos = -r.x(); - br.moveTopLeft( QPoint( -br.width() / 2, -br.height() / 2 ) ); - r.moveTopLeft( QPoint( -r.width() / 2, -r.height() / 2 ) ); + br.moveTopLeft( TQPoint( -br.width() / 2, -br.height() / 2 ) ); + r.moveTopLeft( TQPoint( -r.width() / 2, -r.height() / 2 ) ); int x = r.left() + textXPos; int y = r.top() + textYPos; @@ -81,7 +81,7 @@ void KPrTextPreview::drawContents( QPainter* painter ) painter->setViewport( ( width() - pw ) / 2, ( height() - ph ) / 2, width(), height() ); - QWMatrix m, mtx; + TQWMatrix m, mtx; mtx.rotate( angle ); m.translate( pw / 2, ph / 2 ); m = mtx * m; @@ -91,10 +91,10 @@ void KPrTextPreview::drawContents( QPainter* painter ) if ( shadowDistance > 0 ) { painter->setPen( shadowColor ); - painter->drawText( sx, sy, "KOffice" ); + painter->drawText( sx, sy, TQString("KOffice") ); } painter->setPen( blue ); - painter->drawText( x, y, "KOffice" ); + painter->drawText( x, y, TQString("KOffice") ); painter->restore(); } |