diff options
Diffstat (limited to 'doc/html/qwerty-example.html')
-rw-r--r-- | doc/html/qwerty-example.html | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/html/qwerty-example.html b/doc/html/qwerty-example.html index 4c076f173..44b208c0a 100644 --- a/doc/html/qwerty-example.html +++ b/doc/html/qwerty-example.html @@ -108,7 +108,7 @@ private: *****************************************************************************/ #include "qwerty.h" -#include <<a href="qapplication-h.html">ntqapplication.h</a>> +#include <<a href="tqapplication-h.html">tqapplication.h</a>> #include <<a href="tqfile-h.html">tqfile.h</a>> #include <<a href="tqfiledialog-h.html">tqfiledialog.h</a>> #include <<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>> @@ -134,7 +134,7 @@ enum { Uni = 0, MBug = 1, Lat1 = 2, Local = 3, Guess = 4, Codec = 5 }; m = new <a href="tqmenubar.html">TQMenuBar</a>( this, "menu" ); <a href="tqpopupmenu.html">TQPopupMenu</a> * file = new <a href="tqpopupmenu.html">TQPopupMenu</a>(); - <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( file ); + <a href="tqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( file ); <a name="x371"></a> m-><a href="tqmenudata.html#insertItem">insertItem</a>( "&File", file ); file-><a href="tqmenudata.html#insertItem">insertItem</a>( "&New", this, TQ_SLOT(newDoc()), ALT+Key_N ); @@ -152,14 +152,14 @@ enum { Uni = 0, MBug = 1, Lat1 = 2, Local = 3, Guess = 4, Codec = 5 }; #endif file-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); file-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Close", this, TQ_SLOT(<a href="tqwidget.html#close">close</a>()),ALT+Key_W ); -<a name="x358"></a> file-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Quit", tqApp, TQ_SLOT(<a href="ntqapplication.html#closeAllWindows">closeAllWindows</a>()), ALT+Key_Q ); +<a name="x358"></a> file-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Quit", tqApp, TQ_SLOT(<a href="tqapplication.html#closeAllWindows">closeAllWindows</a>()), ALT+Key_Q ); <a name="x386"></a> <a href="tqobject.html#connect">connect</a>( save_as, TQ_SIGNAL(<a href="tqpopupmenu.html#activated">activated</a>(int)), this, TQ_SLOT(saveAsEncoding(int)) ); <a href="tqobject.html#connect">connect</a>( open_as, TQ_SIGNAL(<a href="tqpopupmenu.html#activated">activated</a>(int)), this, TQ_SLOT(openAsEncoding(int)) ); rebuildCodecList(); <a href="tqpopupmenu.html">TQPopupMenu</a> * edit = new <a href="tqpopupmenu.html">TQPopupMenu</a>(); - <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( edit ); + <a href="tqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( edit ); m-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Edit", edit ); edit-><a href="tqmenudata.html#insertItem">insertItem</a>( "To &Uppercase", this, TQ_SLOT(toUpper()), ALT+Key_U ); @@ -230,8 +230,8 @@ void <a name="f236"></a>Editor::rebuildCodecList() void <a name="f237"></a>Editor::newDoc() { Editor *ed = new Editor; - if ( tqApp-><a href="ntqapplication.html#desktop">desktop</a>()->size().width() < 450 - || tqApp-><a href="ntqapplication.html#desktop">desktop</a>()->size().height() < 450 ) { + if ( tqApp-><a href="tqapplication.html#desktop">desktop</a>()->size().width() < 450 + || tqApp-><a href="tqapplication.html#desktop">desktop</a>()->size().height() < 450 ) { <a name="x413"></a> ed-><a href="tqwidget.html#showMaximized">showMaximized</a>(); } else { ed-><a href="tqwidget.html#resize">resize</a>( 400, 400 ); @@ -466,17 +466,17 @@ void <a name="f247"></a>Editor::textChanged() ** *****************************************************************************/ -#include <<a href="qapplication-h.html">ntqapplication.h</a>> +#include <<a href="tqapplication-h.html">tqapplication.h</a>> #include "qwerty.h" int main( int argc, char **argv ) { - <a href="ntqapplication.html">TQApplication</a> a( argc, argv ); + <a href="tqapplication.html">TQApplication</a> a( argc, argv ); -<a name="x414"></a> bool isSmall = tqApp-><a href="ntqapplication.html#desktop">desktop</a>()->size().width() < 450 - || tqApp-><a href="ntqapplication.html#desktop">desktop</a>()->size().height() < 450; +<a name="x414"></a> bool isSmall = tqApp-><a href="tqapplication.html#desktop">desktop</a>()->size().width() < 450 + || tqApp-><a href="tqapplication.html#desktop">desktop</a>()->size().height() < 450; int i; for ( i= argc <= 1 ? 0 : 1; i<argc; i++ ) { @@ -491,8 +491,8 @@ int main( int argc, char **argv ) e-><a href="tqwidget.html#show">show</a>(); } } -<a name="x416"></a> a.<a href="tqobject.html#connect">connect</a>( &a, TQ_SIGNAL(<a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>()), &a, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()) ); - return a.<a href="ntqapplication.html#exec">exec</a>(); +<a name="x416"></a> a.<a href="tqobject.html#connect">connect</a>( &a, TQ_SIGNAL(<a href="tqapplication.html#lastWindowClosed">lastWindowClosed</a>()), &a, TQ_SLOT(<a href="tqapplication.html#quit">quit</a>()) ); + return a.<a href="tqapplication.html#exec">exec</a>(); } </pre> |