diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-06 11:29:57 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-11-16 17:42:59 +0900 |
| commit | 4d495175043c399fdca6e1bb4c74ef176fc76fb4 (patch) | |
| tree | 119a6d76d177dade68b3744cb660fe26b33c9864 /doc/html/simple-application.html | |
| parent | cf2c8613706a3685266058db00c0e9f632c5bd24 (diff) | |
| download | tqt-4d495175043c399fdca6e1bb4c74ef176fc76fb4.tar.gz tqt-4d495175043c399fdca6e1bb4c74ef176fc76fb4.zip | |
Replace TRUE/FALSE with boolean values true/false - part 4
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 91df8c6f2..d64717d40 100644 --- a/doc/html/simple-application.html +++ b/doc/html/simple-application.html @@ -383,7 +383,7 @@ error message in the statusbar. <a href="tqtextstream.html">TQTextStream</a> ts( &f ); e-><a href="tqtextedit.html#setText">setText</a>( ts.<a href="tqtextstream.html#read">read</a>() ); - e-><a href="tqtextedit.html#setModified">setModified</a>( FALSE ); + e-><a href="tqtextedit.html#setModified">setModified</a>( false ); <a href="tqwidget.html#setCaption">setCaption</a>( fileName ); <a href="tqmainwindow.html#statusBar">statusBar</a>()->message( "Loaded document " + fileName, 2000 ); } @@ -417,7 +417,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="tqtextedit.html#setModified">setModified</a>( FALSE ); +<p> <pre> e-><a href="tqtextedit.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 @@ -449,7 +449,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="tqprinter.html#setFullPage">setFullPage</a>( TRUE ); + printer-><a href="tqprinter.html#setFullPage">setFullPage</a>( true ); if ( printer-><a href="tqprinter.html#setup">setup</a>(this) ) { // printer dialog <a href="tqmainwindow.html#statusBar">statusBar</a>()->message( "Printing..." ); <a href="tqpainter.html">TQPainter</a> p; @@ -480,7 +480,7 @@ and implicitly changes the window system caption to the new name. break; printer-><a href="tqprinter.html#newPage">newPage</a>(); page++; - } while (TRUE); + } while (true); <a href="tqmainwindow.html#statusBar">statusBar</a>()->message( "Printing completed", 2000 ); } else { |
