diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-06 13:44:12 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-06 13:52:29 +0900 |
commit | e6077c30d14e9d662e8843c554db86c0d366d0b6 (patch) | |
tree | 672319afee32f0316bad258c0e9a1e0dd737bd61 /doc/html/motif-walkthrough-8.html | |
parent | 8c029298d9d3f1f84b65ac4a3a16cd1fa28d9cde (diff) | |
download | tqt3-e6077c30d14e9d662e8843c554db86c0d366d0b6.tar.gz tqt3-e6077c30d14e9d662e8843c554db86c0d366d0b6.zip |
Rename str nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/motif-walkthrough-8.html')
-rw-r--r-- | doc/html/motif-walkthrough-8.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/html/motif-walkthrough-8.html b/doc/html/motif-walkthrough-8.html index 886c3c91f..fbb387fad 100644 --- a/doc/html/motif-walkthrough-8.html +++ b/doc/html/motif-walkthrough-8.html @@ -125,10 +125,10 @@ number (with an indication that the page is invalid). <p> The <tt>PageChange()</tt> function is moved from <tt>todo.cpp</tt> to the <tt>MainWindow::pageChange()</tt> function in <tt>mainwindow.ui.h</tt>. As with the <tt>MainWindow::setPae()</tt> function, we need to modify the code to use the new widgets in our <em>Main Window</em> widget. -<p> Note: <a href="ntqtextedit.html#text">TQTextEdit::text</a>() returns a <a href="ntqstring.html">TQString</a>, which needs to be converted +<p> Note: <a href="ntqtextedit.html#text">TQTextEdit::text</a>() returns a <a href="tqstring.html">TQString</a>, which needs to be converted into a normal <tt>char*</tt> array. To do this we create a copy of the string in the local encoding. We need to make the copy using <a href="ntqcstring.html#qstrdup">tqstrdup</a>() because the data contained in the <a href="ntqcstring.html">TQCString</a> returned by -<a href="ntqstring.html#local8Bit">TQString::local8Bit</a>() is deallocated when the TQCString is destroyed. +<a href="tqstring.html#local8Bit">TQString::local8Bit</a>() is deallocated when the TQCString is destroyed. <p> <pre></pre> <p> The <tt>TextChanged()</tt> function does nothing more than set the <tt>modified</tt> variable to 1. Our new <tt>MainWindow::textChanged()</tt> function does exactly the same. @@ -160,11 +160,11 @@ values. <p> <pre></pre> <p> In the <tt>MainWindow::saveDB()</tt> function, we need to store the text -currently displayed, so we use <a href="ntqtextedit.html#text">TQTextEdit::text</a>() instead of <tt>XmTextGetString()</tt>. Note: TQTextEdit::text() returns a <a href="ntqstring.html">TQString</a>, which +currently displayed, so we use <a href="ntqtextedit.html#text">TQTextEdit::text</a>() instead of <tt>XmTextGetString()</tt>. Note: TQTextEdit::text() returns a <a href="tqstring.html">TQString</a>, which needs to be converted into a normal <tt>char*</tt> array. To do this we create a copy of the string in the local encoding. We need to make the copy using <a href="ntqcstring.html#qstrdup">tqstrdup</a>() because the data contained in the <a href="ntqcstring.html">TQCString</a> -returned by <a href="ntqstring.html#local8Bit">TQString::local8Bit</a>() is deallocated when the TQCString is +returned by <a href="tqstring.html#local8Bit">TQString::local8Bit</a>() is deallocated when the TQCString is destroyed. <p> <pre></pre> <p> <a name="actions-cpp-viewwidget-modifications"></a> |