summaryrefslogtreecommitdiffstats
path: root/src/kbfxplasmacanvasview.cpp
diff options
context:
space:
mode:
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 () );