From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/qmag-example.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'doc/html/qmag-example.html') diff --git a/doc/html/qmag-example.html b/doc/html/qmag-example.html index 632655a37..fab66e0ca 100644 --- a/doc/html/qmag-example.html +++ b/doc/html/qmag-example.html @@ -101,7 +101,7 @@ private: int yoffset; // pixels in addition to the actual picture int z; // magnification factor int r; // autorefresh rate (index into refreshrates) - bool grabbing; // TRUE if qmag is currently grabbing + bool grabbing; // true if qmag is currently grabbing int grabx, graby; TQString multifn; // filename for multisave }; @@ -131,12 +131,12 @@ static const int timer[] = { #ifdef COMPLEX_GUI int w=0, x=0, n; - zoom = new TQComboBox( FALSE, this ); + zoom = new TQComboBox( false, this ); TQ_CHECK_PTR(zoom); zoom->insertStrList( zoomfactors, 9 ); connect( zoom, TQ_SIGNAL(activated(int)), TQ_SLOT(setZoom(int)) ); - refresh = new TQComboBox( FALSE, this ); + refresh = new TQComboBox( false, this ); TQ_CHECK_PTR(refresh); refresh->insertStrList( refreshrates, 9 ); connect( refresh, TQ_SIGNAL(activated(int)), TQ_SLOT(setRefresh(int)) ); @@ -163,7 +163,7 @@ static const int timer[] = { 10+saveButton->fontMetrics().width("Save"), 20 ); multiSaveButton = new TQPushButton( this ); - multiSaveButton->setToggleButton(TRUE); + multiSaveButton->setToggleButton(true); TQ_CHECK_PTR(multiSaveButton); connect( multiSaveButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(multiSave()) ); multiSaveButton->setText( "MultiSave" ); @@ -202,9 +202,9 @@ static const int timer[] = { #endif grabx = graby = -1; - grabbing = FALSE; + grabbing = false; - setMouseTracking( TRUE ); // and do let me know what pixel I'm at, eh? + setMouseTracking( true ); // and do let me know what pixel I'm at, eh? grabAround( TQPoint(grabx=tqApp->desktop()->width()/2, graby=tqApp->desktop()->height()/2) ); } @@ -247,11 +247,11 @@ void MagWidget::multiSave() multifn = ""; // stops saving multifn = TQFileDialog::getSaveFileName(); if ( multifn.isEmpty() ) - multiSaveButton->setOn(FALSE); + multiSaveButton->setOn(false); if ( !r ) p.save( multifn, "BMP" ); } else { - multiSaveButton->setOn(FALSE); + multiSaveButton->setOn(false); } } @@ -289,7 +289,7 @@ void MagWidget::grab() pm = p.xForm( m ); if ( !multiSaveButton || !multiSaveButton->isOn() ) - repaint( FALSE ); // and finally repaint, flicker-free + repaint( false ); // and finally repaint, flicker-free } @@ -306,7 +306,7 @@ void MagWidget::grab() void MagWidget::mousePressEvent( TQMouseEvent *e ) { if ( !grabbing ) { // prepare to grab... - grabbing = TRUE; + grabbing = true; killTimers(); grabMouse( crossCursor ); grabx = -1; @@ -322,7 +322,7 @@ void MagWidget::grab() void MagWidget::mouseReleaseEvent( TQMouseEvent * e ) { if ( grabbing && grabx >= 0 && graby >= 0 ) { - grabbing = FALSE; + grabbing = false; grabAround(e->pos()); releaseMouse(); } -- cgit v1.2.3