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 11:40:11 +0900
commit3233d6a066667673e676dee95db7ca1419087018 (patch)
treeef8462b8cce8e3cd60aa3121011b8cbb05ad6542 /src/kbfxplasmacanvasview.cpp
parent29aac93d751ef6b7aa721321df8b94679813916e (diff)
downloadkbfx-3233d6a066667673e676dee95db7ca1419087018.tar.gz
kbfx-3233d6a066667673e676dee95db7ca1419087018.zip
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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 () );