From eba47f8f0637f451e21348187591e1f1fd58ac74 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:23:46 +0000 Subject: TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kghostview/kgvpagedecorator.cpp | 48 ++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'kghostview/kgvpagedecorator.cpp') diff --git a/kghostview/kgvpagedecorator.cpp b/kghostview/kgvpagedecorator.cpp index e1eccfc7..b6304c1d 100644 --- a/kghostview/kgvpagedecorator.cpp +++ b/kghostview/kgvpagedecorator.cpp @@ -16,15 +16,15 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include -#include -#include -#include +#include +#include +#include +#include #include "kgvpagedecorator.h" -KGVPageDecorator::KGVPageDecorator( QWidget* parent, const char* name ) : - QHBox( parent, name ), +KGVPageDecorator::KGVPageDecorator( TQWidget* parent, const char* name ) : + TQHBox( parent, name ), _margin( 5 ), _borderWidth( 1 ), _shadowOffset( 2, 2 ) @@ -35,35 +35,35 @@ KGVPageDecorator::KGVPageDecorator( QWidget* parent, const char* name ) : setAutoMask( true ); } -bool KGVPageDecorator::eventFilter( QObject* o, QEvent* e ) +bool KGVPageDecorator::eventFilter( TQObject* o, TQEvent* e ) { switch( e->type() ) { - case QEvent::MouseButtonPress: - case QEvent::MouseButtonRelease: - case QEvent::MouseButtonDblClick: - case QEvent::MouseMove: + case TQEvent::MouseButtonPress: + case TQEvent::MouseButtonRelease: + case TQEvent::MouseButtonDblClick: + case TQEvent::MouseMove: return event( e ); default: ; } - return QHBox::eventFilter( o, e ); + return TQHBox::eventFilter( o, e ); } -void KGVPageDecorator::childEvent( QChildEvent* e ) +void KGVPageDecorator::childEvent( TQChildEvent* e ) { if( e->child()->isWidgetType() && e->inserted() ) e->child()->installEventFilter( this ); } -void KGVPageDecorator::drawFrame( QPainter* p ) +void KGVPageDecorator::drawFrame( TQPainter* p ) { - QRect r( frameRect().topLeft() + QPoint(_margin,_margin), - frameRect().bottomRight() - QPoint(_margin,_margin) ); + TQRect r( frameRect().topLeft() + TQPoint(_margin,_margin), + frameRect().bottomRight() - TQPoint(_margin,_margin) ); if( !r.isValid() ) return; - const QColorGroup& cg = colorGroup(); + const TQColorGroup& cg = colorGroup(); r.moveCenter( r.center() + _shadowOffset ); qDrawPlainRect( p, r, cg.shadow(), _shadowOffset.manhattanLength() ); @@ -72,17 +72,17 @@ void KGVPageDecorator::drawFrame( QPainter* p ) qDrawPlainRect( p, r, cg.foreground(), _borderWidth ); } -void KGVPageDecorator::drawMask( QPainter* p ) +void KGVPageDecorator::drawMask( TQPainter* p ) { - QRect r( frameRect().topLeft() + QPoint(_margin,_margin), - frameRect().bottomRight() - QPoint(_margin,_margin) ); + TQRect r( frameRect().topLeft() + TQPoint(_margin,_margin), + frameRect().bottomRight() - TQPoint(_margin,_margin) ); if( !r.isValid() ) return; - QColorGroup cg( color1, color1, color1, color1, color1, color1, color1, + TQColorGroup cg( color1, color1, color1, color1, color1, color1, color1, color1, color0 ); - QBrush brush( cg.foreground() ); + TQBrush brush( cg.foreground() ); r.moveCenter( r.center() + _shadowOffset ); qDrawPlainRect( p, r, cg.foreground(), _shadowOffset.manhattanLength() ); @@ -93,9 +93,9 @@ void KGVPageDecorator::drawMask( QPainter* p ) void KGVPageDecorator::updateMask() { - QBitmap bm( size() ); + TQBitmap bm( size() ); bm.fill( color0 ); - QPainter p( &bm, this ); + TQPainter p( &bm, this ); p.setPen( color1 ); p.setBrush( color1 ); drawMask( &p ); -- cgit v1.2.1