diff options
Diffstat (limited to 'kmid/ktrianglebutton.cpp')
-rw-r--r-- | kmid/ktrianglebutton.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kmid/ktrianglebutton.cpp b/kmid/ktrianglebutton.cpp index a4387ee5..1b31dade 100644 --- a/kmid/ktrianglebutton.cpp +++ b/kmid/ktrianglebutton.cpp @@ -26,12 +26,12 @@ ***************************************************************************/ #include "ktrianglebutton.h" -#include <qpainter.h> -#include <qdrawutil.h> -#include <qstyle.h> +#include <tqpainter.h> +#include <tqdrawutil.h> +#include <tqstyle.h> -KTriangleButton::KTriangleButton( Direction d,QWidget *_parent, const char *name ) - : QButton( _parent , name) +KTriangleButton::KTriangleButton( Direction d,TQWidget *_parent, const char *name ) + : TQButton( _parent , name) { dir=d; raised = FALSE; @@ -42,7 +42,7 @@ KTriangleButton::~KTriangleButton() { } -void KTriangleButton::enterEvent( QEvent* ) +void KTriangleButton::enterEvent( TQEvent* ) { if ( isEnabled() ) { @@ -51,7 +51,7 @@ void KTriangleButton::enterEvent( QEvent* ) } } -void KTriangleButton::leaveEvent( QEvent * ) +void KTriangleButton::leaveEvent( TQEvent * ) { if( raised != FALSE ) { @@ -61,21 +61,21 @@ void KTriangleButton::leaveEvent( QEvent * ) } -void KTriangleButton::drawButton( QPainter *_painter ) +void KTriangleButton::drawButton( TQPainter *_painter ) { paint( _painter ); } -void KTriangleButton::drawButtonLabel( QPainter *_painter ) +void KTriangleButton::drawButtonLabel( TQPainter *_painter ) { paint( _painter ); } -void KTriangleButton::paint( QPainter *painter ) +void KTriangleButton::paint( TQPainter *painter ) { if ( isDown() || isOn() ) { - if ( style().styleHint(QStyle::SH_GUIStyle) == WindowsStyle ) + if ( style().styleHint(TQStyle::SH_GUIStyle) == WindowsStyle ) qDrawWinButton( painter, 0, 0, width(), height(), colorGroup(), TRUE ); else @@ -84,7 +84,7 @@ void KTriangleButton::paint( QPainter *painter ) } else if ( raised ) { - if ( style().styleHint(QStyle::SH_GUIStyle) == WindowsStyle ) + if ( style().styleHint(TQStyle::SH_GUIStyle) == WindowsStyle ) qDrawWinButton( painter, 0, 0, width(), height(), colorGroup(), FALSE ); else @@ -127,22 +127,22 @@ void KTriangleButton::paint( QPainter *painter ) } -void KTriangleButton::mousePressEvent(QMouseEvent *e) +void KTriangleButton::mousePressEvent(TQMouseEvent *e) { - QButton::mousePressEvent(e); + TQButton::mousePressEvent(e); usingTimer=true; startTimer(500); timeCount=0; } -void KTriangleButton::mouseReleaseEvent(QMouseEvent *e) +void KTriangleButton::mouseReleaseEvent(TQMouseEvent *e) { usingTimer=false; - QButton::mouseReleaseEvent(e); + TQButton::mouseReleaseEvent(e); } -void KTriangleButton::timerEvent(QTimerEvent *) +void KTriangleButton::timerEvent(TQTimerEvent *) { if (!usingTimer) {killTimers();return;}; if (timeCount==0) |