summaryrefslogtreecommitdiffstats
path: root/doc/html/qmag-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/qmag-example.html')
-rw-r--r--doc/html/qmag-example.html20
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/html/qmag-example.html b/doc/html/qmag-example.html
index 978475e75..2a6e5b034 100644
--- a/doc/html/qmag-example.html
+++ b/doc/html/qmag-example.html
@@ -34,7 +34,7 @@ body { background: #ffffff; color: black; }
<p>
This is a simple magnifier-type program. It shows how one can do
-some tquite low-level operations in a portable way using TQt.
+some quite low-level operations in a portable way using TQt.
<p> Run it, click in the magnifier window, then click where you want to
magnify or drag out a rectangle. Two combo boxes let you select
amplification and refresh frequency, a text label tells you the color
@@ -94,7 +94,7 @@ private:
<a href="qcombobox.html">TQComboBox</a> *refresh;
<a href="qpushbutton.html">TQPushButton</a> *saveButton;
<a href="qpushbutton.html">TQPushButton</a> *multiSaveButton;
- <a href="qpushbutton.html">TQPushButton</a> *tquitButton;
+ <a href="qpushbutton.html">TQPushButton</a> *quitButton;
<a href="qpixmap.html">TQPixmap</a> pm; // pixmap, magnified
<a href="qpixmap.html">TQPixmap</a> p; // pixmap
<a href="qimage.html">TQImage</a> image; // image of pixmap (for RGB)
@@ -171,12 +171,12 @@ static const int timer[] = {
<a name="x1798"></a> multiSaveButton-&gt;<a href="qwidget.html#setGeometry">setGeometry</a>( saveButton-&gt;<a href="qwidget.html#geometry">geometry</a>().right() + 2, 2,
10+multiSaveButton-&gt;<a href="qwidget.html#fontMetrics">fontMetrics</a>().width("MultiSave"), 20 );
- tquitButton = new <a href="qpushbutton.html">TQPushButton</a>( this );
- <a href="qapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>(tquitButton);
- <a href="qobject.html#connect">connect</a>( tquitButton, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
- tquitButton-&gt;<a href="qbutton.html#setText">setText</a>( "Quit" );
- tquitButton-&gt;<a href="qwidget.html#setGeometry">setGeometry</a>( multiSaveButton-&gt;<a href="qwidget.html#geometry">geometry</a>().right() + 2, 2,
- 10+tquitButton-&gt;<a href="qwidget.html#fontMetrics">fontMetrics</a>().width("Quit"), 20 );
+ quitButton = new <a href="qpushbutton.html">TQPushButton</a>( this );
+ <a href="qapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>(quitButton);
+ <a href="qobject.html#connect">connect</a>( quitButton, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
+ quitButton-&gt;<a href="qbutton.html#setText">setText</a>( "Quit" );
+ quitButton-&gt;<a href="qwidget.html#setGeometry">setGeometry</a>( multiSaveButton-&gt;<a href="qwidget.html#geometry">geometry</a>().right() + 2, 2,
+ 10+quitButton-&gt;<a href="qwidget.html#fontMetrics">fontMetrics</a>().width("Quit"), 20 );
#else
zoom = 0;
multiSaveButton = 0;
@@ -195,8 +195,8 @@ static const int timer[] = {
<a name="x1799"></a> yoffset = zoom-&gt;<a href="qwidget.html#height">height</a>() // top buttons
+ 4 // space around top buttons
+ rgb-&gt;<a href="qwidget.html#height">height</a>(); // color-value text height
-<a name="x1804"></a> <a href="qwidget.html#setMinimumSize">setMinimumSize</a>( tquitButton-&gt;<a href="qwidget.html#pos">pos</a>().x(), yoffset+20 );
- <a href="qwidget.html#resize">resize</a>( tquitButton-&gt;<a href="qwidget.html#geometry">geometry</a>().topRight().x() + 2, yoffset+60 );
+<a name="x1804"></a> <a href="qwidget.html#setMinimumSize">setMinimumSize</a>( quitButton-&gt;<a href="qwidget.html#pos">pos</a>().x(), yoffset+20 );
+ <a href="qwidget.html#resize">resize</a>( quitButton-&gt;<a href="qwidget.html#geometry">geometry</a>().topRight().x() + 2, yoffset+60 );
#else
yoffset = 0;
<a href="qwidget.html#resize">resize</a>(350,350);