diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-28 18:11:49 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-03 19:23:45 +0900 |
commit | 0bd9d5459891e6fb17ee6802878f85e217cb9f54 (patch) | |
tree | 962f6ea26d1fab041fe3476fbbd64132ab8ada1b /kpresenter/KPrCanvas.cpp | |
parent | cb258b7e39ffa5662b57e7d9006e69172a378d7e (diff) | |
download | koffice-r14.1.4.tar.gz koffice-r14.1.4.zip |
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit cf85b9c285a2b9baa87c9d0cb9d683b48e82a475)
Diffstat (limited to 'kpresenter/KPrCanvas.cpp')
-rw-r--r-- | kpresenter/KPrCanvas.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kpresenter/KPrCanvas.cpp b/kpresenter/KPrCanvas.cpp index ab8e15434..3e552bfc4 100644 --- a/kpresenter/KPrCanvas.cpp +++ b/kpresenter/KPrCanvas.cpp @@ -211,7 +211,7 @@ void KPrCanvas::scrollY( int y ) bool KPrCanvas::eventFilter( TQObject *o, TQEvent *e ) { if ( !o || !e ) - return TRUE; + return true; if ( m_currentTextObjectView ) KCursor::autoHideEventFilter( o, e ); switch ( e->type() ) @@ -219,11 +219,11 @@ bool KPrCanvas::eventFilter( TQObject *o, TQEvent *e ) case TQEvent::FocusIn: if ( m_currentTextObjectView ) m_currentTextObjectView->focusInEvent(); - return TRUE; + return true; case TQEvent::FocusOut: if ( m_currentTextObjectView ) m_currentTextObjectView->focusOutEvent(); - return TRUE; + return true; case TQEvent::KeyPress: { TQKeyEvent * keyev = static_cast<TQKeyEvent*>(e); @@ -277,7 +277,7 @@ bool KPrCanvas::eventFilter( TQObject *o, TQEvent *e ) bool KPrCanvas::focusNextPrevChild( bool ) { - return TRUE; // Don't allow to go out of the canvas widget by pressing "Tab" + return true; // Don't allow to go out of the canvas widget by pressing "Tab" } void KPrCanvas::paintEvent( TQPaintEvent* paintEvent ) @@ -1173,7 +1173,7 @@ void KPrCanvas::mouseReleaseEvent( TQMouseEvent *e ) switch ( toolEditMode ) { case TEM_MOUSE: { - drawContour = FALSE; + drawContour = false; switch ( modType ) { case MT_NONE: { if ( drawRubber ) { @@ -1259,7 +1259,7 @@ void KPrCanvas::mouseReleaseEvent( TQMouseEvent *e ) } break; case TEM_ZOOM:{ - drawContour = FALSE; + drawContour = false; if( modType == MT_NONE && drawRubber ) { TQPainter p; @@ -1283,7 +1283,7 @@ void KPrCanvas::mouseReleaseEvent( TQMouseEvent *e ) } }break; case TEM_ROTATE: { - drawContour = FALSE; + drawContour = false; if ( !m_rotateObject ) break; if ( m_angleBeforeRotate != m_rotateObject->getAngle() ) { @@ -1465,7 +1465,7 @@ void KPrCanvas::mouseMoveEvent( TQMouseEvent *e ) } else if ( mousePressed ) { switch ( toolEditMode ) { case TEM_MOUSE: { - drawContour = TRUE; + drawContour = true; if ( modType == MT_NONE ) { if ( drawRubber ) { @@ -1528,7 +1528,7 @@ void KPrCanvas::mouseMoveEvent( TQMouseEvent *e ) case TEM_ROTATE: { if ( m_rotateObject ) { - drawContour = TRUE; + drawContour = true; // angle to mouse pos double angle = KoPoint::getAngle( m_rotateCenter, docPoint ); // angle to start of mouse pos @@ -4472,7 +4472,7 @@ void KPrCanvas::setTextBackground( KPrTextObject */*obj*/ ) #if 0 TQPixmap pix( m_activePage->getZoomPageRect().size() ); TQPainter painter( &pix ); - m_activePage->background()->drawBackground( &painter, FALSE ); + m_activePage->background()->drawBackground( &painter, false ); TQPixmap bpix( obj->getSize().toTQSize() ); // ## zoom it ! bitBlt( &bpix, 0, 0, &pix, obj->getOrig().x(), obj->getOrig().y() - m_activePage->getZoomPageRect().height() * ( m_view->getCurrPgNum() - 1 ), bpix.width(), bpix.height() ); |