diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
commit | ea318d1431c89e647598c510c4245c6571aa5f46 (patch) | |
tree | 996d29b80c30d453dda86d1a23162d441628f169 /doc/html/desktop-example.html | |
parent | aaf89d4b48f69c9293feb187db26362e550b5561 (diff) | |
download | tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip |
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/desktop-example.html')
-rw-r--r-- | doc/html/desktop-example.html | 204 |
1 files changed, 102 insertions, 102 deletions
diff --git a/doc/html/desktop-example.html b/doc/html/desktop-example.html index 933d4b6ff..1d778ace4 100644 --- a/doc/html/desktop-example.html +++ b/doc/html/desktop-example.html @@ -34,7 +34,7 @@ body { background: #ffffff; color: black; } <p> The desktop demo contains three routines, each of which draws -something on the desktop. It does some nice stuff with <a href="qpainter.html">TQPainter</a>, +something on the desktop. It does some nice stuff with <a href="ntqpainter.html">TQPainter</a>, and also demonstrates how one can treat the desktop as a widget like any other. <p> <hr> @@ -49,12 +49,12 @@ any other. ** *****************************************************************************/ -#include <<a href="qimage-h.html">qimage.h</a>> -#include <<a href="qbitmap-h.html">qbitmap.h</a>> -#include <<a href="qpainter-h.html">qpainter.h</a>> -#include <<a href="qapplication-h.html">qapplication.h</a>> -#include <<a href="qdropsite-h.html">qdropsite.h</a>> -#include <<a href="qdragobject-h.html">qdragobject.h</a>> +#include <<a href="qimage-h.html">ntqimage.h</a>> +#include <<a href="qbitmap-h.html">ntqbitmap.h</a>> +#include <<a href="qpainter-h.html">ntqpainter.h</a>> +#include <<a href="qapplication-h.html">ntqapplication.h</a>> +#include <<a href="qdropsite-h.html">ntqdropsite.h</a>> +#include <<a href="qdragobject-h.html">ntqdragobject.h</a>> #include <stdio.h> @@ -85,8 +85,8 @@ static int velocity( int i ) // change velocity void poly() { -<a name="x1721"></a> <a href="qwidget.html">TQWidget</a> *d = TQApplication::<a href="qapplication.html#desktop">desktop</a>(); -<a name="x1761"></a> d-><a href="qwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::white ); // white desktop +<a name="x1721"></a> <a href="ntqwidget.html">TQWidget</a> *d = TQApplication::<a href="ntqapplication.html#desktop">desktop</a>(); +<a name="x1761"></a> d-><a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::white ); // white desktop const int maxpoints = 5; const int maxcurves = 8; @@ -94,32 +94,32 @@ void poly() static int yvel[maxpoints]; int head = 0; int tail = -maxcurves + 2; - <a href="qpointarray.html">TQPointArray</a> *a = new <a href="qpointarray.html">TQPointArray</a>[ maxcurves ]; + <a href="ntqpointarray.html">TQPointArray</a> *a = new <a href="ntqpointarray.html">TQPointArray</a>[ maxcurves ]; register TQPointArray *p; -<a name="x1760"></a> <a href="qrect.html">TQRect</a> r = d-><a href="qwidget.html#rect">rect</a>(); // desktop rectangle +<a name="x1760"></a> <a href="ntqrect.html">TQRect</a> r = d-><a href="ntqwidget.html#rect">rect</a>(); // desktop rectangle int i; for ( i=0; i<maxcurves; i++ ) a[i].resize( maxpoints ); p = &a[0]; for ( i=0; i<maxpoints; i++ ) { // setup first polygon points -<a name="x1756"></a> p->setPoint( i, (kindaRand()&0x7fff) % r.<a href="qrect.html#width">width</a>(), -<a name="x1749"></a> (kindaRand()&0x7fff) % r.<a href="qrect.html#height">height</a>() ); +<a name="x1756"></a> p->setPoint( i, (kindaRand()&0x7fff) % r.<a href="ntqrect.html#width">width</a>(), +<a name="x1749"></a> (kindaRand()&0x7fff) % r.<a href="ntqrect.html#height">height</a>() ); xvel[i] = velocity(i); yvel[i] = velocity(i); } - <a href="qpainter.html">TQPainter</a> paint; -<a name="x1733"></a> paint.<a href="qpainter.html#begin">begin</a>( d ); // start painting desktop + <a href="ntqpainter.html">TQPainter</a> paint; +<a name="x1733"></a> paint.<a href="ntqpainter.html#begin">begin</a>( d ); // start painting desktop for ( int ntimes=0; ntimes<2000; ntimes++ ) { - paint.<a href="qpainter.html#setBrush">setBrush</a>( TQColor(kindaRand()%360, 180, 255, TQColor::Hsv) ); -<a name="x1735"></a> paint.<a href="qpainter.html#drawPolygon">drawPolygon</a>( a[head] ); + paint.<a href="ntqpainter.html#setBrush">setBrush</a>( TQColor(kindaRand()%360, 180, 255, TQColor::Hsv) ); +<a name="x1735"></a> paint.<a href="ntqpainter.html#drawPolygon">drawPolygon</a>( a[head] ); if ( ++tail >= maxcurves ) tail = 0; -<a name="x1751"></a><a name="x1750"></a> int minx=r.<a href="qrect.html#left">left</a>(), maxx=r.<a href="qrect.html#right">right</a>(); -<a name="x1755"></a><a name="x1748"></a> int miny=r.<a href="qrect.html#top">top</a>(), maxy=r.<a href="qrect.html#bottom">bottom</a>(); +<a name="x1751"></a><a name="x1750"></a> int minx=r.<a href="ntqrect.html#left">left</a>(), maxx=r.<a href="ntqrect.html#right">right</a>(); +<a name="x1755"></a><a name="x1748"></a> int miny=r.<a href="ntqrect.html#top">top</a>(), maxy=r.<a href="ntqrect.html#bottom">bottom</a>(); int x, y; p = &a[head]; if ( ++head >= maxcurves ) @@ -147,7 +147,7 @@ void poly() a[head].setPoint( i, x, y ); } } -<a name="x1737"></a> paint.<a href="qpainter.html#end">end</a>(); // painting done +<a name="x1737"></a> paint.<a href="ntqpainter.html#end">end</a>(); // painting done delete[] a; } @@ -161,27 +161,27 @@ void rotate() int i; const int w = 64; const int h = 64; - <a href="qimage.html">TQImage</a> image( w, h, 8, 128 ); // create image + <a href="ntqimage.html">TQImage</a> image( w, h, 8, 128 ); // create image for ( i=0; i<128; i++ ) // build color table -<a name="x1730"></a> image.<a href="qimage.html#setColor">setColor</a>( i, qRgb(i,0,0) ); +<a name="x1730"></a> image.<a href="ntqimage.html#setColor">setColor</a>( i, qRgb(i,0,0) ); for ( int y=0; y<h; y++ ) { // set image pixels -<a name="x1729"></a> uchar *p = image.<a href="qimage.html#scanLine">scanLine</a>(y); +<a name="x1729"></a> uchar *p = image.<a href="ntqimage.html#scanLine">scanLine</a>(y); for ( int x=0; x<w; x++ ) *p++ = (x+y)%128; } - <a href="qpixmap.html">TQPixmap</a> pm; + <a href="ntqpixmap.html">TQPixmap</a> pm; pm = image; // convert image to pixmap -<a name="x1745"></a> pm.<a href="qpixmap.html#setOptimization">setOptimization</a>( TQPixmap::BestOptim ); // rotation will be faster +<a name="x1745"></a> pm.<a href="ntqpixmap.html#setOptimization">setOptimization</a>( TQPixmap::BestOptim ); // rotation will be faster - <a href="qwidget.html">TQWidget</a> *d = TQApplication::<a href="qapplication.html#desktop">desktop</a>(); // w = desktop widget + <a href="ntqwidget.html">TQWidget</a> *d = TQApplication::<a href="ntqapplication.html#desktop">desktop</a>(); // w = desktop widget for ( i=0; i<=360; i += 2 ) { - <a href="qwmatrix.html">TQWMatrix</a> m; -<a name="x1764"></a> m.<a href="qwmatrix.html#rotate">rotate</a>( i ); // rotate coordinate system -<a name="x1747"></a> <a href="qpixmap.html">TQPixmap</a> rpm = pm.<a href="qpixmap.html#xForm">xForm</a>( m ); // rpm = rotated pixmap -<a name="x1762"></a> d-><a href="qwidget.html#setBackgroundPixmap">setBackgroundPixmap</a>( rpm ); // set desktop pixmap -<a name="x1763"></a> d-><a href="qwidget.html#update">update</a>(); // repaint desktop + <a href="ntqwmatrix.html">TQWMatrix</a> m; +<a name="x1764"></a> m.<a href="ntqwmatrix.html#rotate">rotate</a>( i ); // rotate coordinate system +<a name="x1747"></a> <a href="ntqpixmap.html">TQPixmap</a> rpm = pm.<a href="ntqpixmap.html#xForm">xForm</a>( m ); // rpm = rotated pixmap +<a name="x1762"></a> d-><a href="ntqwidget.html#setBackgroundPixmap">setBackgroundPixmap</a>( rpm ); // set desktop pixmap +<a name="x1763"></a> d-><a href="ntqwidget.html#update">update</a>(); // repaint desktop } } @@ -189,45 +189,45 @@ void rotate() // Generates a marble-like pattern in pm. // -void generateStone( <a href="qpixmap.html">TQPixmap</a> *pm, - const <a href="qcolor.html">TQColor</a> &c1, const <a href="qcolor.html">TQColor</a> &c2, const <a href="qcolor.html">TQColor</a> &c3 ) +void generateStone( <a href="ntqpixmap.html">TQPixmap</a> *pm, + const <a href="ntqcolor.html">TQColor</a> &c1, const <a href="ntqcolor.html">TQColor</a> &c2, const <a href="ntqcolor.html">TQColor</a> &c3 ) { - <a href="qpainter.html">TQPainter</a> p; - <a href="qpen.html">TQPen</a> p1 ( c1, 0 ); - <a href="qpen.html">TQPen</a> p2 ( c2, 0 ); - <a href="qpen.html">TQPen</a> p3 ( c3, 0 ); - - p.<a href="qpainter.html#begin">begin</a>( pm ); -<a name="x1746"></a> for( int i = 0 ; i < pm-><a href="qpixmap.html#width">width</a>() ; i++ ) -<a name="x1743"></a> for( int j = 0 ; j < pm-><a href="qpixmap.html#height">height</a>() ; j++ ) { + <a href="ntqpainter.html">TQPainter</a> p; + <a href="ntqpen.html">TQPen</a> p1 ( c1, 0 ); + <a href="ntqpen.html">TQPen</a> p2 ( c2, 0 ); + <a href="ntqpen.html">TQPen</a> p3 ( c3, 0 ); + + p.<a href="ntqpainter.html#begin">begin</a>( pm ); +<a name="x1746"></a> for( int i = 0 ; i < pm-><a href="ntqpixmap.html#width">width</a>() ; i++ ) +<a name="x1743"></a> for( int j = 0 ; j < pm-><a href="ntqpixmap.html#height">height</a>() ; j++ ) { int r = kindaRand(); if ( r < KINDA_RAND_MAX / 3 ) -<a name="x1741"></a> p.<a href="qpainter.html#setPen">setPen</a>( p1 ); +<a name="x1741"></a> p.<a href="ntqpainter.html#setPen">setPen</a>( p1 ); else if ( r < KINDA_RAND_MAX / 3 * 2 ) - p.<a href="qpainter.html#setPen">setPen</a>( p2 ); + p.<a href="ntqpainter.html#setPen">setPen</a>( p2 ); else - p.<a href="qpainter.html#setPen">setPen</a>( p3 ); -<a name="x1734"></a> p.<a href="qpainter.html#drawPoint">drawPoint</a>( i,j ); + p.<a href="ntqpainter.html#setPen">setPen</a>( p3 ); +<a name="x1734"></a> p.<a href="ntqpainter.html#drawPoint">drawPoint</a>( i,j ); } - p.<a href="qpainter.html#end">end</a>(); + p.<a href="ntqpainter.html#end">end</a>(); } -void drawShadeText( <a href="qpainter.html">TQPainter</a> *p, int x, int y, const char *text, - const <a href="qcolor.html">TQColor</a> &topColor, const <a href="qcolor.html">TQColor</a> &bottomColor, +void drawShadeText( <a href="ntqpainter.html">TQPainter</a> *p, int x, int y, const char *text, + const <a href="ntqcolor.html">TQColor</a> &topColor, const <a href="ntqcolor.html">TQColor</a> &bottomColor, int sw = 2 ) { -<a name="x1739"></a> if ( !p-><a href="qpainter.html#isActive">isActive</a>() ) +<a name="x1739"></a> if ( !p-><a href="ntqpainter.html#isActive">isActive</a>() ) return; - p-><a href="qpainter.html#setPen">setPen</a>( bottomColor ); -<a name="x1736"></a> p-><a href="qpainter.html#drawText">drawText</a>( x+sw, y+sw, text ); - p-><a href="qpainter.html#setPen">setPen</a>( topColor ); - p-><a href="qpainter.html#drawText">drawText</a>( x, y, text ); + p-><a href="ntqpainter.html#setPen">setPen</a>( bottomColor ); +<a name="x1736"></a> p-><a href="ntqpainter.html#drawText">drawText</a>( x+sw, y+sw, text ); + p-><a href="ntqpainter.html#setPen">setPen</a>( topColor ); + p-><a href="ntqpainter.html#drawText">drawText</a>( x, y, text ); } // NOTE: desktop drag/drop is experimental -class DesktopWidget : public <a href="qwidget.html">TQWidget</a>, private TQDropSite +class DesktopWidget : public <a href="ntqwidget.html">TQWidget</a>, private TQDropSite { public: DesktopWidget( const char *s, TQWidget *parent=0, const char *name=0 ); @@ -251,20 +251,20 @@ public: void dropEvent( <a href="qdropevent.html">TQDropEvent</a> * e ) { - <a href="qpixmap.html">TQPixmap</a> pmp; + <a href="ntqpixmap.html">TQPixmap</a> pmp; <a name="x1732"></a> if ( TQImageDrag::<a href="qimagedrag.html#decode">decode</a>( e, pmp ) ) { - <a href="qwidget.html#setBackgroundPixmap">setBackgroundPixmap</a>( pmp ); - <a href="qwidget.html#update">update</a>(); + <a href="ntqwidget.html#setBackgroundPixmap">setBackgroundPixmap</a>( pmp ); + <a href="ntqwidget.html#update">update</a>(); } } private: - <a href="qpixmap.html">TQPixmap</a> *pm; - <a href="qstring.html">TQString</a> text; + <a href="ntqpixmap.html">TQPixmap</a> *pm; + <a href="ntqstring.html">TQString</a> text; }; <a name="f483"></a>DesktopWidget::DesktopWidget( const char *s, TQWidget *parent, const char *name ) - : <a href="qwidget.html">TQWidget</a>( parent, name, WType_Desktop | WPaintDesktop), + : <a href="ntqwidget.html">TQWidget</a>( parent, name, WType_Desktop | WPaintDesktop), TQDropSite(this) { text = s; @@ -276,34 +276,34 @@ DesktopWidget::~DesktopWidget() delete pm; } -void DesktopWidget::<a href="qwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> * ) +void DesktopWidget::<a href="ntqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> * ) { - <a href="qcolor.html">TQColor</a> c1 = <a href="qwidget.html#backgroundColor">backgroundColor</a>(); -<a name="x1726"></a> <a href="qcolor.html">TQColor</a> c2 = c1.<a href="qcolor.html#light">light</a>(104); -<a name="x1725"></a> <a href="qcolor.html">TQColor</a> c3 = c1.<a href="qcolor.html#dark">dark</a>(106); + <a href="ntqcolor.html">TQColor</a> c1 = <a href="ntqwidget.html#backgroundColor">backgroundColor</a>(); +<a name="x1726"></a> <a href="ntqcolor.html">TQColor</a> c2 = c1.<a href="ntqcolor.html#light">light</a>(104); +<a name="x1725"></a> <a href="ntqcolor.html">TQColor</a> c3 = c1.<a href="ntqcolor.html#dark">dark</a>(106); if ( !pm ) { - pm = new <a href="qpixmap.html">TQPixmap</a>( 64, 64 ); + pm = new <a href="ntqpixmap.html">TQPixmap</a>( 64, 64 ); generateStone( pm, c1, c2, c3 ); - <a href="qwidget.html#setBackgroundPixmap">setBackgroundPixmap</a>( *pm ); - <a href="qwidget.html#update">update</a>(); + <a href="ntqwidget.html#setBackgroundPixmap">setBackgroundPixmap</a>( *pm ); + <a href="ntqwidget.html#update">update</a>(); } - <a href="qrect.html">TQRect</a> br = <a href="qwidget.html#fontMetrics">fontMetrics</a>().boundingRect( text ); - <a href="qpixmap.html">TQPixmap</a> offscreen( br.<a href="qrect.html#width">width</a>(), br.<a href="qrect.html#height">height</a>() ); - int x = <a href="qwidget.html#width">width</a>()/2 - br.<a href="qrect.html#width">width</a>()/2; - int y = <a href="qwidget.html#height">height</a>()/2 - br.<a href="qrect.html#height">height</a>()/2; -<a name="x1742"></a> offscreen.<a href="qpixmap.html#fill">fill</a>( this, x, y ); - <a href="qpainter.html">TQPainter</a> p; - p.<a href="qpainter.html#begin">begin</a>( &offscreen ); -<a name="x1758"></a><a name="x1757"></a> drawShadeText( &p, -br.<a href="qrect.html#x">x</a>(), -br.<a href="qrect.html#y">y</a>(), text, c2, c3, 3 ); - p.<a href="qpainter.html#end">end</a>(); - <a href="qimage.html#bitBlt">bitBlt</a>( this, x, y, &offscreen ); + <a href="ntqrect.html">TQRect</a> br = <a href="ntqwidget.html#fontMetrics">fontMetrics</a>().boundingRect( text ); + <a href="ntqpixmap.html">TQPixmap</a> offscreen( br.<a href="ntqrect.html#width">width</a>(), br.<a href="ntqrect.html#height">height</a>() ); + int x = <a href="ntqwidget.html#width">width</a>()/2 - br.<a href="ntqrect.html#width">width</a>()/2; + int y = <a href="ntqwidget.html#height">height</a>()/2 - br.<a href="ntqrect.html#height">height</a>()/2; +<a name="x1742"></a> offscreen.<a href="ntqpixmap.html#fill">fill</a>( this, x, y ); + <a href="ntqpainter.html">TQPainter</a> p; + p.<a href="ntqpainter.html#begin">begin</a>( &offscreen ); +<a name="x1758"></a><a name="x1757"></a> drawShadeText( &p, -br.<a href="ntqrect.html#x">x</a>(), -br.<a href="ntqrect.html#y">y</a>(), text, c2, c3, 3 ); + p.<a href="ntqpainter.html#end">end</a>(); + <a href="ntqimage.html#bitBlt">bitBlt</a>( this, x, y, &offscreen ); } void desktopWidget( const char *s = "Trolltech" ) { DesktopWidget *t = new DesktopWidget(s); - t-><a href="qwidget.html#update">update</a>(); - qApp-><a href="qapplication.html#exec">exec</a>(); + t-><a href="ntqwidget.html#update">update</a>(); + qApp-><a href="ntqapplication.html#exec">exec</a>(); delete t; } @@ -311,31 +311,31 @@ void desktopText( const char *s = "Trolltech" ) { const int border = 20; -<a name="x1723"></a> <a href="qcolor.html">TQColor</a> c1 = qApp-><a href="qapplication.html#palette">palette</a>().inactive().background(); - <a href="qcolor.html">TQColor</a> c2 = c1.<a href="qcolor.html#light">light</a>(104); - <a href="qcolor.html">TQColor</a> c3 = c1.<a href="qcolor.html#dark">dark</a>(106); +<a name="x1723"></a> <a href="ntqcolor.html">TQColor</a> c1 = qApp-><a href="ntqapplication.html#palette">palette</a>().inactive().background(); + <a href="ntqcolor.html">TQColor</a> c2 = c1.<a href="ntqcolor.html#light">light</a>(104); + <a href="ntqcolor.html">TQColor</a> c3 = c1.<a href="ntqcolor.html#dark">dark</a>(106); - <a href="qpixmap.html">TQPixmap</a> pm(10,10); + <a href="ntqpixmap.html">TQPixmap</a> pm(10,10); - <a href="qpainter.html">TQPainter</a> p; - p.<a href="qpainter.html#begin">begin</a>( &pm ); -<a name="x1738"></a> <a href="qrect.html">TQRect</a> r = p.<a href="qpainter.html#fontMetrics">fontMetrics</a>().boundingRect( s ); - p.<a href="qpainter.html#end">end</a>(); + <a href="ntqpainter.html">TQPainter</a> p; + p.<a href="ntqpainter.html#begin">begin</a>( &pm ); +<a name="x1738"></a> <a href="ntqrect.html">TQRect</a> r = p.<a href="ntqpainter.html#fontMetrics">fontMetrics</a>().boundingRect( s ); + p.<a href="ntqpainter.html#end">end</a>(); - int appWidth = qApp-><a href="qapplication.html#desktop">desktop</a>()->width(); - int appHeight = qApp-><a href="qapplication.html#desktop">desktop</a>()->height(); - if ( r.<a href="qrect.html#width">width</a>() > appWidth - border*2 ) -<a name="x1753"></a> r.<a href="qrect.html#setWidth">setWidth</a>( appWidth - border*2 ); - if ( r.<a href="qrect.html#height">height</a>() > appHeight - border*2 ) -<a name="x1752"></a> r.<a href="qrect.html#setHeight">setHeight</a>( appHeight - border*2 ); + int appWidth = qApp-><a href="ntqapplication.html#desktop">desktop</a>()->width(); + int appHeight = qApp-><a href="ntqapplication.html#desktop">desktop</a>()->height(); + if ( r.<a href="ntqrect.html#width">width</a>() > appWidth - border*2 ) +<a name="x1753"></a> r.<a href="ntqrect.html#setWidth">setWidth</a>( appWidth - border*2 ); + if ( r.<a href="ntqrect.html#height">height</a>() > appHeight - border*2 ) +<a name="x1752"></a> r.<a href="ntqrect.html#setHeight">setHeight</a>( appHeight - border*2 ); -<a name="x1754"></a><a name="x1744"></a> pm.<a href="qpixmap.html#resize">resize</a>( r.<a href="qrect.html#size">size</a>() + TQSize( border*2, border*2 ) ); +<a name="x1754"></a><a name="x1744"></a> pm.<a href="ntqpixmap.html#resize">resize</a>( r.<a href="ntqrect.html#size">size</a>() + TQSize( border*2, border*2 ) ); generateStone( &pm, c1, c2, c3 ); - p.<a href="qpainter.html#begin">begin</a>( &pm ); - drawShadeText( &p, -r.<a href="qrect.html#x">x</a>() + border, -r.<a href="qrect.html#y">y</a>() + border, s, c2, c3 ); - p.<a href="qpainter.html#end">end</a>(); + p.<a href="ntqpainter.html#begin">begin</a>( &pm ); + drawShadeText( &p, -r.<a href="ntqrect.html#x">x</a>() + border, -r.<a href="ntqrect.html#y">y</a>() + border, s, c2, c3 ); + p.<a href="ntqpainter.html#end">end</a>(); - qApp-><a href="qapplication.html#desktop">desktop</a>()->setBackgroundPixmap( pm ); + qApp-><a href="ntqapplication.html#desktop">desktop</a>()->setBackgroundPixmap( pm ); } // @@ -344,12 +344,12 @@ void desktopText( const char *s = "Trolltech" ) int main( int argc, char **argv ) { - <a href="qapplication.html">TQApplication</a> app( argc, argv ); + <a href="ntqapplication.html">TQApplication</a> app( argc, argv ); if ( argc > 1 ) { - <a href="qfont.html">TQFont</a> f( "charter", 96, TQFont::Black ); -<a name="x1728"></a> f.<a href="qfont.html#setStyleHint">setStyleHint</a>( TQFont::Times ); -<a name="x1724"></a> app.<a href="qapplication.html#setFont">setFont</a>( f ); + <a href="ntqfont.html">TQFont</a> f( "charter", 96, TQFont::Black ); +<a name="x1728"></a> f.<a href="ntqfont.html#setStyleHint">setStyleHint</a>( TQFont::Times ); +<a name="x1724"></a> app.<a href="ntqapplication.html#setFont">setFont</a>( f ); } bool validOptions = FALSE; |