diff options
Diffstat (limited to 'examples/qmag')
-rw-r--r-- | examples/qmag/qmag.cpp | 18 | ||||
-rw-r--r-- | examples/qmag/qmag.doc | 2 |
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 |