From 3233d6a066667673e676dee95db7ca1419087018 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 29 Mar 2025 11:28:35 +0900 Subject: Replace TRUE/FALSE with boolean values true/false Signed-off-by: Michele Calgaro --- src/kbfxplasmacanvasview.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/kbfxplasmacanvasview.cpp') diff --git a/src/kbfxplasmacanvasview.cpp b/src/kbfxplasmacanvasview.cpp index 6814372..c79faaa 100644 --- a/src/kbfxplasmacanvasview.cpp +++ b/src/kbfxplasmacanvasview.cpp @@ -26,7 +26,7 @@ KbfxPlasmaCanvasView::KbfxPlasmaCanvasView ( TQWidget * parent, TQCanvasView ( parent, name,fl ) { - viewport ()->setMouseTracking ( TRUE ); + viewport ()->setMouseTracking ( true ); viewport ()->setAcceptDrops ( true ); this->setVScrollBarMode ( TQScrollView::AlwaysOff ); this->setHScrollBarMode ( TQScrollView::AlwaysOff ); @@ -340,7 +340,7 @@ KbfxPlasmaCanvasView::expandAll () { if ( m_currentView != 0 ) { - if ( ConfigInit ().m_startHidden == false ) + if ( !ConfigInit().m_startHidden ) m_currentView->unfoldGroupAll (); scroll ( 0, 0 ); } @@ -500,9 +500,7 @@ KbfxPlasmaCanvasView::search_R ( const TQString name ) if ( appGroup->count () <= 0 ) continue; - if ( visualGroup->addItem ( box ) == false ) - {} - + visualGroup->addItem( box ); KbfxDataGroup::Data dat = appGroup->getData (); KbfxDataGroup::Data::Iterator it; @@ -524,9 +522,7 @@ KbfxPlasmaCanvasView::search_R ( const TQString name ) ( KbfxPlasmaCanvasItem * ) boxwrapper-> item ( KbfxPlasmaCanvasItem::EXECUTABLE ); box->setSource ( * ( it.data () ) ); - if ( visualGroup->addItem ( box ) == true ) - { - } + visualGroup->addItem ( box ); } visualGroup->move ( 0, m_scrollbar_top->height () ); -- cgit v1.2.3