diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 06:00:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 06:00:15 +0000 |
commit | b1057f437bf65300831a0ccb45b920787c6b318d (patch) | |
tree | f8a73db06ca1180d0da0ba6dfbe786197b4f4bc3 /kmid/ktrianglebutton.cpp | |
parent | 4ddfca384ced9ad654213aef9dc2c3973720b980 (diff) | |
download | tdemultimedia-b1057f437bf65300831a0ccb45b920787c6b318d.tar.gz tdemultimedia-b1057f437bf65300831a0ccb45b920787c6b318d.zip |
TQt4 port kdemultimedia
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1236079 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmid/ktrianglebutton.cpp')
-rw-r--r-- | kmid/ktrianglebutton.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kmid/ktrianglebutton.cpp b/kmid/ktrianglebutton.cpp index 1b31dade..f2c47ca5 100644 --- a/kmid/ktrianglebutton.cpp +++ b/kmid/ktrianglebutton.cpp @@ -35,7 +35,7 @@ KTriangleButton::KTriangleButton( Direction d,TQWidget *_parent, const char *nam { dir=d; raised = FALSE; - setFocusPolicy( NoFocus ); + setFocusPolicy( TQ_NoFocus ); } KTriangleButton::~KTriangleButton() @@ -47,7 +47,7 @@ void KTriangleButton::enterEvent( TQEvent* ) if ( isEnabled() ) { raised = TRUE; - repaint(FALSE); + tqrepaint(FALSE); } } @@ -56,7 +56,7 @@ void KTriangleButton::leaveEvent( TQEvent * ) if( raised != FALSE ) { raised = FALSE; - repaint(); + tqrepaint(); } } @@ -75,21 +75,21 @@ void KTriangleButton::paint( TQPainter *painter ) { if ( isDown() || isOn() ) { - if ( style().styleHint(TQStyle::SH_GUIStyle) == WindowsStyle ) + if ( tqstyle().tqstyleHint(TQStyle::SH_GUIStyle) == WindowsStyle ) qDrawWinButton( painter, 0, 0, width(), - height(), colorGroup(), TRUE ); + height(), tqcolorGroup(), TRUE ); else qDrawShadePanel( painter, 0, 0, width(), - height(), colorGroup(), TRUE, 2, 0L ); + height(), tqcolorGroup(), TRUE, 2, 0L ); } else if ( raised ) { - if ( style().styleHint(TQStyle::SH_GUIStyle) == WindowsStyle ) + if ( tqstyle().tqstyleHint(TQStyle::SH_GUIStyle) == WindowsStyle ) qDrawWinButton( painter, 0, 0, width(), height(), - colorGroup(), FALSE ); + tqcolorGroup(), FALSE ); else qDrawShadePanel( painter, 0, 0, width(), height(), - colorGroup(), FALSE, 2, 0L ); + tqcolorGroup(), FALSE, 2, 0L ); } if (dir==Right) @@ -144,17 +144,17 @@ void KTriangleButton::mouseReleaseEvent(TQMouseEvent *e) void KTriangleButton::timerEvent(TQTimerEvent *) { - if (!usingTimer) {killTimers();return;}; + if (!usingTimer) {TQT_TQOBJECT(this)->killTimers();return;}; if (timeCount==0) { timeCount++; - killTimers(); + TQT_TQOBJECT(this)->killTimers(); startTimer(120); } else if (timeCount==30) { timeCount=-1; - killTimers(); + TQT_TQOBJECT(this)->killTimers(); startTimer(80); } else if (timeCount>0) timeCount++; |