diff options
Diffstat (limited to 'doc/html/toggleaction-example.html')
-rw-r--r-- | doc/html/toggleaction-example.html | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/html/toggleaction-example.html b/doc/html/toggleaction-example.html index 7158a5a79..e7fe511b5 100644 --- a/doc/html/toggleaction-example.html +++ b/doc/html/toggleaction-example.html @@ -33,35 +33,35 @@ body { background: #ffffff; color: black; } <p> -<p> This example program demonstrates the use of <a href="ntqaction.html">TQAction</a> +<p> This example program demonstrates the use of <a href="tqaction.html">TQAction</a> in its incarnation as a toggle action. <p> <hr> <p> Main: <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 <<a href="tqmainwindow-h.html">tqmainwindow.h</a>> +#include <<a href="tqtoolbar-h.html">tqtoolbar.h</a>> +#include <<a href="tqaction-h.html">tqaction.h</a>> #include "labelonoff.xpm" int main( int argc, char **argv ) { <a href="ntqapplication.html">TQApplication</a> app( argc, argv ); - <a href="ntqmainwindow.html">TQMainWindow</a> * window = new <a href="ntqmainwindow.html">TQMainWindow</a>; + <a href="tqmainwindow.html">TQMainWindow</a> * window = new <a href="tqmainwindow.html">TQMainWindow</a>; window-><a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - Toggleaction"); - <a href="ntqtoolbar.html">TQToolBar</a> * toolbar = new <a href="ntqtoolbar.html">TQToolBar</a>( window ); + <a href="tqtoolbar.html">TQToolBar</a> * toolbar = new <a href="tqtoolbar.html">TQToolBar</a>( window ); - <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 href="tqaction.html">TQAction</a> * labelonoffaction = new <a href="tqaction.html">TQAction</a>( window, "labelonoff" ); +<a name="x2975"></a> labelonoffaction-><a href="tqaction.html#setToggleAction">setToggleAction</a>( TRUE ); -<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="x2974"></a> labelonoffaction-><a href="tqaction.html#setText">setText</a>( "labels on/off" ); +<a name="x2972"></a> labelonoffaction-><a href="tqaction.html#setAccel">setAccel</a>( TQt::ALT+TQt::Key_L ); +<a name="x2973"></a> labelonoffaction-><a href="tqaction.html#setIconSet">setIconSet</a>( (TQPixmap) labelonoff_xpm ); -<a name="x2976"></a> TQObject::<a href="tqobject.html#connect">connect</a>( labelonoffaction, TQ_SIGNAL( <a href="ntqaction.html#toggled">toggled</a>( bool ) ), -<a name="x2979"></a> window, TQ_SLOT( <a href="ntqmainwindow.html#setUsesTextLabel">setUsesTextLabel</a>( bool ) ) ); +<a name="x2976"></a> TQObject::<a href="tqobject.html#connect">connect</a>( labelonoffaction, TQ_SIGNAL( <a href="tqaction.html#toggled">toggled</a>( bool ) ), +<a name="x2979"></a> window, TQ_SLOT( <a href="tqmainwindow.html#setUsesTextLabel">setUsesTextLabel</a>( bool ) ) ); -<a name="x2971"></a> labelonoffaction-><a href="ntqaction.html#addTo">addTo</a>( toolbar ); +<a name="x2971"></a> labelonoffaction-><a href="tqaction.html#addTo">addTo</a>( toolbar ); app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( window ); window-><a href="tqwidget.html#show">show</a>(); @@ -70,7 +70,7 @@ int main( int argc, char **argv ) </pre> -<p>See also <a href="qaction-examples.html">TQAction Examples</a>. +<p>See also <a href="tqaction-examples.html">TQAction Examples</a>. <!-- eof --> <p><address><hr><div align=center> |