summaryrefslogtreecommitdiffstats
path: root/kcontrol
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-05-25 18:08:57 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-05-27 10:24:24 +0900
commit0a439ac80bdf6ffb9cac104ad3098a321ee0403c (patch)
tree737edb6e89138f645d20bab7378e1ba90df09863 /kcontrol
parent0ba4723b7fad260e7bfe1848d0d16329779b090f (diff)
downloadtdebase-0a439ac80bdf6ffb9cac104ad3098a321ee0403c.tar.gz
tdebase-0a439ac80bdf6ffb9cac104ad3098a321ee0403c.zip
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kcontrol')
-rw-r--r--kcontrol/background/KCrossBGRender.cpp2
-rw-r--r--kcontrol/clock/dtime.cpp10
-rw-r--r--kcontrol/clock/tzone.h2
-rw-r--r--kcontrol/colors/colorscm.cpp2
-rw-r--r--kcontrol/colors/widgetcanvas.cpp14
-rw-r--r--kcontrol/displayconfig/displayconfig.cpp20
-rw-r--r--kcontrol/ebrowsing/plugins/ikws/ikwsopts.cpp2
-rw-r--r--kcontrol/info/info_aix.cpp2
-rw-r--r--kcontrol/info/info_fbsd.cpp4
-rw-r--r--kcontrol/info/info_generic.cpp2
-rw-r--r--kcontrol/info/info_linux.cpp2
-rw-r--r--kcontrol/info/info_netbsd.cpp6
-rw-r--r--kcontrol/info/info_openbsd.cpp4
-rw-r--r--kcontrol/info/info_osx.cpp4
-rw-r--r--kcontrol/info/info_sgi.cpp2
-rw-r--r--kcontrol/input/logitechmouse.cpp24
-rw-r--r--kcontrol/keys/keyconfig.cpp10
-rw-r--r--kcontrol/konq/desktopbehavior_impl.cpp2
-rw-r--r--kcontrol/konqhtml/pluginopts.cpp2
-rw-r--r--kcontrol/locale/klocalesample.cpp2
-rw-r--r--kcontrol/locale/localenum.cpp2
-rw-r--r--kcontrol/locale/localetime.cpp2
-rw-r--r--kcontrol/locale/toplevel.cpp2
-rw-r--r--kcontrol/randr/tderandrapp.cpp2
-rw-r--r--kcontrol/randr/tderandrtray.cpp2
-rw-r--r--kcontrol/samba/kcmsambalog.cpp18
-rw-r--r--kcontrol/samba/kcmsambastatistics.cpp14
-rw-r--r--kcontrol/samba/kcmsambastatistics.h4
-rw-r--r--kcontrol/screensaver/scrnsave.cpp2
-rw-r--r--kcontrol/smartcard/smartcard.cpp8
-rw-r--r--kcontrol/spellchecking/spellchecking.cpp2
-rw-r--r--kcontrol/style/kcmstyle.cpp22
-rw-r--r--kcontrol/style/stylepreview.ui.h4
-rw-r--r--kcontrol/taskbar/kcmtaskbar.cpp4
-rw-r--r--kcontrol/tdm/tdm-shut.cpp4
35 files changed, 105 insertions, 105 deletions
diff --git a/kcontrol/background/KCrossBGRender.cpp b/kcontrol/background/KCrossBGRender.cpp
index 489e98d1b..8f91a904d 100644
--- a/kcontrol/background/KCrossBGRender.cpp
+++ b/kcontrol/background/KCrossBGRender.cpp
@@ -149,7 +149,7 @@ bool KCrossBGRender::needWallpaperChange(){
}
/*
- * This method change the enabledEffect flag to TRUE of FALSE, according
+ * This method change the enabledEffect flag to true of false, according
* with multiWallpaperMode and FileName (it needs to be a XML)
*/
void KCrossBGRender::fixEnabled(){
diff --git a/kcontrol/clock/dtime.cpp b/kcontrol/clock/dtime.cpp
index 37222ab90..6ff8505b5 100644
--- a/kcontrol/clock/dtime.cpp
+++ b/kcontrol/clock/dtime.cpp
@@ -225,17 +225,17 @@ void Dtime::set_time()
time.setHMS( hour->value(), minute->value(), second->value() );
kclock->setTime( time );
- emit timeChanged( TRUE );
+ emit timeChanged( true );
}
void Dtime::changeDate(TQDate d)
{
date = d;
- emit timeChanged( TRUE );
+ emit timeChanged( true );
}
void Dtime::configChanged(){
- emit timeChanged( TRUE );
+ emit timeChanged( true );
}
void Dtime::load()
@@ -347,11 +347,11 @@ void Dtime::timeout()
// get current time
time = TQTime::currentTime();
- ontimeout = TRUE;
+ ontimeout = true;
second->setValue(time.second());
minute->setValue(time.minute());
hour->setValue(time.hour());
- ontimeout = FALSE;
+ ontimeout = false;
kclock->setTime( time );
}
diff --git a/kcontrol/clock/tzone.h b/kcontrol/clock/tzone.h
index 8508c9ee0..5887628e9 100644
--- a/kcontrol/clock/tzone.h
+++ b/kcontrol/clock/tzone.h
@@ -43,7 +43,7 @@ signals:
void zoneChanged(bool);
protected slots:
- void handleZoneChange() {emit zoneChanged( TRUE );}
+ void handleZoneChange() {emit zoneChanged( true );}
private:
void currentZone();
diff --git a/kcontrol/colors/colorscm.cpp b/kcontrol/colors/colorscm.cpp
index e7b069584..7b8b029a7 100644
--- a/kcontrol/colors/colorscm.cpp
+++ b/kcontrol/colors/colorscm.cpp
@@ -167,7 +167,7 @@ KColorScheme::KColorScheme(TQWidget *parent, const char *name, const TQStringLis
" prompted for a name.") );
removeBt = new TQPushButton(i18n("R&emove Scheme"), group);
- removeBt->setEnabled(FALSE);
+ removeBt->setEnabled(false);
connect(removeBt, TQ_SIGNAL(clicked()), TQ_SLOT(slotRemove()));
TQWhatsThis::add( removeBt, i18n("Press this button to remove the selected"
diff --git a/kcontrol/colors/widgetcanvas.cpp b/kcontrol/colors/widgetcanvas.cpp
index addf82baa..3ee662627 100644
--- a/kcontrol/colors/widgetcanvas.cpp
+++ b/kcontrol/colors/widgetcanvas.cpp
@@ -344,7 +344,7 @@ void WidgetCanvas::drawSampleWidgets()
// Inactive window
- qDrawWinPanel ( &paint, 15, 5, width()-48, height(), cg, FALSE,
+ qDrawWinPanel ( &paint, 15, 5, width()-48, height(), cg, false,
&brush);
paint.setBrush( iaTitle );
@@ -392,7 +392,7 @@ void WidgetCanvas::drawSampleWidgets()
// Active window
- qDrawWinPanel ( &paint, 20, 25+5, width()-40, height(), cg, FALSE,
+ qDrawWinPanel ( &paint, 20, 25+5, width()-40, height(), cg, false,
&brush);
paint.setBrush( aTitle );paint.setPen( aTitle );
@@ -432,7 +432,7 @@ void WidgetCanvas::drawSampleWidgets()
// Menu bar
- //qDrawShadePanel ( &paint, 25, 55, width()-52, 28, cg, FALSE, 2, &brush);
+ //qDrawShadePanel ( &paint, 25, 55, width()-52, 28, cg, false, 2, &brush);
tdeApp->style().drawPrimitive(TQStyle::PE_PanelMenuBar, &paint,
TQRect(TQPoint(25, 55), TQSize(width()-52, 28)), cg);
@@ -440,7 +440,7 @@ void WidgetCanvas::drawSampleWidgets()
paint.setPen(txt );
TQString file = i18n("File");
textLen = paint.fontMetrics().width( file );
- //qDrawShadePanel ( &paint, 30, 59, textLen + 10, 21, cg, FALSE, 2, &brush);
+ //qDrawShadePanel ( &paint, 30, 59, textLen + 10, 21, cg, false, 2, &brush);
tdeApp->style().drawPrimitive(TQStyle::PE_Panel, &paint,
TQRect(30, 59, textLen + 10, 21), cg);
paint.drawText( 35, 74, file );
@@ -463,7 +463,7 @@ void WidgetCanvas::drawSampleWidgets()
brush.setColor( window );
qDrawShadePanel ( &paint, 25, 80+5-4, width()-7-45-2,
- height(), cg, TRUE, 2, &brush);
+ height(), cg, true, 2, &brush);
// Standard text
TQFont fnt = TDEGlobalSettings::generalFont();
@@ -583,12 +583,12 @@ void WidgetCanvas::drawSampleWidgets()
// Valance
qDrawWinPanel ( &paint, 0, 0, width(), height(),
- parentWidget()->colorGroup(), TRUE, 0);
+ parentWidget()->colorGroup(), true, 0);
// Stop the painting
hotspots[ spot++ ] =
HotSpot( TQRect( 0, 0, width(), height() ), CSM_Background ); // ?
- repaint( FALSE );
+ repaint( false );
}
diff --git a/kcontrol/displayconfig/displayconfig.cpp b/kcontrol/displayconfig/displayconfig.cpp
index 192940e60..21857b5bc 100644
--- a/kcontrol/displayconfig/displayconfig.cpp
+++ b/kcontrol/displayconfig/displayconfig.cpp
@@ -933,7 +933,7 @@ void KDisplayConfig::identifyMonitors () {
}
void KDisplayConfig::activatePreview() {
- m_randrsimple->applyDisplayConfiguration(m_screenInfoArray[activeProfileName], TRUE);
+ m_randrsimple->applyDisplayConfiguration(m_screenInfoArray[activeProfileName], true);
}
void KDisplayConfig::load()
@@ -1080,10 +1080,10 @@ void KDisplayConfig::renameProfile () {
void KDisplayConfig::activateProfile() {
if (getuid() != 0) {
- m_randrsimple->applyDisplayConfiguration(m_screenInfoArray[activeProfileName], TRUE, locateLocal("config", "/", true));
+ m_randrsimple->applyDisplayConfiguration(m_screenInfoArray[activeProfileName], true, locateLocal("config", "/", true));
}
else {
- m_randrsimple->applyDisplayConfiguration(m_screenInfoArray[activeProfileName], TRUE, KDE_CONFDIR);
+ m_randrsimple->applyDisplayConfiguration(m_screenInfoArray[activeProfileName], true, KDE_CONFDIR);
}
rescanHardware();
}
@@ -1331,7 +1331,7 @@ void KDisplayConfig::updateDragDropDisplay() {
for ( i = 0; i < int(monitors.count()); ++i ) {
if (::tqt_cast<DraggableMonitor*>(monitors.at( i ))) {
TQWidget *monitor = static_cast<TQWidget*>(monitors.at( i ));
- if ( !monitor->close(TRUE) ) {
+ if ( !monitor->close(true) ) {
Q_ASSERT("zombie monitor will not go away!");
}
}
@@ -1536,7 +1536,7 @@ void KDisplayConfig::gammaAllSliderChanged(int index) {
screendata->gamma_green = ((float)base->gammaAllSlider->value())/10.0;
screendata->gamma_blue = ((float)base->gammaAllSlider->value())/10.0;
- m_gammaApplyTimer->start(10, TRUE);
+ m_gammaApplyTimer->start(10, true);
base->gammaAllSlider->blockSignals(false);
base->gammaRedSlider->blockSignals(false);
@@ -1558,7 +1558,7 @@ void KDisplayConfig::gammaRedSliderChanged(int index) {
screendata->gamma_red = ((float)index)/10.0;
gammaSetAverageAllSlider();
setGammaLabels();
- m_gammaApplyTimer->start(10, TRUE);
+ m_gammaApplyTimer->start(10, true);
base->gammaAllSlider->blockSignals(false);
base->gammaRedSlider->blockSignals(false);
@@ -1580,7 +1580,7 @@ void KDisplayConfig::gammaGreenSliderChanged(int index) {
screendata->gamma_green = ((float)index)/10.0;
gammaSetAverageAllSlider();
setGammaLabels();
- m_gammaApplyTimer->start(10, TRUE);
+ m_gammaApplyTimer->start(10, true);
base->gammaAllSlider->blockSignals(false);
base->gammaRedSlider->blockSignals(false);
@@ -1602,7 +1602,7 @@ void KDisplayConfig::gammaBlueSliderChanged(int index) {
screendata->gamma_blue = ((float)index)/10.0;
gammaSetAverageAllSlider();
setGammaLabels();
- m_gammaApplyTimer->start(10, TRUE);
+ m_gammaApplyTimer->start(10, true);
base->gammaAllSlider->blockSignals(false);
base->gammaRedSlider->blockSignals(false);
@@ -1992,7 +1992,7 @@ void KDisplayConfig::saveActiveSystemWideProfileToDisk()
void KDisplayConfig::save()
{
- if (m_randrsimple->applyDisplayConfiguration(m_screenInfoArray[activeProfileName], TRUE)) {
+ if (m_randrsimple->applyDisplayConfiguration(m_screenInfoArray[activeProfileName], true)) {
saveActiveSystemWideProfileToDisk();
updateProfileConfigObjectFromGrid();
@@ -2021,7 +2021,7 @@ void KDisplayConfig::save()
// Signal that settings were NOT applied
TQTimer *t = new TQTimer( this );
connect(t, TQ_SIGNAL(timeout()), TQ_SLOT(changed()) );
- t->start( 100, FALSE );
+ t->start( 100, false );
}
}
diff --git a/kcontrol/ebrowsing/plugins/ikws/ikwsopts.cpp b/kcontrol/ebrowsing/plugins/ikws/ikwsopts.cpp
index 9a5adf2fc..dd20ec3ae 100644
--- a/kcontrol/ebrowsing/plugins/ikws/ikwsopts.cpp
+++ b/kcontrol/ebrowsing/plugins/ikws/ikwsopts.cpp
@@ -332,7 +332,7 @@ void FilterOptions::defaults()
void FilterOptions::configChanged()
{
- // kdDebug () << "FilterOptions::configChanged: TRUE" << endl;
+ // kdDebug () << "FilterOptions::configChanged: true" << endl;
emit changed(true);
}
diff --git a/kcontrol/info/info_aix.cpp b/kcontrol/info/info_aix.cpp
index 9aa0d3767..f4625813f 100644
--- a/kcontrol/info/info_aix.cpp
+++ b/kcontrol/info/info_aix.cpp
@@ -265,7 +265,7 @@ struct model _4C_models[] =
};
-/* all GetInfo_ functions should return TRUE, when the Information
+/* all GetInfo_ functions should return true, when the Information
was filled into the lBox-Widget.
returning false indicates, that information was not available.
*/
diff --git a/kcontrol/info/info_fbsd.cpp b/kcontrol/info/info_fbsd.cpp
index 3ccd1c086..ec7b90bf8 100644
--- a/kcontrol/info/info_fbsd.cpp
+++ b/kcontrol/info/info_fbsd.cpp
@@ -21,8 +21,8 @@
/*
- * all following functions should return TRUE, when the Information
- * was filled into the lBox-Widget. Returning FALSE indicates that
+ * all following functions should return true, when the Information
+ * was filled into the lBox-Widget. Returning false indicates that
* information was not available.
*/
diff --git a/kcontrol/info/info_generic.cpp b/kcontrol/info/info_generic.cpp
index 367e1657b..c914159ab 100644
--- a/kcontrol/info/info_generic.cpp
+++ b/kcontrol/info/info_generic.cpp
@@ -25,7 +25,7 @@
#define INFO_CD_ROM_AVAILABLE
-/* all following functions should return TRUE, when the Information
+/* all following functions should return true, when the Information
was filled into the lBox-Widget.
returning false indicates, that information was not available.
*/
diff --git a/kcontrol/info/info_linux.cpp b/kcontrol/info/info_linux.cpp
index bbda9691d..6354aa46d 100644
--- a/kcontrol/info/info_linux.cpp
+++ b/kcontrol/info/info_linux.cpp
@@ -293,7 +293,7 @@ static void cleanPassword(TQString & str)
while (index >= 0)
{
- index = str.find(passwd, index, FALSE);
+ index = str.find(passwd, index, false);
if (index >= 0) {
index += passwd.length();
while (index < (int) str.length() &&
diff --git a/kcontrol/info/info_netbsd.cpp b/kcontrol/info/info_netbsd.cpp
index 2fced7e40..73b252501 100644
--- a/kcontrol/info/info_netbsd.cpp
+++ b/kcontrol/info/info_netbsd.cpp
@@ -24,8 +24,8 @@
/*
- * all following functions should return TRUE, when the Information
- * was filled into the lBox-Widget. Returning FALSE indicates that
+ * all following functions should return true, when the Information
+ * was filled into the lBox-Widget. Returning false indicates that
* information was not available.
*/
@@ -179,7 +179,7 @@ bool GetInfo_IRQ (TQListView *lBox)
lBox->addColumn(i18n("IRQ"));
lBox->addColumn(i18n("Device"));
lBox->setSorting(0);
- lBox->setShowSortIndicator(FALSE);
+ lBox->setShowSortIndicator(false);
(void) GetDmesgInfo(lBox, "[ (]irq ", AddIRQLine);
return true;
}
diff --git a/kcontrol/info/info_openbsd.cpp b/kcontrol/info/info_openbsd.cpp
index 7b484da76..84000b79a 100644
--- a/kcontrol/info/info_openbsd.cpp
+++ b/kcontrol/info/info_openbsd.cpp
@@ -24,8 +24,8 @@
/*
- * all following functions should return TRUE, when the Information
- * was filled into the lBox-Widget. Returning FALSE indicates that
+ * all following functions should return true, when the Information
+ * was filled into the lBox-Widget. Returning false indicates that
* information was not available.
*/
diff --git a/kcontrol/info/info_osx.cpp b/kcontrol/info/info_osx.cpp
index 5f18aebea..96bfa75bb 100644
--- a/kcontrol/info/info_osx.cpp
+++ b/kcontrol/info/info_osx.cpp
@@ -31,8 +31,8 @@
#define INFO_XSERVER_AVAILABLE
/*
- * all following functions should return TRUE, when the Information
- * was filled into the lBox-Widget. Returning FALSE indicates that
+ * all following functions should return true, when the Information
+ * was filled into the lBox-Widget. Returning false indicates that
* information was not available.
*/
diff --git a/kcontrol/info/info_sgi.cpp b/kcontrol/info/info_sgi.cpp
index 7961d4e16..f2740c0d4 100644
--- a/kcontrol/info/info_sgi.cpp
+++ b/kcontrol/info/info_sgi.cpp
@@ -15,7 +15,7 @@
#define INFO_XSERVER_AVAILABLE
-/* all following functions should return TRUE, when the Information
+/* all following functions should return true, when the Information
was filled into the lBox-Widget.
returning false indicates, that information was not available.
*/
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
}
}
diff --git a/kcontrol/keys/keyconfig.cpp b/kcontrol/keys/keyconfig.cpp
index 3235d15c7..1c7340220 100644
--- a/kcontrol/keys/keyconfig.cpp
+++ b/kcontrol/keys/keyconfig.cpp
@@ -128,7 +128,7 @@ void KKeyModule::init( bool isGlobal, bool _bSeriesOnly, bool bSeriesNone )
TQWhatsThis::add(addBt, i18n("Click here to add a new key bindings scheme. You will be prompted for a name."));
removeBt = new TQPushButton( i18n("&Remove Scheme"), this );
- removeBt->setEnabled(FALSE);
+ removeBt->setEnabled(false);
connect( removeBt, TQ_SIGNAL( clicked() ), TQ_SLOT( slotRemove() ) );
TQWhatsThis::add( removeBt, i18n("Click here to remove the selected key bindings scheme. You can not"
" remove the standard system wide schemes, 'Current scheme' and 'TDE default'.") );
@@ -303,7 +303,7 @@ void KKeyModule::readScheme( int index )
do {
- nameValid = TRUE;
+ nameValid = true;
if ( ss.exec() ) {
sName = ss.nameLine->text();
@@ -354,7 +354,7 @@ void KKeyModule::readScheme( int index )
}
} else return;
- } while ( nameValid == FALSE );
+ } while ( nameValid == false );
disconnect( sList, TQ_SIGNAL( highlighted( int ) ), this,
TQ_SLOT( slotPreviewScheme( int ) ) );
@@ -418,9 +418,9 @@ void KKeyModule::readScheme( int index )
if ( indx < nSysSchemes ||
(*sFileList->at(indx)).contains( "/global-" ) ||
(*sFileList->at(indx)).contains( "/app-" ) ) {
- removeBt->setEnabled( FALSE );
+ removeBt->setEnabled( false );
} else {
- removeBt->setEnabled( TRUE );
+ removeBt->setEnabled( true );
}
}*/
diff --git a/kcontrol/konq/desktopbehavior_impl.cpp b/kcontrol/konq/desktopbehavior_impl.cpp
index 16f8688d7..41885202f 100644
--- a/kcontrol/konq/desktopbehavior_impl.cpp
+++ b/kcontrol/konq/desktopbehavior_impl.cpp
@@ -253,7 +253,7 @@ void DesktopBehavior::setMediaListViewEnabled(bool enabled)
if (it->mimeType().startsWith("media/builtin-") == false)
it->setVisible(enabled);
else
- it->setVisible(TRUE);
+ it->setVisible(true);
}
}
diff --git a/kcontrol/konqhtml/pluginopts.cpp b/kcontrol/konqhtml/pluginopts.cpp
index 0af6b8db8..412fbe0b8 100644
--- a/kcontrol/konqhtml/pluginopts.cpp
+++ b/kcontrol/konqhtml/pluginopts.cpp
@@ -555,7 +555,7 @@ void KPluginOptions::pluginLoad( TDEConfig* /*config*/ )
continue;
}
- TQStringList desc = TQStringList::split(':', line, TRUE);
+ TQStringList desc = TQStringList::split(':', line, true);
TQString mime = desc[0].stripWhiteSpace();
TQString name = desc[2];
TQString suffixes = desc[1];
diff --git a/kcontrol/locale/klocalesample.cpp b/kcontrol/locale/klocalesample.cpp
index aac454061..487a3455e 100644
--- a/kcontrol/locale/klocalesample.cpp
+++ b/kcontrol/locale/klocalesample.cpp
@@ -42,7 +42,7 @@ TDELocaleSample::TDELocaleSample(TDELocale *locale,
m_locale(locale)
{
TQGridLayout *lay = new TQGridLayout(this, 5, 2);
- lay->setAutoAdd(TRUE);
+ lay->setAutoAdd(true);
// Whatever the color scheme is, we want black text
TQColorGroup a = palette().active();
diff --git a/kcontrol/locale/localenum.cpp b/kcontrol/locale/localenum.cpp
index 9eec5ec01..d4311a1e7 100644
--- a/kcontrol/locale/localenum.cpp
+++ b/kcontrol/locale/localenum.cpp
@@ -43,7 +43,7 @@ TDELocaleConfigNumber::TDELocaleConfigNumber(TDELocale *locale,
TQGridLayout *lay = new TQGridLayout(this, 5, 2,
KDialog::marginHint(),
KDialog::spacingHint());
- lay->setAutoAdd(TRUE);
+ lay->setAutoAdd(true);
m_labDecSym = new TQLabel(this, I18N_NOOP("&Decimal symbol:"));
m_edDecSym = new TQLineEdit(this);
diff --git a/kcontrol/locale/localetime.cpp b/kcontrol/locale/localetime.cpp
index cfe76557d..c181dfb11 100644
--- a/kcontrol/locale/localetime.cpp
+++ b/kcontrol/locale/localetime.cpp
@@ -198,7 +198,7 @@ TDELocaleConfigTime::TDELocaleConfigTime(TDELocale *_locale,
TQGridLayout *lay = new TQGridLayout(this, 7, 2,
KDialog::marginHint(),
KDialog::spacingHint());
- lay->setAutoAdd(TRUE);
+ lay->setAutoAdd(true);
m_labCalendarSystem = new TQLabel(this, I18N_NOOP("Calendar system:"));
m_comboCalendarSystem = new TQComboBox(false, this);
diff --git a/kcontrol/locale/toplevel.cpp b/kcontrol/locale/toplevel.cpp
index f367d5121..525a73953 100644
--- a/kcontrol/locale/toplevel.cpp
+++ b/kcontrol/locale/toplevel.cpp
@@ -64,7 +64,7 @@ TDELocaleApplication::TDELocaleApplication(TQWidget *parent, const char* /*name*
m_locale = new TDELocale(TQString::fromLatin1("kcmlocale"), m_nullConfig);
TQVBoxLayout *l = new TQVBoxLayout(this, 0, KDialog::spacingHint());
- l->setAutoAdd(TRUE);
+ l->setAutoAdd(true);
m_tab = new TQTabWidget(this);
diff --git a/kcontrol/randr/tderandrapp.cpp b/kcontrol/randr/tderandrapp.cpp
index 97e602496..a6d704e30 100644
--- a/kcontrol/randr/tderandrapp.cpp
+++ b/kcontrol/randr/tderandrapp.cpp
@@ -41,7 +41,7 @@ void KRandRApp::handleX11ConfigChangeEvent()
bool KRandRApp::x11EventFilter(XEvent* e)
{
if (e->type == m_tray->screenChangeNotifyEvent()) {
- m_eventMergingTimer.start(1000, TRUE);
+ m_eventMergingTimer.start(1000, true);
}
return TDEApplication::x11EventFilter( e );
}
diff --git a/kcontrol/randr/tderandrtray.cpp b/kcontrol/randr/tderandrtray.cpp
index 37d49dbb0..7506f3907 100644
--- a/kcontrol/randr/tderandrtray.cpp
+++ b/kcontrol/randr/tderandrtray.cpp
@@ -851,7 +851,7 @@ void KRandRSystemTray::slotDisplayProfileChanged(int parameter)
profileName = "";
}
TQPtrList<SingleScreenData> profileData = loadDisplayConfiguration(profileName, locateLocal("config", "/", true));
- applyDisplayConfiguration(profileData, TRUE, locateLocal("config", "/", true));
+ applyDisplayConfiguration(profileData, true, locateLocal("config", "/", true));
destroyScreenInformationObject(profileData);
}
diff --git a/kcontrol/samba/kcmsambalog.cpp b/kcontrol/samba/kcmsambalog.cpp
index a2a03fed3..fdb21bb1e 100644
--- a/kcontrol/samba/kcmsambalog.cpp
+++ b/kcontrol/samba/kcmsambalog.cpp
@@ -90,7 +90,7 @@ LogView::LogView(TQWidget *parent,TDEConfig *config, const char *name)
logFileName.setURL("/var/log/samba.log");
- viewHistory.setAllColumnsShowFocus(TRUE);
+ viewHistory.setAllColumnsShowFocus(true);
viewHistory.setFocusPolicy(TQWidget::ClickFocus);
viewHistory.setShowSortIndicator(true);
@@ -108,10 +108,10 @@ LogView::LogView(TQWidget *parent,TDEConfig *config, const char *name)
" If the list is empty, try clicking the \"Update\" button. The samba"
" log file will be read and the list refreshed.") );
- showConnOpen.setChecked(TRUE);
- showConnClose.setChecked(TRUE);
- showFileOpen.setChecked(FALSE);
- showFileClose.setChecked(FALSE);
+ showConnOpen.setChecked(true);
+ showConnClose.setChecked(true);
+ showFileOpen.setChecked(false);
+ showFileClose.setChecked(false);
connect(&updateButton,TQ_SIGNAL(clicked()),this,TQ_SLOT(updateList()));
emit contentsChanged(&viewHistory,0,0);
@@ -132,10 +132,10 @@ void LogView::loadSettings()
configFile->setGroup(LOGGROUPNAME);
logFileName.setURL(configFile->readPathEntry( "SambaLogFile", "/var/log/samba.log"));
- showConnOpen.setChecked(configFile->readBoolEntry( "ShowConnectionOpen", TRUE));
- showConnClose.setChecked(configFile->readBoolEntry( "ShowConnectionClose", FALSE));
- showFileOpen.setChecked(configFile->readBoolEntry( "ShowFileOpen", TRUE));
- showFileClose.setChecked(configFile->readBoolEntry( "ShowFileClose", FALSE));
+ showConnOpen.setChecked(configFile->readBoolEntry( "ShowConnectionOpen", true));
+ showConnClose.setChecked(configFile->readBoolEntry( "ShowConnectionClose", false));
+ showFileOpen.setChecked(configFile->readBoolEntry( "ShowFileOpen", true));
+ showFileClose.setChecked(configFile->readBoolEntry( "ShowFileClose", false));
}
void LogView::saveSettings()
diff --git a/kcontrol/samba/kcmsambastatistics.cpp b/kcontrol/samba/kcmsambastatistics.cpp
index faeb54702..650c43a05 100644
--- a/kcontrol/samba/kcmsambastatistics.cpp
+++ b/kcontrol/samba/kcmsambastatistics.cpp
@@ -59,7 +59,7 @@ StatisticsView::StatisticsView(TQWidget *parent,TDEConfig *config, const char *n
expandedInfoCb = new TQCheckBox( i18n( "Show expanded service info" ), this );
expandedUserCb = new TQCheckBox( i18n( "Show expanded host info" ), this );
- viewStatistics->setAllColumnsShowFocus(TRUE);
+ viewStatistics->setAllColumnsShowFocus(true);
viewStatistics->setFocusPolicy(TQWidget::ClickFocus);
viewStatistics->setShowSortIndicator(true);
@@ -73,8 +73,8 @@ StatisticsView::StatisticsView(TQWidget *parent,TDEConfig *config, const char *n
eventCb->insertItem(i18n("Connection"));
eventCb->insertItem(i18n("File Access"));
- expandedInfoCb->setChecked(FALSE);
- expandedUserCb->setChecked(FALSE);
+ expandedInfoCb->setChecked(false);
+ expandedUserCb->setChecked(false);
clearStatistics();
serviceLe->setText("*");
hostLe->setText("*");
@@ -142,8 +142,8 @@ void StatisticsView::calculate()
if ((expandedInfoCb->isChecked()) || (expandedUserCb->isChecked()))
{
SambaLog sLog;
- TQRegExp rService(serviceLe->text(),FALSE,TRUE);
- TQRegExp rHost(hostLe->text(),FALSE,TRUE);
+ TQRegExp rService(serviceLe->text(),false,true);
+ TQRegExp rHost(hostLe->text(),false,true);
TQString item2, item3;
TQListViewItem* item=dataList->firstChild();
while (item!=0)
@@ -194,8 +194,8 @@ void StatisticsView::calculate()
{
calcCount++;
int count(0);
- TQRegExp rService(serviceLe->text(),FALSE,TRUE);
- TQRegExp rHost(hostLe->text(),FALSE,TRUE);
+ TQRegExp rService(serviceLe->text(),false,true);
+ TQRegExp rHost(hostLe->text(),false,true);
TQListViewItem* item=dataList->firstChild();
while (item!=0)
{
diff --git a/kcontrol/samba/kcmsambastatistics.h b/kcontrol/samba/kcmsambastatistics.h
index 157fc62b3..cf7817ce5 100644
--- a/kcontrol/samba/kcmsambastatistics.h
+++ b/kcontrol/samba/kcmsambastatistics.h
@@ -50,7 +50,7 @@ class LogItem
LogItem():name(""), accessed(),count(0) {};
LogItem(TQString n, TQString a):name(n), accessed(), count(1)
{
- accessed.setAutoDelete(TRUE);
+ accessed.setAutoDelete(true);
accessed.append(new SmallLogItem(a));
};
TQString name;
@@ -66,7 +66,7 @@ class SambaLog
public:
SambaLog()
{
- items.setAutoDelete(TRUE);
+ items.setAutoDelete(true);
};
TQPtrList<LogItem> items;
void addItem (TQString share, TQString host);
diff --git a/kcontrol/screensaver/scrnsave.cpp b/kcontrol/screensaver/scrnsave.cpp
index a31be2be0..1b13bfe12 100644
--- a/kcontrol/screensaver/scrnsave.cpp
+++ b/kcontrol/screensaver/scrnsave.cpp
@@ -899,7 +899,7 @@ void KScreenSaver::slotTest()
grabMouse();
grabKeyboard();
- mTestBt->setEnabled( FALSE );
+ mTestBt->setEnabled( false );
mPreviewProc->kill();
while (!ts.atEnd())
diff --git a/kcontrol/smartcard/smartcard.cpp b/kcontrol/smartcard/smartcard.cpp
index 8425d9124..998f936e8 100644
--- a/kcontrol/smartcard/smartcard.cpp
+++ b/kcontrol/smartcard/smartcard.cpp
@@ -92,7 +92,7 @@ KSmartcardConfig::KSmartcardConfig(TQWidget *parent, const char *name)
"",
"signalReaderListChanged(TQStringList)",
"loadReadersTab(TQStringList)",
- FALSE))
+ false))
kdDebug()<<"Error connecting to DCOP server" <<endl;
@@ -101,7 +101,7 @@ KSmartcardConfig::KSmartcardConfig(TQWidget *parent, const char *name)
"",
"signalCardStateChanged(TQString,bool,TQString)",
"updateReadersState (TQString,bool,TQString) ",
- FALSE))
+ false))
kdDebug()<<"Error connecting to DCOP server" <<endl;
_cardDB= new KCardDB();
@@ -263,14 +263,14 @@ void KSmartcardConfig::getSupportingModule( TDEListViewItem * ant,
type,
subType,
subSubType);
- hil->setSelectable(FALSE);
+ hil->setSelectable(false);
}
else{
TDEListViewItem * hil =new TDEListViewItem(ant,
i18n("No module managing this card"));
- hil->setSelectable(FALSE);
+ hil->setSelectable(false);
}
}
diff --git a/kcontrol/spellchecking/spellchecking.cpp b/kcontrol/spellchecking/spellchecking.cpp
index 5b08f56cf..6816cd6c2 100644
--- a/kcontrol/spellchecking/spellchecking.cpp
+++ b/kcontrol/spellchecking/spellchecking.cpp
@@ -66,7 +66,7 @@ void KSpellCheckingConfig::defaults()
spellConfig->setNoRootAffix(0);
spellConfig->setRunTogether(0);
spellConfig->setDictionary("");
- spellConfig->setDictFromList(FALSE);
+ spellConfig->setDictFromList(false);
spellConfig->setEncoding (KS_E_UTF8);
spellConfig->setClient (KS_CLIENT_ISPELL);
}
diff --git a/kcontrol/style/kcmstyle.cpp b/kcontrol/style/kcmstyle.cpp
index a2a7edaf2..0ef66c6b3 100644
--- a/kcontrol/style/kcmstyle.cpp
+++ b/kcontrol/style/kcmstyle.cpp
@@ -163,12 +163,12 @@ KCMStyle::KCMStyle( TQWidget* parent, const char* name )
hbLayout = new TQHBoxLayout( KDialog::spacingHint(), "hbLayout" );
cbStyle = new KComboBox( gbWidgetStyle, "cbStyle" );
- cbStyle->setEditable( FALSE );
+ cbStyle->setEditable( false );
hbLayout->addWidget( cbStyle );
pbConfigStyle = new TQPushButton( i18n("Con&figure..."), gbWidgetStyle );
pbConfigStyle->setSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Minimum );
- pbConfigStyle->setEnabled( FALSE );
+ pbConfigStyle->setEnabled( false );
hbLayout->addWidget( pbConfigStyle );
gbWidgetStyleLayout->addLayout( hbLayout );
@@ -227,7 +227,7 @@ KCMStyle::KCMStyle( TQWidget* parent, const char* name )
containerLayout = new TQGridLayout( containerFrame, 1, 1, // rows, columns
KDialog::marginHint(), KDialog::spacingHint() );
- comboComboEffect = new TQComboBox( FALSE, containerFrame );
+ comboComboEffect = new TQComboBox( false, containerFrame );
comboComboEffect->insertItem( i18n("Disable") );
comboComboEffect->insertItem( i18n("Animate") );
lblComboEffect = new TQLabel( i18n("Combobo&x effect:"), containerFrame );
@@ -235,7 +235,7 @@ KCMStyle::KCMStyle( TQWidget* parent, const char* name )
containerLayout->addWidget( lblComboEffect, 0, 0 );
containerLayout->addWidget( comboComboEffect, 0, 1 );
- comboTooltipEffect = new TQComboBox( FALSE, containerFrame );
+ comboTooltipEffect = new TQComboBox( false, containerFrame );
comboTooltipEffect->insertItem( i18n("Disable") );
comboTooltipEffect->insertItem( i18n("Animate") );
comboTooltipEffect->insertItem( i18n("Fade") );
@@ -244,7 +244,7 @@ KCMStyle::KCMStyle( TQWidget* parent, const char* name )
containerLayout->addWidget( lblTooltipEffect, 1, 0 );
containerLayout->addWidget( comboTooltipEffect, 1, 1 );
- comboRubberbandEffect = new TQComboBox( FALSE, containerFrame );
+ comboRubberbandEffect = new TQComboBox( false, containerFrame );
comboRubberbandEffect->insertItem( i18n("Disable") );
comboRubberbandEffect->insertItem( i18n("Make translucent") );
lblRubberbandEffect = new TQLabel( i18n("&Rubberband effect:"), containerFrame );
@@ -252,7 +252,7 @@ KCMStyle::KCMStyle( TQWidget* parent, const char* name )
containerLayout->addWidget( lblRubberbandEffect, 2, 0 );
containerLayout->addWidget( comboRubberbandEffect, 2, 1 );
- comboMenuEffect = new TQComboBox( FALSE, containerFrame );
+ comboMenuEffect = new TQComboBox( false, containerFrame );
comboMenuEffect->insertItem( i18n("Disable") );
comboMenuEffect->insertItem( i18n("Animate") );
comboMenuEffect->insertItem( i18n("Fade") );
@@ -262,7 +262,7 @@ KCMStyle::KCMStyle( TQWidget* parent, const char* name )
containerLayout->addWidget( lblMenuEffect, 3, 0 );
containerLayout->addWidget( comboMenuEffect, 3, 1 );
- comboMenuHandle = new TQComboBox( FALSE, containerFrame );
+ comboMenuHandle = new TQComboBox( false, containerFrame );
comboMenuHandle->insertItem( i18n("Disable") );
comboMenuHandle->insertItem( i18n("Application Level") );
// comboMenuHandle->insertItem( i18n("Enable") );
@@ -291,7 +291,7 @@ KCMStyle::KCMStyle( TQWidget* parent, const char* name )
menuPreview = new MenuPreview( menuContainer, /* opacity */ 90, MenuPreview::Blend );
- comboMenuEffectType = new TQComboBox( FALSE, menuContainer );
+ comboMenuEffectType = new TQComboBox( false, menuContainer );
comboMenuEffectType->insertItem( i18n("Software Tint") );
comboMenuEffectType->insertItem( i18n("Software Blend") );
#ifdef HAVE_XRENDER
@@ -353,7 +353,7 @@ KCMStyle::KCMStyle( TQWidget* parent, const char* name )
TQHBoxLayout* box2 = new TQHBoxLayout( dummy, 0, KDialog::spacingHint() );
lbl = new TQLabel( i18n("Text pos&ition:"), dummy );
- comboToolbarIcons = new TQComboBox( FALSE, dummy );
+ comboToolbarIcons = new TQComboBox( false, dummy );
comboToolbarIcons->insertItem( i18n("Icons Only") );
comboToolbarIcons->insertItem( i18n("Text Only") );
comboToolbarIcons->insertItem( i18n("Text Alongside Icons") );
@@ -697,11 +697,11 @@ bool KCMStyle::findStyle( const TQString& str, int& combobox_item )
if ( cbStyle->text(i) == name )
{
combobox_item = i;
- return TRUE;
+ return true;
}
}
- return FALSE;
+ return false;
}
diff --git a/kcontrol/style/stylepreview.ui.h b/kcontrol/style/stylepreview.ui.h
index 38f47ecee..2d2128396 100644
--- a/kcontrol/style/stylepreview.ui.h
+++ b/kcontrol/style/stylepreview.ui.h
@@ -59,9 +59,9 @@ bool StylePreview::eventFilter( TQObject* /* obj */, TQEvent* ev )
case TQEvent::Leave:
case TQEvent::Wheel:
case TQEvent::ContextMenu:
- return TRUE; // ignore
+ return true; // ignore
default:
break;
}
- return FALSE;
+ return false;
}
diff --git a/kcontrol/taskbar/kcmtaskbar.cpp b/kcontrol/taskbar/kcmtaskbar.cpp
index 73b0a1f96..0d6de4f0c 100644
--- a/kcontrol/taskbar/kcmtaskbar.cpp
+++ b/kcontrol/taskbar/kcmtaskbar.cpp
@@ -200,7 +200,7 @@ TaskbarConfig::TaskbarConfig(TQWidget *parent, const char* name, const TQStringL
TQFile configFile(locateLocal("config", m_configFileName));
if (!configFile.exists())
{
- TDEConfig globalConfig(GLOBAL_TASKBAR_CONFIG_FILE_NAME, TRUE, TRUE);
+ TDEConfig globalConfig(GLOBAL_TASKBAR_CONFIG_FILE_NAME, true, true);
TDEConfig localConfig(m_configFileName);
globalConfig.copyTo(m_configFileName, &localConfig);
localConfig.sync();
@@ -333,7 +333,7 @@ void TaskbarConfig::processLockouts()
void TaskbarConfig::slotReloadConfigurationFromGlobals()
{
- TDEConfig globalConfig(GLOBAL_TASKBAR_CONFIG_FILE_NAME, TRUE, TRUE);
+ TDEConfig globalConfig(GLOBAL_TASKBAR_CONFIG_FILE_NAME, true, true);
TDEConfig localConfig(m_configFileName);
globalConfig.copyTo(m_configFileName, &localConfig);
localConfig.sync();
diff --git a/kcontrol/tdm/tdm-shut.cpp b/kcontrol/tdm/tdm-shut.cpp
index 6d6ed8cd7..30dd0f506 100644
--- a/kcontrol/tdm/tdm-shut.cpp
+++ b/kcontrol/tdm/tdm-shut.cpp
@@ -49,13 +49,13 @@ TDMSessionsWidget::TDMSessionsWidget(TQWidget *parent, const char *name)
TQGroupBox *group0 = new TQGroupBox( i18n("Allow Shutdown"), this );
- sdlcombo = new TQComboBox( FALSE, group0 );
+ sdlcombo = new TQComboBox( false, group0 );
sdllabel = new TQLabel (sdlcombo, i18n ("&Local:"), group0);
sdlcombo->insertItem(i18n("Everybody"), SdAll);
sdlcombo->insertItem(i18n("Only Root"), SdRoot);
sdlcombo->insertItem(i18n("Nobody"), SdNone);
connect(sdlcombo, TQ_SIGNAL(activated(int)), TQ_SLOT(changed()));
- sdrcombo = new TQComboBox( FALSE, group0 );
+ sdrcombo = new TQComboBox( false, group0 );
sdrlabel = new TQLabel (sdrcombo, i18n ("&Remote:"), group0);
sdrcombo->insertItem(i18n("Everybody"), SdAll);
sdrcombo->insertItem(i18n("Only Root"), SdRoot);