summaryrefslogtreecommitdiffstats
path: root/arts/gui/kde/kpoti.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'arts/gui/kde/kpoti.cpp')
-rw-r--r--arts/gui/kde/kpoti.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/arts/gui/kde/kpoti.cpp b/arts/gui/kde/kpoti.cpp
index 8fc412a2..96a19e90 100644
--- a/arts/gui/kde/kpoti.cpp
+++ b/arts/gui/kde/kpoti.cpp
@@ -218,8 +218,8 @@ void KPoti::init(int value)
potiPos = positionFromValue(value);
clickOffset = 0;
state = Idle;
- track = TRUE;
- ticks = TRUE;
+ track = true;
+ ticks = true;
m_bLabel = true;
tickInt = 0;
@@ -263,8 +263,8 @@ void KPoti::initTicks()
/**
- Enables slider tracking if \e enable is TRUE, or disables tracking
- if \e enable is FALSE.
+ Enables slider tracking if \e enable is true, or disables tracking
+ if \e enable is false.
If tracking is enabled (default), the slider emits the
valueChanged() signal whenever the slider is being dragged. If
@@ -283,7 +283,7 @@ void KPoti::setTracking( bool enable )
/**
\fn bool KPoti::tracking() const
- Returns TRUE if tracking is enabled, or FALSE if tracking is disabled.
+ Returns true if tracking is enabled, or false if tracking is disabled.
Tracking is initially enabled.
@@ -495,15 +495,15 @@ void KPoti::mousePressEvent( TQMouseEvent *e )
subtractPage();
if ( !timer )
timer = new TQTimer( this );
- connect( timer, TQT_SIGNAL(timeout()), TQT_SLOT(repeatTimeout()) );
- timer->start( thresholdTime, TRUE );
+ connect( timer, TQ_SIGNAL(timeout()), TQ_SLOT(repeatTimeout()) );
+ timer->start( thresholdTime, true );
} else {
state = TimingUp;
addPage();
if ( !timer )
timer = new TQTimer( this );
- connect( timer, TQT_SIGNAL(timeout()), TQT_SLOT(repeatTimeout()) );
- timer->start( thresholdTime, TRUE );
+ connect( timer, TQ_SIGNAL(timeout()), TQ_SLOT(repeatTimeout()) );
+ timer->start( thresholdTime, true );
}
}
@@ -695,10 +695,10 @@ void KPoti::repeatTimeout()
Q_ASSERT( timer );
timer->disconnect();
if ( state == TimingDown )
- connect( timer, TQT_SIGNAL(timeout()), TQT_SLOT(subtractStep()) );
+ connect( timer, TQ_SIGNAL(timeout()), TQ_SLOT(subtractStep()) );
else if ( state == TimingUp )
- connect( timer, TQT_SIGNAL(timeout()), TQT_SLOT(addStep()) );
- timer->start( repeatTime, FALSE );
+ connect( timer, TQ_SIGNAL(timeout()), TQ_SLOT(addStep()) );
+ timer->start( repeatTime, false );
}