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.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/qmag/qmag.cpp b/examples/qmag/qmag.cpp
index b87820ae0..34504300c 100644
--- a/examples/qmag/qmag.cpp
+++ b/examples/qmag/qmag.cpp
@@ -22,7 +22,7 @@
class MagWidget : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
MagWidget( TQWidget *parent=0, const char *name=0 );
@@ -88,12 +88,12 @@ MagWidget::MagWidget( TQWidget *parent, const char *name )
int w=0, x=0, n;
zoom = new TQComboBox( FALSE, this );
- Q_CHECK_PTR(zoom);
+ TQ_CHECK_PTR(zoom);
zoom->insertStrList( zoomfactors, 9 );
connect( zoom, SIGNAL(activated(int)), SLOT(setZoom(int)) );
refresh = new TQComboBox( FALSE, this );
- Q_CHECK_PTR(refresh);
+ TQ_CHECK_PTR(refresh);
refresh->insertStrList( refreshrates, 9 );
connect( refresh, SIGNAL(activated(int)), SLOT(setRefresh(int)) );
@@ -112,7 +112,7 @@ MagWidget::MagWidget( TQWidget *parent, const char *name )
refresh->setGeometry( x, 2, w+30, 20 );
saveButton = new TQPushButton( this );
- Q_CHECK_PTR(saveButton);
+ TQ_CHECK_PTR(saveButton);
connect( saveButton, SIGNAL(clicked()), this, SLOT(save()) );
saveButton->setText( "Save" );
saveButton->setGeometry( x+w+30+2, 2,
@@ -120,14 +120,14 @@ MagWidget::MagWidget( TQWidget *parent, const char *name )
multiSaveButton = new TQPushButton( this );
multiSaveButton->setToggleButton(TRUE);
- Q_CHECK_PTR(multiSaveButton);
+ TQ_CHECK_PTR(multiSaveButton);
connect( multiSaveButton, SIGNAL(clicked()), this, SLOT(multiSave()) );
multiSaveButton->setText( "MultiSave" );
multiSaveButton->setGeometry( saveButton->geometry().right() + 2, 2,
10+multiSaveButton->fontMetrics().width("MultiSave"), 20 );
quitButton = new TQPushButton( this );
- Q_CHECK_PTR(quitButton);
+ TQ_CHECK_PTR(quitButton);
connect( quitButton, SIGNAL(clicked()), qApp, SLOT(quit()) );
quitButton->setText( "Quit" );
quitButton->setGeometry( multiSaveButton->geometry().right() + 2, 2,
@@ -141,7 +141,7 @@ MagWidget::MagWidget( TQWidget *parent, const char *name )
setZoom(5);
rgb = new TQLabel( this );
- Q_CHECK_PTR( rgb );
+ TQ_CHECK_PTR( rgb );
rgb->setText( "" );
rgb->setAlignment( AlignVCenter );
rgb->resize( width(), rgb->fontMetrics().height() + 4 );