summaryrefslogtreecommitdiffstats
path: root/doc/html/aclock-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/aclock-example.html')
-rw-r--r--doc/html/aclock-example.html60
1 files changed, 30 insertions, 30 deletions
diff --git a/doc/html/aclock-example.html b/doc/html/aclock-example.html
index dfd8bc84f..88320ca96 100644
--- a/doc/html/aclock-example.html
+++ b/doc/html/aclock-example.html
@@ -49,15 +49,15 @@ This example displays an analog clock widget.
#ifndef ACLOCK_H
#define ACLOCK_H
-#include &lt;<a href="qwidget-h.html">ntqwidget.h</a>&gt;
+#include &lt;<a href="tqwidget-h.html">tqwidget.h</a>&gt;
#include &lt;<a href="qdatetime-h.html">ntqdatetime.h</a>&gt;
class TQTimer;
-class AnalogClock : public <a href="ntqwidget.html">TQWidget</a> // analog clock widget
+class AnalogClock : public <a href="tqwidget.html">TQWidget</a> // analog clock widget
{
<a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public:
- AnalogClock( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
+ AnalogClock( <a href="tqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
void setAutoMask(bool b);
protected:
@@ -104,8 +104,8 @@ private:
// Constructs an analog clock widget that uses an internal TQTimer.
//
-<a name="f384"></a>AnalogClock::AnalogClock( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name )
- : <a href="ntqwidget.html">TQWidget</a>( parent, name )
+<a name="f384"></a>AnalogClock::AnalogClock( <a href="tqwidget.html">TQWidget</a> *parent, const char *name )
+ : <a href="tqwidget.html">TQWidget</a>( parent, name )
{
<a name="x1201"></a> time = TQTime::<a href="qtime.html#currentTime">currentTime</a>(); // get current time
internalTimer = new <a href="ntqtimer.html">TQTimer</a>( this ); // create internal timer
@@ -113,16 +113,16 @@ private:
<a name="x1204"></a> internalTimer-&gt;<a href="ntqtimer.html#start">start</a>( 5000 ); // emit signal every 5 seconds
}
-void AnalogClock::<a href="ntqwidget.html#mousePressEvent">mousePressEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> *e )
+void AnalogClock::<a href="tqwidget.html#mousePressEvent">mousePressEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> *e )
{
- if(<a href="ntqwidget.html#isTopLevel">isTopLevel</a>())
- clickPos = e-&gt;<a href="qmouseevent.html#pos">pos</a>() + TQPoint(<a href="ntqwidget.html#geometry">geometry</a>().topLeft() - frameGeometry().topLeft());
+ if(<a href="tqwidget.html#isTopLevel">isTopLevel</a>())
+ clickPos = e-&gt;<a href="qmouseevent.html#pos">pos</a>() + TQPoint(<a href="tqwidget.html#geometry">geometry</a>().topLeft() - frameGeometry().topLeft());
}
-<a name="x1206"></a>void AnalogClock::<a href="ntqwidget.html#mouseMoveEvent">mouseMoveEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> *e )
+<a name="x1206"></a>void AnalogClock::<a href="tqwidget.html#mouseMoveEvent">mouseMoveEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> *e )
{
- if(<a href="ntqwidget.html#isTopLevel">isTopLevel</a>())
-<a name="x1181"></a> <a href="ntqwidget.html#move">move</a>( e-&gt;<a href="qmouseevent.html#globalPos">globalPos</a>() - clickPos );
+ if(<a href="tqwidget.html#isTopLevel">isTopLevel</a>())
+<a name="x1181"></a> <a href="tqwidget.html#move">move</a>( e-&gt;<a href="qmouseevent.html#globalPos">globalPos</a>() - clickPos );
}
//
@@ -137,10 +137,10 @@ void <a name="f385"></a>AnalogClock::setTime( const <a href="qtime.html">TQTime<
{
time = t;
<a href="tqobject.html#disconnect">disconnect</a>( internalTimer, TQ_SIGNAL(<a href="ntqtimer.html#timeout">timeout</a>()), this, TQ_SLOT(timeout()) );
- if (<a href="ntqwidget.html#autoMask">autoMask</a>())
- <a href="ntqwidget.html#updateMask">updateMask</a>();
+ if (<a href="tqwidget.html#autoMask">autoMask</a>())
+ <a href="tqwidget.html#updateMask">updateMask</a>();
else
- <a href="ntqwidget.html#update">update</a>();
+ <a href="tqwidget.html#update">update</a>();
}
@@ -150,20 +150,20 @@ void <a name="f386"></a>AnalogClock::timeout()
time = TQTime::<a href="qtime.html#currentTime">currentTime</a>();
<a name="x1203"></a> if ( old_time.<a href="qtime.html#minute">minute</a>() != time.minute()
<a name="x1202"></a> || old_time.<a href="qtime.html#hour">hour</a>() != time.hour() ) { // minute or hour has changed
- if (<a href="ntqwidget.html#autoMask">autoMask</a>())
- <a href="ntqwidget.html#updateMask">updateMask</a>();
+ if (<a href="tqwidget.html#autoMask">autoMask</a>())
+ <a href="tqwidget.html#updateMask">updateMask</a>();
else
- <a href="ntqwidget.html#update">update</a>();
+ <a href="tqwidget.html#update">update</a>();
}
}
-void AnalogClock::<a href="ntqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> * )
+void AnalogClock::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> * )
{
- if ( <a href="ntqwidget.html#autoMask">autoMask</a>() )
+ if ( <a href="tqwidget.html#autoMask">autoMask</a>() )
return;
<a href="ntqpainter.html">TQPainter</a> paint( this );
-<a name="x1190"></a> paint.<a href="ntqpainter.html#setBrush">setBrush</a>( <a href="ntqwidget.html#colorGroup">colorGroup</a>().foreground() );
+<a name="x1190"></a> paint.<a href="ntqpainter.html#setBrush">setBrush</a>( <a href="tqwidget.html#colorGroup">colorGroup</a>().foreground() );
drawClock( &amp;paint );
}
@@ -172,7 +172,7 @@ void AnalogClock::<a href="ntqwidget.html#paintEvent">paintEvent</a>( <a href="q
void AnalogClock::updateMask() // paint clock mask
{
- <a href="ntqbitmap.html">TQBitmap</a> bm( <a href="ntqwidget.html#size">size</a>() );
+ <a href="ntqbitmap.html">TQBitmap</a> bm( <a href="tqwidget.html#size">size</a>() );
bm.<a href="ntqpixmap.html#fill">fill</a>( color0 ); //transparent
<a href="ntqpainter.html">TQPainter</a> paint;
@@ -183,7 +183,7 @@ void AnalogClock::updateMask() // paint clock mask
drawClock( &amp;paint );
<a name="x1186"></a> paint.<a href="ntqpainter.html#end">end</a>();
- <a href="ntqwidget.html#setMask">setMask</a>( bm );
+ <a href="tqwidget.html#setMask">setMask</a>( bm );
}
//
@@ -225,13 +225,13 @@ void <a name="f387"></a>AnalogClock::drawClock( <a href="ntqpainter.html">TQPain
}
-<a name="x1209"></a>void AnalogClock::<a href="ntqwidget.html#setAutoMask">setAutoMask</a>(bool b)
+<a name="x1209"></a>void AnalogClock::<a href="tqwidget.html#setAutoMask">setAutoMask</a>(bool b)
{
if (b)
- <a href="ntqwidget.html#setBackgroundMode">setBackgroundMode</a>( PaletteForeground );
+ <a href="tqwidget.html#setBackgroundMode">setBackgroundMode</a>( PaletteForeground );
else
- <a href="ntqwidget.html#setBackgroundMode">setBackgroundMode</a>( PaletteBackground );
- TQWidget::<a href="ntqwidget.html#setAutoMask">setAutoMask</a>(b);
+ <a href="tqwidget.html#setBackgroundMode">setBackgroundMode</a>( PaletteBackground );
+ TQWidget::<a href="tqwidget.html#setAutoMask">setAutoMask</a>(b);
}
</pre>
@@ -256,11 +256,11 @@ int main( int argc, char **argv )
<a href="ntqapplication.html">TQApplication</a> a( argc, argv );
AnalogClock *clock = new AnalogClock;
if ( argc == 2 &amp;&amp; strcmp( argv[1], "-transparent" ) == 0 )
-<a name="x1213"></a> clock-&gt;<a href="ntqwidget.html#setAutoMask">setAutoMask</a>( TRUE );
-<a name="x1212"></a> clock-&gt;<a href="ntqwidget.html#resize">resize</a>( 100, 100 );
+<a name="x1213"></a> clock-&gt;<a href="tqwidget.html#setAutoMask">setAutoMask</a>( TRUE );
+<a name="x1212"></a> clock-&gt;<a href="tqwidget.html#resize">resize</a>( 100, 100 );
a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( clock );
-<a name="x1214"></a> clock-&gt;<a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - Analog Clock");
-<a name="x1215"></a> clock-&gt;<a href="ntqwidget.html#show">show</a>();
+<a name="x1214"></a> clock-&gt;<a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - Analog Clock");
+<a name="x1215"></a> clock-&gt;<a href="tqwidget.html#show">show</a>();
int result = a.<a href="ntqapplication.html#exec">exec</a>();
delete clock;
return result;