summaryrefslogtreecommitdiffstats
path: root/kcontrol/input/logitechmouse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kcontrol/input/logitechmouse.cpp')
-rw-r--r--kcontrol/input/logitechmouse.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kcontrol/input/logitechmouse.cpp b/kcontrol/input/logitechmouse.cpp
index 2798ce1de..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, TQT_SIGNAL( clicked() ), parent, TQT_SLOT( changed() ) );
- connect( button800cpi, TQT_SIGNAL( clicked() ), parent, TQT_SLOT( changed() ) );
+ 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,22 +90,22 @@ 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, TQT_SIGNAL( clicked() ), this, TQT_SLOT( stopTimerForNow() ) );
- connect( channel1, TQT_SIGNAL( clicked() ), parent, TQT_SLOT( changed() ) );
+ connect( channel1, TQ_SIGNAL( clicked() ), this, TQ_SLOT( stopTimerForNow() ) );
+ connect( channel1, TQ_SIGNAL( clicked() ), parent, TQ_SLOT( changed() ) );
if ( isDualChannelCapable() ) {
- channel2->setEnabled( TRUE );
- connect( channel2, TQT_SIGNAL( clicked() ), this, TQT_SLOT( stopTimerForNow() ) );
- connect( channel2, TQT_SIGNAL( clicked() ), parent, TQT_SLOT( changed() ) );
+ channel2->setEnabled( true );
+ connect( channel2, TQ_SIGNAL( clicked() ), this, TQ_SLOT( stopTimerForNow() ) );
+ connect( channel2, TQ_SIGNAL( clicked() ), parent, TQ_SLOT( changed() ) );
}
updateGUI();
@@ -124,7 +124,7 @@ void LogitechMouse::initCordlessStatusReporting()
{
updateCordlessStatus();
doUpdate = new TQTimer( this ); // will be automatically deleted
- connect( doUpdate, TQT_SIGNAL( timeout() ), this, TQT_SLOT( updateGUI() ) );
+ connect( doUpdate, TQ_SIGNAL( timeout() ), this, TQ_SLOT( updateGUI() ) );
doUpdate->start( 20000 );
}
@@ -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
}
}