summaryrefslogtreecommitdiffstats
path: root/kcontrol/displayconfig/displayconfig.cpp
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/displayconfig/displayconfig.cpp
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/displayconfig/displayconfig.cpp')
-rw-r--r--kcontrol/displayconfig/displayconfig.cpp20
1 files changed, 10 insertions, 10 deletions
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 );
}
}