summaryrefslogtreecommitdiffstats
path: root/doc/html/dclock-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/dclock-example.html')
-rw-r--r--doc/html/dclock-example.html50
1 files changed, 25 insertions, 25 deletions
diff --git a/doc/html/dclock-example.html b/doc/html/dclock-example.html
index 332a7e767..48bdaeb4e 100644
--- a/doc/html/dclock-example.html
+++ b/doc/html/dclock-example.html
@@ -50,14 +50,14 @@ and date.
#ifndef DCLOCK_H
#define DCLOCK_H
-#include &lt;<a href="qlcdnumber-h.html">qlcdnumber.h</a>&gt;
+#include &lt;<a href="qlcdnumber-h.html">ntqlcdnumber.h</a>&gt;
-class DigitalClock : public <a href="qlcdnumber.html">TQLCDNumber</a> // digital clock widget
+class DigitalClock : public <a href="ntqlcdnumber.html">TQLCDNumber</a> // digital clock widget
{
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a>
public:
- DigitalClock( <a href="qwidget.html">TQWidget</a> *parent=0, const char *name=0 );
+ DigitalClock( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
protected: // event handlers
void timerEvent( <a href="qtimerevent.html">TQTimerEvent</a> * );
@@ -92,21 +92,21 @@ private: // internal data
*****************************************************************************/
#include "dclock.h"
-#include &lt;<a href="qdatetime-h.html">qdatetime.h</a>&gt;
+#include &lt;<a href="qdatetime-h.html">ntqdatetime.h</a>&gt;
//
// Constructs a DigitalClock widget with a parent and a name.
//
-<a name="f371"></a>DigitalClock::DigitalClock( <a href="qwidget.html">TQWidget</a> *parent, const char *name )
- : <a href="qlcdnumber.html">TQLCDNumber</a>( parent, name )
+<a name="f371"></a>DigitalClock::DigitalClock( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name )
+ : <a href="ntqlcdnumber.html">TQLCDNumber</a>( parent, name )
{
showingColon = FALSE;
- <a href="qframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Raised );
- <a href="qframe.html#setLineWidth">setLineWidth</a>( 2 ); // set frame line width
+ <a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Raised );
+ <a href="ntqframe.html#setLineWidth">setLineWidth</a>( 2 ); // set frame line width
showTime(); // display the current time
- normalTimer = <a href="qobject.html#startTimer">startTimer</a>( 500 ); // 1/2 second timer events
+ normalTimer = <a href="ntqobject.html#startTimer">startTimer</a>( 500 ); // 1/2 second timer events
showDateTimer = -1; // not showing date
}
@@ -117,7 +117,7 @@ private: // internal data
// and another one for switching back from date mode to time mode.
//
-<a name="x1102"></a>void DigitalClock::<a href="qobject.html#timerEvent">timerEvent</a>( <a href="qtimerevent.html">TQTimerEvent</a> *e )
+<a name="x1102"></a>void DigitalClock::<a href="ntqobject.html#timerEvent">timerEvent</a>( <a href="qtimerevent.html">TQTimerEvent</a> *e )
{
<a name="x1105"></a> if ( e-&gt;<a href="qtimerevent.html#timerId">timerId</a>() == showDateTimer ) // stop showing date
stopDate();
@@ -131,7 +131,7 @@ private: // internal data
// Enters date mode when the left mouse button is pressed.
//
-void DigitalClock::<a href="qwidget.html#mousePressEvent">mousePressEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> *e )
+void DigitalClock::<a href="ntqwidget.html#mousePressEvent">mousePressEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> *e )
{
<a name="x1101"></a> if ( e-&gt;<a href="qmouseevent.html#button">button</a>() == TQMouseEvent::LeftButton ) // left button pressed
showDate();
@@ -148,10 +148,10 @@ void <a name="f372"></a>DigitalClock::showDate()
if ( showDateTimer != -1 ) // already showing date
return;
<a name="x1098"></a> <a href="qdate.html">TQDate</a> date = TQDate::<a href="qdate.html#currentDate">currentDate</a>();
- <a href="qstring.html">TQString</a> s;
-<a name="x1103"></a><a name="x1100"></a><a name="x1099"></a> s.<a href="qstring.html#sprintf">sprintf</a>( "%2d %2d", date.<a href="qdate.html#month">month</a>(), date.<a href="qdate.html#day">day</a>() );
- <a href="qlcdnumber.html#display">display</a>( s ); // sets the LCD number/text
- showDateTimer = <a href="qobject.html#startTimer">startTimer</a>( 2000 ); // keep this state for 2 secs
+ <a href="ntqstring.html">TQString</a> s;
+<a name="x1103"></a><a name="x1100"></a><a name="x1099"></a> s.<a href="ntqstring.html#sprintf">sprintf</a>( "%2d %2d", date.<a href="qdate.html#month">month</a>(), date.<a href="qdate.html#day">day</a>() );
+ <a href="ntqlcdnumber.html#display">display</a>( s ); // sets the LCD number/text
+ showDateTimer = <a href="ntqobject.html#startTimer">startTimer</a>( 2000 ); // keep this state for 2 secs
}
//
@@ -160,7 +160,7 @@ void <a name="f372"></a>DigitalClock::showDate()
void <a name="f373"></a>DigitalClock::stopDate()
{
- <a href="qobject.html#killTimer">killTimer</a>( showDateTimer );
+ <a href="ntqobject.html#killTimer">killTimer</a>( showDateTimer );
showDateTimer = -1;
showTime();
}
@@ -172,12 +172,12 @@ void <a name="f373"></a>DigitalClock::stopDate()
void <a name="f374"></a>DigitalClock::showTime()
{
showingColon = !showingColon; // toggle/blink colon
-<a name="x1104"></a> <a href="qstring.html">TQString</a> s = TQTime::<a href="qtime.html#currentTime">currentTime</a>().toString().left(5);
+<a name="x1104"></a> <a href="ntqstring.html">TQString</a> s = TQTime::<a href="qtime.html#currentTime">currentTime</a>().toString().left(5);
if ( !showingColon )
s[2] = ' ';
if ( s[0] == '0' )
s[0] = ' ';
- <a href="qlcdnumber.html#display">display</a>( s ); // set LCD number/text
+ <a href="ntqlcdnumber.html#display">display</a>( s ); // set LCD number/text
}
</pre>
@@ -194,18 +194,18 @@ void <a name="f374"></a>DigitalClock::showTime()
*****************************************************************************/
#include "dclock.h"
-#include &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
+#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
int main( int argc, char **argv )
{
- <a href="qapplication.html">TQApplication</a> a( argc, argv );
+ <a href="ntqapplication.html">TQApplication</a> a( argc, argv );
DigitalClock *clock = new DigitalClock;
- clock-&gt;<a href="qwidget.html#resize">resize</a>( 170, 80 );
- a.<a href="qapplication.html#setMainWidget">setMainWidget</a>( clock );
- clock-&gt;<a href="qwidget.html#setCaption">setCaption</a>("TQt Example - Digital Clock");
- clock-&gt;<a href="qwidget.html#show">show</a>();
- return a.<a href="qapplication.html#exec">exec</a>();
+ clock-&gt;<a href="ntqwidget.html#resize">resize</a>( 170, 80 );
+ a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( clock );
+ clock-&gt;<a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - Digital Clock");
+ clock-&gt;<a href="ntqwidget.html#show">show</a>();
+ return a.<a href="ntqapplication.html#exec">exec</a>();
}
</pre>