diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-13 17:43:39 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-13 17:43:39 -0600 |
commit | 359640943bcf155faa9a067dde9e00a123276290 (patch) | |
tree | fb3d55ea5e18949042fb0064123fb73d2b1eb932 /tools/linguist/book | |
parent | a829bcdc533e154000803d517200d32fe762e85c (diff) | |
download | tqt3-359640943bcf155faa9a067dde9e00a123276290.tar.gz tqt3-359640943bcf155faa9a067dde9e00a123276290.zip |
Automated update from Qt3
Diffstat (limited to 'tools/linguist/book')
-rw-r--r-- | tools/linguist/book/linguist-programmer.leaf | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/linguist/book/linguist-programmer.leaf b/tools/linguist/book/linguist-programmer.leaf index ecf2689a5..771fff592 100644 --- a/tools/linguist/book/linguist-programmer.leaf +++ b/tools/linguist/book/linguist-programmer.leaf @@ -130,9 +130,9 @@ would become button = new QPushButton( tr("&Quit"), this); \endcode -\index Q_OBJECT +\index TQ_OBJECT -All \l QObject subclasses that use the \c Q_OBJECT macro implement +All \l QObject subclasses that use the \c TQ_OBJECT macro implement the \c tr() function. Although the \c tr() call is normally made directly since it is @@ -581,7 +581,7 @@ version}, above, the central widget with the four buttons is an \skipto class ArrowPad \printline class ArrowPad -\index Q_OBJECT +\index TQ_OBJECT \index tr() \index QObject!tr() \index Translation Contexts @@ -591,7 +591,7 @@ When \l lupdate is run it not only extracts the source texts but it also groups them into contexts. A context is the name of the class in which the source text appears. Thus, in this example, "ArrowPad" is a context: it is the context of the texts in the \c ArrowPad class. -The \c Q_OBJECT macro defines \c tr(x) in \c ArrowPad like this +The \c TQ_OBJECT macro defines \c tr(x) in \c ArrowPad like this \index QApplication!translate() \index translate()!QApplication @@ -623,17 +623,17 @@ user-visible text. \img tt2_en.png \caption Tutorial 2 Screenshot, English version -\index Q_OBJECT +\index TQ_OBJECT \index MainWindow!in Translation Tutorial \quotefile tt2/mainwindow.h \skipto QMainWindow \printline QMainWindow -\printuntil Q_OBJECT +\printuntil TQ_OBJECT In the \e {Tutorial 2 Screenshot, English version}, above, the whole window is a \c MainWindow. This is defined in the \c mainwindow.h -header file. Here too, we use \c Q_OBJECT, so that \c MainWindow will +header file. Here too, we use \c TQ_OBJECT, so that \c MainWindow will become a context in \e {Qt Linguist}. In the implementation of \c MainWindow, \c mainwindow.cpp, we create @@ -850,13 +850,13 @@ The PrintPanel is defined in \c printpanel.h. \quotefile tt3/printpanel.h \skipto QVBox \printline QVBox -\printuntil Q_OBJECT +\printuntil TQ_OBJECT -\index Q_OBJECT +\index TQ_OBJECT \index PrintPanel!in Translation Tutorial -PrintPanel is a \l QWidget. It needs the \c Q_OBJECT macro for \c +PrintPanel is a \l QWidget. It needs the \c TQ_OBJECT macro for \c tr() to work properly. The implementation file is \c printpanel.cpp. |