diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-11-26 15:11:22 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-11-26 15:11:22 +0900 |
| commit | b87533f9904c10f24d6b2e8177c00944e3efe15b (patch) | |
| tree | c1106a381c851b51e86004698457aef1211b77be /doc/html/simple-application.html | |
| parent | 894037c3e68e1573a34183d936171f8cda5085f3 (diff) | |
| download | tqt-r14.1.x.tar.gz tqt-r14.1.x.zip | |
Replace TRUE/FALSE with boolean values true/false - part 4r14.1.x
Manually cherry-picked from commit 4d495175
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/simple-application.html')
| -rw-r--r-- | doc/html/simple-application.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/html/simple-application.html b/doc/html/simple-application.html index 0d51ba899..b931f9eb8 100644 --- a/doc/html/simple-application.html +++ b/doc/html/simple-application.html @@ -384,7 +384,7 @@ error message in the statusbar. <a href="ntqtextstream.html">TQTextStream</a> ts( &f ); e-><a href="ntqtextedit.html#setText">setText</a>( ts.<a href="ntqtextstream.html#read">read</a>() ); - e-><a href="ntqtextedit.html#setModified">setModified</a>( FALSE ); + e-><a href="ntqtextedit.html#setModified">setModified</a>( false ); <a href="ntqwidget.html#setCaption">setCaption</a>( fileName ); <a href="ntqmainwindow.html#statusBar">statusBar</a>()->message( "Loaded document " + fileName, 2000 ); } @@ -418,7 +418,7 @@ filename has been specified so far, the <a href="#saveAs()">saveAs()</a> functio Note that there is more than one way to do this: compare the above <tt>statusBar()->message()</tt> line with the equivalent code in the <tt>load()</tt> function. -<p> <pre> e-><a href="ntqtextedit.html#setModified">setModified</a>( FALSE ); +<p> <pre> e-><a href="ntqtextedit.html#setModified">setModified</a>( false ); </pre> <p> Tell the editor that the contents haven't been edited since the last save. When the user does some further editing and wishes to close the @@ -450,7 +450,7 @@ and implicitly changes the window system caption to the new name. <p> <a name="printer"></a> <p> <pre> void ApplicationWindow::print() { - printer-><a href="ntqprinter.html#setFullPage">setFullPage</a>( TRUE ); + printer-><a href="ntqprinter.html#setFullPage">setFullPage</a>( true ); if ( printer-><a href="ntqprinter.html#setup">setup</a>(this) ) { // printer dialog <a href="ntqmainwindow.html#statusBar">statusBar</a>()->message( "Printing..." ); <a href="ntqpainter.html">TQPainter</a> p; @@ -481,7 +481,7 @@ and implicitly changes the window system caption to the new name. break; printer-><a href="ntqprinter.html#newPage">newPage</a>(); page++; - } while (TRUE); + } while (true); <a href="ntqmainwindow.html#statusBar">statusBar</a>()->message( "Printing completed", 2000 ); } else { |
