summaryrefslogtreecommitdiffstats
path: root/doc/html/designer-manual-4.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/designer-manual-4.html')
-rw-r--r--doc/html/designer-manual-4.html22
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 &lt;<a href="qcolor-h.html">ntqcolor.h</a>&gt;
#include &lt;<a href="tqmap-h.html">tqmap.h</a>&gt;
- #include &lt;<a href="qstring-h.html">ntqstring.h</a>&gt;
+ #include &lt;<a href="tqstring-h.html">tqstring.h</a>&gt;
</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-&gt;text();
- if ( ! name.<a href="ntqstring.html#isEmpty">isEmpty</a>() &amp;&amp;
+ <a href="tqstring.html">TQString</a> name = colorLineEdit-&gt;text();
+ if ( ! name.<a href="tqstring.html#isEmpty">isEmpty</a>() &amp;&amp;
( 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-&gt;setColors( m_colors );
colorForm-&gt;colorLabel-&gt;setPixmap( pixmap );
if ( colorForm-&gt;exec() ) {
- <a href="ntqstring.html">TQString</a> name = colorForm-&gt;colorLineEdit-&gt;text();
+ <a href="tqstring.html">TQString</a> name = colorForm-&gt;colorLineEdit-&gt;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>&amp;) ),
- this, TQ_SLOT( lookfor(const <a href="ntqstring.html">TQString</a>&amp;) ) );
+ <a href="tqobject.html#connect">connect</a>( findForm, TQ_SIGNAL( lookfor(const <a href="tqstring.html">TQString</a>&amp;) ),
+ this, TQ_SLOT( lookfor(const <a href="tqstring.html">TQString</a>&amp;) ) );
}
findForm-&gt;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>&amp; text )
+<pre> void MainForm::lookfor( const <a href="tqstring.html">TQString</a>&amp; 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-&gt;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 &lt;<a href="qcolor-h.html">ntqcolor.h</a>&gt;
#include &lt;<a href="tqmap-h.html">tqmap.h</a>&gt;
- #include &lt;<a href="qstring-h.html">ntqstring.h</a>&gt;
+ #include &lt;<a href="tqstring-h.html">tqstring.h</a>&gt;
TQMap&lt;TQString,TQColor&gt; m_colors;
</pre>