diff options
author | Michele Calgaro <[email protected]> | 2024-06-08 15:05:55 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-06-12 19:18:55 +0900 |
commit | 7bc57326e69b9c3f0eaeda63e4a49b67ba611426 (patch) | |
tree | 015fd18fdc62bce380935d546b677aa965b090c6 /doc/html/themes-example.html | |
parent | ccbc1c3572fd0e26480c1432fff55d2909545538 (diff) | |
download | tqt3-7bc57326e69b9c3f0eaeda63e4a49b67ba611426.tar.gz tqt3-7bc57326e69b9c3f0eaeda63e4a49b67ba611426.zip |
Rename style nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'doc/html/themes-example.html')
-rw-r--r-- | doc/html/themes-example.html | 144 |
1 files changed, 72 insertions, 72 deletions
diff --git a/doc/html/themes-example.html b/doc/html/themes-example.html index c0a5ff883..1eb7c56b7 100644 --- a/doc/html/themes-example.html +++ b/doc/html/themes-example.html @@ -78,7 +78,7 @@ public: const <a href="ntqrect.html">TQRect</a> &r, const <a href="qcolorgroup.html">TQColorGroup</a> &cg, SFlags flags = Style_Default, - const <a href="qstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default ) const; + const <a href="tqstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default ) const; void drawControl( ControlElement element, <a href="ntqpainter.html">TQPainter</a> *p, @@ -86,13 +86,13 @@ public: const <a href="ntqrect.html">TQRect</a> &r, const <a href="qcolorgroup.html">TQColorGroup</a> &cg, SFlags how = Style_Default, - const <a href="qstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default ) const; + const <a href="tqstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default ) const; void drawControlMask( ControlElement element, <a href="ntqpainter.html">TQPainter</a> *p, const <a href="tqwidget.html">TQWidget</a> *widget, const <a href="ntqrect.html">TQRect</a> &r, - const <a href="qstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default ) const; + const <a href="tqstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default ) const; void drawComplexControl( ComplexControl cc, <a href="ntqpainter.html">TQPainter</a> *p, @@ -102,18 +102,18 @@ public: SFlags how = Style_Default, SCFlags sub = SC_All, SCFlags subActive = SC_None, - const <a href="qstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default ) const; + const <a href="tqstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default ) const; void drawComplexControlMask( ComplexControl control, <a href="ntqpainter.html">TQPainter</a> *p, const <a href="tqwidget.html">TQWidget</a> *widget, const <a href="ntqrect.html">TQRect</a> &r, - const <a href="qstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default ) const; + const <a href="tqstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default ) const; <a href="ntqrect.html">TQRect</a> querySubControlMetrics( ComplexControl control, const <a href="tqwidget.html">TQWidget</a> *widget, SubControl sc, - const <a href="qstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default ) const; + const <a href="tqstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default ) const; <a href="ntqrect.html">TQRect</a> subRect( SubRect r, const <a href="tqwidget.html">TQWidget</a> *widget ) const; @@ -162,7 +162,7 @@ private: #include "ntqrangecontrol.h" #include "ntqscrollbar.h" #include <limits.h> -#include "ntqstylefactory.h" +#include "tqstylefactory.h" /* XPM */ static const char *polish_xpm[] = { @@ -906,7 +906,7 @@ enum { PointUp, PointDown, PointLeft, PointRight }; /*! Reimplementation from TQStyle */ -<a name="x261"></a>void NorwegianWoodStyle::<a href="ntqstyle.html#polish">polish</a>( <a href="ntqapplication.html">TQApplication</a> *app) +<a name="x261"></a>void NorwegianWoodStyle::<a href="tqstyle.html#polish">polish</a>( <a href="ntqapplication.html">TQApplication</a> *app) { <a name="x186"></a> oldPalette = app-><a href="ntqapplication.html#palette">palette</a>(); @@ -1010,7 +1010,7 @@ enum { PointUp, PointDown, PointLeft, PointRight }; } -<a name="x263"></a>void NorwegianWoodStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href="ntqapplication.html">TQApplication</a> *app) +<a name="x263"></a>void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="ntqapplication.html">TQApplication</a> *app) { app-><a href="ntqapplication.html#setPalette">setPalette</a>(oldPalette, TRUE); } @@ -1018,7 +1018,7 @@ enum { PointUp, PointDown, PointLeft, PointRight }; /*! Reimplementation from TQStyle */ -void NorwegianWoodStyle::<a href="ntqstyle.html#polish">polish</a>( <a href="tqwidget.html">TQWidget</a>* w) +void NorwegianWoodStyle::<a href="tqstyle.html#polish">polish</a>( <a href="tqwidget.html">TQWidget</a>* w) { // the polish function sets some widgets to transparent mode and @@ -1037,7 +1037,7 @@ void NorwegianWoodStyle::<a href="ntqstyle.html#polish">polish</a>( <a href="tqw } } -void NorwegianWoodStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href="tqwidget.html">TQWidget</a>* w) +void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget.html">TQWidget</a>* w) { // the polish function sets some widgets to transparent mode and // some to translate background mode in order to get the full @@ -1054,11 +1054,11 @@ void NorwegianWoodStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href= } } -<a name="x260"></a>void NorwegianWoodStyle::<a href="ntqstyle.html#drawPrimitive">drawPrimitive</a>( PrimitiveElement pe, +<a name="x260"></a>void NorwegianWoodStyle::<a href="tqstyle.html#drawPrimitive">drawPrimitive</a>( PrimitiveElement pe, <a href="ntqpainter.html">TQPainter</a> *p, const <a href="ntqrect.html">TQRect</a> &r, const <a href="qcolorgroup.html">TQColorGroup</a> &cg, - SFlags flags, const <a href="qstyleoption.html">TQStyleOption</a>& opt ) const + SFlags flags, const <a href="tqstyleoption.html">TQStyleOption</a>& opt ) const { int x, y, w, h; <a name="x240"></a> r.<a href="ntqrect.html#rect">rect</a>( &x, &y, &w, &h ); @@ -1118,17 +1118,17 @@ void NorwegianWoodStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href= drawSemicircleButton( p, r, PointUp, flags & Style_Down, cg ); break; default: - <a href="ntqwindowsstyle.html">TQWindowsStyle</a>::<a href="ntqstyle.html#drawPrimitive">drawPrimitive</a>( pe, p, r, cg, flags, opt ); + <a href="ntqwindowsstyle.html">TQWindowsStyle</a>::<a href="tqstyle.html#drawPrimitive">drawPrimitive</a>( pe, p, r, cg, flags, opt ); break; } } -<a name="x259"></a>void NorwegianWoodStyle::<a href="ntqstyle.html#drawControl">drawControl</a>( ControlElement element, +<a name="x259"></a>void NorwegianWoodStyle::<a href="tqstyle.html#drawControl">drawControl</a>( ControlElement element, <a href="ntqpainter.html">TQPainter</a> *p, const <a href="tqwidget.html">TQWidget</a> *widget, const <a href="ntqrect.html">TQRect</a> &r, const <a href="qcolorgroup.html">TQColorGroup</a> &cg, - SFlags how, const <a href="qstyleoption.html">TQStyleOption</a>& opt ) const + SFlags how, const <a href="tqstyleoption.html">TQStyleOption</a>& opt ) const { switch( element ) { case CE_PushButton: @@ -1170,7 +1170,7 @@ void NorwegianWoodStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href= y2 -= 2; } - <a href="ntqstyle.html#drawPrimitive">drawPrimitive</a>( PE_ButtonCommand, p, + <a href="tqstyle.html#drawPrimitive">drawPrimitive</a>( PE_ButtonCommand, p, TQRect( x1, y1, x2 - x1 + 1, y2 - y1 + 1), myCg, flags, opt ); @@ -1189,7 +1189,7 @@ void NorwegianWoodStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href= flags = Style_Default; <a name="x252"></a> if ( btn-><a href="tqwidget.html#isEnabled">isEnabled</a>() ) flags |= Style_Enabled; - <a href="ntqstyle.html#drawPrimitive">drawPrimitive</a>( PE_ArrowDown, p, + <a href="tqstyle.html#drawPrimitive">drawPrimitive</a>( PE_ArrowDown, p, TQRect( x2 - dx, dx, y1, y2 - y1), myCg, flags, opt ); } @@ -1218,7 +1218,7 @@ void NorwegianWoodStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href= y += 2; w -= 4; h -= 4; - <a href="ntqstyle.html#drawItem">drawItem</a>( p, TQRect( x, y, w, h ), + <a href="tqstyle.html#drawItem">drawItem</a>( p, TQRect( x, y, w, h ), AlignCenter | ShowPrefix, cg, btn-><a href="tqwidget.html#isEnabled">isEnabled</a>(), <a name="x191"></a><a name="x190"></a> btn-><a href="ntqbutton.html#pixmap">pixmap</a>(), btn-><a href="ntqbutton.html#text">text</a>(), -1, @@ -1229,16 +1229,16 @@ void NorwegianWoodStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href= break; } default: - <a href="ntqwindowsstyle.html">TQWindowsStyle</a>::<a href="ntqstyle.html#drawControl">drawControl</a>( element, p, widget, r, cg, how, opt ); + <a href="ntqwindowsstyle.html">TQWindowsStyle</a>::<a href="tqstyle.html#drawControl">drawControl</a>( element, p, widget, r, cg, how, opt ); break; } } -<a name="x205"></a>void NorwegianWoodStyle::<a href="ntqstyle.html#drawControlMask">drawControlMask</a>( ControlElement element, +<a name="x205"></a>void NorwegianWoodStyle::<a href="tqstyle.html#drawControlMask">drawControlMask</a>( ControlElement element, <a href="ntqpainter.html">TQPainter</a> *p, const <a href="tqwidget.html">TQWidget</a> *widget, const <a href="ntqrect.html">TQRect</a> &r, - const <a href="qstyleoption.html">TQStyleOption</a>& opt ) const + const <a href="tqstyleoption.html">TQStyleOption</a>& opt ) const { switch( element ) { case CE_PushButton: @@ -1250,12 +1250,12 @@ void NorwegianWoodStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href= break; } default: - <a href="ntqwindowsstyle.html">TQWindowsStyle</a>::<a href="ntqstyle.html#drawControlMask">drawControlMask</a>( element, p, widget, r, opt ); + <a href="ntqwindowsstyle.html">TQWindowsStyle</a>::<a href="tqstyle.html#drawControlMask">drawControlMask</a>( element, p, widget, r, opt ); break; } } -<a name="x258"></a>void NorwegianWoodStyle::<a href="ntqstyle.html#drawComplexControl">drawComplexControl</a>( ComplexControl cc, +<a name="x258"></a>void NorwegianWoodStyle::<a href="tqstyle.html#drawComplexControl">drawComplexControl</a>( ComplexControl cc, <a href="ntqpainter.html">TQPainter</a> *p, const <a href="tqwidget.html">TQWidget</a> *widget, const <a href="ntqrect.html">TQRect</a> &r, @@ -1263,7 +1263,7 @@ void NorwegianWoodStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href= SFlags how, SCFlags sub, SCFlags subActive, - const <a href="qstyleoption.html">TQStyleOption</a>& opt ) const + const <a href="tqstyleoption.html">TQStyleOption</a>& opt ) const { switch( cc ) { case CC_ComboBox: @@ -1272,15 +1272,15 @@ void NorwegianWoodStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href= cmb = (const <a href="ntqcombobox.html">TQComboBox</a>*)widget; int awh, ax, ay, sh, sy, dh, ew; - get_combo_parameters( <a href="ntqstyle.html#subRect">subRect</a>(SR_PushButtonContents, widget), + get_combo_parameters( <a href="tqstyle.html#subRect">subRect</a>(SR_PushButtonContents, widget), ew, awh, ax, ay, sh, dh, sy ); - <a href="ntqstyle.html#drawPrimitive">drawPrimitive</a>( PE_ButtonCommand, p, r, cg, Style_Raised, opt ); - <a href="ntqstyle.html">TQStyle</a> *mstyle = TQStyleFactory::<a href="ntqstylefactory.html#create">create</a>( "Motif" ); + <a href="tqstyle.html#drawPrimitive">drawPrimitive</a>( PE_ButtonCommand, p, r, cg, Style_Raised, opt ); + <a href="tqstyle.html">TQStyle</a> *mstyle = TQStyleFactory::<a href="tqstylefactory.html#create">create</a>( "Motif" ); if ( mstyle ) - mstyle-><a href="ntqstyle.html#drawPrimitive">drawPrimitive</a>( PE_ArrowDown, p, + mstyle-><a href="tqstyle.html#drawPrimitive">drawPrimitive</a>( PE_ArrowDown, p, TQRect(ax, ay, awh, awh), cg, how, opt ); else - <a href="ntqstyle.html#drawPrimitive">drawPrimitive</a>( PE_ArrowDown, p, + <a href="tqstyle.html#drawPrimitive">drawPrimitive</a>( PE_ArrowDown, p, TQRect(ax, ay, awh, awh), cg, how, opt ); <a href="ntqpen.html">TQPen</a> oldPen = p-><a href="ntqpainter.html#pen">pen</a>(); @@ -1293,7 +1293,7 @@ void NorwegianWoodStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href= p-><a href="ntqpainter.html#setPen">setPen</a>( oldPen ); if ( cmb-><a href="ntqcombobox.html#editable">editable</a>() ) { - <a href="ntqrect.html">TQRect</a> r( <a href="ntqstyle.html#querySubControlMetrics">querySubControlMetrics</a>(CC_ComboBox, widget, + <a href="ntqrect.html">TQRect</a> r( <a href="tqstyle.html#querySubControlMetrics">querySubControlMetrics</a>(CC_ComboBox, widget, SC_ComboBoxEditField, opt) ); <a href="ntqpainter.html#qDrawShadePanel">qDrawShadePanel</a>( p, r, cg, TRUE, 1, &cg.<a href="qcolorgroup.html#brush">brush</a>(TQColorGroup::Button) ); @@ -1302,17 +1302,17 @@ void NorwegianWoodStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href= break; } default: - <a href="ntqwindowsstyle.html">TQWindowsStyle</a>::<a href="ntqstyle.html#drawComplexControl">drawComplexControl</a>( cc, p, widget, r, cg, how, + <a href="ntqwindowsstyle.html">TQWindowsStyle</a>::<a href="tqstyle.html#drawComplexControl">drawComplexControl</a>( cc, p, widget, r, cg, how, sub, subActive, opt ); break; } } -<a name="x204"></a>void NorwegianWoodStyle::<a href="ntqstyle.html#drawComplexControlMask">drawComplexControlMask</a>( ComplexControl control, +<a name="x204"></a>void NorwegianWoodStyle::<a href="tqstyle.html#drawComplexControlMask">drawComplexControlMask</a>( ComplexControl control, <a href="ntqpainter.html">TQPainter</a> *p, const <a href="tqwidget.html">TQWidget</a> *widget, const <a href="ntqrect.html">TQRect</a> &r, - const <a href="qstyleoption.html">TQStyleOption</a>& opt ) const + const <a href="tqstyleoption.html">TQStyleOption</a>& opt ) const { switch ( control ) { case CC_ComboBox: @@ -1324,15 +1324,15 @@ void NorwegianWoodStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href= break; } default: - <a href="ntqwindowsstyle.html">TQWindowsStyle</a>::<a href="ntqstyle.html#drawComplexControlMask">drawComplexControlMask</a>( control, p, widget, r, opt ); + <a href="ntqwindowsstyle.html">TQWindowsStyle</a>::<a href="tqstyle.html#drawComplexControlMask">drawComplexControlMask</a>( control, p, widget, r, opt ); break; } } -<a name="x206"></a>TQRect NorwegianWoodStyle::<a href="ntqstyle.html#querySubControlMetrics">querySubControlMetrics</a>( ComplexControl control, +<a name="x206"></a>TQRect NorwegianWoodStyle::<a href="tqstyle.html#querySubControlMetrics">querySubControlMetrics</a>( ComplexControl control, const <a href="tqwidget.html">TQWidget</a> *widget, SubControl sc, - const <a href="qstyleoption.html">TQStyleOption</a>& opt ) const + const <a href="tqstyleoption.html">TQStyleOption</a>& opt ) const { <a href="ntqrect.html">TQRect</a> rect; switch ( control ) { @@ -1341,14 +1341,14 @@ void NorwegianWoodStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href= switch( sc ) { case SC_ComboBoxEditField: { - rect = <a href="ntqstyle.html#subRect">subRect</a>( SR_PushButtonContents, widget ); + rect = <a href="tqstyle.html#subRect">subRect</a>( SR_PushButtonContents, widget ); int ew = get_combo_extra_width( rect.<a href="ntqrect.html#height">height</a>(), 0 ); <a name="x242"></a> rect.<a href="ntqrect.html#setRect">setRect</a>( rect.<a href="ntqrect.html#x">x</a>() + 1, rect.<a href="ntqrect.html#y">y</a>() + 1, rect.<a href="ntqrect.html#width">width</a>() - 2 - ew, rect.<a href="ntqrect.html#height">height</a>() - 2 ); break; } default: - rect = TQWindowsStyle::<a href="ntqstyle.html#querySubControlMetrics">querySubControlMetrics</a>( control, widget, + rect = TQWindowsStyle::<a href="tqstyle.html#querySubControlMetrics">querySubControlMetrics</a>( control, widget, sc, opt ); break; } @@ -1374,21 +1374,21 @@ void NorwegianWoodStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href= rect.<a href="ntqrect.html#setRect">setRect</a>( b, b, w - 2 * b, w - 2 * b ); break; default: - rect = TQWindowsStyle::<a href="ntqstyle.html#querySubControlMetrics">querySubControlMetrics</a>( control, widget, + rect = TQWindowsStyle::<a href="tqstyle.html#querySubControlMetrics">querySubControlMetrics</a>( control, widget, sc, opt ); break; } break; } default: - rect = TQWindowsStyle::<a href="ntqstyle.html#querySubControlMetrics">querySubControlMetrics</a>( control, widget, + rect = TQWindowsStyle::<a href="tqstyle.html#querySubControlMetrics">querySubControlMetrics</a>( control, widget, sc, opt ); break; } return rect; } -<a name="x262"></a>TQRect NorwegianWoodStyle::<a href="ntqstyle.html#subRect">subRect</a>( SubRect sr, const <a href="tqwidget.html">TQWidget</a> * widget ) const +<a name="x262"></a>TQRect NorwegianWoodStyle::<a href="tqstyle.html#subRect">subRect</a>( SubRect sr, const <a href="tqwidget.html">TQWidget</a> * widget ) const { <a href="ntqrect.html">TQRect</a> r; switch ( sr ) { @@ -1413,14 +1413,14 @@ void NorwegianWoodStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href= } case SR_ComboBoxFocusRect: { - r = <a href="ntqstyle.html#subRect">subRect</a>( SR_PushButtonContents, widget ); + r = <a href="tqstyle.html#subRect">subRect</a>( SR_PushButtonContents, widget ); int ew = get_combo_extra_width( r.<a href="ntqrect.html#height">height</a>() ); r.<a href="ntqrect.html#setRect">setRect</a>( r.<a href="ntqrect.html#x">x</a>() + 1, r.<a href="ntqrect.html#y">y</a>() + 1, r.<a href="ntqrect.html#width">width</a>() - 2 - ew, r.<a href="ntqrect.html#height">height</a>() - 2 ); break; } default: - r = TQWindowsStyle::<a href="ntqstyle.html#subRect">subRect</a>( sr, widget ); + r = TQWindowsStyle::<a href="tqstyle.html#subRect">subRect</a>( sr, widget ); break; } return r; @@ -1499,7 +1499,7 @@ void <a name="f226"></a>NorwegianWoodStyle::drawSemicircleButton( <a href="ntqpa int dir, bool sunken, const <a href="qcolorgroup.html">TQColorGroup</a> &g ) const { - int b = <a href="ntqstyle.html#pixelMetric">pixelMetric</a>( PM_ScrollBarExtent ) > 20 ? 3 : 2; + int b = <a href="tqstyle.html#pixelMetric">pixelMetric</a>( PM_ScrollBarExtent ) > 20 ? 3 : 2; <a href="ntqregion.html">TQRegion</a> extrn( r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), r.<a href="ntqrect.html#width">width</a>(), r.<a href="ntqrect.html#height">height</a>(), TQRegion::Ellipse ); <a href="ntqregion.html">TQRegion</a> intern( r.<a href="ntqrect.html#x">x</a>()+b, r.<a href="ntqrect.html#y">y</a>()+b, r.<a href="ntqrect.html#width">width</a>()-2*b, r.<a href="ntqrect.html#height">height</a>()-2*b, TQRegion::Ellipse ); @@ -1592,7 +1592,7 @@ public: const <a href="ntqrect.html">TQRect</a> &r, const <a href="qcolorgroup.html">TQColorGroup</a> &cg, SFlags flags = Style_Default, - const <a href="qstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default) const; + const <a href="tqstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default) const; void drawControl( ControlElement element, <a href="ntqpainter.html">TQPainter</a> *p, @@ -1600,7 +1600,7 @@ public: const <a href="ntqrect.html">TQRect</a> &r, const <a href="qcolorgroup.html">TQColorGroup</a> &cg, SFlags how = Style_Default, - const <a href="qstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default ) const; + const <a href="tqstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default ) const; void drawComplexControl( ComplexControl cc, <a href="ntqpainter.html">TQPainter</a> *p, @@ -1610,7 +1610,7 @@ public: SFlags how = Style_Default, SCFlags sub = SC_All, SCFlags subActive = SC_None, - const <a href="qstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default ) const; + const <a href="tqstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default ) const; int pixelMetric( PixelMetric, const <a href="tqwidget.html">TQWidget</a> * ) const; @@ -1674,7 +1674,7 @@ private: /*! Reimplementation from TQStyle */ -<a name="x314"></a>void MetalStyle::<a href="ntqstyle.html#polish">polish</a>( <a href="ntqapplication.html">TQApplication</a> *app) +<a name="x314"></a>void MetalStyle::<a href="tqstyle.html#polish">polish</a>( <a href="ntqapplication.html">TQApplication</a> *app) { <a name="x265"></a> oldPalette = app-><a href="ntqapplication.html#palette">palette</a>(); @@ -1734,7 +1734,7 @@ private: /*! Reimplementation from TQStyle */ -<a name="x315"></a>void MetalStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href="ntqapplication.html">TQApplication</a> *app) +<a name="x315"></a>void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="ntqapplication.html">TQApplication</a> *app) { app-><a href="ntqapplication.html#setPalette">setPalette</a>(oldPalette, TRUE); app-><a href="ntqapplication.html#setFont">setFont</a>( app-><a href="ntqapplication.html#font">font</a>(), TRUE ); @@ -1743,7 +1743,7 @@ private: /*! Reimplementation from TQStyle */ -void MetalStyle::<a href="ntqstyle.html#polish">polish</a>( <a href="tqwidget.html">TQWidget</a>* w) +void MetalStyle::<a href="tqstyle.html#polish">polish</a>( <a href="tqwidget.html">TQWidget</a>* w) { // the polish function sets some widgets to transparent mode and @@ -1761,7 +1761,7 @@ void MetalStyle::<a href="ntqstyle.html#polish">polish</a>( <a href="tqwidget.ht } } -void MetalStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href="tqwidget.html">TQWidget</a>* w) +void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget.html">TQWidget</a>* w) { // the polish function sets some widgets to transparent mode and @@ -1779,11 +1779,11 @@ void MetalStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href="tqwidge } -<a name="x312"></a>void MetalStyle::<a href="ntqstyle.html#drawPrimitive">drawPrimitive</a>( PrimitiveElement pe, +<a name="x312"></a>void MetalStyle::<a href="tqstyle.html#drawPrimitive">drawPrimitive</a>( PrimitiveElement pe, <a href="ntqpainter.html">TQPainter</a> *p, const <a href="ntqrect.html">TQRect</a> &r, const <a href="qcolorgroup.html">TQColorGroup</a> &cg, - SFlags flags, const <a href="qstyleoption.html">TQStyleOption</a>& opt ) const + SFlags flags, const <a href="tqstyleoption.html">TQStyleOption</a>& opt ) const { switch( pe ) { case PE_HeaderSection: @@ -1802,13 +1802,13 @@ void MetalStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href="tqwidge case PE_ScrollBarAddLine: drawMetalButton( p, r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), r.<a href="ntqrect.html#width">width</a>(), r.<a href="ntqrect.html#height">height</a>(), flags & Style_Down, !( flags & Style_Horizontal ) ); - <a href="ntqstyle.html#drawPrimitive">drawPrimitive</a>( (flags & Style_Horizontal) ? PE_ArrowRight :PE_ArrowDown, + <a href="tqstyle.html#drawPrimitive">drawPrimitive</a>( (flags & Style_Horizontal) ? PE_ArrowRight :PE_ArrowDown, p, r, cg, flags, opt ); break; case PE_ScrollBarSubLine: drawMetalButton( p, r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), r.<a href="ntqrect.html#width">width</a>(), r.<a href="ntqrect.html#height">height</a>(), flags & Style_Down, !( flags & Style_Horizontal ) ); - <a href="ntqstyle.html#drawPrimitive">drawPrimitive</a>( (flags & Style_Horizontal) ? PE_ArrowLeft : PE_ArrowUp, + <a href="tqstyle.html#drawPrimitive">drawPrimitive</a>( (flags & Style_Horizontal) ? PE_ArrowLeft : PE_ArrowUp, p, r, cg, flags, opt ); break; @@ -1818,18 +1818,18 @@ void MetalStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href="tqwidge flags & Style_Horizontal ); break; default: - <a href="ntqwindowsstyle.html">TQWindowsStyle</a>::<a href="ntqstyle.html#drawPrimitive">drawPrimitive</a>( pe, p, r, cg, flags, opt ); + <a href="ntqwindowsstyle.html">TQWindowsStyle</a>::<a href="tqstyle.html#drawPrimitive">drawPrimitive</a>( pe, p, r, cg, flags, opt ); break; } } -<a name="x311"></a>void MetalStyle::<a href="ntqstyle.html#drawControl">drawControl</a>( ControlElement element, +<a name="x311"></a>void MetalStyle::<a href="tqstyle.html#drawControl">drawControl</a>( ControlElement element, <a href="ntqpainter.html">TQPainter</a> *p, const <a href="tqwidget.html">TQWidget</a> *widget, const <a href="ntqrect.html">TQRect</a> &r, const <a href="qcolorgroup.html">TQColorGroup</a> &cg, SFlags how, - const <a href="qstyleoption.html">TQStyleOption</a>& opt ) const + const <a href="tqstyleoption.html">TQStyleOption</a>& opt ) const { switch( element ) { case CE_PushButton: @@ -1871,7 +1871,7 @@ void MetalStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href="tqwidge flags |= Style_Down; <a name="x295"></a> if ( !btn-><a href="ntqpushbutton.html#isFlat">isFlat</a>() && !btn-><a href="ntqbutton.html#isDown">isDown</a>() ) flags |= Style_Raised; - <a href="ntqstyle.html#drawPrimitive">drawPrimitive</a>( PE_ButtonCommand, p, + <a href="tqstyle.html#drawPrimitive">drawPrimitive</a>( PE_ButtonCommand, p, TQRect( x1, y1, x2 - x1 + 1, y2 - y1 + 1), cg, flags, opt ); @@ -1881,7 +1881,7 @@ void MetalStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href="tqwidge flags |= Style_Enabled; int dx = ( y1 - y2 - 4 ) / 3; - <a href="ntqstyle.html#drawPrimitive">drawPrimitive</a>( PE_ArrowDown, p, + <a href="tqstyle.html#drawPrimitive">drawPrimitive</a>( PE_ArrowDown, p, TQRect(x2 - dx, dx, y1, y2 - y1), cg, flags, opt ); } @@ -1912,7 +1912,7 @@ void MetalStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href="tqwidge y += 2; w -= 4; h -= 4; - <a href="ntqstyle.html#drawItem">drawItem</a>( p, TQRect( x, y, w, h ), + <a href="tqstyle.html#drawItem">drawItem</a>( p, TQRect( x, y, w, h ), AlignCenter|ShowPrefix, cg, btn-><a href="tqwidget.html#isEnabled">isEnabled</a>(), <a name="x271"></a><a name="x270"></a> btn-><a href="ntqbutton.html#pixmap">pixmap</a>(), btn-><a href="ntqbutton.html#text">text</a>(), -1, @@ -1922,11 +1922,11 @@ void MetalStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href="tqwidge break; } default: - <a href="ntqwindowsstyle.html">TQWindowsStyle</a>::<a href="ntqstyle.html#drawControl">drawControl</a>( element, p, widget, r, cg, how, opt ); + <a href="ntqwindowsstyle.html">TQWindowsStyle</a>::<a href="tqstyle.html#drawControl">drawControl</a>( element, p, widget, r, cg, how, opt ); break; } } -<a name="x310"></a>void MetalStyle::<a href="ntqstyle.html#drawComplexControl">drawComplexControl</a>( ComplexControl cc, +<a name="x310"></a>void MetalStyle::<a href="tqstyle.html#drawComplexControl">drawComplexControl</a>( ComplexControl cc, <a href="ntqpainter.html">TQPainter</a> *p, const <a href="tqwidget.html">TQWidget</a> *widget, const <a href="ntqrect.html">TQRect</a> &r, @@ -1934,16 +1934,16 @@ void MetalStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href="tqwidge SFlags how, SCFlags sub, SCFlags subActive, - const <a href="qstyleoption.html">TQStyleOption</a>& opt ) const + const <a href="tqstyleoption.html">TQStyleOption</a>& opt ) const { switch ( cc ) { case CC_Slider: { const <a href="ntqslider.html">TQSlider</a> *slider = ( const <a href="ntqslider.html">TQSlider</a>* ) widget; - <a href="ntqrect.html">TQRect</a> handle = <a href="ntqstyle.html#querySubControlMetrics">querySubControlMetrics</a>( CC_Slider, widget, + <a href="ntqrect.html">TQRect</a> handle = <a href="tqstyle.html#querySubControlMetrics">querySubControlMetrics</a>( CC_Slider, widget, SC_SliderHandle, opt); if ( sub & SC_SliderGroove ) - TQWindowsStyle::<a href="ntqstyle.html#drawComplexControl">drawComplexControl</a>( cc, p, widget, r, cg, how, + TQWindowsStyle::<a href="tqstyle.html#drawComplexControl">drawComplexControl</a>( cc, p, widget, r, cg, how, SC_SliderGroove, subActive, opt ); <a name="x299"></a> if ( (sub & SC_SliderHandle) && handle.<a href="ntqrect.html#isValid">isValid</a>() ) drawMetalButton( p, handle.<a href="ntqrect.html#x">x</a>(), handle.<a href="ntqrect.html#y">y</a>(), handle.<a href="ntqrect.html#width">width</a>(), @@ -1961,7 +1961,7 @@ void MetalStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href="tqwidge &cg.<a href="qcolorgroup.html#brush">brush</a>( TQColorGroup::Background ) ); drawMetalButton( p, r.<a href="ntqrect.html#x">x</a>() + r.<a href="ntqrect.html#width">width</a>() - 2 - 16, r.<a href="ntqrect.html#y">y</a>() + 2, 16, r.<a href="ntqrect.html#height">height</a>() - 4, how & Style_Sunken, TRUE ); - <a href="ntqstyle.html#drawPrimitive">drawPrimitive</a>( PE_ArrowDown, p, + <a href="tqstyle.html#drawPrimitive">drawPrimitive</a>( PE_ArrowDown, p, TQRect( r.<a href="ntqrect.html#x">x</a>() + r.<a href="ntqrect.html#width">width</a>() - 2 - 16 + 2, r.<a href="ntqrect.html#y">y</a>() + 2 + 2, 16 - 4, r.<a href="ntqrect.html#height">height</a>() - 4 -4 ), cg, @@ -1970,7 +1970,7 @@ void MetalStyle::<a href="ntqstyle.html#unPolish">unPolish</a>( <a href="tqwidge break; } default: - <a href="ntqwindowsstyle.html">TQWindowsStyle</a>::<a href="ntqstyle.html#drawComplexControl">drawComplexControl</a>( cc, p, widget, r, cg, how, sub, subActive, + <a href="ntqwindowsstyle.html">TQWindowsStyle</a>::<a href="tqstyle.html#drawComplexControl">drawComplexControl</a>( cc, p, widget, r, cg, how, sub, subActive, opt ); break; } @@ -2106,7 +2106,7 @@ void <a name="f230"></a>MetalStyle::drawMetalGradient( <a href="ntqpainter.html" -<a name="x313"></a>int MetalStyle::<a href="ntqstyle.html#pixelMetric">pixelMetric</a>( PixelMetric metric, const <a href="tqwidget.html">TQWidget</a> *w ) const +<a name="x313"></a>int MetalStyle::<a href="tqstyle.html#pixelMetric">pixelMetric</a>( PixelMetric metric, const <a href="tqwidget.html">TQWidget</a> *w ) const { switch ( metric ) { case PM_MenuBarFrameWidth: @@ -2192,7 +2192,7 @@ private: #include <<a href="qmenubar-h.html">ntqmenubar.h</a>> #include <<a href="qmessagebox-h.html">ntqmessagebox.h</a>> #include <<a href="qfont-h.html">ntqfont.h</a>> -#include <<a href="qstylefactory-h.html">ntqstylefactory.h</a>> +#include <<a href="tqstylefactory-h.html">tqstylefactory.h</a>> #include <<a href="qaction-h.html">ntqaction.h</a>> #include <<a href="qsignalmapper-h.html">ntqsignalmapper.h</a>> #include <<a href="qdict-h.html">ntqdict.h</a>> @@ -2225,7 +2225,7 @@ private: <a name="x320"></a> ag-><a href="qactiongroup.html#setExclusive">setExclusive</a>( TRUE ); <a href="ntqsignalmapper.html">TQSignalMapper</a> *styleMapper = new <a href="ntqsignalmapper.html">TQSignalMapper</a>( this ); <a name="x335"></a> <a href="tqobject.html#connect">connect</a>( styleMapper, TQ_SIGNAL( <a href="ntqsignalmapper.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="ntqstylefactory.html#keys">keys</a>(); +<a name="x342"></a> <a href="tqstringlist.html">TQStringList</a> list = TQStyleFactory::<a href="tqstylefactory.html#keys">keys</a>(); <a name="x341"></a> list.<a href="tqstringlist.html#sort">sort</a>(); #ifndef TQT_NO_STYLE_WINDOWS <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"); |