summaryrefslogtreecommitdiffstats
path: root/chalk/ui/kis_gradient_slider_widget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chalk/ui/kis_gradient_slider_widget.cc')
-rw-r--r--chalk/ui/kis_gradient_slider_widget.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/chalk/ui/kis_gradient_slider_widget.cc b/chalk/ui/kis_gradient_slider_widget.cc
index 3777a214..0547bdb5 100644
--- a/chalk/ui/kis_gradient_slider_widget.cc
+++ b/chalk/ui/kis_gradient_slider_widget.cc
@@ -132,20 +132,20 @@ void KisGradientSliderWidget::mousePressEvent( TQMouseEvent * e )
// Change the activation order of the handles to avoid deadlocks
if( t > 0.5 )
{
- if( leftHandle.tqcontains( e->pos() ) )
+ if( leftHandle.contains( e->pos() ) )
m_drag = LEFT_DRAG;
- else if( middleHandle.tqcontains( e->pos() ) )
+ else if( middleHandle.contains( e->pos() ) )
m_drag = MIDDLE_DRAG;
- else if( rightHandle.tqcontains( e->pos() ) )
+ else if( rightHandle.contains( e->pos() ) )
m_drag = RIGHT_DRAG;
}
else
{
- if( rightHandle.tqcontains( e->pos() ) )
+ if( rightHandle.contains( e->pos() ) )
m_drag = RIGHT_DRAG;
- else if( middleHandle.tqcontains( e->pos() ) )
+ else if( middleHandle.contains( e->pos() ) )
m_drag = MIDDLE_DRAG;
- else if( leftHandle.tqcontains( e->pos() ) )
+ else if( leftHandle.contains( e->pos() ) )
m_drag = LEFT_DRAG;
}