summaryrefslogtreecommitdiffstats
path: root/kcontrol/colors
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:26:17 +0900
commit7f36db4704fe1e47683ecc8e07654b4762edd725 (patch)
treeefd584e0370eaaf5540ecbd6e588f4012a212900 /kcontrol/colors
parentecaede25a924ea84ed48a164299a9d96a7976b1f (diff)
downloadtdebase-7f36db47.tar.gz
tdebase-7f36db47.zip
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 0a439ac80bdf6ffb9cac104ad3098a321ee0403c)
Diffstat (limited to 'kcontrol/colors')
-rw-r--r--kcontrol/colors/colorscm.cpp2
-rw-r--r--kcontrol/colors/widgetcanvas.cpp14
2 files changed, 8 insertions, 8 deletions
diff --git a/kcontrol/colors/colorscm.cpp b/kcontrol/colors/colorscm.cpp
index aa5703fbb..87eaee6af 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 81399b438..8b829494c 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);
kapp->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);
kapp->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 );
}