summaryrefslogtreecommitdiffstats
path: root/src/kbfxplasmacanvasview.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-03-29 11:28:35 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-03-29 19:00:50 +0900
commit4239ec917e4a66a6264b4ba732489ba88fad361a (patch)
tree40b37f39c8f1fd7ee5e19d5b3f1614f730ecea48 /src/kbfxplasmacanvasview.cpp
parent27a604dfeecd599c5fc910683eabecfca6957f82 (diff)
downloadkbfx-4239ec91.tar.gz
kbfx-4239ec91.zip
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 3233d6a066667673e676dee95db7ca1419087018)
Diffstat (limited to 'src/kbfxplasmacanvasview.cpp')
-rw-r--r--src/kbfxplasmacanvasview.cpp12
1 files changed, 4 insertions, 8 deletions
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 () );