summaryrefslogtreecommitdiffstats
path: root/tools/linguist/book/linguist-programmer.leaf
diff options
context:
space:
mode:
Diffstat (limited to 'tools/linguist/book/linguist-programmer.leaf')
-rw-r--r--tools/linguist/book/linguist-programmer.leaf28
1 files changed, 14 insertions, 14 deletions
diff --git a/tools/linguist/book/linguist-programmer.leaf b/tools/linguist/book/linguist-programmer.leaf
index 663f5fc40..7fa18a15f 100644
--- a/tools/linguist/book/linguist-programmer.leaf
+++ b/tools/linguist/book/linguist-programmer.leaf
@@ -121,13 +121,13 @@ will fall back to using the original source text.
User-visible strings are marked as translation targets by wrapping them
in a \c tr() call, for example:
\code
- button = new QPushButton( "&Quit", this );
+ button = new TQPushButton( "&Quit", this );
\endcode
would become
\code
- button = new QPushButton( tr("&Quit"), this);
+ button = new TQPushButton( tr("&Quit"), this);
\endcode
\index TQ_OBJECT
@@ -140,7 +140,7 @@ usually called as a member function of a \l TQObject subclass, in
other cases an explicit class name can be supplied, for example:
\code
- QPushButton::tr("&Quit")
+ TQPushButton::tr("&Quit")
\endcode
or
@@ -167,13 +167,13 @@ differ between the two. This is easily achieved using the
two argument form of the \c tr() call, e.g.
\code
- rbc = new QRadioButton( tr("Enabled", "Color frame"), this );
+ rbc = new TQRadioButton( tr("Enabled", "Color frame"), this );
\endcode
and
\code
- rbh = new QRadioButton( tr("Enabled", "Hue frame"), this );
+ rbh = new TQRadioButton( tr("Enabled", "Hue frame"), this );
\endcode
\index Ctrl Key
@@ -374,7 +374,7 @@ translation appears; if not, the source text appears.
All classes that inherit \l TQObject have a \c tr() function. Inside
a member function of a \l TQObject class, we simply write \c tr("Hello
-world!") instead of \c QPushButton::tr("Hello world!") or \c
+world!") instead of \c TQPushButton::tr("Hello world!") or \c
TQObject::tr("Hello world!").
\section3 Running the Application in English
@@ -461,7 +461,7 @@ the current directory, containing this:
\code
<!DOCTYPE TS><TS>
<context>
- <name>QPushButton</name>
+ <name>TQPushButton</name>
<message>
<source>Hello world!</source>
<translation type="unfinished"></translation>
@@ -486,7 +486,7 @@ To start \e {Qt Linguist}, type
linguist tt1_la.ts
\endcode
-You should now see the text "QPushButton" in the top left pane.
+You should now see the text "TQPushButton" in the top left pane.
Double-click it, then click on "Hello world!" and enter "Orbis, te
saluto!" in the \e Translation pane (the middle right of the
window). Don't forget the exclamation mark!
@@ -614,8 +614,8 @@ conflicts.
In \c arrowpad.cpp we implement the \c ArrowPad class.
\quotefile tt2/arrowpad.cpp
-\skipto QPushButton
-\printline QPushButton
+\skipto TQPushButton
+\printline TQPushButton
We call \c ArrowPad::tr() for each button's label since the labels are
user-visible text.
@@ -958,16 +958,16 @@ second argument "two-sided" in the appropriate \c tr() calls to the
first pair of radio buttons:
\code
- but = new QRadioButton( tr("Enabled", "two-sided"), twoSided );
- but = new QRadioButton( tr("Disabled", "two-sided"), twoSided );
+ but = new TQRadioButton( tr("Enabled", "two-sided"), twoSided );
+ but = new TQRadioButton( tr("Disabled", "two-sided"), twoSided );
\endcode
and add the second argument "colors" in the appropriate \c tr() calls
for the second pair of radio buttons:
\code
- but = new QRadioButton( tr("Enabled", "colors"), colors );
- but = new QRadioButton( tr("Disabled", "colors"), colors );
+ but = new TQRadioButton( tr("Enabled", "colors"), colors );
+ but = new TQRadioButton( tr("Disabled", "colors"), colors );
\endcode
\index lupdate