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 /examples/qmag/qmag.cpp | |
parent | d796c9dd933ab96ec83b9a634feedd5d32e1ba3f (diff) | |
download | tqt3-0f92dd542b65bc910caaf190b7c623aa5158c86a.tar.gz tqt3-0f92dd542b65bc910caaf190b7c623aa5158c86a.zip |
Fix native TQt3 accidental conversion to tquit
Diffstat (limited to 'examples/qmag/qmag.cpp')
-rw-r--r-- | examples/qmag/qmag.cpp | 18 |
1 files changed, 9 insertions, 9 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); |