diff options
Diffstat (limited to 'tdemid/ktrianglebutton.cpp')
-rw-r--r-- | tdemid/ktrianglebutton.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tdemid/ktrianglebutton.cpp b/tdemid/ktrianglebutton.cpp index 34551627..4f7fb139 100644 --- a/tdemid/ktrianglebutton.cpp +++ b/tdemid/ktrianglebutton.cpp @@ -34,7 +34,7 @@ KTriangleButton::KTriangleButton( Direction d,TQWidget *_parent, const char *nam : TQButton( _parent , name) { dir=d; - raised = FALSE; + raised = false; setFocusPolicy( TQWidget::NoFocus ); } @@ -46,16 +46,16 @@ void KTriangleButton::enterEvent( TQEvent* ) { if ( isEnabled() ) { - raised = TRUE; - repaint(FALSE); + raised = true; + repaint(false); } } void KTriangleButton::leaveEvent( TQEvent * ) { - if( raised != FALSE ) + if( raised != false ) { - raised = FALSE; + raised = false; repaint(); } } @@ -77,19 +77,19 @@ void KTriangleButton::paint( TQPainter *painter ) { if ( style().styleHint(TQStyle::SH_GUIStyle) == WindowsStyle ) qDrawWinButton( painter, 0, 0, width(), - height(), colorGroup(), TRUE ); + height(), colorGroup(), true ); else qDrawShadePanel( painter, 0, 0, width(), - height(), colorGroup(), TRUE, 2, 0L ); + height(), colorGroup(), true, 2, 0L ); } else if ( raised ) { if ( style().styleHint(TQStyle::SH_GUIStyle) == WindowsStyle ) qDrawWinButton( painter, 0, 0, width(), height(), - colorGroup(), FALSE ); + colorGroup(), false ); else qDrawShadePanel( painter, 0, 0, width(), height(), - colorGroup(), FALSE, 2, 0L ); + colorGroup(), false, 2, 0L ); } if (dir==Right) @@ -144,17 +144,17 @@ void KTriangleButton::mouseReleaseEvent(TQMouseEvent *e) void KTriangleButton::timerEvent(TQTimerEvent *) { - if (!usingTimer) {TQT_TQOBJECT(this)->killTimers();return;}; + if (!usingTimer) {this->killTimers();return;}; if (timeCount==0) { timeCount++; - TQT_TQOBJECT(this)->killTimers(); + this->killTimers(); startTimer(120); } else if (timeCount==30) { timeCount=-1; - TQT_TQOBJECT(this)->killTimers(); + this->killTimers(); startTimer(80); } else if (timeCount>0) timeCount++; |