diff options
Diffstat (limited to 'examples/qwerty/qwerty.cpp')
-rw-r--r-- | examples/qwerty/qwerty.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/examples/qwerty/qwerty.cpp b/examples/qwerty/qwerty.cpp index 368d12d95..0a0c61ce6 100644 --- a/examples/qwerty/qwerty.cpp +++ b/examples/qwerty/qwerty.cpp @@ -21,7 +21,7 @@ #include <tqtextcodec.h> -const bool no_writing = FALSE; +const bool no_writing = false; static TQPtrList<TQTextCodec> *codecList = 0; @@ -68,7 +68,7 @@ Editor::Editor( TQWidget * parent , const char * name ) edit->insertSeparator(); edit->insertItem( "&Select Font" , this, TQ_SLOT(font()), ALT+Key_T ); #endif - changed = FALSE; + changed = false; e = new TQMultiLineEdit( this, "editor" ); connect( e, TQ_SIGNAL( textChanged() ), this, TQ_SLOT( textChanged() ) ); @@ -155,7 +155,7 @@ void Editor::load( const TQString& fileName, int code ) if ( !f.open( IO_ReadOnly ) ) return; - e->setAutoUpdate( FALSE ); + e->setAutoUpdate( false ); TQTextStream t(&f); if ( code >= Codec ) @@ -181,11 +181,11 @@ void Editor::load( const TQString& fileName, int code ) e->setText( t.read() ); f.close(); - e->setAutoUpdate( TRUE ); + e->setAutoUpdate( true ); e->repaint(); setCaption( fileName ); - changed = FALSE; + changed = false; } void Editor::openAsEncoding( int code ) @@ -205,7 +205,7 @@ bool Editor::save() TQString fn = TQFileDialog::getSaveFileName( TQString::null, TQString::null, this ); if ( !fn.isEmpty() ) return saveAs( fn ); - return FALSE; + return false; #endif } @@ -255,7 +255,7 @@ bool Editor::saveAs( const TQString& fileName, int code ) TQMessageBox::warning(this,"I/O Error", TQString("The file could not be opened.\n\n") +fileName); - return FALSE; + return false; } TQTextStream t(&f); if ( code >= Codec ) @@ -269,15 +269,15 @@ bool Editor::saveAs( const TQString& fileName, int code ) t << e->text(); f.close(); setCaption( fileName ); - changed = FALSE; - return TRUE; + changed = false; + return true; } void Editor::print() { #ifndef TQT_NO_PRINTER if ( printer.setup(this) ) { // opens printer dialog - printer.setFullPage(TRUE); // we'll set our own margins + printer.setFullPage(true); // we'll set our own margins TQPainter p; p.begin( &printer ); // paint on printer p.setFont( e->font() ); @@ -350,5 +350,5 @@ void Editor::toLower() void Editor::textChanged() { - changed = TRUE; + changed = true; } |