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/tqscrollbar.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/tqscrollbar.cpp')
| -rw-r--r-- | src/widgets/tqscrollbar.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/widgets/tqscrollbar.cpp b/src/widgets/tqscrollbar.cpp index e49e1f9a9..80b2723e8 100644 --- a/src/widgets/tqscrollbar.cpp +++ b/src/widgets/tqscrollbar.cpp @@ -287,10 +287,10 @@ TQScrollBar::~TQScrollBar() void TQScrollBar::init() { - track = TRUE; + track = true; sliderPos = 0; pressedControl = TQStyle::SC_None; - clickedAt = FALSE; + clickedAt = false; setFocusPolicy( NoFocus ); repeater = 0; @@ -458,7 +458,7 @@ void TQScrollBar::doAutoRepeat() style().styleHint(TQStyle::SH_ScrollBar_StopMouseOverSlider, this) && style().querySubControl(TQStyle::CC_ScrollBar, this, mapFromGlobal(TQCursor::pos()) ) == TQStyle::SC_ScrollBarSlider) - sendRepeat = FALSE; + sendRepeat = false; #endif if ( sendRepeat ){ if ( repeater ) @@ -484,7 +484,7 @@ void TQScrollBar::startAutoRepeat() connect( repeater, TQ_SIGNAL(timeout()), this, TQ_SLOT(doAutoRepeat()) ); } - repeater->start( thresholdTime, FALSE ); + repeater->start( thresholdTime, false ); } @@ -636,7 +636,7 @@ void TQScrollBar::mousePressEvent( TQMouseEvent *e ) if ( e->state() & MouseButtonMask ) // another button was already pressed return; - clickedAt = TRUE; + clickedAt = true; pressedControl = style().querySubControl(TQStyle::CC_ScrollBar, this, e->pos() ); if ( (pressedControl == TQStyle::SC_ScrollBarAddPage || @@ -700,7 +700,7 @@ void TQScrollBar::mouseReleaseEvent( TQMouseEvent *e ) return; TQStyle::SubControl tmp = (TQStyle::SubControl) pressedControl; - clickedAt = FALSE; + clickedAt = false; stopAutoRepeat(); mouseMoveEvent( e ); // Might have moved since last mouse move event. pressedControl = TQStyle::SC_None; @@ -720,7 +720,7 @@ void TQScrollBar::mouseReleaseEvent( TQMouseEvent *e ) } drawControls( tmp, pressedControl ); if ( e->button() == MidButton ) - repaint( FALSE ); + repaint( false ); } @@ -730,7 +730,7 @@ void TQScrollBar::mouseReleaseEvent( TQMouseEvent *e ) void TQScrollBar::mouseMoveEvent( TQMouseEvent *e ) { if ( !isVisible() ) { - clickedAt = FALSE; + clickedAt = false; return; } @@ -1065,7 +1065,7 @@ void TQScrollBar::setValue( int i ) void TQScrollBar::hideEvent( TQHideEvent* ) { pressedControl = TQStyle::SC_None; - clickedAt = FALSE; + clickedAt = false; } |
