diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-06 11:29:57 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-06 11:29:57 +0900 |
commit | dcce5b1f2c449ed9a02b1752e0d74f147a83d07d (patch) | |
tree | d57fe27457a96451f1a67e2a2db268a441d917fc /doc/html/themes-example.html | |
parent | 649c4c61a1f1f479f4532b196f68df476cef2680 (diff) | |
download | tqt-rename/true-false-4.tar.gz tqt-rename/true-false-4.zip |
Replace TRUE/FALSE with boolean values true/false - part 4rename/true-false-4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/themes-example.html')
-rw-r--r-- | doc/html/themes-example.html | 66 |
1 files changed, 33 insertions, 33 deletions
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.<a href="tqpalette.html#disabled">disabled</a>().background(), background) ); -<a name="x187"></a> app-><a href="tqapplication.html#setPalette">setPalette</a>(TQPalette(active, disabled, active), TRUE ); +<a name="x187"></a> app-><a href="tqapplication.html#setPalette">setPalette</a>(TQPalette(active, disabled, active), true ); } <a name="x263"></a>void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqapplication.html">TQApplication</a> *app) { - app-><a href="tqapplication.html#setPalette">setPalette</a>(oldPalette, TRUE); + app-><a href="tqapplication.html#setPalette">setPalette</a>(oldPalette, true); } /*! @@ -1028,7 +1028,7 @@ void NorwegianWoodStyle::<a href="tqstyle.html#polish">polish</a>( <a href="tqwi <a name="x211"></a> if ( w-><a href="tqobject.html#inherits">inherits</a>("TQPushButton") || w-><a href="tqobject.html#inherits">inherits</a>("TQToolButton") || w-><a href="tqobject.html#inherits">inherits</a>("TQComboBox") ) { -<a name="x255"></a> w-><a href="tqwidget.html#setAutoMask">setAutoMask</a>( TRUE ); +<a name="x255"></a> w-><a href="tqwidget.html#setAutoMask">setAutoMask</a>( true ); return; } <a name="x250"></a> if ( w-><a href="tqwidget.html#backgroundPixmap">backgroundPixmap</a>() ) @@ -1045,7 +1045,7 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href=" if ( w-><a href="tqobject.html#inherits">inherits</a>("TQPushButton") || w-><a href="tqobject.html#inherits">inherits</a>("TQToolButton") || w-><a href="tqobject.html#inherits">inherits</a>("TQComboBox") ) { - w-><a href="tqwidget.html#setAutoMask">setAutoMask</a>( FALSE ); + w-><a href="tqwidget.html#setAutoMask">setAutoMask</a>( false ); return; } if ( w-><a href="tqwidget.html#backgroundPixmap">backgroundPixmap</a>() ) @@ -1098,7 +1098,7 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href=" <a name="x200"></a> p-><a href="tqpainter.html#fillRect">fillRect</a>( r, (flags & Style_Sunken ? TQBrush( cg.<a href="tqcolorgroup.html#light">light</a>(), *sunkenLight) : cg.<a href="tqcolorgroup.html#brush">brush</a>( TQColorGroup::Dark ) ) ); } p-><a href="tqpainter.html#setClipRegion">setClipRegion</a>( internR ); -<a name="x221"></a> p-><a href="tqpainter.html#setClipping">setClipping</a>( FALSE ); +<a name="x221"></a> p-><a href="tqpainter.html#setClipping">setClipping</a>( false ); <a name="x222"></a><a name="x199"></a> p-><a href="tqpainter.html#setPen">setPen</a>( cg.<a href="tqcolorgroup.html#foreground">foreground</a>() ); drawroundrect( p, x, y, w, h, d ); p-><a href="tqpainter.html#setPen">setPen</a>( oldPen ); @@ -1294,7 +1294,7 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href=" if ( cmb-><a href="tqcombobox.html#editable">editable</a>() ) { <a href="tqrect.html">TQRect</a> r( <a href="tqstyle.html#querySubControlMetrics">querySubControlMetrics</a>(CC_ComboBox, widget, SC_ComboBoxEditField, opt) ); - <a href="tqpainter.html#qDrawShadePanel">qDrawShadePanel</a>( p, r, cg, TRUE, 1, + <a href="tqpainter.html#qDrawShadePanel">qDrawShadePanel</a>( p, r, cg, true, 1, &cg.<a href="tqcolorgroup.html#brush">brush</a>(TQColorGroup::Button) ); } @@ -1616,9 +1616,9 @@ public: private: void drawMetalFrame( <a href="tqpainter.html">TQPainter</a> *p, int x, int y, int w, int h ) const; void drawMetalGradient( <a href="tqpainter.html">TQPainter</a> *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( <a href="tqpainter.html">TQPainter</a> *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; <a href="tqpalette.html">TQPalette</a> oldPalette; }; @@ -1681,10 +1681,10 @@ private: // pixmaps here and apply to it all widgets <a name="x264"></a> <a href="tqfont.html">TQFont</a> f("times", app-><a href="tqapplication.html#font">font</a>().pointSize() ); -<a name="x280"></a> f.<a href="tqfont.html#setBold">setBold</a>( TRUE ); -<a name="x281"></a> f.<a href="tqfont.html#setItalic">setItalic</a>( TRUE ); -<a name="x266"></a> app-><a href="tqapplication.html#setFont">setFont</a>( f, TRUE, "TQMenuBar"); - app-><a href="tqapplication.html#setFont">setFont</a>( f, TRUE, "TQPopupMenu"); +<a name="x280"></a> f.<a href="tqfont.html#setBold">setBold</a>( true ); +<a name="x281"></a> f.<a href="tqfont.html#setItalic">setItalic</a>( true ); +<a name="x266"></a> app-><a href="tqapplication.html#setFont">setFont</a>( f, true, "TQMenuBar"); + app-><a href="tqapplication.html#setFont">setFont</a>( f, true, "TQPopupMenu"); @@ -1727,7 +1727,7 @@ private: ); <a href="tqpalette.html">TQPalette</a> newPalette( active, disabled, active ); -<a name="x267"></a> app-><a href="tqapplication.html#setPalette">setPalette</a>( newPalette, TRUE ); +<a name="x267"></a> app-><a href="tqapplication.html#setPalette">setPalette</a>( newPalette, true ); } /*! @@ -1735,8 +1735,8 @@ private: */ <a name="x315"></a>void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqapplication.html">TQApplication</a> *app) { - app-><a href="tqapplication.html#setPalette">setPalette</a>(oldPalette, TRUE); - app-><a href="tqapplication.html#setFont">setFont</a>( app-><a href="tqapplication.html#font">font</a>(), TRUE ); + app-><a href="tqapplication.html#setPalette">setPalette</a>(oldPalette, true); + app-><a href="tqapplication.html#setFont">setFont</a>( app-><a href="tqapplication.html#font">font</a>(), true ); } /*! @@ -1793,7 +1793,7 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget case PE_ButtonCommand: <a name="x303"></a><a name="x302"></a><a name="x301"></a><a name="x298"></a> drawMetalButton( p, r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), r.<a href="tqrect.html#width">width</a>(), r.<a href="tqrect.html#height">height</a>(), (flags & (Style_Sunken|Style_On|Style_Down)), - TRUE, !(flags & Style_Raised) ); + true, !(flags & Style_Raised) ); break; case PE_PanelMenuBar: drawMetalFrame( p, r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), r.<a href="tqrect.html#width">width</a>(), r.<a href="tqrect.html#height">height</a>() ); @@ -1813,7 +1813,7 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget case PE_ScrollBarSlider: - drawMetalButton( p, r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), r.<a href="tqrect.html#width">width</a>(), r.<a href="tqrect.html#height">height</a>(), FALSE, + drawMetalButton( p, r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), r.<a href="tqrect.html#width">width</a>(), r.<a href="tqrect.html#height">height</a>(), false, flags & Style_Horizontal ); break; default: @@ -1946,7 +1946,7 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget SC_SliderGroove, subActive, opt ); <a name="x299"></a> if ( (sub & SC_SliderHandle) && handle.<a href="tqrect.html#isValid">isValid</a>() ) drawMetalButton( p, handle.<a href="tqrect.html#x">x</a>(), handle.<a href="tqrect.html#y">y</a>(), handle.<a href="tqrect.html#width">width</a>(), - handle.<a href="tqrect.html#height">height</a>(), FALSE, + handle.<a href="tqrect.html#height">height</a>(), false, <a name="x304"></a> slider-><a href="tqslider.html#orientation">orientation</a>() == TQSlider::Horizontal); break; } @@ -1955,11 +1955,11 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget // not exactly correct... const <a href="tqcombobox.html">TQComboBox</a> *cmb = ( const <a href="tqcombobox.html">TQComboBox</a>* ) widget; - <a href="tqpainter.html#qDrawWinPanel">qDrawWinPanel</a>( p, r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), r.<a href="tqrect.html#width">width</a>(), r.<a href="tqrect.html#height">height</a>(), cg, TRUE, + <a href="tqpainter.html#qDrawWinPanel">qDrawWinPanel</a>( p, r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), r.<a href="tqrect.html#width">width</a>(), r.<a href="tqrect.html#height">height</a>(), cg, true, cmb-><a href="tqwidget.html#isEnabled">isEnabled</a>() ? &cg.<a href="tqcolorgroup.html#brush">brush</a>( TQColorGroup::Base ) : &cg.<a href="tqcolorgroup.html#brush">brush</a>( TQColorGroup::Background ) ); drawMetalButton( p, r.<a href="tqrect.html#x">x</a>() + r.<a href="tqrect.html#width">width</a>() - 2 - 16, r.<a href="tqrect.html#y">y</a>() + 2, 16, r.<a href="tqrect.html#height">height</a>() - 4, - how & Style_Sunken, TRUE ); + how & Style_Sunken, true ); <a href="tqstyle.html#drawPrimitive">drawPrimitive</a>( PE_ArrowDown, p, TQRect( r.<a href="tqrect.html#x">x</a>() + r.<a href="tqrect.html#width">width</a>() - 2 - 16 + 2, r.<a href="tqrect.html#y">y</a>() + 2 + 2, 16 - 4, r.<a href="tqrect.html#height">height</a>() - 4 -4 ), @@ -1977,8 +1977,8 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget /*! - Draw a metallic button, sunken if \a sunken is TRUE, horizontal if - /a horz is TRUE. + Draw a metallic button, sunken if \a sunken is true, horizontal if + /a horz is true. */ void <a name="f228"></a>MetalStyle::drawMetalButton( <a href="tqpainter.html">TQPainter</a> *p, int x, int y, int w, int h, @@ -2216,12 +2216,12 @@ private: <a href="tqmainwindow.html#setCentralWidget">setCentralWidget</a>( tabwidget ); <a href="tqpopupmenu.html">TQPopupMenu</a> *style = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this ); -<a name="x333"></a> style-><a href="tqpopupmenu.html#setCheckable">setCheckable</a>( TRUE ); +<a name="x333"></a> style-><a href="tqpopupmenu.html#setCheckable">setCheckable</a>( true ); <a href="tqmainwindow.html#menuBar">menuBar</a>()->insertItem( "&Style" , style ); - style-><a href="tqpopupmenu.html#setCheckable">setCheckable</a>( TRUE ); + style-><a href="tqpopupmenu.html#setCheckable">setCheckable</a>( true ); <a href="tqactiongroup.html">TQActionGroup</a> *ag = new <a href="tqactiongroup.html">TQActionGroup</a>( this, 0 ); -<a name="x320"></a> ag-><a href="tqactiongroup.html#setExclusive">setExclusive</a>( TRUE ); +<a name="x320"></a> ag-><a href="tqactiongroup.html#setExclusive">setExclusive</a>( true ); <a href="tqsignalmapper.html">TQSignalMapper</a> *styleMapper = new <a href="tqsignalmapper.html">TQSignalMapper</a>( this ); <a name="x335"></a> <a href="tqobject.html#connect">connect</a>( styleMapper, TQ_SIGNAL( <a href="tqsignalmapper.html#mapped">mapped</a>( const <a href="tqstring.html">TQString</a>& ) ), this, TQ_SLOT( makeStyle( const <a href="tqstring.html">TQString</a>& ) ) ); <a name="x342"></a> <a href="tqstringlist.html">TQStringList</a> list = TQStyleFactory::<a href="tqstylefactory.html#keys">keys</a>(); @@ -2230,7 +2230,7 @@ private: <a name="x346"></a><a name="x344"></a> list.<a href="tqvaluelist.html#insert">insert</a>(list.<a href="tqvaluelist.html#begin">begin</a>(), "Norwegian Wood"); list.<a href="tqvaluelist.html#insert">insert</a>(list.<a href="tqvaluelist.html#begin">begin</a>(), "Metal"); #endif - <a href="tqdict.html">TQDict</a><int> stylesDict( 17, FALSE ); + <a href="tqdict.html">TQDict</a><int> stylesDict( 17, false ); <a name="x345"></a> for ( TQStringList::Iterator it = list.<a href="tqvaluelist.html#begin">begin</a>(); it != list.<a href="tqvaluelist.html#end">end</a>(); ++it ) { <a href="tqstring.html">TQString</a> styleStr = *it; <a href="tqstring.html">TQString</a> styleAccel = styleStr; @@ -2279,10 +2279,10 @@ void <a name="f232"></a>Themes::makeStyle(const <a href="tqstring.html">TQString tqApp-><a href="tqapplication.html#setStyle">setStyle</a>(style); if(style == "Platinum") { <a href="tqpalette.html">TQPalette</a> p( TQColor( 239, 239, 239 ) ); -<a name="x324"></a> tqApp-><a href="tqapplication.html#setPalette">setPalette</a>( p, TRUE ); -<a name="x323"></a> tqApp-><a href="tqapplication.html#setFont">setFont</a>( appFont, TRUE ); +<a name="x324"></a> tqApp-><a href="tqapplication.html#setPalette">setPalette</a>( p, true ); +<a name="x323"></a> tqApp-><a href="tqapplication.html#setFont">setFont</a>( appFont, true ); } else if(style == "Windows") { - tqApp-><a href="tqapplication.html#setFont">setFont</a>( appFont, TRUE ); + tqApp-><a href="tqapplication.html#setFont">setFont</a>( appFont, true ); } else if(style == "CDE") { <a href="tqpalette.html">TQPalette</a> p( TQColor( 75, 123, 130 ) ); <a name="x332"></a> p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Active, TQColorGroup::Base, TQColor( 55, 77, 78 ) ); @@ -2303,12 +2303,12 @@ void <a name="f232"></a>Themes::makeStyle(const <a href="tqstring.html">TQString p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Disabled, TQColorGroup::Foreground, TQt::lightGray ); p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Disabled, TQColorGroup::Text, TQt::lightGray ); p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Disabled, TQColorGroup::ButtonText, TQt::lightGray ); - tqApp-><a href="tqapplication.html#setPalette">setPalette</a>( p, TRUE ); - tqApp-><a href="tqapplication.html#setFont">setFont</a>( TQFont( "times", appFont.pointSize() ), TRUE ); + tqApp-><a href="tqapplication.html#setPalette">setPalette</a>( p, true ); + tqApp-><a href="tqapplication.html#setFont">setFont</a>( TQFont( "times", appFont.pointSize() ), true ); } else if(style == "Motif" || style == "MotifPlus") { <a href="tqpalette.html">TQPalette</a> p( TQColor( 192, 192, 192 ) ); - tqApp-><a href="tqapplication.html#setPalette">setPalette</a>( p, TRUE ); - tqApp-><a href="tqapplication.html#setFont">setFont</a>( appFont, TRUE ); + tqApp-><a href="tqapplication.html#setPalette">setPalette</a>( p, true ); + tqApp-><a href="tqapplication.html#setFont">setFont</a>( appFont, true ); } } } |