diff options
Diffstat (limited to 'doc/html/toggleaction-example.html')
-rw-r--r-- | doc/html/toggleaction-example.html | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/doc/html/toggleaction-example.html b/doc/html/toggleaction-example.html index 8e5247404..2065fc1a0 100644 --- a/doc/html/toggleaction-example.html +++ b/doc/html/toggleaction-example.html @@ -33,39 +33,39 @@ body { background: #ffffff; color: black; } <p> -<p> This example program demonstrates the use of <a href="qaction.html">TQAction</a> +<p> This example program demonstrates the use of <a href="ntqaction.html">TQAction</a> in its incarnation as a toggle action. <p> <hr> <p> Main: -<p> <pre>#include <<a href="qapplication-h.html">qapplication.h</a>> -#include <<a href="qmainwindow-h.html">qmainwindow.h</a>> -#include <<a href="qtoolbar-h.html">qtoolbar.h</a>> -#include <<a href="qaction-h.html">qaction.h</a>> +<p> <pre>#include <<a href="qapplication-h.html">ntqapplication.h</a>> +#include <<a href="qmainwindow-h.html">ntqmainwindow.h</a>> +#include <<a href="qtoolbar-h.html">ntqtoolbar.h</a>> +#include <<a href="qaction-h.html">ntqaction.h</a>> #include "labelonoff.xpm" int main( int argc, char **argv ) { - <a href="qapplication.html">TQApplication</a> app( argc, argv ); - <a href="qmainwindow.html">TQMainWindow</a> * window = new <a href="qmainwindow.html">TQMainWindow</a>; - window-><a href="qwidget.html#setCaption">setCaption</a>("TQt Example - Toggleaction"); - <a href="qtoolbar.html">TQToolBar</a> * toolbar = new <a href="qtoolbar.html">TQToolBar</a>( window ); + <a href="ntqapplication.html">TQApplication</a> app( argc, argv ); + <a href="ntqmainwindow.html">TQMainWindow</a> * window = new <a href="ntqmainwindow.html">TQMainWindow</a>; + window-><a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - Toggleaction"); + <a href="ntqtoolbar.html">TQToolBar</a> * toolbar = new <a href="ntqtoolbar.html">TQToolBar</a>( window ); - <a href="qaction.html">TQAction</a> * labelonoffaction = new <a href="qaction.html">TQAction</a>( window, "labelonoff" ); -<a name="x2975"></a> labelonoffaction-><a href="qaction.html#setToggleAction">setToggleAction</a>( TRUE ); + <a href="ntqaction.html">TQAction</a> * labelonoffaction = new <a href="ntqaction.html">TQAction</a>( window, "labelonoff" ); +<a name="x2975"></a> labelonoffaction-><a href="ntqaction.html#setToggleAction">setToggleAction</a>( TRUE ); -<a name="x2974"></a> labelonoffaction-><a href="qaction.html#setText">setText</a>( "labels on/off" ); -<a name="x2972"></a> labelonoffaction-><a href="qaction.html#setAccel">setAccel</a>( TQt::ALT+TQt::Key_L ); -<a name="x2973"></a> labelonoffaction-><a href="qaction.html#setIconSet">setIconSet</a>( (TQPixmap) labelonoff_xpm ); +<a name="x2974"></a> labelonoffaction-><a href="ntqaction.html#setText">setText</a>( "labels on/off" ); +<a name="x2972"></a> labelonoffaction-><a href="ntqaction.html#setAccel">setAccel</a>( TQt::ALT+TQt::Key_L ); +<a name="x2973"></a> labelonoffaction-><a href="ntqaction.html#setIconSet">setIconSet</a>( (TQPixmap) labelonoff_xpm ); -<a name="x2976"></a> TQObject::<a href="qobject.html#connect">connect</a>( labelonoffaction, SIGNAL( <a href="qaction.html#toggled">toggled</a>( bool ) ), -<a name="x2979"></a> window, SLOT( <a href="qmainwindow.html#setUsesTextLabel">setUsesTextLabel</a>( bool ) ) ); +<a name="x2976"></a> TQObject::<a href="ntqobject.html#connect">connect</a>( labelonoffaction, SIGNAL( <a href="ntqaction.html#toggled">toggled</a>( bool ) ), +<a name="x2979"></a> window, SLOT( <a href="ntqmainwindow.html#setUsesTextLabel">setUsesTextLabel</a>( bool ) ) ); -<a name="x2971"></a> labelonoffaction-><a href="qaction.html#addTo">addTo</a>( toolbar ); +<a name="x2971"></a> labelonoffaction-><a href="ntqaction.html#addTo">addTo</a>( toolbar ); - app.<a href="qapplication.html#setMainWidget">setMainWidget</a>( window ); - window-><a href="qwidget.html#show">show</a>(); - return app.<a href="qapplication.html#exec">exec</a>(); + app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( window ); + window-><a href="ntqwidget.html#show">show</a>(); + return app.<a href="ntqapplication.html#exec">exec</a>(); } </pre> |