diff options
Diffstat (limited to 'doc/html/i18n-example.html')
-rw-r--r-- | doc/html/i18n-example.html | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/html/i18n-example.html b/doc/html/i18n-example.html index 45ad9e907..8d17ef04f 100644 --- a/doc/html/i18n-example.html +++ b/doc/html/i18n-example.html @@ -98,7 +98,7 @@ private: #include <<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>> #include <<a href="tqmenubar-h.html">tqmenubar.h</a>> #include <<a href="tqstatusbar-h.html">tqstatusbar.h</a>> -#include <<a href="qapplication-h.html">ntqapplication.h</a>> +#include <<a href="tqapplication-h.html">tqapplication.h</a>> #include "mywidget.h" @@ -111,7 +111,7 @@ private: <a href="tqmainwindow.html#setCentralWidget">setCentralWidget</a>(central); <a href="tqpopupmenu.html">TQPopupMenu</a>* file = new <a href="tqpopupmenu.html">TQPopupMenu</a>(this); - file-><a href="tqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("E&xit"), tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()), + file-><a href="tqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("E&xit"), tqApp, TQ_SLOT(<a href="tqapplication.html#quit">quit</a>()), <a name="x1921"></a> TQAccel::<a href="tqaccel.html#stringToKey">stringToKey</a>(<a href="tqobject.html#tr">tr</a>("Ctrl+Q")) ); <a href="tqmainwindow.html#menuBar">menuBar</a>()->insertItem( <a href="tqobject.html#tr">tr</a>("&File"), file ); @@ -164,7 +164,7 @@ void <a name="f526"></a>MyWidget::initChoices(TQWidget* parent) ** *****************************************************************************/ -#include <<a href="qapplication-h.html">ntqapplication.h</a>> +#include <<a href="tqapplication-h.html">tqapplication.h</a>> #include <<a href="tqtranslator-h.html">tqtranslator.h</a>> #include <<a href="tqfileinfo-h.html">tqfileinfo.h</a>> #include <<a href="tqmessagebox-h.html">tqmessagebox.h</a>> @@ -228,7 +228,7 @@ MyWidget* showLang(TQString lang) static TQTranslator *translator = 0; -<a name="x1934"></a> tqApp-><a href="ntqapplication.html#setPalette">setPalette</a>(TQPalette(TQColor(220-rand()%64,220-rand()%64,220-rand()%64))); +<a name="x1934"></a> tqApp-><a href="tqapplication.html#setPalette">setPalette</a>(TQPalette(TQColor(220-rand()%64,220-rand()%64,220-rand()%64))); lang = "mywidget_" + lang + ".qm"; <a href="tqfileinfo.html">TQFileInfo</a> fi( lang ); @@ -240,12 +240,12 @@ MyWidget* showLang(TQString lang) return 0; } if ( translator ) { -<a name="x1932"></a> tqApp-><a href="ntqapplication.html#removeTranslator">removeTranslator</a>( translator ); +<a name="x1932"></a> tqApp-><a href="tqapplication.html#removeTranslator">removeTranslator</a>( translator ); delete translator; } translator = new <a href="tqtranslator.html">TQTranslator</a>( 0 ); <a name="x1950"></a> translator-><a href="tqtranslator.html#load">load</a>( lang, "." ); -<a name="x1930"></a> tqApp-><a href="ntqapplication.html#installTranslator">installTranslator</a>( translator ); +<a name="x1930"></a> tqApp-><a href="tqapplication.html#installTranslator">installTranslator</a>( translator ); MyWidget *m = new MyWidget; <a name="x1951"></a> m-><a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - <a href="i18n.html#i18n">i18n</a> - " + m-><a href="tqwidget.html#caption">caption</a>() ); return m; @@ -253,7 +253,7 @@ MyWidget* showLang(TQString lang) int main( int argc, char** argv ) { - <a href="ntqapplication.html">TQApplication</a> app( argc, argv ); + <a href="tqapplication.html">TQApplication</a> app( argc, argv ); const char* qm[]= { "ar", "cs", "de", "el", "en", "eo", "fr", "it", "jp", "ko", "no", "ru", "zh", 0 }; @@ -283,7 +283,7 @@ int main( int argc, char** argv ) <a name="x1936"></a> r = dlg.<a href="tqdialog.html#exec">exec</a>(); } if ( r ) { -<a name="x1928"></a> <a href="tqrect.html">TQRect</a> screen = tqApp-><a href="ntqapplication.html#desktop">desktop</a>()->availableGeometry(); +<a name="x1928"></a> <a href="tqrect.html">TQRect</a> screen = tqApp-><a href="tqapplication.html#desktop">desktop</a>()->availableGeometry(); bool tight = screen.<a href="tqrect.html#width">width</a>() < 1024; <a name="x1942"></a> int x=screen.<a href="tqrect.html#left">left</a>()+5; int y=screen.<a href="tqrect.html#top">top</a>()+25; @@ -292,7 +292,7 @@ int main( int argc, char** argv ) MyWidget* w = showLang((const char*)qm[i]); if( w == 0 ) exit( 0 ); - TQObject::<a href="tqobject.html#connect">connect</a>(w, TQ_SIGNAL(closed()), tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>())); + TQObject::<a href="tqobject.html#connect">connect</a>(w, TQ_SIGNAL(closed()), tqApp, TQ_SLOT(<a href="tqapplication.html#quit">quit</a>())); <a name="x1953"></a> w-><a href="tqwidget.html#setGeometry">setGeometry</a>(x,y,197,356); w-><a href="tqwidget.html#show">show</a>(); if ( tight ) { @@ -313,7 +313,7 @@ int main( int argc, char** argv ) } else { <a href="tqstring.html">TQString</a> lang = argv[1]; <a href="tqwidget.html">TQWidget</a>* m = showLang(lang); - app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( m ); + app.<a href="tqapplication.html#setMainWidget">setMainWidget</a>( m ); m-><a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - i18n"); m-><a href="tqwidget.html#show">show</a>(); } @@ -323,7 +323,7 @@ int main( int argc, char** argv ) #endif // While we run "all", kill them all - return app.<a href="ntqapplication.html#exec">exec</a>(); + return app.<a href="tqapplication.html#exec">exec</a>(); } </pre> |