summaryrefslogtreecommitdiffstats
path: root/doc/html/qwerty-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/qwerty-example.html')
-rw-r--r--doc/html/qwerty-example.html22
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/html/qwerty-example.html b/doc/html/qwerty-example.html
index 44b208c0a..a4c2c2b58 100644
--- a/doc/html/qwerty-example.html
+++ b/doc/html/qwerty-example.html
@@ -121,7 +121,7 @@ private:
#include &lt;<a href="tqtextcodec-h.html">tqtextcodec.h</a>&gt;
-const bool no_writing = FALSE;
+const bool no_writing = false;
static TQPtrList&lt;TQTextCodec&gt; *codecList = 0;
@@ -168,7 +168,7 @@ enum { Uni = 0, MBug = 1, Lat1 = 2, Local = 3, Guess = 4, Codec = 5 };
edit-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
edit-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Select Font" , this, TQ_SLOT(<a href="tqwidget.html#font">font</a>()), ALT+Key_T );
#endif
- changed = FALSE;
+ changed = false;
e = new <a href="tqmultilineedit.html">TQMultiLineEdit</a>( this, "editor" );
<a name="x400"></a> <a href="tqobject.html#connect">connect</a>( e, TQ_SIGNAL( <a href="tqtextedit.html#textChanged">textChanged</a>() ), this, TQ_SLOT( textChanged() ) );
@@ -255,7 +255,7 @@ void Editor::load( const <a href="tqstring.html">TQString</a>&amp; fileName, int
<a name="x363"></a> if ( !f.<a href="tqfile.html#open">open</a>( <a href="tqfile.html#open">IO_ReadOnly</a> ) )
return;
-<a name="x376"></a> e-&gt;<a href="tqmultilineedit.html#setAutoUpdate">setAutoUpdate</a>( FALSE );
+<a name="x376"></a> e-&gt;<a href="tqmultilineedit.html#setAutoUpdate">setAutoUpdate</a>( false );
<a href="tqtextstream.html">TQTextStream</a> t(&amp;f);
if ( code &gt;= Codec )
@@ -281,11 +281,11 @@ void Editor::load( const <a href="tqstring.html">TQString</a>&amp; fileName, int
<a name="x401"></a><a name="x398"></a> e-&gt;<a href="tqtextedit.html#setText">setText</a>( t.<a href="tqtextstream.html#read">read</a>() );
<a name="x362"></a> f.<a href="tqfile.html#close">close</a>();
- e-&gt;<a href="tqmultilineedit.html#setAutoUpdate">setAutoUpdate</a>( TRUE );
+ e-&gt;<a href="tqmultilineedit.html#setAutoUpdate">setAutoUpdate</a>( true );
<a name="x407"></a> e-&gt;<a href="tqwidget.html#repaint">repaint</a>();
<a href="tqwidget.html#setCaption">setCaption</a>( fileName );
- changed = FALSE;
+ changed = false;
}
void <a name="f239"></a>Editor::openAsEncoding( int code )
@@ -305,7 +305,7 @@ bool <a name="f240"></a>Editor::save()
<a name="x366"></a> <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="tqfiledialog.html#getSaveFileName">getSaveFileName</a>( TQString::null, TQString::null, this );
if ( !fn.<a href="tqstring.html#isEmpty">isEmpty</a>() )
return saveAs( fn );
- return FALSE;
+ return false;
#endif
}
@@ -355,7 +355,7 @@ bool <a name="f243"></a>Editor::saveAs( const <a href="tqstring.html">TQString</
TQMessageBox::<a href="tqmessagebox.html#warning">warning</a>(this,"I/O Error",
TQString("The file could not be opened.\n\n")
+fileName);
- return FALSE;
+ return false;
}
<a href="tqtextstream.html">TQTextStream</a> t(&amp;f);
if ( code &gt;= Codec )
@@ -369,15 +369,15 @@ bool <a name="f243"></a>Editor::saveAs( const <a href="tqstring.html">TQString</
<a name="x399"></a> t &lt;&lt; e-&gt;<a href="tqtextedit.html#text">text</a>();
f.<a href="tqfile.html#close">close</a>();
<a href="tqwidget.html#setCaption">setCaption</a>( fileName );
- changed = FALSE;
- return TRUE;
+ changed = false;
+ return true;
}
void <a name="f244"></a>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
<a href="tqpainter.html">TQPainter</a> p;
p.<a href="tqpainter.html#begin">begin</a>( &amp;printer ); // paint on printer
<a name="x385"></a> p.<a href="tqpainter.html#setFont">setFont</a>( e-&gt;<a href="tqtextedit.html#font">font</a>() );
@@ -450,7 +450,7 @@ void <a name="f246"></a>Editor::toLower()
void <a name="f247"></a>Editor::textChanged()
{
- changed = TRUE;
+ changed = true;
}
</pre>