diff options
author | Timothy Pearson <[email protected]> | 2011-11-14 22:33:41 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-11-14 22:33:41 -0600 |
commit | 0f92dd542b65bc910caaf190b7c623aa5158c86a (patch) | |
tree | 120ab7e08fa0ffc354ef58d100f79a33c92aa6e6 /doc/html/qmag-example.html | |
parent | d796c9dd933ab96ec83b9a634feedd5d32e1ba3f (diff) | |
download | tqt3-0f92dd542b65bc910caaf190b7c623aa5158c86a.tar.gz tqt3-0f92dd542b65bc910caaf190b7c623aa5158c86a.zip |
Fix native TQt3 accidental conversion to tquit
Diffstat (limited to 'doc/html/qmag-example.html')
-rw-r--r-- | doc/html/qmag-example.html | 20 |
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-><a href="qwidget.html#setGeometry">setGeometry</a>( saveButton-><a href="qwidget.html#geometry">geometry</a>().right() + 2, 2, 10+multiSaveButton-><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-><a href="qbutton.html#setText">setText</a>( "Quit" ); - tquitButton-><a href="qwidget.html#setGeometry">setGeometry</a>( multiSaveButton-><a href="qwidget.html#geometry">geometry</a>().right() + 2, 2, - 10+tquitButton-><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-><a href="qbutton.html#setText">setText</a>( "Quit" ); + quitButton-><a href="qwidget.html#setGeometry">setGeometry</a>( multiSaveButton-><a href="qwidget.html#geometry">geometry</a>().right() + 2, 2, + 10+quitButton-><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-><a href="qwidget.html#height">height</a>() // top buttons + 4 // space around top buttons + rgb-><a href="qwidget.html#height">height</a>(); // color-value text height -<a name="x1804"></a> <a href="qwidget.html#setMinimumSize">setMinimumSize</a>( tquitButton-><a href="qwidget.html#pos">pos</a>().x(), yoffset+20 ); - <a href="qwidget.html#resize">resize</a>( tquitButton-><a href="qwidget.html#geometry">geometry</a>().topRight().x() + 2, yoffset+60 ); +<a name="x1804"></a> <a href="qwidget.html#setMinimumSize">setMinimumSize</a>( quitButton-><a href="qwidget.html#pos">pos</a>().x(), yoffset+20 ); + <a href="qwidget.html#resize">resize</a>( quitButton-><a href="qwidget.html#geometry">geometry</a>().topRight().x() + 2, yoffset+60 ); #else yoffset = 0; <a href="qwidget.html#resize">resize</a>(350,350); |