summaryrefslogtreecommitdiffstats
path: root/kmix/ksmallslider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmix/ksmallslider.cpp')
-rw-r--r--kmix/ksmallslider.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/kmix/ksmallslider.cpp b/kmix/ksmallslider.cpp
index e10c46c8..eb03cfc7 100644
--- a/kmix/ksmallslider.cpp
+++ b/kmix/ksmallslider.cpp
@@ -36,22 +36,22 @@ static const TQColor mutedLowColor2 = "#808080";
static const TQColor backColor2 = "#000000";
*/
-KSmallSlider::KSmallSlider( TQWidget *parent, const char *name )
- : TQWidget( parent, name ), _orientation( Qt::Vertical )
+KSmallSlider::KSmallSlider( TQWidget *tqparent, const char *name )
+ : TQWidget( tqparent, name ), _orientation( Qt::Vertical )
{
init();
}
-KSmallSlider::KSmallSlider( Qt::Orientation orientation, TQWidget *parent, const char *name )
- : TQWidget( parent, name ), _orientation( orientation )
+KSmallSlider::KSmallSlider( Qt::Orientation orientation, TQWidget *tqparent, const char *name )
+ : TQWidget( tqparent, name ), _orientation( orientation )
{
init();
}
KSmallSlider::KSmallSlider( int minValue, int maxValue, int pageStep,
int value, Qt::Orientation orientation,
- TQWidget *parent, const char *name )
- : TQWidget( parent, name ),
+ TQWidget *tqparent, const char *name )
+ : TQWidget( tqparent, name ),
TQRangeControl( minValue, maxValue, 1, pageStep, value ), _orientation( orientation)
{
init();
@@ -68,7 +68,7 @@ void KSmallSlider::init()
//track = TRUE;
//setMouseTracking(true);
grayed = false;
- setFocusPolicy( TabFocus );
+ setFocusPolicy( TQ_TabFocus );
colHigh = TQColor(0,255,0);
colLow = TQColor(255,0,0);
@@ -98,7 +98,7 @@ int KSmallSlider::valueFromPosition( int p ) const
return TQRangeControl::valueFromPosition( avail - p, avail );
}
else {
- // Horizontal everything is fine. Slider values match with Coordinate System
+ //Qt::Horizontal everything is fine. Slider values match with Coordinate System
return TQRangeControl::valueFromPosition( p, available() );
}
}
@@ -225,7 +225,7 @@ void KSmallSlider::paintEvent( TQPaintEvent * )
int sliderPos = positionFromValue( TQRangeControl::value() );
// ------------------------ draw 3d border ---------------------------------------------
- style().drawPrimitive ( TQStyle::PE_Panel, &p, TQRect( 0, 0, width(), height() ), colorGroup(), TRUE );
+ tqstyle().tqdrawPrimitive ( TQStyle::PE_Panel, &p, TQRect( 0, 0, width(), height() ), tqcolorGroup(), TRUE );
// ------------------------ draw lower/left part ----------------------------------------
@@ -286,7 +286,7 @@ void KSmallSlider::mousePressEvent( TQMouseEvent *e )
{
//resetState();
- if ( e->button() == RightButton ) {
+ if ( e->button() == Qt::RightButton ) {
return;
}
@@ -326,7 +326,7 @@ void KSmallSlider::wheelEvent( TQWheelEvent * e)
}
e->accept(); // Accept the event
- // Hint: Qt autmatically triggers a valueChange() when we do setValue()
+ // Hint: TQt autmatically triggers a valueChange() when we do setValue()
}
void KSmallSlider::mouseReleaseEvent( TQMouseEvent * )
@@ -340,7 +340,7 @@ void KSmallSlider::mouseReleaseEvent( TQMouseEvent * )
void KSmallSlider::moveSlider( int pos )
{
int a = available();
- int newPos = QMIN( a, QMAX( 0, pos ) ); // keep it inside the available bounds of the slider
+ int newPos = TQMIN( a, TQMAX( 0, pos ) ); // keep it inside the available bounds of the slider
int newVal = valueFromPosition( newPos );
if ( newVal != TQRangeControl::value() ) {
@@ -396,7 +396,7 @@ int KSmallSlider::goodPart( const TQPoint &p ) const
}
/***************** SIZE STUFF START ***************/
-TQSize KSmallSlider::sizeHint() const
+TQSize KSmallSlider::tqsizeHint() const
{
//constPolish();
const int length = 25;
@@ -409,7 +409,7 @@ TQSize KSmallSlider::sizeHint() const
}
-TQSize KSmallSlider::minimumSizeHint() const
+TQSize KSmallSlider::tqminimumSizeHint() const
{
TQSize s(10,10);
return s;
@@ -486,7 +486,7 @@ void KSmallSlider::setGray( bool value )
{
grayed = value;
update();
- //repaint();
+ //tqrepaint();
}
}
@@ -501,7 +501,7 @@ void KSmallSlider::setColors( TQColor high, TQColor low, TQColor back )
colLow = low;
colBack = back;
update();
- //repaint();
+ //tqrepaint();
}
void KSmallSlider::setGrayColors( TQColor high, TQColor low, TQColor back )
@@ -510,7 +510,7 @@ void KSmallSlider::setGrayColors( TQColor high, TQColor low, TQColor back )
grayLow = low;
grayBack = back;
update();
- //repaint();
+ //tqrepaint();
}
#include "ksmallslider.moc"