summaryrefslogtreecommitdiffstats
path: root/examples/qmag/qmag.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qmag/qmag.cpp')
-rw-r--r--examples/qmag/qmag.cpp18
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);