summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configdialog/kbfxconfigapp.cpp4
-rw-r--r--configdialog/kbfxconfigdlgabout.ui.h16
-rw-r--r--configdialog/kbfxconfigdlgbutton.ui.h12
-rw-r--r--configdialog/kbfxconfigdlgfonts-old.ui.h8
-rw-r--r--configdialog/kbfxconfigdlglayout.ui.h4
-rw-r--r--configdialog/kbfxconfigdlgplugins.ui.h6
-rw-r--r--configdialog/kbfxconfigdlgthemes.ui.h26
-rw-r--r--configdialog/kbfxconfigdlgtooltip.ui.h16
-rw-r--r--kbfxlib/common/kbfxconfig.cpp48
-rw-r--r--kbfxlib/common/kbfxconfig.h4
-rw-r--r--kbfxlib/common/kbfxfontchooser.cpp4
-rw-r--r--kbfxlib/common/kbfxkiodownload.cpp2
-rw-r--r--kbfxlib/common/kbfxpixmaplabel.cpp6
-rw-r--r--kbfxlib/common/kbfxplasmapixmapprovider.cpp4
-rw-r--r--kbfxlib/common/kbfxpushbutton.cpp2
-rw-r--r--kbfxlib/common/kbfxthemesdata.cpp4
-rw-r--r--kbfxlib/data/kbfxdatagroup.cpp2
-rw-r--r--kbfxlib/data/kbfxplasmapluginloader.cpp2
-rw-r--r--plugins/applications/kbfxplasmadataplugin.cpp4
-rw-r--r--plugins/settings/kbfxplasmadatapluginsettings.cpp2
-rw-r--r--plugins/strigi/kbfxstrigiplugin.cpp2
-rw-r--r--src/kbfxbutton.cpp18
-rw-r--r--src/kbfxplasmacanvasgroup.cpp12
-rw-r--r--src/kbfxplasmacanvasitem.cpp6
-rw-r--r--src/kbfxplasmacanvasstack.cpp4
-rw-r--r--src/kbfxplasmacanvasview.cpp12
-rw-r--r--src/kbfxplasmaindexview.cpp2
-rw-r--r--src/kbfxspinx.cpp18
-rw-r--r--src/kbfxspinxscrollbar.cpp2
-rw-r--r--src/kbfxtooltip.cpp12
30 files changed, 130 insertions, 134 deletions
diff --git a/configdialog/kbfxconfigapp.cpp b/configdialog/kbfxconfigapp.cpp
index 5f8e49b..1fd63fa 100644
--- a/configdialog/kbfxconfigapp.cpp
+++ b/configdialog/kbfxconfigapp.cpp
@@ -209,7 +209,7 @@ void KbfxConfigApp::btn_DefaultClicked()
{
ConfigInit().readFontrc ( ConfigInit().m_SpinxThemeBasePath,
ConfigInit().m_SpinxThemeName,
- FALSE );
+ false );
emit KbfxConfigDlgFontsChanged();
break;
}
@@ -236,7 +236,7 @@ void KbfxConfigApp::btn_DefaultClicked()
{
ConfigInit().readThemerc ( ConfigInit().m_SpinxThemeBasePath,
ConfigInit().m_SpinxThemeName,
- FALSE );
+ false );
emit KbfxConfigDlgLayoutChanged();
break;
}
diff --git a/configdialog/kbfxconfigdlgabout.ui.h b/configdialog/kbfxconfigdlgabout.ui.h
index 3e7c2f5..f54dbd4 100644
--- a/configdialog/kbfxconfigdlgabout.ui.h
+++ b/configdialog/kbfxconfigdlgabout.ui.h
@@ -87,42 +87,42 @@ bool KbfxConfigDlgAbout::eventFilter ( TQObject *obj, TQEvent *ev )
KbfxTeamInfo->setText ( KbfxMemberTextNookie );
KbfxUnmarkAllPixmaps();
KbfxPixmapLabelNookie->setFrameShape ( TQFrame::WinPanel );
- return TRUE;
+ return true;
}
else if ( obj == KbfxPixmapLabelSiraj )
{
KbfxTeamInfo->setText ( KbfxMemberTextSiraj );
KbfxUnmarkAllPixmaps();
KbfxPixmapLabelSiraj->setFrameShape ( TQFrame::WinPanel );
- return TRUE;
+ return true;
}
else if ( obj == KbfxPixmapLabelNathanael )
{
KbfxTeamInfo->setText ( KbfxMemberTextNathanael );
KbfxUnmarkAllPixmaps();
KbfxPixmapLabelNathanael->setFrameShape ( TQFrame::WinPanel );
- return TRUE;
+ return true;
}
else if ( obj == KbfxPixmapLabelPhobosK )
{
KbfxTeamInfo->setText ( KbfxMemberTextPhobosK );
KbfxUnmarkAllPixmaps();
KbfxPixmapLabelPhobosK->setFrameShape ( TQFrame::WinPanel );
- return TRUE;
+ return true;
}
else if ( obj == KbfxPixmapLabelJohnny )
{
KbfxTeamInfo->setText ( KbfxMemberTextJohnny );
KbfxUnmarkAllPixmaps();
KbfxPixmapLabelJohnny->setFrameShape ( TQFrame::WinPanel );
- return TRUE;
+ return true;
}
else if ( obj == KbfxPixmapLabelEphracis )
{
KbfxTeamInfo->setText ( KbfxMemberTextEphracis );
KbfxUnmarkAllPixmaps();
KbfxPixmapLabelEphracis->setFrameShape ( TQFrame::WinPanel );
- return TRUE;
+ return true;
}
}
@@ -139,13 +139,13 @@ bool KbfxConfigDlgAbout::eventFilter ( TQObject *obj, TQEvent *ev )
{
KbfxTeamInfo->setText("");
- return TRUE;
+ return true;
}
}
*/
return TQWidget::eventFilter ( obj, ev );
-// return FALSE;
+// return false;
}
void KbfxConfigDlgAbout::KbfxUnmarkAllPixmaps()
diff --git a/configdialog/kbfxconfigdlgbutton.ui.h b/configdialog/kbfxconfigdlgbutton.ui.h
index 563456c..0160cd4 100644
--- a/configdialog/kbfxconfigdlgbutton.ui.h
+++ b/configdialog/kbfxconfigdlgbutton.ui.h
@@ -125,12 +125,12 @@ void KbfxConfigDlgButton::ChangeForm()
KbfxButtonToggled ( 1 );
if ( ConfigInit().m_fadeTime == 0 )
- KbfxFadeButton->setChecked ( FALSE );
+ KbfxFadeButton->setChecked ( false );
else
- KbfxFadeButton->setChecked ( TRUE );
- if ( ConfigInit().m_ToolBarResize == TRUE && KbfxResizeKicker->state() == 0 )
+ KbfxFadeButton->setChecked ( true );
+ if ( ConfigInit().m_ToolBarResize && KbfxResizeKicker->state() == 0 )
KbfxResizeKicker->toggle();
- if ( ConfigInit().m_ToolBarResize == FALSE && KbfxResizeKicker->state() == 2 )
+ if ( !ConfigInit().m_ToolBarResize && KbfxResizeKicker->state() == 2 )
KbfxResizeKicker->toggle();
KbfxFadeTime->setText ( TQString::number ( ConfigInit().m_fadeTime ) );
@@ -142,13 +142,13 @@ void KbfxConfigDlgButton::KbfxResizeKickerToggled ( bool )
if ( KbfxResizeKicker->state() == 2 )
{
KbfxResizeKicker->setText ( tr2i18n ( "Panel Resize is 'ON'" ) );
- ConfigInit().m_ToolBarResize = TRUE;
+ ConfigInit().m_ToolBarResize = true;
}
if ( KbfxResizeKicker->state() == 0 )
{
KbfxResizeKicker->setText ( tr2i18n ( "Panel Resize is 'OFF'" ) );
- ConfigInit().m_ToolBarResize = FALSE;
+ ConfigInit().m_ToolBarResize = false;
}
kdDebug() << "Panel Resize is: "
diff --git a/configdialog/kbfxconfigdlgfonts-old.ui.h b/configdialog/kbfxconfigdlgfonts-old.ui.h
index adee2de..d2e8229 100644
--- a/configdialog/kbfxconfigdlgfonts-old.ui.h
+++ b/configdialog/kbfxconfigdlgfonts-old.ui.h
@@ -12,12 +12,12 @@
void KbfxConfigDlgFonts::init()
{
- KbfxFormReady = FALSE;
+ KbfxFormReady = false;
}
void KbfxConfigDlgFonts::ChangeForm()
{
- KbfxFormReady = FALSE;
+ KbfxFormReady = false;
KbfxTheme->setText ( "<p align=left><b>" + ConfigInit().m_SpinxThemeName + "</b></p>" );
KbfxBoldHover->setChecked ( ConfigInit().m_fontHoverBold );
KbfxApplicationColor->setColor ( ConfigInit().m_fontAppNameColor );
@@ -35,7 +35,7 @@ void KbfxConfigDlgFonts::ChangeForm()
KbfxFont_plugin->setFont ( ConfigInit().m_pluginNameFont );
KbfxTooltipColor->setColor ( ConfigInit().m_fontTooltipColor );
KbfxFont_tooltip->setFont ( ConfigInit().m_fontTooltipFont );
- KbfxFormReady = TRUE;
+ KbfxFormReady = true;
}
void KbfxConfigDlgFonts::KbfxApplicationColorSelected ( const TQColor &color )
@@ -117,7 +117,7 @@ void KbfxConfigDlgFonts::KbfxExportFileAction()
"*.*|" + tr2i18n("All files"),
0,
0,
- TRUE);
+ true);
KbfxExportFontRcDialog.setOperationMode(KFileDialog::Saving);
KbfxExportFontRcDialog.setCaption(tr2i18n("Select Folder to export kbfxfontrc file"));
KbfxExportFontRcDialog.setMode(KFile::Directory);
diff --git a/configdialog/kbfxconfigdlglayout.ui.h b/configdialog/kbfxconfigdlglayout.ui.h
index 7644244..d45191b 100644
--- a/configdialog/kbfxconfigdlglayout.ui.h
+++ b/configdialog/kbfxconfigdlglayout.ui.h
@@ -635,7 +635,7 @@ bool KbfxConfigDlgLayout::KbfxMessage()
tr2i18n ( "Prepare" ) );
if ( messageBoxReturn == KMessageBox::Cancel )
- return FALSE;
+ return false;
- return TRUE;
+ return true;
}
diff --git a/configdialog/kbfxconfigdlgplugins.ui.h b/configdialog/kbfxconfigdlgplugins.ui.h
index 9ede1e1..94d5358 100644
--- a/configdialog/kbfxconfigdlgplugins.ui.h
+++ b/configdialog/kbfxconfigdlgplugins.ui.h
@@ -39,7 +39,7 @@ TQStringList KbfxConfigDlgPlugins::KbfxListPlugins ( int panel )
for ( it_available = allPlugins.begin(); it_available != allPlugins.end(); ++it_available )
{
- _not_present = TRUE;
+ _not_present = true;
if ( panel == 0 )
{
for ( it_requested = ConfigInit ().m_pluginsLeft.begin ();
@@ -47,7 +47,7 @@ TQStringList KbfxConfigDlgPlugins::KbfxListPlugins ( int panel )
{
if ( ( *it_available ).contains ( *it_requested ) > 0 )
{
- _not_present = FALSE;
+ _not_present = false;
break;
}
}
@@ -59,7 +59,7 @@ TQStringList KbfxConfigDlgPlugins::KbfxListPlugins ( int panel )
{
if ( ( *it_available ).contains ( *it_requested ) > 0 )
{
- _not_present = FALSE;
+ _not_present = false;
break;
}
}
diff --git a/configdialog/kbfxconfigdlgthemes.ui.h b/configdialog/kbfxconfigdlgthemes.ui.h
index 74d600b..8a0ed37 100644
--- a/configdialog/kbfxconfigdlgthemes.ui.h
+++ b/configdialog/kbfxconfigdlgthemes.ui.h
@@ -14,7 +14,7 @@ KbfxThemeInfo * KbfxConfigDlgThemes::_info_box = 0;
void KbfxConfigDlgThemes::init()
{
- KbfxFormReady = FALSE;
+ KbfxFormReady = false;
img_nopreview = image0;
connect ( this, TQ_SIGNAL ( KbfxThemeDoInstall ( TQString & ) ),
@@ -28,14 +28,14 @@ void KbfxConfigDlgThemes::KbfxDudeAnimationButtonToggled(bool)
{
KbfxAnimationButton->setText(tr2i18n("Animation is ON"));
KbfxAnimationButton->setPaletteBackgroundColor(TQColor(0,255,0));
- ConfigInit().m_SpinxDudeBlink = TRUE;
+ ConfigInit().m_SpinxDudeBlink = true;
}
if(KbfxAnimationButton->state() == 0)
{
KbfxAnimationButton->setText(tr2i18n("Animation is OFF"));
KbfxAnimationButton->setPaletteBackgroundColor(TQColor(221,223,228));
- ConfigInit().m_SpinxDudeBlink = FALSE;
+ ConfigInit().m_SpinxDudeBlink = false;
}
kdDebug() << "SpinxDudeBlink State is:"
@@ -122,7 +122,7 @@ void KbfxConfigDlgThemes::setKbfxThemePreview()
void KbfxConfigDlgThemes::ChangeForm()
{
- KbfxFormReady = FALSE;
+ KbfxFormReady = false;
KbfxURLRequesterThemesPath->setURL ( ConfigInit().m_UserSpinxThemeBasePath );
KbfxThemeList->clear();
@@ -132,7 +132,7 @@ void KbfxConfigDlgThemes::ChangeForm()
<< KbfxThemesData().setThemeList ( ConfigInit().m_UserSpinxThemeBasePath ) [ConfigInit().m_SpinxThemeName]
<< endl;
- KbfxThemeList->setSelected ( KbfxThemeList->findItem ( ConfigInit().m_SpinxThemeName ), TRUE );
+ KbfxThemeList->setSelected ( KbfxThemeList->findItem ( ConfigInit().m_SpinxThemeName ), true );
setKbfxThemePreview();
@@ -145,16 +145,16 @@ void KbfxConfigDlgThemes::ChangeForm()
<< ConfigInit().m_SpinxDudeImageDefault
<< endl;
- KbfxFormReady = TRUE;
+ KbfxFormReady = true;
KbfxShowOldThemes->setChecked ( ConfigInit().m_KbfxShowOldThemes );
KbfxWatch->setChecked ( ConfigInit().m_KbfxWatcher );
/*
- if(ConfigInit().m_SpinxDudeBlink == TRUE && KbfxAnimationButton->state() == 0)
+ if(ConfigInit().m_SpinxDudeBlink && KbfxAnimationButton->state() == 0)
KbfxAnimationButton->toggle();
- if(ConfigInit().m_SpinxDudeBlink == FALSE && KbfxAnimationButton->state() == 2)
+ if(!ConfigInit().m_SpinxDudeBlink && KbfxAnimationButton->state() == 2)
KbfxAnimationButton->toggle();
*/
}
@@ -163,7 +163,7 @@ void KbfxConfigDlgThemes::KbfxDeleteThemeClicked()
{
int messageBoxReturn;
int messageBoxUserResReturn;
- TQString KbfxThemeRcDestination = TDEGlobal::dirs()->saveLocation ( "data", TQString ( "kbfx/themerc/" ), TRUE );
+ TQString KbfxThemeRcDestination = TDEGlobal::dirs()->saveLocation ( "data", TQString ( "kbfx/themerc/" ), true );
KbfxThemeRcDestination.append( ConfigInit().m_SpinxThemeName );
messageBoxReturn = KMessageBox::warningContinueCancel ( 0,
@@ -223,7 +223,7 @@ void KbfxConfigDlgThemes::KbfxInstallThemeClicked()
"*.tar *.tar.bz2 *.tar.gz *.kbfxtheme|" + tr2i18n ( "KBFX theme packages (*.tar, *.tar.bz2, *.tar.gz, *.kbfxtheme)" ),
0,
0,
- TRUE );
+ true );
KbfxInstallDialog.setCaption ( tr2i18n ( "Select KBFX theme package to install" ) );
KbfxInstallDialog.setMode ( KFile::File | KFile::ExistingOnly );
@@ -249,12 +249,12 @@ void KbfxConfigDlgThemes::KbfxThemeInstall ( TQString &installUrl )
const TQString KbfxThemeDestination = TDEGlobal::dirs()->saveLocation ( "data",
TQString ( "kbfx/skins/" ),
- TRUE );
+ true );
kdDebug() << "Copying theme: " << KbfxThemeDestination << endl;
const KArchiveDirectory *KbfxThemeArchiveDir = KbfxThemeArchive.directory();
- KbfxThemeArchiveDir->copyTo ( KbfxThemeDestination, TRUE );
+ KbfxThemeArchiveDir->copyTo ( KbfxThemeDestination, true );
ChangeForm();
}
@@ -265,7 +265,7 @@ void KbfxConfigDlgThemes::KbfxSelectDudeImageClicked()
"image/jpeg image/png image/x-xpm image/gif ",
0,
0,
- TRUE );
+ true );
KbfxDudeImageDialog.setCaption ( tr2i18n ( "Select personal image" ) );
KbfxDudeImageDialog.setMode ( KFile::File | KFile::ExistingOnly );
diff --git a/configdialog/kbfxconfigdlgtooltip.ui.h b/configdialog/kbfxconfigdlgtooltip.ui.h
index 4f55e80..d5891d0 100644
--- a/configdialog/kbfxconfigdlgtooltip.ui.h
+++ b/configdialog/kbfxconfigdlgtooltip.ui.h
@@ -22,14 +22,14 @@ void KbfxConfigDlgTooltip::KbfxTooltipAnimationButtonToggled ( bool )
{
KbfxTooltipAnimationButton->setText ( tr2i18n ( "Turn the animation 'OFF'" ) );
KbfxTooltipAnimationPixmapLabel->setPixmap ( img_on );
- ConfigInit().m_ToolTipAnimation = TRUE;
+ ConfigInit().m_ToolTipAnimation = true;
}
if ( KbfxTooltipAnimationButton->state() == 0 )
{
KbfxTooltipAnimationButton->setText ( tr2i18n ( "Turn the animation 'ON'" ) );
KbfxTooltipAnimationPixmapLabel->setPixmap ( img_off );
- ConfigInit().m_ToolTipAnimation = FALSE;
+ ConfigInit().m_ToolTipAnimation = false;
}
kdDebug() << "Tooltip animation state: "
@@ -52,14 +52,14 @@ void KbfxConfigDlgTooltip::KbfxTooltipOnButtonToggled ( bool )
{
KbfxTooltipOnButton->setText ( tr2i18n ( "Turn the tooltip 'OFF'" ) );
KbfxTooltipOnPixmapLabel->setPixmap ( img_on );
- ConfigInit().m_ToolTip = TRUE;
+ ConfigInit().m_ToolTip = true;
}
if ( KbfxTooltipOnButton->state() == 0 )
{
KbfxTooltipOnButton->setText ( tr2i18n ( "Turn the tooltip 'ON'" ) );
KbfxTooltipOnPixmapLabel->setPixmap ( img_off );
- ConfigInit().m_ToolTip = FALSE;
+ ConfigInit().m_ToolTip = false;
}
@@ -70,16 +70,16 @@ void KbfxConfigDlgTooltip::KbfxTooltipOnButtonToggled ( bool )
void KbfxConfigDlgTooltip::ChangeForm()
{
- if ( ConfigInit().m_ToolTip == TRUE && KbfxTooltipOnButton->state() == 0 )
+ if ( ConfigInit().m_ToolTip && KbfxTooltipOnButton->state() == 0 )
KbfxTooltipOnButton->toggle();
- if ( ConfigInit().m_ToolTip == FALSE && KbfxTooltipOnButton->state() == 2 )
+ if ( !ConfigInit().m_ToolTip && KbfxTooltipOnButton->state() == 2 )
KbfxTooltipOnButton->toggle();
- if ( ConfigInit().m_ToolTipAnimation == TRUE && KbfxTooltipAnimationButton->state() == 0 )
+ if ( ConfigInit().m_ToolTipAnimation && KbfxTooltipAnimationButton->state() == 0 )
KbfxTooltipAnimationButton->toggle();
- if ( ConfigInit().m_ToolTipAnimation == FALSE && KbfxTooltipAnimationButton->state() == 2 )
+ if ( !ConfigInit().m_ToolTipAnimation && KbfxTooltipAnimationButton->state() == 2 )
KbfxTooltipAnimationButton->toggle();
KbfxTooltipTextEdit->setText ( ConfigInit().m_ToolTipText );
diff --git a/kbfxlib/common/kbfxconfig.cpp b/kbfxlib/common/kbfxconfig.cpp
index e321232..75ed103 100644
--- a/kbfxlib/common/kbfxconfig.cpp
+++ b/kbfxlib/common/kbfxconfig.cpp
@@ -26,9 +26,9 @@ KbfxConfig::KbfxConfig()
/* set default configuration values */
/* KBFX internal settings */
- KbfxThemeRcDestination = TDEGlobal::dirs()->saveLocation ( "data", TQString ( "kbfx/themerc/" ), TRUE );
+ KbfxThemeRcDestination = TDEGlobal::dirs()->saveLocation ( "data", TQString ( "kbfx/themerc/" ), true );
KbfxRcPath = TDEGlobal::dirs()->findResource ( "config", "kbfxrc" );
- m_KbfxDeleteOldConf = FALSE;
+ m_KbfxDeleteOldConf = false;
TQString _unspecified = tr2i18n ( "Not Specified" );
TQString path = locate ( "data", "kbfx/skins/default/bg.png" );
path.remove ( "default/bg.png" );
@@ -47,19 +47,19 @@ KbfxConfig::KbfxConfig()
m_UserSpinxThemeBasePathDefault = path;
m_KbfxMenuTypeDefault = "spinx";
- m_ToolBarResizeDefault = FALSE;
- m_KbfxWatcherDefault = TRUE;
- m_KbfxShowOldThemesDefault = FALSE;
+ m_ToolBarResizeDefault = false;
+ m_KbfxWatcherDefault = true;
+ m_KbfxShowOldThemesDefault = false;
/* user(dude) image properties */
- m_SpinxDudeBlinkDefault = FALSE;
+ m_SpinxDudeBlinkDefault = false;
KUser *user = new KUser();
m_SpinxDudeImageDefault = locate ( "data", user->homeDir () + "/.face.icon" );
delete user;
/* tooltip properties */
- m_ToolTipDefault = FALSE;
- m_ToolTipAnimationDefault = TRUE;
+ m_ToolTipDefault = false;
+ m_ToolTipAnimationDefault = true;
m_ToolTipTextDefault = "Application menu";
m_ToolTipAvatarDefault = path + "default/butterfly.png";
m_SpinxTooltipDudeboxDefault = path + "default/tooltip_dudebox.png";
@@ -87,7 +87,7 @@ KbfxConfig::KbfxConfig()
m_faceIconWDefault = 65;
m_userNamePos_xDefault = 130;
m_userNamePos_yDefault = 32;
- m_faceBoxHideTextDefault = FALSE;
+ m_faceBoxHideTextDefault = false;
/* top bar properties */
m_topBar_xDefault = 0;
@@ -118,7 +118,7 @@ KbfxConfig::KbfxConfig()
m_searchBox_wDefault = 240;
m_searchBox_xDefault = 130;
m_searchBox_yDefault = 48;
- m_searchBox_staticDefault = TRUE;
+ m_searchBox_staticDefault = true;
/* item view properties */
m_itemView_hDefault = 380;
@@ -133,9 +133,9 @@ KbfxConfig::KbfxConfig()
/* KBFX misc properties */
m_userMenuHeightDefault = 513;
m_userMenuWidthDefault = 504;
- m_startHiddenDefault = FALSE;
+ m_startHiddenDefault = false;
m_fadeTimeDefault = 75;
- m_noCommentsDefault = FALSE;
+ m_noCommentsDefault = false;
m_commentMargineDefault = 66;
m_iconSizeDefault = 32;
@@ -155,7 +155,7 @@ KbfxConfig::KbfxConfig()
m_pluginNameColorDefault = TQColor ( 0,0,0 );
m_pluginNameFontDefault = TQFont ( "Arial", 8, TQFont::Normal );
m_lineColorDefault = TQColor ( 255,220,125 );
- m_fontHoverBoldDefault = FALSE;
+ m_fontHoverBoldDefault = false;
/* set default theme info values */
m_InfoVersionDefault = _unspecified;
@@ -300,7 +300,7 @@ void KbfxConfig::readThemeInfo ( TQString &themePath, TQString &themeName )
TQFileInfo * info_theme = new TQFileInfo ( themePath + themeName + "/" + m_KbfxThemesVersion );
TDEConfig * infoconfig = 0;
- if ( info_theme->exists() == TRUE )
+ if ( info_theme->exists() )
{
infoconfig = new TDEConfig ( info_theme->absFilePath() );
infoconfig->setGroup ( "ThemeGeneral" );
@@ -329,7 +329,7 @@ void KbfxConfig::read()
TDEConfig *conf = confskel->config();
- TQString __default = TDEGlobal::iconLoader()->iconPath ( "kbfx", ( int ) TDEIcon::Desktop, FALSE );
+ TQString __default = TDEGlobal::iconLoader()->iconPath ( "kbfx", ( int ) TDEIcon::Desktop, false );
conf->setGroup ( "KbfxGeneral" );
m_KbfxGeneralVersion = conf->readNumEntry ( "Version", 0 );
@@ -396,7 +396,7 @@ void KbfxConfig::read()
if ( m_KbfxGeneralVersion < m_KbfxGeneralVersionDefault )
{
m_KbfxGeneralVersion = m_KbfxGeneralVersionDefault;
- m_KbfxDeleteOldConf = TRUE;
+ m_KbfxDeleteOldConf = true;
}
}
@@ -417,13 +417,13 @@ void KbfxConfig::readFontrc ( TQString & themePath, TQString & themeName, bool u
TDEConfig * fontconfig = 0;
/* if theme kbfxfontrc exists, make its configuration as default values - prefer users' configuration */
- if ( info_theme->exists() == TRUE || info->exists() == TRUE )
+ if ( info_theme->exists() || info->exists() )
{
- if ( info_theme->exists() == TRUE && m_KbfxGeneralVersion >= m_KbfxGeneralVersionDefault && user_rc )
+ if ( info_theme->exists() && m_KbfxGeneralVersion >= m_KbfxGeneralVersionDefault && user_rc )
{
_abs_path = info_theme->absFilePath();
}
- else if ( info->exists() == TRUE || m_KbfxGeneralVersion < m_KbfxGeneralVersionDefault )
+ else if ( info->exists() || m_KbfxGeneralVersion < m_KbfxGeneralVersionDefault )
{
_abs_path = info->absFilePath();
}
@@ -501,7 +501,7 @@ void KbfxConfig::readThemerc ( TQString &themePath, TQString &themeName, bool us
/* use theme's default dude image if any */
TDEConfigSkeleton *confskel = new TDEConfigSkeleton ( TQString::fromLatin1 ( "kbfxrc" ) );
TDEConfig *conf = confskel->config();
- TQString __default = TDEGlobal::iconLoader()->iconPath ( "kbfx", ( int ) TDEIcon::Desktop, FALSE );
+ TQString __default = TDEGlobal::iconLoader()->iconPath ( "kbfx", ( int ) TDEIcon::Desktop, false );
if ( m_SpinxDudeImageDefault == TQString() || !TDEStandardDirs::exists ( m_SpinxDudeImageDefault ) )
{
@@ -532,13 +532,13 @@ void KbfxConfig::readThemerc ( TQString &themePath, TQString &themeName, bool us
TDEConfig *layoutconfig = 0;
/* if theme kbfxlayoutrc exists, make its configuration as default values - prefer users' configuration */
- if ( info_theme->exists() == TRUE || info->exists() == TRUE )
+ if ( info_theme->exists() || info->exists() )
{
- if ( info_theme->exists() == TRUE && m_KbfxGeneralVersion >= m_KbfxGeneralVersionDefault && user_rc )
+ if ( info_theme->exists() && m_KbfxGeneralVersion >= m_KbfxGeneralVersionDefault && user_rc )
{
_abs_path = info_theme->absFilePath();
}
- else if ( info->exists() == TRUE || m_KbfxGeneralVersion < m_KbfxGeneralVersionDefault )
+ else if ( info->exists() || m_KbfxGeneralVersion < m_KbfxGeneralVersionDefault )
{
_abs_path = info->absFilePath();
}
@@ -708,7 +708,7 @@ void KbfxConfig::write()
TDEConfig *conf = confskel->config();
conf->setGroup ( "KDE Action Restrictions" );
- conf->writeEntry ( "warn_unwritable_config", FALSE );
+ conf->writeEntry ( "warn_unwritable_config", false );
conf->setGroup ( "KbfxGeneral" );
conf->writeEntry ( "Version", m_KbfxGeneralVersion );
diff --git a/kbfxlib/common/kbfxconfig.h b/kbfxlib/common/kbfxconfig.h
index 13b8456..77f09ee 100644
--- a/kbfxlib/common/kbfxconfig.h
+++ b/kbfxlib/common/kbfxconfig.h
@@ -47,8 +47,8 @@ class KbfxConfig
{
public:
void read();
- void readFontrc ( TQString &themePath, TQString &themeName, bool user_rc=TRUE );
- void readThemerc ( TQString &themePath, TQString &themeName, bool user_rc=TRUE );
+ void readFontrc ( TQString &themePath, TQString &themeName, bool user_rc=true );
+ void readThemerc ( TQString &themePath, TQString &themeName, bool user_rc=true );
void readThemeInfo ( TQString &themePath, TQString &themeName );
void setDefault();
void setThemeDefault();
diff --git a/kbfxlib/common/kbfxfontchooser.cpp b/kbfxlib/common/kbfxfontchooser.cpp
index a95d120..a1cbc8c 100644
--- a/kbfxlib/common/kbfxfontchooser.cpp
+++ b/kbfxlib/common/kbfxfontchooser.cpp
@@ -26,7 +26,7 @@ KBFXFontChooser::KBFXFontChooser ( TQWidget *parent, const char *name )
TQHBoxLayout* layout = new TQHBoxLayout ( this, 0, KDialog::spacingHint() );
m_label = new TQLabel ( this, "fontLabel" );
- m_label->setSizePolicy ( TQSizePolicy::Expanding, TQSizePolicy::Fixed, TRUE);
+ m_label->setSizePolicy ( TQSizePolicy::Expanding, TQSizePolicy::Fixed, true);
// m_label->setFrameShape ( TQFrame::StyledPanel );
// m_label->setFrameShadow ( TQFrame::Sunken );
@@ -36,7 +36,7 @@ KBFXFontChooser::KBFXFontChooser ( TQWidget *parent, const char *name )
m_label->setMaximumHeight ( m_button -> height() );
m_label->setMinimumHeight ( m_button -> height() );
TQString fontText = i18n ( "Font..." );
-// m_button->setSizePolicy ( TQSizePolicy::Minimum, TQSizePolicy::Minimum, TRUE);
+// m_button->setSizePolicy ( TQSizePolicy::Minimum, TQSizePolicy::Minimum, true);
m_button->setText ( fontText );
TQIconSet iconSet = SmallIconSet ( TQString::fromLatin1 ( "fonts" ) );
TQPixmap pixmap = iconSet.pixmap ( TQIconSet::Small, TQIconSet::Normal );
diff --git a/kbfxlib/common/kbfxkiodownload.cpp b/kbfxlib/common/kbfxkiodownload.cpp
index 7101a7f..2c81bae 100644
--- a/kbfxlib/common/kbfxkiodownload.cpp
+++ b/kbfxlib/common/kbfxkiodownload.cpp
@@ -41,7 +41,7 @@ void KbfxKioDownload::KbfxKioDownloadStart ( TQString &url )
TDEIO::Job *download_job = TDEIO::file_copy ( KURL ( url ),
KURL ( m_KbfxBrowserTmpFile ),
-1,
- TRUE );
+ true );
connect ( download_job, TQ_SIGNAL ( result ( TDEIO::Job* ) ),
this, TQ_SLOT ( KbfxBrowserResult ( TDEIO::Job * ) ) );
}
diff --git a/kbfxlib/common/kbfxpixmaplabel.cpp b/kbfxlib/common/kbfxpixmaplabel.cpp
index a9f3dc4..c3affd6 100644
--- a/kbfxlib/common/kbfxpixmaplabel.cpp
+++ b/kbfxlib/common/kbfxpixmaplabel.cpp
@@ -28,9 +28,9 @@ KbfxPixmapLabel::KbfxPixmapLabel ( TQWidget *parent, const char *name, WFlags fl
// setFrameShadow(TQLabel::Sunken);
setFrameShape ( TQLabel::LineEditPanel );
setFrameShadow ( TQLabel::Plain );
- setScaledContents ( FALSE );
+ setScaledContents ( false );
setAlignment ( int ( TQLabel::WordBreak | TQLabel::AlignCenter ) );
- setMouseTracking ( TRUE );
+ setMouseTracking ( true );
}
KbfxPixmapLabel::~KbfxPixmapLabel()
@@ -42,7 +42,7 @@ void KbfxPixmapLabel::normalize ()
{
setFrameShape ( TQLabel::NoFrame );
setFrameShadow ( TQLabel::Plain );
- setScaledContents ( FALSE );
+ setScaledContents ( false );
setAlignment ( int ( TQLabel::WordBreak | TQLabel::AlignCenter ) );
}
diff --git a/kbfxlib/common/kbfxplasmapixmapprovider.cpp b/kbfxlib/common/kbfxplasmapixmapprovider.cpp
index 106f63b..0ca0dfd 100644
--- a/kbfxlib/common/kbfxplasmapixmapprovider.cpp
+++ b/kbfxlib/common/kbfxplasmapixmapprovider.cpp
@@ -62,9 +62,9 @@ bool
KbfxPlasmaPixmapProvider::PixmapPathCheck ( TQString pixmapPath )
{
if ( TQPixmap ( pixmapPath ).isNull() )
- return FALSE;
+ return false;
- return TRUE;
+ return true;
}
void
diff --git a/kbfxlib/common/kbfxpushbutton.cpp b/kbfxlib/common/kbfxpushbutton.cpp
index 35acf17..78522f0 100644
--- a/kbfxlib/common/kbfxpushbutton.cpp
+++ b/kbfxlib/common/kbfxpushbutton.cpp
@@ -25,7 +25,7 @@ KbfxPushButton::KbfxPushButton ( TQWidget *parent, const char *name )
: KPushButton ( parent, name )
{
setText ( "P R E V I E W" );
- setToggleButton ( TRUE );
+ setToggleButton ( true );
setFocusPolicy ( TQWidget::NoFocus );
}
diff --git a/kbfxlib/common/kbfxthemesdata.cpp b/kbfxlib/common/kbfxthemesdata.cpp
index 5247e9d..174d8f9 100644
--- a/kbfxlib/common/kbfxthemesdata.cpp
+++ b/kbfxlib/common/kbfxthemesdata.cpp
@@ -65,12 +65,12 @@ ThemesMap KbfxThemesData::setThemeList ( TQString path )
f = new TQFileInfo ( d, fi->fileName() + "/" + m_KbfxThemesVersion );
if ( m_KbfxShowOldThemes )
{
- m_themesMap[fi->fileName() ] = ( fi->dirPath ( TRUE ) ).append ( "/" );
+ m_themesMap[fi->fileName() ] = ( fi->dirPath ( true ) ).append ( "/" );
}
else
{
if ( f->exists () )
- m_themesMap[fi->fileName() ] = ( fi->dirPath ( TRUE ) ).append ( "/" );
+ m_themesMap[fi->fileName() ] = ( fi->dirPath ( true ) ).append ( "/" );
}
}
++it;
diff --git a/kbfxlib/data/kbfxdatagroup.cpp b/kbfxlib/data/kbfxdatagroup.cpp
index 93a9c1c..a321f8e 100644
--- a/kbfxlib/data/kbfxdatagroup.cpp
+++ b/kbfxlib/data/kbfxdatagroup.cpp
@@ -47,7 +47,7 @@ KbfxDataGroup::lookup ( TQString str )
Data::Iterator it;
for ( it = m_data.begin();it!=m_data.end();++it )
{
- if ( ( *it )->lookup ( str ) == true )
+ if ( ( *it )->lookup ( str ) )
{
_matching.prepend ( * ( *it ) );
}
diff --git a/kbfxlib/data/kbfxplasmapluginloader.cpp b/kbfxlib/data/kbfxplasmapluginloader.cpp
index 712813e..efc25ed 100644
--- a/kbfxlib/data/kbfxplasmapluginloader.cpp
+++ b/kbfxlib/data/kbfxplasmapluginloader.cpp
@@ -152,7 +152,7 @@ KbfxPlasmaPluginLoader::scanPlugins()
for ( it = pluginMap().begin(); it != pluginMap().end();++it )
{
- if ( it.data()->status() == false )
+ if ( !it.data()->status() )
plugins.append ( it.data()->name() );
}
return plugins;
diff --git a/plugins/applications/kbfxplasmadataplugin.cpp b/plugins/applications/kbfxplasmadataplugin.cpp
index 14b0011..dca0b2d 100644
--- a/plugins/applications/kbfxplasmadataplugin.cpp
+++ b/plugins/applications/kbfxplasmadataplugin.cpp
@@ -44,7 +44,7 @@ browseApp ( KServiceGroup::Ptr service, KbfxDataGroupList * glist,
KServiceGroup::List list = service->entries ( true, true, false, true );
- if ( service->noDisplay () == true )
+ if ( service->noDisplay () )
return;
/*
@@ -198,7 +198,7 @@ search ( TQString _keyword )
{
if ( s == NULL )
continue;
- if ( (*s)->noDisplay () == true )
+ if ( (*s)->noDisplay () )
continue;
TQString *sPtr = new TQString ();
diff --git a/plugins/settings/kbfxplasmadatapluginsettings.cpp b/plugins/settings/kbfxplasmadatapluginsettings.cpp
index 19458c0..aeda5c0 100644
--- a/plugins/settings/kbfxplasmadatapluginsettings.cpp
+++ b/plugins/settings/kbfxplasmadatapluginsettings.cpp
@@ -44,7 +44,7 @@ browseApp ( KServiceGroup::Ptr service, KbfxDataGroupList * glist,
KServiceGroup::List list = service->entries ( true, true, false, true );
/*
- if (service->noDisplay () == true)
+ if (service->noDisplay ())
return;
diff --git a/plugins/strigi/kbfxstrigiplugin.cpp b/plugins/strigi/kbfxstrigiplugin.cpp
index fbaff4b..11030ca 100644
--- a/plugins/strigi/kbfxstrigiplugin.cpp
+++ b/plugins/strigi/kbfxstrigiplugin.cpp
@@ -145,7 +145,7 @@ search ( TQString _keyword )
socket.setSocketPath ( ( const char * ) socketpath.utf8 () );
bool ok = socket.query ( _keyword.ascii (), 5, 0 );
- if ( ok == true )
+ if ( ok )
{
while ( !socket.statusChanged () )
{
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;
}
diff --git a/src/kbfxplasmacanvasgroup.cpp b/src/kbfxplasmacanvasgroup.cpp
index 15c47b3..1a28f08 100644
--- a/src/kbfxplasmacanvasgroup.cpp
+++ b/src/kbfxplasmacanvasgroup.cpp
@@ -41,7 +41,7 @@ KbfxPlasmaCanvasGroup::~KbfxPlasmaCanvasGroup ()
// delete (*it);
// itemListMap ().remove (*it);
if ( ( *it ) != 0 )
- if ( deleteItem ( ( *it ) ) == false )
+ if ( !deleteItem ( ( *it ) ) )
{
tqDebug ( "Deleting failed" );
}
@@ -104,7 +104,7 @@ KbfxPlasmaCanvasGroup::addItem ( KbfxPlasmaCanvasAbstractItem * it )
}
for ( ItemListIter itr ( m_itemList ); *itr; ++itr )
{
- if ( ( *itr )->lookup ( it->name() ) == true )
+ if ( ( *itr )->lookup ( it->name() ) )
{
tqDebug ( "Adding Failed Due to Item already exisits" );
return false;
@@ -190,7 +190,7 @@ KbfxPlasmaCanvasGroup::showAll()
{
for ( ItemListIter it ( m_itemList ); *it; ++it )
{
- if ( ( *it )->type() == KbfxPlasmaCanvasAbstractItem::SEPARATOR || m_shaded == false )
+ if ( ( *it )->type() == KbfxPlasmaCanvasAbstractItem::SEPARATOR || !m_shaded )
( *it )->show();
}
@@ -201,7 +201,7 @@ KbfxPlasmaCanvasGroup::show()
{
for ( ItemListIter it ( m_itemList ); *it; ++it )
{
- if ( ( *it )->type() == KbfxPlasmaCanvasAbstractItem::SEPARATOR || m_shaded == false )
+ if ( ( *it )->type() == KbfxPlasmaCanvasAbstractItem::SEPARATOR || !m_shaded )
( *it )->show();
}
m_visible = true;
@@ -210,7 +210,7 @@ KbfxPlasmaCanvasGroup::show()
void
KbfxPlasmaCanvasGroup::shade ()
{
- if ( m_shaded == false )
+ if ( !m_shaded )
{
emit this->groupShade ( this->groupID() );
@@ -223,7 +223,7 @@ KbfxPlasmaCanvasGroup::shade ()
m_shaded = true;
return;
}
- else if ( m_shaded == true )
+ else if ( m_shaded )
{
int _shadeby = 0;
int _firstItemHeight=0;
diff --git a/src/kbfxplasmacanvasitem.cpp b/src/kbfxplasmacanvasitem.cpp
index 0c18256..b65959e 100644
--- a/src/kbfxplasmacanvasitem.cpp
+++ b/src/kbfxplasmacanvasitem.cpp
@@ -266,7 +266,7 @@ KbfxPlasmaCanvasItem::drawContent ( TQPainter * pe )
m_height = cp->height();
m_width = cp->width();
//Draw the Background
- if ( m_skined == true )
+ if ( m_skined )
{
pe->drawPixmap ( this->boundingRect (), *cp );
@@ -314,9 +314,9 @@ KbfxPlasmaCanvasItem::drawContent ( TQPainter * pe )
if ( this->type() == EXECUTABLE )
{
pe->setPen ( m_fontAppNameColor );
- if ( m_noComments == false )
+ if ( !m_noComments )
{
- if ( m_isCurrent && m_boldFonts == true ) { _font->setBold ( true );pe->setFont ( *_font ); }
+ if ( m_isCurrent && m_boldFonts ) { _font->setBold ( true );pe->setFont ( *_font ); }
pe->drawText ( *rectTop, TQt::AlignLeft| TQt::AlignBottom ,TQString ( m_labelText ), -1, &tmp );
pe->setPen ( m_lineColor );
pe->drawLine ( m_margin, ( int ) y() + rectTop->height(), ( int ) cp->width() - 2, ( int ) y() + rectTop->height() );
diff --git a/src/kbfxplasmacanvasstack.cpp b/src/kbfxplasmacanvasstack.cpp
index 839867d..8278939 100644
--- a/src/kbfxplasmacanvasstack.cpp
+++ b/src/kbfxplasmacanvasstack.cpp
@@ -28,7 +28,7 @@ KbfxPlasmaCanvasStack::KbfxPlasmaCanvasStack()
m_count = 0;
m_height = 0;
m_width = 0;
- m_groupChain.setAutoDelete ( TRUE );
+ m_groupChain.setAutoDelete ( true );
m_name = "Unset:Faulty plugin";
}
@@ -84,7 +84,7 @@ bool
KbfxPlasmaCanvasStack::contains ( TQString name )
{
//FIXME:Depricated Data Structure Needs fixing
- if ( m_dict.contains ( name ) == true )
+ if ( m_dict.contains ( name ) )
return true;
else
return false;
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 () );
diff --git a/src/kbfxplasmaindexview.cpp b/src/kbfxplasmaindexview.cpp
index cba3b69..12b2fea 100644
--- a/src/kbfxplasmaindexview.cpp
+++ b/src/kbfxplasmaindexview.cpp
@@ -30,7 +30,7 @@ KbfxPlasmaIndexView::KbfxPlasmaIndexView ( TQWidget * parent, const char *name,
m_itemStack = new KbfxPlasmaCanvasStack ();
m_pluginLoaded = "";
m_itemStack->addGroup ( m_itemGroupList );
- viewport ()->setMouseTracking ( TRUE );
+ viewport ()->setMouseTracking ( true );
m_currentPos = TQPoint ( 0, 0 );
m_mousePollTimer = new TQTimer ( this );
diff --git a/src/kbfxspinx.cpp b/src/kbfxspinx.cpp
index 7c02679..7eec040 100644
--- a/src/kbfxspinx.cpp
+++ b/src/kbfxspinx.cpp
@@ -23,7 +23,7 @@
#include "kbfxspinx.h"
-bool KbfxSpinx::m_horizontal_position = TRUE;
+bool KbfxSpinx::m_horizontal_position = true;
KbfxSpinx::KbfxSpinx ( const TQString& configFile, Type type, int actions, TQWidget *parent, const char *name )
: KPanelApplet ( configFile, type, actions, parent, name ),DCOPObject ( "KBFXInterface" )
@@ -81,7 +81,7 @@ void KbfxSpinx::createKbfx()
l_path.append(l_user->loginName());
l_path.append("/");
l_watch->addDir(l_path);
- l_watch->startScan( TRUE, FALSE);
+ l_watch->startScan( true, false);
connect ( l_watch, TQ_SIGNAL ( dirty(const TQString&) ),
this, TQ_SLOT ( dirtyReaload(const TQString&) ) );
delete l_user;
@@ -220,7 +220,7 @@ void KbfxSpinx::showKmenu()
if ( !m_dcopClient->
call ( "kicker", "kicker", "popupKMenu(TQPoint)", data, replytype, rdata,
- FALSE, -1 ) )
+ false, -1 ) )
{
kdWarning ()
<< "**KBFX-APPLET-FATAL_ERROR:Could not send DCOP command"
@@ -261,13 +261,13 @@ int KbfxSpinx::widthForHeight ( int height ) const
if ( width_for_height != height || !m_horizontal_position )
{
if ( m_kicker_auto_adjust )
- kbfxBtn->readjust( TRUE ); // Readjust for height
- KbfxButton::m_sizeHeight = TRUE;
+ kbfxBtn->readjust( true ); // Readjust for height
+ KbfxButton::m_sizeHeight = true;
KbfxButton::m_size = height;
kbfxBtn->loadSkins();
width_for_height = height;
}
- m_horizontal_position = TRUE;
+ m_horizontal_position = true;
return kbfxBtn->width();
}
@@ -277,13 +277,13 @@ int KbfxSpinx::heightForWidth ( int width ) const
if ( height_for_width != width || m_horizontal_position)
{
if ( m_kicker_auto_adjust )
- kbfxBtn->readjust( FALSE ); // Readjust for width
- KbfxButton::m_sizeHeight = FALSE;
+ kbfxBtn->readjust( false ); // Readjust for width
+ KbfxButton::m_sizeHeight = false;
KbfxButton::m_size = width;
kbfxBtn->loadSkins();
height_for_width = width;
}
- m_horizontal_position = FALSE;
+ m_horizontal_position = false;
return kbfxBtn->height();
}
diff --git a/src/kbfxspinxscrollbar.cpp b/src/kbfxspinxscrollbar.cpp
index eb6a174..e3abce8 100644
--- a/src/kbfxspinxscrollbar.cpp
+++ b/src/kbfxspinxscrollbar.cpp
@@ -61,7 +61,7 @@ KbfxSpinxScrollBar::paintEvent ( TQPaintEvent * pe )
p.drawPixmap ( TQRect ( 0, 0, m_normal.width (), m_normal.height () ),
m_normal );
p.setPen ( TQColor ( 255,255,255 ) );
- if ( m_pressed == false )
+ if ( !m_pressed )
p.setBrush ( TQColor ( 255,255,255 ) );
else
p.setBrush ( TQColor ( 0,0,0 ) );
diff --git a/src/kbfxtooltip.cpp b/src/kbfxtooltip.cpp
index 7c0b1aa..6ff2d89 100644
--- a/src/kbfxtooltip.cpp
+++ b/src/kbfxtooltip.cpp
@@ -165,9 +165,9 @@ KbfxToolTip::setStartPos ( int _x_, int _y_ )
if ( _animate )
{
_logo_move_x = 0;
- _hide_timer->start ( 10000, TRUE );
- _move_timer->start ( _agent_anim->speed (), FALSE );
- _update_timer->start ( 2, FALSE );
+ _hide_timer->start ( 10000, true );
+ _move_timer->start ( _agent_anim->speed (), false );
+ _update_timer->start ( 2, false );
}
move ( _x, _y );
@@ -283,21 +283,21 @@ KbfxToolTip::paintEvent ( TQPaintEvent * pe )
TQPixmap ( TQImage (ConfigInit ().m_SpinxTooltipLogo ) ) );
}
- let->setBold ( TRUE );
+ let->setBold ( true );
let->setPointSize ( 10 );
p.setFont ( *let );
p.setPen ( TQColor ( 61, 94, 129 ) );
p.drawText ( _dude_box.width () + 15, 30, TQString("KBFX") );
p.setPen ( TQColor ( 0, 0, 0 ) );
- let->setBold ( FALSE );
+ let->setBold ( false );
let->setPointSize ( 8 );
p.setFont ( *let );
p.drawText ( ( _animate ) ? _dude_box.width () + 50 : _dude_box.width () + 4,
_dude_box.height () + 30, TQString ( "Version " ).append ( APPLICATION_VERSION ) );
p.setPen ( ConfigInit ().m_fontTooltipColor );
- let->setBold ( TRUE );
+ let->setBold ( true );
let->setPointSize ( 8 );
p.setFont ( *let );