diff options
Diffstat (limited to 'doc/html/designer-manual-7.html')
-rw-r--r-- | doc/html/designer-manual-7.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/html/designer-manual-7.html b/doc/html/designer-manual-7.html index 725812bb1..e952c27ba 100644 --- a/doc/html/designer-manual-7.html +++ b/doc/html/designer-manual-7.html @@ -179,15 +179,15 @@ DBFILE = vcr.db layout-><a href="qboxlayout.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="ntqlineedit.html">TQLineEdit</a> and a <a href="ntqpushbutton.html">TQPushButton</a> to it.</p> -<pre> <a href="ntqobject.html#connect">connect</a>( lineEdit, SIGNAL( <a href="ntqlineedit.html#textChanged">textChanged</a>( const <a href="ntqstring.html">TQString</a> & ) ), - this, SIGNAL( fileNameChanged( const <a href="ntqstring.html">TQString</a> & ) ) ); +<pre> <a href="ntqobject.html#connect">connect</a>( lineEdit, TQ_SIGNAL( <a href="ntqlineedit.html#textChanged">textChanged</a>( const <a href="ntqstring.html">TQString</a> & ) ), + this, TQ_SIGNAL( fileNameChanged( const <a href="ntqstring.html">TQString</a> & ) ) ); button = new <a href="ntqpushbutton.html">TQPushButton</a>( "...", this, "filechooser_button" ); button-><a href="ntqwidget.html#setFixedWidth">setFixedWidth</a>( button-><a href="ntqwidget.html#fontMetrics">fontMetrics</a>().width( " ... " ) ); layout-><a href="qboxlayout.html#addWidget">addWidget</a>( button ); - <a href="ntqobject.html#connect">connect</a>( button, SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), - this, SLOT( chooseFile() ) ); + <a href="ntqobject.html#connect">connect</a>( button, TQ_SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), + this, TQ_SLOT( chooseFile() ) ); </pre> <p>We connect the lineEdit's<!-- index textChanged() --> <tt>textChanged()</tt> signal to the custom widget's <tt>fileNameChanged()</tt> signal. This ensures that if the user changes the text in the <a href="ntqlineedit.html">TQLineEdit</a> this fact will be propagated via the custom widget's own signal. The button's<!-- index clicked() --> <tt>clicked()</tt> signal is connected to the custom widget's <tt>chooseFile()</tt> slot which invokes the appropriate dialog for the user to choose their file or directory.</p> <pre> <a href="ntqwidget.html#setFocusProxy">setFocusProxy</a>( lineEdit ); |