summaryrefslogtreecommitdiffstats
path: root/doc/html/customstyles.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/customstyles.html')
-rw-r--r--doc/html/customstyles.html42
1 files changed, 21 insertions, 21 deletions
diff --git a/doc/html/customstyles.html b/doc/html/customstyles.html
index cf5827fb..da5f4d49 100644
--- a/doc/html/customstyles.html
+++ b/doc/html/customstyles.html
@@ -81,7 +81,7 @@ public:
void drawPrimitive( PrimitiveElement pe,
<a href="tqpainter.html">TQPainter</a> *p,
- const <a href="ntqrect.html">TQRect</a> &amp; r,
+ const <a href="tqrect.html">TQRect</a> &amp; r,
const <a href="tqcolorgroup.html">TQColorGroup</a> &amp; cg,
SFlags flags = Style_Default,
const <a href="tqstyleoption.html">TQStyleOption</a> &amp; = TQStyleOption::Default ) const;
@@ -110,43 +110,43 @@ CustomStyle::~CustomStyle()
void CustomStyle::drawPrimitive( PrimitiveElement pe,
<a href="tqpainter.html">TQPainter</a> * p,
- const <a href="ntqrect.html">TQRect</a> &amp; r,
+ const <a href="tqrect.html">TQRect</a> &amp; r,
const <a href="tqcolorgroup.html">TQColorGroup</a> &amp; cg,
SFlags flags,
const <a href="tqstyleoption.html">TQStyleOption</a> &amp; opt ) const
{
// we are only interested in the arrows
if (pe &gt;= PE_ArrowUp &amp;&amp; pe &lt;= PE_ArrowLeft) {
- <a href="ntqpointarray.html">TQPointArray</a> pa( 3 );
+ <a href="tqpointarray.html">TQPointArray</a> pa( 3 );
// make the arrow cover half the area it is supposed to be
// painted on
- int x = r.<a href="ntqrect.html#x">x</a>();
- int y = r.<a href="ntqrect.html#y">y</a>();
- int w = r.<a href="ntqrect.html#width">width</a>() / 2;
- int h = r.<a href="ntqrect.html#height">height</a>() / 2;
- x += (r.<a href="ntqrect.html#width">width</a>() - w) / 2;
- y += (r.<a href="ntqrect.html#height">height</a>() - h) /2;
+ int x = r.<a href="tqrect.html#x">x</a>();
+ int y = r.<a href="tqrect.html#y">y</a>();
+ int w = r.<a href="tqrect.html#width">width</a>() / 2;
+ int h = r.<a href="tqrect.html#height">height</a>() / 2;
+ x += (r.<a href="tqrect.html#width">width</a>() - w) / 2;
+ y += (r.<a href="tqrect.html#height">height</a>() - h) /2;
switch( pe ) {
case PE_ArrowDown:
- pa.<a href="ntqpointarray.html#setPoint">setPoint</a>( 0, x, y );
- pa.<a href="ntqpointarray.html#setPoint">setPoint</a>( 1, x + w, y );
- pa.<a href="ntqpointarray.html#setPoint">setPoint</a>( 2, x + w / 2, y + h );
+ pa.<a href="tqpointarray.html#setPoint">setPoint</a>( 0, x, y );
+ pa.<a href="tqpointarray.html#setPoint">setPoint</a>( 1, x + w, y );
+ pa.<a href="tqpointarray.html#setPoint">setPoint</a>( 2, x + w / 2, y + h );
break;
case PE_ArrowUp:
- pa.<a href="ntqpointarray.html#setPoint">setPoint</a>( 0, x, y + h );
- pa.<a href="ntqpointarray.html#setPoint">setPoint</a>( 1, x + w, y + h );
- pa.<a href="ntqpointarray.html#setPoint">setPoint</a>( 2, x + w / 2, y );
+ pa.<a href="tqpointarray.html#setPoint">setPoint</a>( 0, x, y + h );
+ pa.<a href="tqpointarray.html#setPoint">setPoint</a>( 1, x + w, y + h );
+ pa.<a href="tqpointarray.html#setPoint">setPoint</a>( 2, x + w / 2, y );
break;
case PE_ArrowLeft:
- pa.<a href="ntqpointarray.html#setPoint">setPoint</a>( 0, x + w, y );
- pa.<a href="ntqpointarray.html#setPoint">setPoint</a>( 1, x + w, y + h );
- pa.<a href="ntqpointarray.html#setPoint">setPoint</a>( 2, x, y + h / 2 );
+ pa.<a href="tqpointarray.html#setPoint">setPoint</a>( 0, x + w, y );
+ pa.<a href="tqpointarray.html#setPoint">setPoint</a>( 1, x + w, y + h );
+ pa.<a href="tqpointarray.html#setPoint">setPoint</a>( 2, x, y + h / 2 );
break;
case PE_ArrowRight:
- pa.<a href="ntqpointarray.html#setPoint">setPoint</a>( 0, x, y );
- pa.<a href="ntqpointarray.html#setPoint">setPoint</a>( 1, x, y + h );
- pa.<a href="ntqpointarray.html#setPoint">setPoint</a>( 2, x + w, y + h / 2 );
+ pa.<a href="tqpointarray.html#setPoint">setPoint</a>( 0, x, y );
+ pa.<a href="tqpointarray.html#setPoint">setPoint</a>( 1, x, y + h );
+ pa.<a href="tqpointarray.html#setPoint">setPoint</a>( 2, x + w, y + h / 2 );
break;
default: break;