summaryrefslogtreecommitdiffstats
path: root/doc/html/menu-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/menu-example.html')
-rw-r--r--doc/html/menu-example.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/html/menu-example.html b/doc/html/menu-example.html
index e91c9ee22..6084ebc72 100644
--- a/doc/html/menu-example.html
+++ b/doc/html/menu-example.html
@@ -247,8 +247,8 @@ private:
<a href="tqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( edit );
int undoID = edit-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Undo", this, TQ_SLOT(undo()) );
int redoID = edit-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Redo", this, TQ_SLOT(redo()) );
-<a name="x1873"></a> edit-&gt;<a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( undoID, FALSE );
- edit-&gt;<a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( redoID, FALSE );
+<a name="x1873"></a> edit-&gt;<a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( undoID, false );
+ edit-&gt;<a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( redoID, false );
<a href="tqpopupmenu.html">TQPopupMenu</a>* options = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this );
<a href="tqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( options );
@@ -259,19 +259,19 @@ private:
<a name="x1883"></a> options-&gt;<a href="tqwidget.html#polish">polish</a>(); // adjust system settings
<a name="x1882"></a> <a href="tqfont.html">TQFont</a> f = options-&gt;<a href="tqwidget.html#font">font</a>();
-<a name="x1860"></a> f.<a href="tqfont.html#setBold">setBold</a>( TRUE );
+<a name="x1860"></a> f.<a href="tqfont.html#setBold">setBold</a>( true );
boldID = options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( new MyMenuItem( "Bold", f ) );
<a name="x1871"></a> options-&gt;<a href="tqmenudata.html#setAccel">setAccel</a>( CTRL+Key_B, boldID );
<a name="x1868"></a> options-&gt;<a href="tqmenudata.html#connectItem">connectItem</a>( boldID, this, TQ_SLOT(bold()) );
f = <a href="tqwidget.html#font">font</a>();
-<a name="x1861"></a> f.<a href="tqfont.html#setUnderline">setUnderline</a>( TRUE );
+<a name="x1861"></a> f.<a href="tqfont.html#setUnderline">setUnderline</a>( true );
underlineID = options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( new MyMenuItem( "Underline", f ) );
options-&gt;<a href="tqmenudata.html#setAccel">setAccel</a>( CTRL+Key_U, underlineID );
options-&gt;<a href="tqmenudata.html#connectItem">connectItem</a>( underlineID, this, TQ_SLOT(underline()) );
- isBold = FALSE;
- isUnderline = FALSE;
-<a name="x1880"></a> options-&gt;<a href="tqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
+ isBold = false;
+ isUnderline = false;
+<a name="x1880"></a> options-&gt;<a href="tqpopupmenu.html#setCheckable">setCheckable</a>( true );
<a href="tqpopupmenu.html">TQPopupMenu</a> *help = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this );
@@ -372,8 +372,8 @@ void <a name="f507"></a>MenuExample::redo()
void <a name="f508"></a>MenuExample::normal()
{
- isBold = FALSE;
- isUnderline = FALSE;
+ isBold = false;
+ isUnderline = false;
<a href="tqfont.html">TQFont</a> font;
<a name="x1865"></a> label-&gt;<a href="tqlabel.html#setFont">setFont</a>( font );
<a name="x1872"></a> menu-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( boldID, isBold );