summaryrefslogtreecommitdiffstats
path: root/doc/html/i18n-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/i18n-example.html')
-rw-r--r--doc/html/i18n-example.html32
1 files changed, 16 insertions, 16 deletions
diff --git a/doc/html/i18n-example.html b/doc/html/i18n-example.html
index da9d1c7e5..884cd6aa5 100644
--- a/doc/html/i18n-example.html
+++ b/doc/html/i18n-example.html
@@ -53,7 +53,7 @@ This example shows how to internationalize applications. Start it with
#define MYWIDGET_H
#include &lt;<a href="qmainwindow-h.html">ntqmainwindow.h</a>&gt;
-#include &lt;<a href="qstring-h.html">ntqstring.h</a>&gt;
+#include &lt;<a href="tqstring-h.html">tqstring.h</a>&gt;
class MyWidget : public <a href="ntqmainwindow.html">TQMainWindow</a>
{
@@ -118,7 +118,7 @@ private:
<a href="tqwidget.html#setCaption">setCaption</a>( <a href="tqobject.html#tr">tr</a>( "Internationalization Example" ) );
- <a href="ntqstring.html">TQString</a> l;
+ <a href="tqstring.html">TQString</a> l;
<a href="ntqmainwindow.html#statusBar">statusBar</a>()-&gt;message( <a href="tqobject.html#tr">tr</a>("Language: English") );
( void )new <a href="ntqlabel.html">TQLabel</a>( <a href="tqobject.html#tr">tr</a>( "The Main Window" ), central );
@@ -197,20 +197,20 @@ public:
sm = new <a href="ntqsignalmapper.html">TQSignalMapper</a>(this);
<a name="x1946"></a> connect(sm,TQ_SIGNAL(<a href="ntqsignalmapper.html#mapped">mapped</a>(int)),this,TQ_SLOT(done(int)));
}
- void addButtons( const <a href="ntqstring.html">TQString</a>&amp; cancel=TQString::null,
- const <a href="ntqstring.html">TQString</a>&amp; ok=TQString::null,
- const <a href="ntqstring.html">TQString</a>&amp; mid1=TQString::null,
- const <a href="ntqstring.html">TQString</a>&amp; mid2=TQString::null,
- const <a href="ntqstring.html">TQString</a>&amp; mid3=TQString::null)
+ void addButtons( const <a href="tqstring.html">TQString</a>&amp; cancel=TQString::null,
+ const <a href="tqstring.html">TQString</a>&amp; ok=TQString::null,
+ const <a href="tqstring.html">TQString</a>&amp; mid1=TQString::null,
+ const <a href="tqstring.html">TQString</a>&amp; mid2=TQString::null,
+ const <a href="tqstring.html">TQString</a>&amp; mid3=TQString::null)
{
-<a name="x1948"></a> addButton(ok.<a href="ntqstring.html#isNull">isNull</a>() ? TQObject::tr("OK") : ok, 1);
- if ( !mid1.<a href="ntqstring.html#isNull">isNull</a>() ) addButton(mid1,2);
- if ( !mid2.<a href="ntqstring.html#isNull">isNull</a>() ) addButton(mid2,3);
- if ( !mid3.<a href="ntqstring.html#isNull">isNull</a>() ) addButton(mid3,4);
- addButton(cancel.<a href="ntqstring.html#isNull">isNull</a>() ? TQObject::tr("Cancel") : cancel, 0);
+<a name="x1948"></a> addButton(ok.<a href="tqstring.html#isNull">isNull</a>() ? TQObject::tr("OK") : ok, 1);
+ if ( !mid1.<a href="tqstring.html#isNull">isNull</a>() ) addButton(mid1,2);
+ if ( !mid2.<a href="tqstring.html#isNull">isNull</a>() ) addButton(mid2,3);
+ if ( !mid3.<a href="tqstring.html#isNull">isNull</a>() ) addButton(mid3,4);
+ addButton(cancel.<a href="tqstring.html#isNull">isNull</a>() ? TQObject::tr("Cancel") : cancel, 0);
}
- void addButton( const <a href="ntqstring.html">TQString</a>&amp; text, int result )
+ void addButton( const <a href="tqstring.html">TQString</a>&amp; text, int result )
{
if ( !hb )
hb = new <a href="ntqhbox.html">TQHBox</a>(this);
@@ -263,7 +263,7 @@ int main( int argc, char** argv )
srand( getpid() &lt;&lt; 2 );
#endif
- <a href="ntqstring.html">TQString</a> lang;
+ <a href="tqstring.html">TQString</a> lang;
if ( argc == 2 )
lang = argv[1];
@@ -275,7 +275,7 @@ int main( int argc, char** argv )
r = 2;
} else {
<a href="ntqbuttongroup.html">TQButtonGroup</a> *bg = new <a href="ntqbuttongroup.html">TQButtonGroup</a>(4,TQt::Vertical,"Choose Locales",&amp;dlg);
-<a name="x1949"></a> <a href="ntqstring.html">TQString</a> loc = TQTextCodec::<a href="ntqtextcodec.html#locale">locale</a>();
+<a name="x1949"></a> <a href="tqstring.html">TQString</a> loc = TQTextCodec::<a href="ntqtextcodec.html#locale">locale</a>();
for ( int i=0; qm[i]; i++ ) {
qmb[i] = new <a href="ntqcheckbox.html">TQCheckBox</a>((const char*)qm[i],bg);
qmb[i]-&gt;setChecked( loc == qm[i] );
@@ -312,7 +312,7 @@ int main( int argc, char** argv )
exit( 0 );
}
} else {
- <a href="ntqstring.html">TQString</a> lang = argv[1];
+ <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 );
m-&gt;<a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - i18n");