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 8ac0112c6..e08095753 100644
--- a/doc/html/qwerty-example.html
+++ b/doc/html/qwerty-example.html
@@ -122,7 +122,7 @@ private:
#include &lt;<a href="qtextcodec-h.html">ntqtextcodec.h</a>&gt;
-const bool no_writing = FALSE;
+const bool no_writing = false;
static TQPtrList&lt;TQTextCodec&gt; *codecList = 0;
@@ -169,7 +169,7 @@ enum { Uni = 0, MBug = 1, Lat1 = 2, Local = 3, Guess = 4, Codec = 5 };
edit-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
edit-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Select Font" , this, TQ_SLOT(<a href="ntqwidget.html#font">font</a>()), ALT+Key_T );
#endif
- changed = FALSE;
+ changed = false;
e = new <a href="ntqmultilineedit.html">TQMultiLineEdit</a>( this, "editor" );
<a name="x400"></a> <a href="ntqobject.html#connect">connect</a>( e, TQ_SIGNAL( <a href="ntqtextedit.html#textChanged">textChanged</a>() ), this, TQ_SLOT( textChanged() ) );
@@ -256,7 +256,7 @@ void Editor::load( const <a href="ntqstring.html">TQString</a>&amp; fileName, in
<a name="x363"></a> if ( !f.<a href="ntqfile.html#open">open</a>( <a href="ntqfile.html#open">IO_ReadOnly</a> ) )
return;
-<a name="x376"></a> e-&gt;<a href="ntqmultilineedit.html#setAutoUpdate">setAutoUpdate</a>( FALSE );
+<a name="x376"></a> e-&gt;<a href="ntqmultilineedit.html#setAutoUpdate">setAutoUpdate</a>( false );
<a href="ntqtextstream.html">TQTextStream</a> t(&amp;f);
if ( code &gt;= Codec )
@@ -282,11 +282,11 @@ void Editor::load( const <a href="ntqstring.html">TQString</a>&amp; fileName, in
<a name="x401"></a><a name="x398"></a> e-&gt;<a href="ntqtextedit.html#setText">setText</a>( t.<a href="ntqtextstream.html#read">read</a>() );
<a name="x362"></a> f.<a href="ntqfile.html#close">close</a>();
- e-&gt;<a href="ntqmultilineedit.html#setAutoUpdate">setAutoUpdate</a>( TRUE );
+ e-&gt;<a href="ntqmultilineedit.html#setAutoUpdate">setAutoUpdate</a>( true );
<a name="x407"></a> e-&gt;<a href="ntqwidget.html#repaint">repaint</a>();
<a href="ntqwidget.html#setCaption">setCaption</a>( fileName );
- changed = FALSE;
+ changed = false;
}
void <a name="f239"></a>Editor::openAsEncoding( int code )
@@ -306,7 +306,7 @@ bool <a name="f240"></a>Editor::save()
<a name="x366"></a> <a href="ntqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>( TQString::null, TQString::null, this );
if ( !fn.<a href="ntqstring.html#isEmpty">isEmpty</a>() )
return saveAs( fn );
- return FALSE;
+ return false;
#endif
}
@@ -356,7 +356,7 @@ bool <a name="f243"></a>Editor::saveAs( const <a href="ntqstring.html">TQString<
TQMessageBox::<a href="ntqmessagebox.html#warning">warning</a>(this,"I/O Error",
TQString("The file could not be opened.\n\n")
+fileName);
- return FALSE;
+ return false;
}
<a href="ntqtextstream.html">TQTextStream</a> t(&amp;f);
if ( code &gt;= Codec )
@@ -370,15 +370,15 @@ bool <a name="f243"></a>Editor::saveAs( const <a href="ntqstring.html">TQString<
<a name="x399"></a> t &lt;&lt; e-&gt;<a href="ntqtextedit.html#text">text</a>();
f.<a href="ntqfile.html#close">close</a>();
<a href="ntqwidget.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="ntqpainter.html">TQPainter</a> p;
p.<a href="ntqpainter.html#begin">begin</a>( &amp;printer ); // paint on printer
<a name="x385"></a> p.<a href="ntqpainter.html#setFont">setFont</a>( e-&gt;<a href="ntqtextedit.html#font">font</a>() );
@@ -451,7 +451,7 @@ void <a name="f246"></a>Editor::toLower()
void <a name="f247"></a>Editor::textChanged()
{
- changed = TRUE;
+ changed = true;
}
</pre>