diff options
Diffstat (limited to 'doc/html/tutorial1-12.html')
-rw-r--r-- | doc/html/tutorial1-12.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/html/tutorial1-12.html b/doc/html/tutorial1-12.html index 3a90243c8..ef3cabd86 100644 --- a/doc/html/tutorial1-12.html +++ b/doc/html/tutorial1-12.html @@ -55,7 +55,7 @@ implementation. <p> <pre> class TQLabel; </pre> -<p> We name declare <a href="ntqlabel.html">TQLabel</a> because we want to use a pointer to it in the class +<p> We name declare <a href="tqlabel.html">TQLabel</a> because we want to use a pointer to it in the class definition. <p> <pre> class LCDRange : public <a href="ntqvbox.html">TQVBox</a> { @@ -78,7 +78,7 @@ the parent and name. </pre> <p> Because we now have two constructors, we have chosen to put the common initialization in the private init() function. -<p> <pre> <a href="ntqlabel.html">TQLabel</a> *label; +<p> <pre> <a href="tqlabel.html">TQLabel</a> *label; </pre> <p> We also have a new private variable: a TQLabel. TQLabel is one of TQt's standard widgets and can show a text or a pixmap with or without a @@ -87,9 +87,9 @@ frame. </h3> <a name="1-2"></a><p> -<p> <pre> #include <<a href="qlabel-h.html">ntqlabel.h</a>> +<p> <pre> #include <<a href="tqlabel-h.html">tqlabel.h</a>> </pre> -<p> Here we include the <a href="ntqlabel.html">TQLabel</a> class definition. +<p> Here we include the <a href="tqlabel.html">TQLabel</a> class definition. <p> <pre> LCDRange::LCDRange( <a href="tqwidget.html">TQWidget</a> *parent, const char *name ) : <a href="ntqvbox.html">TQVBox</a>( parent, name ) { @@ -114,8 +114,8 @@ initialization code. <a name="x2387"></a> slider-><a href="ntqrangecontrol.html#setRange">setRange</a>( 0, 99 ); <a name="x2388"></a> slider-><a href="ntqslider.html#setValue">setValue</a>( 0 ); - label = new <a href="ntqlabel.html">TQLabel</a>( " ", this, "label" ); - <a name="x2383"></a> label-><a href="ntqlabel.html#setAlignment">setAlignment</a>( AlignCenter ); + label = new <a href="tqlabel.html">TQLabel</a>( " ", this, "label" ); + <a name="x2383"></a> label-><a href="tqlabel.html#setAlignment">setAlignment</a>( AlignCenter ); <a name="x2389"></a> <a href="tqobject.html#connect">connect</a>( slider, TQ_SIGNAL(<a href="ntqslider.html#valueChanged">valueChanged</a>(int)), <a name="x2386"></a> lcd, TQ_SLOT(<a href="ntqlcdnumber.html#display">display</a>(int)) ); @@ -126,18 +126,18 @@ initialization code. } </pre> <p> The setup of <tt>lcd</tt> and <tt>slider</tt> is the same as in the previous -chapter. Next we create a <a href="ntqlabel.html">TQLabel</a> and tell it to align the contents +chapter. Next we create a <a href="tqlabel.html">TQLabel</a> and tell it to align the contents centered (both vertically and horizontally). The connect() statements have also been taken from the previous chapter. <p> <pre> const char *LCDRange::text() const { - <a name="x2385"></a> return label-><a href="ntqlabel.html#text">text</a>(); + <a name="x2385"></a> return label-><a href="tqlabel.html#text">text</a>(); } </pre> <p> This function returns the label text. <p> <pre> void LCDRange::setText( const char *s ) { - <a name="x2384"></a> label-><a href="ntqlabel.html#setText">setText</a>( s ); + <a name="x2384"></a> label-><a href="tqlabel.html#setText">setText</a>( s ); } </pre> <p> This function sets the label text. |