diff options
Diffstat (limited to 'doc/html/designer-manual-4.html')
| -rw-r--r-- | doc/html/designer-manual-4.html | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/html/designer-manual-4.html b/doc/html/designer-manual-4.html index a0272eb60..97b182bd1 100644 --- a/doc/html/designer-manual-4.html +++ b/doc/html/designer-manual-4.html @@ -122,7 +122,7 @@ body { background: #ffffff; color: black; } <p>We'll start by adding some includes.</p> <pre> #include <<a href="qcolor-h.html">ntqcolor.h</a>> #include <<a href="tqmap-h.html">tqmap.h</a>> - #include <<a href="qstring-h.html">ntqstring.h</a>> + #include <<a href="tqstring-h.html">tqstring.h</a>> </pre> <p>Enter these above the <tt>validate()</tt> function.</p> <p>We also need a variable to hold the list of colors.</p> @@ -138,8 +138,8 @@ body { background: #ffffff; color: black; } <p>Now that we've got a means of obtaining the list of color names we are ready to write the <tt>validate()</tt> function.</p> <pre> void ColorNameForm::validate() { - <a href="ntqstring.html">TQString</a> name = colorLineEdit->text(); - if ( ! name.<a href="ntqstring.html#isEmpty">isEmpty</a>() && + <a href="tqstring.html">TQString</a> name = colorLineEdit->text(); + if ( ! name.<a href="tqstring.html#isEmpty">isEmpty</a>() && ( m_colors.isEmpty() || ! m_colors.contains( <a href="tqobject.html#name-prop">name</a> ) ) ) accept(); else @@ -178,7 +178,7 @@ body { background: #ffffff; color: black; } colorForm->setColors( m_colors ); colorForm->colorLabel->setPixmap( pixmap ); if ( colorForm->exec() ) { - <a href="ntqstring.html">TQString</a> name = colorForm->colorLineEdit->text(); + <a href="tqstring.html">TQString</a> name = colorForm->colorLineEdit->text(); m_colors[name] = color; <a href="ntqpixmap.html">TQPixmap</a> pixmap( 22, 22 ); pixmap.<a href="ntqpixmap.html#fill">fill</a>( color ); @@ -271,19 +271,19 @@ body { background: #ffffff; color: black; } { if ( ! findForm ) { findForm = new FindForm( this ); - <a href="tqobject.html#connect">connect</a>( findForm, TQ_SIGNAL( lookfor(const <a href="ntqstring.html">TQString</a>&) ), - this, TQ_SLOT( lookfor(const <a href="ntqstring.html">TQString</a>&) ) ); + <a href="tqobject.html#connect">connect</a>( findForm, TQ_SIGNAL( lookfor(const <a href="tqstring.html">TQString</a>&) ), + this, TQ_SLOT( lookfor(const <a href="tqstring.html">TQString</a>&) ) ); } findForm->show(); } </pre> <p>If we haven't created the FindForm, we create it and connect its <tt>lookfor()</tt> signal to a corresponding <tt>lookfor()</tt> slot that we'll create in the main form. We then show the FindForm so that the user can enter their search text and click find.</p> <h5><a name="2-2-2"></a>lookfor()</h5> -<pre> void MainForm::lookfor( const <a href="ntqstring.html">TQString</a>& text ) +<pre> void MainForm::lookfor( const <a href="tqstring.html">TQString</a>& text ) { - if ( text.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) + if ( text.<a href="tqstring.html#isEmpty">isEmpty</a>() ) return; - <a href="ntqstring.html">TQString</a> ltext = text.<a href="ntqstring.html#lower">lower</a>(); + <a href="tqstring.html">TQString</a> ltext = text.<a href="tqstring.html#lower">lower</a>(); <a href="tqwidget.html">TQWidget</a> *visible = colorWidgetStack->visibleWidget(); bool found = FALSE; @@ -488,7 +488,7 @@ body { background: #ffffff; color: black; } <li><p>"ntqmessagebox.h"</p> <li><p>"ntqstatusbar.h"</p> <li><p>"ntqpainter.h"</p> -<li><p>"ntqstring.h"</p> +<li><p>"tqstring.h"</p> <li><p>"ntqcolor.h"</p> <li><p>"ntqapplication.h"</p> <li><p>"ntqfiledialog.h"</p> @@ -503,7 +503,7 @@ body { background: #ffffff; color: black; } <p>We put all the ColorNameForm declarations in the source code file. The file <tt>colornameform.ui.h</tt> should begin with the following declarations:</p> <pre> #include <<a href="qcolor-h.html">ntqcolor.h</a>> #include <<a href="tqmap-h.html">tqmap.h</a>> - #include <<a href="qstring-h.html">ntqstring.h</a>> + #include <<a href="tqstring-h.html">tqstring.h</a>> TQMap<TQString,TQColor> m_colors; </pre> |
