summaryrefslogtreecommitdiffstats
path: root/src/kbfxbutton.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/kbfxbutton.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/kbfxbutton.cpp')
-rw-r--r--src/kbfxbutton.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/kbfxbutton.cpp b/src/kbfxbutton.cpp
index 9ae3410..9a9b21a 100644
--- a/src/kbfxbutton.cpp
+++ b/src/kbfxbutton.cpp
@@ -24,7 +24,7 @@
#include "kbfxbutton.h"
-bool KbfxButton::m_sizeHeight = TRUE;
+bool KbfxButton::m_sizeHeight = true;
int KbfxButton::m_size = 0;
KbfxButton::KbfxButton ( TQWidget * parent, const char *name) :
@@ -38,7 +38,7 @@ KbfxButton::KbfxButton ( TQWidget * parent, const char *name) :
m_fadeTime = ConfigInit().m_fadeTime;
/* Init normal size first */
- m_kicker_auto_adjust = TRUE;
+ m_kicker_auto_adjust = true;
loadSkins();
m_kicker_auto_adjust = ConfigInit().m_ToolBarResize;
@@ -128,7 +128,7 @@ TQCString KbfxButton::findPanel()
void KbfxButton::readjust( bool _how )
{
- /* _how = TRUE is for height, _how = FALSE is for width readjust */
+ /* _how = true is for height, _how = false is for width readjust */
TQCString _panel = findPanel();
int _tmp_size;
if ( _how )
@@ -154,7 +154,7 @@ void KbfxButton::readjust( bool _how )
void KbfxButton::enterEvent ( TQEvent * e )
{
e = e;
- if ( m_toggle == true )
+ if ( m_toggle )
{
// m_current_skin = m_pressed_skin; // no fade code
m_fadePix = m_pressed_skin;
@@ -239,7 +239,7 @@ void KbfxButton::mousePressEvent ( TQMouseEvent * e )
e->accept();
if ( e->button() == TQt::LeftButton )
{
- if ( m_toggle == false )
+ if ( !m_toggle )
{
// m_current_skin = m_pressed_skin; // no fade code
m_toggle = true;
@@ -371,17 +371,17 @@ void KbfxButton::dropEvent ( TQDropEvent * e )
{
_tmp = ( *it );
kdDebug() << "KBFX button dropped file: " << _tmp << endl;
- if ( _tmp.contains ( "hover", FALSE ) > 0 )
+ if ( _tmp.contains ( "hover", false ) > 0 )
{
_hover = _tmp;
_hover_pix = TQImage ( _tmp );
}
- if ( _tmp.contains ( "normal", FALSE ) > 0 )
+ if ( _tmp.contains ( "normal", false ) > 0 )
{
_normal = _tmp;
_normal_pix = TQImage ( _tmp );
}
- if ( _tmp.contains ( "pressed", FALSE ) > 0 )
+ if ( _tmp.contains ( "pressed", false ) > 0 )
{
_pressed = _tmp;
_pressed_pix = TQImage ( _tmp );
@@ -409,7 +409,7 @@ void KbfxButton::dropEvent ( TQDropEvent * e )
ConfigInit().writeThemerc ( ConfigInit().m_SpinxThemeName );
/* Init normal size first */
- m_kicker_auto_adjust = TRUE;
+ m_kicker_auto_adjust = true;
loadSkins();
m_kicker_auto_adjust = ConfigInit().m_ToolBarResize;
}