From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/themes-example.html | 66 ++++++++++++++++++++++---------------------- 1 file changed, 33 insertions(+), 33 deletions(-) (limited to 'doc/html/themes-example.html') diff --git a/doc/html/themes-example.html b/doc/html/themes-example.html index c78ce1e67..c49cee9a4 100644 --- a/doc/html/themes-example.html +++ b/doc/html/themes-example.html @@ -1005,13 +1005,13 @@ enum { PointUp, PointDown, PointLeft, PointRight }; TQBrush(op.disabled().background(), background) ); - app->setPalette(TQPalette(active, disabled, active), TRUE ); + app->setPalette(TQPalette(active, disabled, active), true ); } void NorwegianWoodStyle::unPolish( TQApplication *app) { - app->setPalette(oldPalette, TRUE); + app->setPalette(oldPalette, true); } /*! @@ -1028,7 +1028,7 @@ void NorwegianWoodStyle::polish( if ( w->inherits("TQPushButton") || w->inherits("TQToolButton") || w->inherits("TQComboBox") ) { - w->setAutoMask( TRUE ); + w->setAutoMask( true ); return; } if ( w->backgroundPixmap() ) @@ -1045,7 +1045,7 @@ void NorwegianWoodStyle::unPolish( inherits("TQPushButton") || w->inherits("TQToolButton") || w->inherits("TQComboBox") ) { - w->setAutoMask( FALSE ); + w->setAutoMask( false ); return; } if ( w->backgroundPixmap() ) @@ -1098,7 +1098,7 @@ void NorwegianWoodStyle::unPolish( p->fillRect( r, (flags & Style_Sunken ? TQBrush( cg.light(), *sunkenLight) : cg.brush( TQColorGroup::Dark ) ) ); } p->setClipRegion( internR ); - p->setClipping( FALSE ); + p->setClipping( false ); p->setPen( cg.foreground() ); drawroundrect( p, x, y, w, h, d ); p->setPen( oldPen ); @@ -1294,7 +1294,7 @@ void NorwegianWoodStyle::unPolish( editable() ) { TQRect r( querySubControlMetrics(CC_ComboBox, widget, SC_ComboBoxEditField, opt) ); - qDrawShadePanel( p, r, cg, TRUE, 1, + qDrawShadePanel( p, r, cg, true, 1, &cg.brush(TQColorGroup::Button) ); } @@ -1616,9 +1616,9 @@ public: private: void drawMetalFrame( TQPainter *p, int x, int y, int w, int h ) const; void drawMetalGradient( TQPainter *p, int x, int y, int w, int h, - bool sunken, bool horz, bool flat=FALSE ) const; + bool sunken, bool horz, bool flat=false ) const; void drawMetalButton( TQPainter *p, int x, int y, int w, int h, - bool sunken, bool horz, bool flat=FALSE ) const; + bool sunken, bool horz, bool flat=false ) const; TQPalette oldPalette; }; @@ -1681,10 +1681,10 @@ private: // pixmaps here and apply to it all widgets TQFont f("times", app->font().pointSize() ); - f.setBold( TRUE ); - f.setItalic( TRUE ); - app->setFont( f, TRUE, "TQMenuBar"); - app->setFont( f, TRUE, "TQPopupMenu"); + f.setBold( true ); + f.setItalic( true ); + app->setFont( f, true, "TQMenuBar"); + app->setFont( f, true, "TQPopupMenu"); @@ -1727,7 +1727,7 @@ private: ); TQPalette newPalette( active, disabled, active ); - app->setPalette( newPalette, TRUE ); + app->setPalette( newPalette, true ); } /*! @@ -1735,8 +1735,8 @@ private: */ void MetalStyle::unPolish( TQApplication *app) { - app->setPalette(oldPalette, TRUE); - app->setFont( app->font(), TRUE ); + app->setPalette(oldPalette, true); + app->setFont( app->font(), true ); } /*! @@ -1793,7 +1793,7 @@ void MetalStyle::unPolish( drawMetalButton( p, r.x(), r.y(), r.width(), r.height(), (flags & (Style_Sunken|Style_On|Style_Down)), - TRUE, !(flags & Style_Raised) ); + true, !(flags & Style_Raised) ); break; case PE_PanelMenuBar: drawMetalFrame( p, r.x(), r.y(), r.width(), r.height() ); @@ -1813,7 +1813,7 @@ void MetalStyle::unPolish( x(), r.y(), r.width(), r.height(), FALSE, + drawMetalButton( p, r.x(), r.y(), r.width(), r.height(), false, flags & Style_Horizontal ); break; default: @@ -1946,7 +1946,7 @@ void MetalStyle::unPolish( if ( (sub & SC_SliderHandle) && handle.isValid() ) drawMetalButton( p, handle.x(), handle.y(), handle.width(), - handle.height(), FALSE, + handle.height(), false, slider->orientation() == TQSlider::Horizontal); break; } @@ -1955,11 +1955,11 @@ void MetalStyle::unPolish( TQComboBox *cmb = ( const TQComboBox* ) widget; - qDrawWinPanel( p, r.x(), r.y(), r.width(), r.height(), cg, TRUE, + qDrawWinPanel( p, r.x(), r.y(), r.width(), r.height(), cg, true, cmb->isEnabled() ? &cg.brush( TQColorGroup::Base ) : &cg.brush( TQColorGroup::Background ) ); drawMetalButton( p, r.x() + r.width() - 2 - 16, r.y() + 2, 16, r.height() - 4, - how & Style_Sunken, TRUE ); + how & Style_Sunken, true ); drawPrimitive( PE_ArrowDown, p, TQRect( r.x() + r.width() - 2 - 16 + 2, r.y() + 2 + 2, 16 - 4, r.height() - 4 -4 ), @@ -1977,8 +1977,8 @@ void MetalStyle::unPolish( MetalStyle::drawMetalButton( TQPainter *p, int x, int y, int w, int h, @@ -2216,12 +2216,12 @@ private: setCentralWidget( tabwidget ); TQPopupMenu *style = new TQPopupMenu( this ); - style->setCheckable( TRUE ); + style->setCheckable( true ); menuBar()->insertItem( "&Style" , style ); - style->setCheckable( TRUE ); + style->setCheckable( true ); TQActionGroup *ag = new TQActionGroup( this, 0 ); - ag->setExclusive( TRUE ); + ag->setExclusive( true ); TQSignalMapper *styleMapper = new TQSignalMapper( this ); connect( styleMapper, TQ_SIGNAL( mapped( const TQString& ) ), this, TQ_SLOT( makeStyle( const TQString& ) ) ); TQStringList list = TQStyleFactory::keys(); @@ -2230,7 +2230,7 @@ private: list.insert(list.begin(), "Norwegian Wood"); list.insert(list.begin(), "Metal"); #endif - TQDict<int> stylesDict( 17, FALSE ); + TQDict<int> stylesDict( 17, false ); for ( TQStringList::Iterator it = list.begin(); it != list.end(); ++it ) { TQString styleStr = *it; TQString styleAccel = styleStr; @@ -2279,10 +2279,10 @@ void Themes::makeStyle(const TQString tqApp->setStyle(style); if(style == "Platinum") { TQPalette p( TQColor( 239, 239, 239 ) ); - tqApp->setPalette( p, TRUE ); - tqApp->setFont( appFont, TRUE ); + tqApp->setPalette( p, true ); + tqApp->setFont( appFont, true ); } else if(style == "Windows") { - tqApp->setFont( appFont, TRUE ); + tqApp->setFont( appFont, true ); } else if(style == "CDE") { TQPalette p( TQColor( 75, 123, 130 ) ); p.setColor( TQPalette::Active, TQColorGroup::Base, TQColor( 55, 77, 78 ) ); @@ -2303,12 +2303,12 @@ void Themes::makeStyle(const TQString p.setColor( TQPalette::Disabled, TQColorGroup::Foreground, TQt::lightGray ); p.setColor( TQPalette::Disabled, TQColorGroup::Text, TQt::lightGray ); p.setColor( TQPalette::Disabled, TQColorGroup::ButtonText, TQt::lightGray ); - tqApp->setPalette( p, TRUE ); - tqApp->setFont( TQFont( "times", appFont.pointSize() ), TRUE ); + tqApp->setPalette( p, true ); + tqApp->setFont( TQFont( "times", appFont.pointSize() ), true ); } else if(style == "Motif" || style == "MotifPlus") { TQPalette p( TQColor( 192, 192, 192 ) ); - tqApp->setPalette( p, TRUE ); - tqApp->setFont( appFont, TRUE ); + tqApp->setPalette( p, true ); + tqApp->setFont( appFont, true ); } } } -- cgit v1.2.3