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.html30
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/html/aclock-example.html b/doc/html/aclock-example.html
index 88320ca96..7f241db5a 100644
--- a/doc/html/aclock-example.html
+++ b/doc/html/aclock-example.html
@@ -50,7 +50,7 @@ This example displays an analog clock widget.
#define ACLOCK_H
#include &lt;<a href="tqwidget-h.html">tqwidget.h</a>&gt;
-#include &lt;<a href="qdatetime-h.html">ntqdatetime.h</a>&gt;
+#include &lt;<a href="tqdatetime-h.html">tqdatetime.h</a>&gt;
class TQTimer;
class AnalogClock : public <a href="tqwidget.html">TQWidget</a> // analog clock widget
@@ -71,12 +71,12 @@ private slots:
void timeout();
public slots:
- void setTime( const <a href="qtime.html">TQTime</a> &amp; t );
+ void setTime( const <a href="tqtime.html">TQTime</a> &amp; t );
private:
<a href="ntqpoint.html">TQPoint</a> clickPos;
- <a href="qtime.html">TQTime</a> time;
- <a href="ntqtimer.html">TQTimer</a> *internalTimer;
+ <a href="tqtime.html">TQTime</a> time;
+ <a href="tqtimer.html">TQTimer</a> *internalTimer;
};
@@ -96,7 +96,7 @@ private:
*****************************************************************************/
#include "aclock.h"
-#include &lt;<a href="qtimer-h.html">ntqtimer.h</a>&gt;
+#include &lt;<a href="tqtimer-h.html">tqtimer.h</a>&gt;
#include &lt;<a href="qpainter-h.html">ntqpainter.h</a>&gt;
#include &lt;<a href="qbitmap-h.html">ntqbitmap.h</a>&gt;
@@ -107,10 +107,10 @@ private:
<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
-<a name="x1205"></a> <a href="tqobject.html#connect">connect</a>( internalTimer, TQ_SIGNAL(<a href="ntqtimer.html#timeout">timeout</a>()), TQ_SLOT(timeout()) );
-<a name="x1204"></a> internalTimer-&gt;<a href="ntqtimer.html#start">start</a>( 5000 ); // emit signal every 5 seconds
+<a name="x1201"></a> time = TQTime::<a href="tqtime.html#currentTime">currentTime</a>(); // get current time
+ internalTimer = new <a href="tqtimer.html">TQTimer</a>( this ); // create internal timer
+<a name="x1205"></a> <a href="tqobject.html#connect">connect</a>( internalTimer, TQ_SIGNAL(<a href="tqtimer.html#timeout">timeout</a>()), TQ_SLOT(timeout()) );
+<a name="x1204"></a> internalTimer-&gt;<a href="tqtimer.html#start">start</a>( 5000 ); // emit signal every 5 seconds
}
void AnalogClock::<a href="tqwidget.html#mousePressEvent">mousePressEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> *e )
@@ -133,10 +133,10 @@ void AnalogClock::<a href="tqwidget.html#mousePressEvent">mousePressEvent</a>( <
// When we set an explicit time we don't want the timeout() slot to be
// called anymore as this relies on currentTime()
//
-void <a name="f385"></a>AnalogClock::setTime( const <a href="qtime.html">TQTime</a> &amp; t )
+void <a name="f385"></a>AnalogClock::setTime( const <a href="tqtime.html">TQTime</a> &amp; t )
{
time = t;
- <a href="tqobject.html#disconnect">disconnect</a>( internalTimer, TQ_SIGNAL(<a href="ntqtimer.html#timeout">timeout</a>()), this, TQ_SLOT(timeout()) );
+ <a href="tqobject.html#disconnect">disconnect</a>( internalTimer, TQ_SIGNAL(<a href="tqtimer.html#timeout">timeout</a>()), this, TQ_SLOT(timeout()) );
if (<a href="tqwidget.html#autoMask">autoMask</a>())
<a href="tqwidget.html#updateMask">updateMask</a>();
else
@@ -146,10 +146,10 @@ void <a name="f385"></a>AnalogClock::setTime( const <a href="qtime.html">TQTime<
void <a name="f386"></a>AnalogClock::timeout()
{
- <a href="qtime.html">TQTime</a> old_time = time;
- 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
+ <a href="tqtime.html">TQTime</a> old_time = time;
+ time = TQTime::<a href="tqtime.html#currentTime">currentTime</a>();
+<a name="x1203"></a> if ( old_time.<a href="tqtime.html#minute">minute</a>() != time.minute()
+<a name="x1202"></a> || old_time.<a href="tqtime.html#hour">hour</a>() != time.hour() ) { // minute or hour has changed
if (<a href="tqwidget.html#autoMask">autoMask</a>())
<a href="tqwidget.html#updateMask">updateMask</a>();
else