summaryrefslogtreecommitdiffstats
path: root/examples/qmag
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-14 22:33:41 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-14 22:33:41 -0600
commit0f92dd542b65bc910caaf190b7c623aa5158c86a (patch)
tree120ab7e08fa0ffc354ef58d100f79a33c92aa6e6 /examples/qmag
parentd796c9dd933ab96ec83b9a634feedd5d32e1ba3f (diff)
downloadtqt3-0f92dd542b65bc910caaf190b7c623aa5158c86a.tar.gz
tqt3-0f92dd542b65bc910caaf190b7c623aa5158c86a.zip
Fix native TQt3 accidental conversion to tquit
Diffstat (limited to 'examples/qmag')
-rw-r--r--examples/qmag/qmag.cpp18
-rw-r--r--examples/qmag/qmag.doc2
2 files changed, 10 insertions, 10 deletions
diff --git a/examples/qmag/qmag.cpp b/examples/qmag/qmag.cpp
index e747bab40..ca86b6232 100644
--- a/examples/qmag/qmag.cpp
+++ b/examples/qmag/qmag.cpp
@@ -49,7 +49,7 @@ private:
TQComboBox *refresh;
TQPushButton *saveButton;
TQPushButton *multiSaveButton;
- TQPushButton *tquitButton;
+ TQPushButton *quitButton;
TQPixmap pm; // pixmap, magnified
TQPixmap p; // pixmap
TQImage image; // image of pixmap (for RGB)
@@ -126,12 +126,12 @@ MagWidget::MagWidget( TQWidget *parent, const char *name )
multiSaveButton->setGeometry( saveButton->geometry().right() + 2, 2,
10+multiSaveButton->fontMetrics().width("MultiSave"), 20 );
- tquitButton = new TQPushButton( this );
- Q_CHECK_PTR(tquitButton);
- connect( tquitButton, SIGNAL(clicked()), qApp, SLOT(tquit()) );
- tquitButton->setText( "Quit" );
- tquitButton->setGeometry( multiSaveButton->geometry().right() + 2, 2,
- 10+tquitButton->fontMetrics().width("Quit"), 20 );
+ quitButton = new TQPushButton( this );
+ Q_CHECK_PTR(quitButton);
+ connect( quitButton, SIGNAL(clicked()), qApp, SLOT(quit()) );
+ quitButton->setText( "Quit" );
+ quitButton->setGeometry( multiSaveButton->geometry().right() + 2, 2,
+ 10+quitButton->fontMetrics().width("Quit"), 20 );
#else
zoom = 0;
multiSaveButton = 0;
@@ -150,8 +150,8 @@ MagWidget::MagWidget( TQWidget *parent, const char *name )
yoffset = zoom->height() // top buttons
+ 4 // space around top buttons
+ rgb->height(); // color-value text height
- setMinimumSize( tquitButton->pos().x(), yoffset+20 );
- resize( tquitButton->geometry().topRight().x() + 2, yoffset+60 );
+ setMinimumSize( quitButton->pos().x(), yoffset+20 );
+ resize( quitButton->geometry().topRight().x() + 2, yoffset+60 );
#else
yoffset = 0;
resize(350,350);
diff --git a/examples/qmag/qmag.doc b/examples/qmag/qmag.doc
index 5084f395e..f7fac63a5 100644
--- a/examples/qmag/qmag.doc
+++ b/examples/qmag/qmag.doc
@@ -6,7 +6,7 @@
\title QMag
This is a simple magnifier-type program. It shows how one can do
- some tquite low-level operations in a portable way using Qt.
+ some quite low-level operations in a portable way using Qt.
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