summaryrefslogtreecommitdiffstats
path: root/doc/html/designer-manual-7.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/designer-manual-7.html')
-rw-r--r--doc/html/designer-manual-7.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/html/designer-manual-7.html b/doc/html/designer-manual-7.html
index 7c7379ee1..f01f5ff1c 100644
--- a/doc/html/designer-manual-7.html
+++ b/doc/html/designer-manual-7.html
@@ -62,13 +62,13 @@ body { background: #ffffff; color: black; }
<pre> Vcr::Vcr( <a href="tqwidget.html">TQWidget</a> *parent, const char *name )
: <a href="tqwidget.html">TQWidget</a>( parent, name )
{
- <a href="qhboxlayout.html">TQHBoxLayout</a> *layout = new <a href="qhboxlayout.html">TQHBoxLayout</a>( this );
- layout-&gt;<a href="ntqlayout.html#setMargin">setMargin</a>( 0 );
+ <a href="tqhboxlayout.html">TQHBoxLayout</a> *layout = new <a href="tqhboxlayout.html">TQHBoxLayout</a>( this );
+ layout-&gt;<a href="tqlayout.html#setMargin">setMargin</a>( 0 );
<a href="tqpushbutton.html">TQPushButton</a> *rewind = new <a href="tqpushbutton.html">TQPushButton</a>( TQPixmap( rewind_xpm ), 0, this, "vcr_rewind" );
- layout-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( rewind );
+ layout-&gt;<a href="tqboxlayout.html#addWidget">addWidget</a>( rewind );
</pre>
- <p>We create a <a href="qhboxlayout.html">TQHBoxLayout</a> in which we'll place the buttons. We've only shown the rewind button in the code above since all the others are identical except for the names of the buttons, pixmaps and signals. For each of the buttons we require we call the <a href="tqpushbutton.html">TQPushButton</a> constructor passing it the appropriate embedded pixmap. We then add it to the layout. Finally we connect the button's<!-- index clicked() --> <tt>clicked()</tt> signal to the appropriate <em>signal</em>. Since the<!-- index clicked() --> <tt>clicked()</tt> signals aren't specific to our widget we want to emit signals that reflect the widget's use. The <tt>rewind()</tt>, <tt>play()</tt>, etc. signals are meaningful in the context of our widget so we propagate each button's<!-- index clicked() --> <tt>clicked()</tt> signal to the appropriate widget-specific signal.</p>
+ <p>We create a <a href="tqhboxlayout.html">TQHBoxLayout</a> in which we'll place the buttons. We've only shown the rewind button in the code above since all the others are identical except for the names of the buttons, pixmaps and signals. For each of the buttons we require we call the <a href="tqpushbutton.html">TQPushButton</a> constructor passing it the appropriate embedded pixmap. We then add it to the layout. Finally we connect the button's<!-- index clicked() --> <tt>clicked()</tt> signal to the appropriate <em>signal</em>. Since the<!-- index clicked() --> <tt>clicked()</tt> signals aren't specific to our widget we want to emit signals that reflect the widget's use. The <tt>rewind()</tt>, <tt>play()</tt>, etc. signals are meaningful in the context of our widget so we propagate each button's<!-- index clicked() --> <tt>clicked()</tt> signal to the appropriate widget-specific signal.</p>
<!-- index Forms!Creating Test Harnesses --><p>The implementation is complete, but to make sure that our widget compiles and runs we'll create a tiny test harness. The test harness will require two files, a<!-- index .pro --> <tt>.pro</tt> project file and a<!-- index main.cpp --> <tt>main.cpp</tt>. The <tt>qt/tools/designer/examples/vcr/vcr.pro</tt> project file:</p>
<pre>TEMPLATE = app
LANGUAGE = C++
@@ -172,19 +172,19 @@ DBFILE = vcr.db
{
</pre>
<p>The constructor passes the parent and name to its superclass, <a href="tqwidget.html">TQWidget</a>, and also initializes the private mode data, md, to File mode.</p>
-<pre> <a href="qhboxlayout.html">TQHBoxLayout</a> *layout = new <a href="qhboxlayout.html">TQHBoxLayout</a>( this );
- layout-&gt;<a href="ntqlayout.html#setMargin">setMargin</a>( 0 );
+<pre> <a href="tqhboxlayout.html">TQHBoxLayout</a> *layout = new <a href="tqhboxlayout.html">TQHBoxLayout</a>( this );
+ layout-&gt;<a href="tqlayout.html#setMargin">setMargin</a>( 0 );
lineEdit = new <a href="tqlineedit.html">TQLineEdit</a>( this, "filechooser_lineedit" );
- layout-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( lineEdit );
+ layout-&gt;<a href="tqboxlayout.html#addWidget">addWidget</a>( lineEdit );
</pre>
- <p>We begin by creating a horizontal box layout (<a href="qhboxlayout.html">TQHBoxLayout</a>) and add a <a href="tqlineedit.html">TQLineEdit</a> and a <a href="tqpushbutton.html">TQPushButton</a> to it.</p>
+ <p>We begin by creating a horizontal box layout (<a href="tqhboxlayout.html">TQHBoxLayout</a>) and add a <a href="tqlineedit.html">TQLineEdit</a> and a <a href="tqpushbutton.html">TQPushButton</a> to it.</p>
<pre> <a href="tqobject.html#connect">connect</a>( lineEdit, TQ_SIGNAL( <a href="tqlineedit.html#textChanged">textChanged</a>( const <a href="tqstring.html">TQString</a> &amp; ) ),
this, TQ_SIGNAL( fileNameChanged( const <a href="tqstring.html">TQString</a> &amp; ) ) );
button = new <a href="tqpushbutton.html">TQPushButton</a>( "...", this, "filechooser_button" );
button-&gt;<a href="tqwidget.html#setFixedWidth">setFixedWidth</a>( button-&gt;<a href="tqwidget.html#fontMetrics">fontMetrics</a>().width( " ... " ) );
- layout-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( button );
+ layout-&gt;<a href="tqboxlayout.html#addWidget">addWidget</a>( button );
<a href="tqobject.html#connect">connect</a>( button, TQ_SIGNAL( <a href="tqbutton.html#clicked">clicked</a>() ),
this, TQ_SLOT( chooseFile() ) );