summaryrefslogtreecommitdiffstats
path: root/doc/html/themes-example.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-08-06 11:29:57 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-08-06 11:29:57 +0900
commitdcce5b1f2c449ed9a02b1752e0d74f147a83d07d (patch)
treed57fe27457a96451f1a67e2a2db268a441d917fc /doc/html/themes-example.html
parent649c4c61a1f1f479f4532b196f68df476cef2680 (diff)
downloadtqt-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.html66
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-&gt;<a href="tqapplication.html#setPalette">setPalette</a>(TQPalette(active, disabled, active), TRUE );
+<a name="x187"></a> app-&gt;<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-&gt;<a href="tqapplication.html#setPalette">setPalette</a>(oldPalette, TRUE);
+ app-&gt;<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-&gt;<a href="tqobject.html#inherits">inherits</a>("TQPushButton")
|| w-&gt;<a href="tqobject.html#inherits">inherits</a>("TQToolButton")
|| w-&gt;<a href="tqobject.html#inherits">inherits</a>("TQComboBox") ) {
-<a name="x255"></a> w-&gt;<a href="tqwidget.html#setAutoMask">setAutoMask</a>( TRUE );
+<a name="x255"></a> w-&gt;<a href="tqwidget.html#setAutoMask">setAutoMask</a>( true );
return;
}
<a name="x250"></a> if ( w-&gt;<a href="tqwidget.html#backgroundPixmap">backgroundPixmap</a>() )
@@ -1045,7 +1045,7 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="
if ( w-&gt;<a href="tqobject.html#inherits">inherits</a>("TQPushButton")
|| w-&gt;<a href="tqobject.html#inherits">inherits</a>("TQToolButton")
|| w-&gt;<a href="tqobject.html#inherits">inherits</a>("TQComboBox") ) {
- w-&gt;<a href="tqwidget.html#setAutoMask">setAutoMask</a>( FALSE );
+ w-&gt;<a href="tqwidget.html#setAutoMask">setAutoMask</a>( false );
return;
}
if ( w-&gt;<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-&gt;<a href="tqpainter.html#fillRect">fillRect</a>( r, (flags &amp; Style_Sunken ? TQBrush( cg.<a href="tqcolorgroup.html#light">light</a>(), *sunkenLight) : cg.<a href="tqcolorgroup.html#brush">brush</a>( TQColorGroup::Dark ) ) );
}
p-&gt;<a href="tqpainter.html#setClipRegion">setClipRegion</a>( internR );
-<a name="x221"></a> p-&gt;<a href="tqpainter.html#setClipping">setClipping</a>( FALSE );
+<a name="x221"></a> p-&gt;<a href="tqpainter.html#setClipping">setClipping</a>( false );
<a name="x222"></a><a name="x199"></a> p-&gt;<a href="tqpainter.html#setPen">setPen</a>( cg.<a href="tqcolorgroup.html#foreground">foreground</a>() );
drawroundrect( p, x, y, w, h, d );
p-&gt;<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-&gt;<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,
&amp;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-&gt;<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-&gt;<a href="tqapplication.html#setFont">setFont</a>( f, TRUE, "TQMenuBar");
- app-&gt;<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-&gt;<a href="tqapplication.html#setFont">setFont</a>( f, true, "TQMenuBar");
+ app-&gt;<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-&gt;<a href="tqapplication.html#setPalette">setPalette</a>( newPalette, TRUE );
+<a name="x267"></a> app-&gt;<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-&gt;<a href="tqapplication.html#setPalette">setPalette</a>(oldPalette, TRUE);
- app-&gt;<a href="tqapplication.html#setFont">setFont</a>( app-&gt;<a href="tqapplication.html#font">font</a>(), TRUE );
+ app-&gt;<a href="tqapplication.html#setPalette">setPalette</a>(oldPalette, true);
+ app-&gt;<a href="tqapplication.html#setFont">setFont</a>( app-&gt;<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 &amp; (Style_Sunken|Style_On|Style_Down)),
- TRUE, !(flags &amp; Style_Raised) );
+ true, !(flags &amp; 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 &amp; 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 &amp; SC_SliderHandle) &amp;&amp; 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-&gt;<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-&gt;<a href="tqwidget.html#isEnabled">isEnabled</a>() ? &amp;cg.<a href="tqcolorgroup.html#brush">brush</a>( TQColorGroup::Base ) :
&amp;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 &amp; Style_Sunken, TRUE );
+ how &amp; 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-&gt;<a href="tqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
+<a name="x333"></a> style-&gt;<a href="tqpopupmenu.html#setCheckable">setCheckable</a>( true );
<a href="tqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( "&amp;Style" , style );
- style-&gt;<a href="tqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
+ style-&gt;<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-&gt;<a href="tqactiongroup.html#setExclusive">setExclusive</a>( TRUE );
+<a name="x320"></a> ag-&gt;<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>&amp; ) ), this, TQ_SLOT( makeStyle( const <a href="tqstring.html">TQString</a>&amp; ) ) );
<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>&lt;int&gt; stylesDict( 17, FALSE );
+ <a href="tqdict.html">TQDict</a>&lt;int&gt; 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-&gt;<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-&gt;<a href="tqapplication.html#setPalette">setPalette</a>( p, TRUE );
-<a name="x323"></a> tqApp-&gt;<a href="tqapplication.html#setFont">setFont</a>( appFont, TRUE );
+<a name="x324"></a> tqApp-&gt;<a href="tqapplication.html#setPalette">setPalette</a>( p, true );
+<a name="x323"></a> tqApp-&gt;<a href="tqapplication.html#setFont">setFont</a>( appFont, true );
} else if(style == "Windows") {
- tqApp-&gt;<a href="tqapplication.html#setFont">setFont</a>( appFont, TRUE );
+ tqApp-&gt;<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-&gt;<a href="tqapplication.html#setPalette">setPalette</a>( p, TRUE );
- tqApp-&gt;<a href="tqapplication.html#setFont">setFont</a>( TQFont( "times", appFont.pointSize() ), TRUE );
+ tqApp-&gt;<a href="tqapplication.html#setPalette">setPalette</a>( p, true );
+ tqApp-&gt;<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-&gt;<a href="tqapplication.html#setPalette">setPalette</a>( p, TRUE );
- tqApp-&gt;<a href="tqapplication.html#setFont">setFont</a>( appFont, TRUE );
+ tqApp-&gt;<a href="tqapplication.html#setPalette">setPalette</a>( p, true );
+ tqApp-&gt;<a href="tqapplication.html#setFont">setFont</a>( appFont, true );
}
}
}