diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-26 14:08:52 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-27 22:38:28 +0900 |
| commit | 50326e196a9245af21604da7dc3a36eea52784ed (patch) | |
| tree | 955f50c739379c59d3846c5c6ec25c8f5856fb91 /src/widgets/tqeffects.cpp | |
| parent | 854c5d5c9cfd48a2d5a17366fb6805219eab4859 (diff) | |
| download | tqt-50326e196a9245af21604da7dc3a36eea52784ed.tar.gz tqt-50326e196a9245af21604da7dc3a36eea52784ed.zip | |
Replace TRUE/FALSE with boolean values true/false - part 10
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/widgets/tqeffects.cpp')
| -rw-r--r-- | src/widgets/tqeffects.cpp | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/src/widgets/tqeffects.cpp b/src/widgets/tqeffects.cpp index 0ff1b11d4..c249c8f2f 100644 --- a/src/widgets/tqeffects.cpp +++ b/src/widgets/tqeffects.cpp @@ -110,7 +110,7 @@ TQAlphaWidget::TQAlphaWidget( TQWidget* w, WFlags f ) "qt internal alpha effect widget", f ) { #if 1 //ndef TQ_WS_WIN - setEnabled( FALSE ); + setEnabled( false ); #endif pm.setOptimization( TQPixmap::BestOptim ); @@ -144,7 +144,7 @@ void TQAlphaWidget::run( int time ) elapsed = 0; checkTime.start(); - showWidget = TRUE; + showWidget = true; tqApp->installEventFilter( this ); widget->setWState( WState_Visible ); @@ -164,7 +164,7 @@ void TQAlphaWidget::run( int time ) mixed = back.copy(); pm = mixed; show(); - setEnabled(FALSE); + setEnabled(false); connect( &anim, TQ_SIGNAL(timeout()), this, TQ_SLOT(render())); anim.start( 1 ); @@ -196,15 +196,15 @@ bool TQAlphaWidget::eventFilter( TQObject* o, TQEvent* e ) break; #endif case TQEvent::MouseButtonDblClick: - setEnabled(TRUE); - showWidget = FALSE; + setEnabled(true); + showWidget = false; render(); break; case TQEvent::KeyPress: { TQKeyEvent *ke = (TQKeyEvent*)e; if ( ke->key() == Key_Escape ) - showWidget = FALSE; + showWidget = false; else duration = 0; render(); @@ -225,7 +225,7 @@ void TQAlphaWidget::closeEvent( TQCloseEvent *e ) if ( !q_blend ) return; - showWidget = FALSE; + showWidget = false; render(); TQWidget::closeEvent( e ); @@ -256,7 +256,7 @@ void TQAlphaWidget::render() if ( widget ) { if ( !showWidget ) { #ifdef TQ_WS_WIN - setEnabled(TRUE); + setEnabled(true); setFocus(); #endif widget->hide(); @@ -292,7 +292,7 @@ void TQAlphaWidget::render() widget->clearWState( WState_ForceHide ); alphaBlend(); pm = mixed; - repaint( FALSE ); + repaint( false ); } } @@ -382,7 +382,7 @@ TQRollEffect::TQRollEffect( TQWidget* w, WFlags f, DirFlags orient ) "qt internal roll effect widget", f ), orientation(orient) { #if 1 //ndef TQ_WS_WIN - setEnabled( FALSE ); + setEnabled( false ); #endif widget = (TQAccessWidget*) w; Q_ASSERT( widget ); @@ -418,7 +418,7 @@ void TQRollEffect::paintEvent( TQPaintEvent* ) int y = orientation & DownScroll ? TQMIN(0, currentHeight - totalHeight) : 0; bitBlt( this, x, y, &pm, - 0, 0, pm.width(), pm.height(), CopyROP, TRUE ); + 0, 0, pm.width(), pm.height(), CopyROP, true ); } /* @@ -437,9 +437,9 @@ bool TQRollEffect::eventFilter( TQObject* o, TQEvent* e ) case TQEvent::Close: if ( o != widget || done ) break; - setEnabled(TRUE); - showWidget = FALSE; - done = TRUE; + setEnabled(true); + showWidget = false; + done = true; scroll(); break; case TQEvent::MouseButtonPress: @@ -450,17 +450,17 @@ bool TQRollEffect::eventFilter( TQObject* o, TQEvent* e ) case TQEvent::MouseButtonDblClick: if ( done ) break; - setEnabled(TRUE); - showWidget = FALSE; - done = TRUE; + setEnabled(true); + showWidget = false; + done = true; scroll(); break; case TQEvent::KeyPress: { TQKeyEvent *ke = (TQKeyEvent*)e; if ( ke->key() == Key_Escape ) - showWidget = FALSE; - done = TRUE; + showWidget = false; + done = true; scroll(); break; } @@ -479,8 +479,8 @@ void TQRollEffect::closeEvent( TQCloseEvent *e ) if ( done ) return; - showWidget = FALSE; - done = TRUE; + showWidget = false; + done = true; scroll(); TQWidget::closeEvent( e ); @@ -517,12 +517,12 @@ void TQRollEffect::run( int time ) resize( TQMIN( currentWidth, totalWidth ), TQMIN( currentHeight, totalHeight ) ); show(); - setEnabled(FALSE); + setEnabled(false); tqApp->installEventFilter( this ); - showWidget = TRUE; - done = FALSE; + showWidget = true; + done = false; anim.start( 1 ); checkTime.start(); } @@ -567,7 +567,7 @@ void TQRollEffect::scroll() if ( orientation & DownScroll || orientation & UpScroll ) h = TQMIN( currentHeight, totalHeight ); - setUpdatesEnabled( FALSE ); + setUpdatesEnabled( false ); if ( orientation & UpScroll ) y = widget->geometry().y() + TQMAX( 0, totalHeight - currentHeight ); if ( orientation & LeftScroll ) @@ -576,8 +576,8 @@ void TQRollEffect::scroll() move( x, y ); resize( w, h ); - setUpdatesEnabled( TRUE ); - repaint( FALSE ); + setUpdatesEnabled( true ); + repaint( false ); } if ( done ) { anim.stop(); @@ -585,7 +585,7 @@ void TQRollEffect::scroll() if ( widget ) { if ( !showWidget ) { #ifdef TQ_WS_WIN - setEnabled(TRUE); + setEnabled(true); setFocus(); #endif widget->hide(); |
