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