summaryrefslogtreecommitdiffstats
path: root/kcontrol/input
diff options
context:
space:
mode:
Diffstat (limited to 'kcontrol/input')
-rw-r--r--kcontrol/input/logitechmouse.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kcontrol/input/logitechmouse.cpp b/kcontrol/input/logitechmouse.cpp
index 78c37d717..870f26047 100644
--- a/kcontrol/input/logitechmouse.cpp
+++ b/kcontrol/input/logitechmouse.cpp
@@ -68,18 +68,18 @@ LogitechMouse::LogitechMouse( struct usb_device *usbDev, int mouseCapabilityFlag
if ( mouseCapabilityFlags & HAS_RES ) {
updateResolution();
- resolutionSelector->setEnabled( TRUE );
+ resolutionSelector->setEnabled( true );
connect( button400cpi, TQ_SIGNAL( clicked() ), parent, TQ_SLOT( changed() ) );
connect( button800cpi, TQ_SIGNAL( clicked() ), parent, TQ_SLOT( changed() ) );
if ( 4 == resolution() ) {
- button800cpi->setChecked( TRUE );
+ button800cpi->setChecked( true );
} else if ( 3 == resolution() ) {
- button400cpi->setChecked( TRUE );
+ button400cpi->setChecked( true );
} else {
// it must have failed, try to help out
- resolutionSelector->setEnabled(FALSE);
+ resolutionSelector->setEnabled(false);
permissionProblemText->show();
}
}
@@ -90,20 +90,20 @@ LogitechMouse::LogitechMouse( struct usb_device *usbDev, int mouseCapabilityFlag
// Do a name
cordlessNameLabel->setText( i18n("Mouse type: %1").arg( cordlessName() ) );
- cordlessNameLabel->setEnabled( TRUE );
+ cordlessNameLabel->setEnabled( true );
// Display the battery power level - the level gets updated in updateGUI()
- batteryBox->setEnabled( TRUE );
+ batteryBox->setEnabled( true );
// Channel
- channelSelector->setEnabled( TRUE );
+ channelSelector->setEnabled( true );
// if the channel is changed, we need to turn off the timer, otherwise it
// just resets the button to reflect the current status. The timer is
// started again when we applyChanges()
connect( channel1, TQ_SIGNAL( clicked() ), this, TQ_SLOT( stopTimerForNow() ) );
connect( channel1, TQ_SIGNAL( clicked() ), parent, TQ_SLOT( changed() ) );
if ( isDualChannelCapable() ) {
- channel2->setEnabled( TRUE );
+ channel2->setEnabled( true );
connect( channel2, TQ_SIGNAL( clicked() ), this, TQ_SLOT( stopTimerForNow() ) );
connect( channel2, TQ_SIGNAL( clicked() ), parent, TQ_SLOT( changed() ) );
}
@@ -144,8 +144,8 @@ void LogitechMouse::updateCordlessStatus()
if (0 > result) {
// We probably have a permission problem
- channelSelector->setEnabled( FALSE );
- batteryBox->setEnabled( FALSE );
+ channelSelector->setEnabled( false );
+ batteryBox->setEnabled( false );
cordlessNameLabel->hide();
permissionProblemText->show();
} else {
@@ -198,9 +198,9 @@ void LogitechMouse::updateGUI()
if ( isDualChannelCapable() ) {
if ( 2 == channel() ) {
- channel2->setChecked( TRUE );
+ channel2->setChecked( true );
} else if ( 1 == channel() ) {
- channel1->setChecked( TRUE );
+ channel1->setChecked( true );
} // else it might have failed - we don't do anything
}
}