summaryrefslogtreecommitdiffstats
path: root/doc/tutorial2.doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/tutorial2.doc')
-rw-r--r--doc/tutorial2.doc20
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/tutorial2.doc b/doc/tutorial2.doc
index 4f928034..f4efb60a 100644
--- a/doc/tutorial2.doc
+++ b/doc/tutorial2.doc
@@ -361,11 +361,11 @@ conventional document-centric style.
(Extracts from \c chartform.h.)
\quotefile chart/chartform.h
-\skipto public QMainWindow
+\skipto public TQMainWindow
\printuntil optionsVerticalBarChartAction
\printuntil };
-We create a \c ChartForm subclass of QMainWindow. Our subclass uses
+We create a \c ChartForm subclass of TQMainWindow. Our subclass uses
the \c TQ_OBJECT macro to support Qt's \link signalsandslots.html
signals and slots\endlink mechanism.
@@ -410,19 +410,19 @@ which we've placed in the \c images subdirectory.
\section1 The Constructor
\skipto ChartForm::ChartForm
-\printuntil QMainWindow
+\printuntil TQMainWindow
\c{ ...}
\skipto fileNewAction
\printuntil fileSaveAction
-For each user action we declare a QAction pointer. Some actions are
+For each user action we declare a TQAction pointer. Some actions are
declared in the header file because they need to be referred to
outside of the constructor.
\table
\row
\i Most user actions are suitable as both menu items and as toolbar
-buttons. TQt allows us to create a single QAction which can be added to
+buttons. TQt allows us to create a single TQAction which can be added to
both a menu and a toolbar. This approach ensures that menu items and
toolbar buttons stay in sync and saves duplicating code.
\endtable
@@ -442,10 +442,10 @@ The chart types are all mutually exclusive: you can have a pie chart
that if the user selects the pie chart menu option, the pie chart
toolbar button must be automatically selected too, and the other chart
menu options and toolbar buttons must be automatically unselected.
-This behaviour is achieved by creating a QActionGroup and placing the
+This behaviour is achieved by creating a TQActionGroup and placing the
chart type actions in the group.
-\skipto new QActionGroup
+\skipto new TQActionGroup
\printuntil setExclusive
The action group becomes a child of the form (\c this) and the
@@ -475,13 +475,13 @@ canvas type we will connect the group.
Once we've created all our user actions we can create the toolbars and
menu options that will allow the user to invoke them.
-\skipto new QToolBar
+\skipto new TQToolBar
\printuntil fileSaveAction
\c{ ...}
-\skipto new QPopupMenu
+\skipto new TQPopupMenu
\printuntil fileSaveAction
-Toolbar actions and menu options are easily created from QActions.
+Toolbar actions and menu options are easily created from TQActions.
As a convenience to our users we will restore the last window position
and size and list their recently used files. This is achieved by