summaryrefslogtreecommitdiffstats
path: root/kghostview/kgvpagedecorator.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kghostview/kgvpagedecorator.cpp
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kghostview/kgvpagedecorator.cpp')
-rw-r--r--kghostview/kgvpagedecorator.cpp48
1 files changed, 24 insertions, 24 deletions
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 <qbitmap.h>
-#include <qdrawutil.h>
-#include <qpainter.h>
-#include <qregion.h>
+#include <tqbitmap.h>
+#include <tqdrawutil.h>
+#include <tqpainter.h>
+#include <tqregion.h>
#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 );