diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 22:04:08 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 22:04:08 -0600 |
commit | e02e31c8b9d854cd62cbe9799228f6e08e882773 (patch) | |
tree | 53303c981d0b20e03c5a2fc8e959fa74adcb90d1 /doc/tutorial2.doc | |
parent | 143f194af098d44bf0dd1ebb29e59f30ce48d523 (diff) | |
download | tqt3-e02e31c8b9d854cd62cbe9799228f6e08e882773.tar.gz tqt3-e02e31c8b9d854cd62cbe9799228f6e08e882773.zip |
Sync with latest script
Diffstat (limited to 'doc/tutorial2.doc')
-rw-r--r-- | doc/tutorial2.doc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/tutorial2.doc b/doc/tutorial2.doc index 91099788b..ad20fef68 100644 --- a/doc/tutorial2.doc +++ b/doc/tutorial2.doc @@ -94,7 +94,7 @@ The chart form's main widget is a QCanvasView which displays the QCanvas on which we draw the pie chart or bar graph. We subclass QCanvasView to obtain some specialised behaviour. Similarly we subclass the QCanvasText class (used to place text items on a canvas) -since we retquire slightly more than the standard class provides. +since we require slightly more than the standard class provides. The project file, \c chart.pro, is used to create the Makefile that is used to build the application. @@ -249,7 +249,7 @@ filter the data using a scripting language. \skipto include \printto const -Our implementation of the operators retquires the inclusion of \c +Our implementation of the operators requires the inclusion of \c qtextstream.h and \c qstringlist.h. \printto Element @@ -432,7 +432,7 @@ toolbar buttons stay in sync and saves duplicating code. When we construct an action we give it a name, an optional icon, a menu text, and an accelerator short-cut key (or 0 if no accelerator is -retquired). We also make it a child of the form (by passing \c this). +required). We also make it a child of the form (by passing \c this). When the user clicks a toolbar button or clicks a menu option the \c activated() signal is emitted. We connect() this signal to the action's slot, in the snippet shown above, to fileNew(). @@ -784,7 +784,7 @@ Qt rather than good (or bad) algorithms for drawing charts. To draw a horizontal bar chart we need the array of scaled values, the total value (so that we can calculate and draw percentages if -retquired) and a count of the number of values. +required) and a count of the number of values. \skipto width \printuntil int y @@ -1130,7 +1130,7 @@ correct number of decimal places. \i The OK button is connected to the accept() slot; we will update the elements vector in this slot. \i The Cancel button is connected to the QDialog reject() slot, and -retquires no further code or action on our part. +requires no further code or action on our part. \endlist \skipto QPixmap |