diff options
author | Michele Calgaro <[email protected]> | 2024-05-23 14:04:45 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-05-27 16:08:54 +0900 |
commit | 04913ce7a46fd027856e83a96205fdc388742a19 (patch) | |
tree | a04a117317c14854a6b91072658ba0eb3ad8b3fc /doc/html/designer-manual-7.html | |
parent | c11c0f228b65f7471a26513ef8dbde413e75f8fa (diff) | |
download | tqt3-04913ce7a46fd027856e83a96205fdc388742a19.tar.gz tqt3-04913ce7a46fd027856e83a96205fdc388742a19.zip |
Rename ntqobject*.h and qobject*.cpp to tqobject*
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'doc/html/designer-manual-7.html')
-rw-r--r-- | doc/html/designer-manual-7.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/html/designer-manual-7.html b/doc/html/designer-manual-7.html index e952c27ba..c11dfc11c 100644 --- a/doc/html/designer-manual-7.html +++ b/doc/html/designer-manual-7.html @@ -179,14 +179,14 @@ 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, TQ_SIGNAL( <a href="ntqlineedit.html#textChanged">textChanged</a>( const <a href="ntqstring.html">TQString</a> & ) ), +<pre> <a href="tqobject.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, TQ_SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), + <a href="tqobject.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> |