Replace TRUE/FALSE with boolean values true/false

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/19/head
Michele Calgaro 9 months ago
parent b8241b6a0c
commit f05a30040f
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -440,7 +440,7 @@ TQString BatchRenamer::findNumbers( TQString text, int count, int i )
countervalues.start = m_index;
countervalues.step = m_step;
if( text.contains( "#", FALSE ) <= 0 )
if( text.contains( "#", false ) <= 0 )
return text;
pos = text.find("#", pos);
@ -538,10 +538,10 @@ TQString BatchRenamer::findBrackets( TQString oldname, TQString text, int i )
int num, pos = -1, a;
TQString token;
if( text.contains("]", FALSE) <= 0 || text.isEmpty() )
if( text.contains("]", false) <= 0 || text.isEmpty() )
return text;
num = text.contains("[", FALSE);
num = text.contains("[", false);
if(num <= 0 )
return text;

@ -74,7 +74,7 @@ HelpDialog::HelpDialog( HelpDialogData* data, TQWidget* parent,
setCaption( i18n( "Help" ) );
HelpDialogLayout = new TQVBoxLayout( this, 11, 6, "HelpDialogLayout");
comboHeadline = new TQComboBox( FALSE, this, "comboHeadline" );
comboHeadline = new TQComboBox( false, this, "comboHeadline" );
HelpDialogLayout->addWidget( comboHeadline );
list = new TDEListView( this, "list" );

@ -78,7 +78,7 @@ class HelpDialog : public TQDialog
public:
HelpDialog( HelpDialogData* data, TQWidget* parent = 0,
const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
const char* name = 0, bool modal = false, WFlags fl = 0 );
~HelpDialog();
inline void setLineEdit( TQLineEdit* lineedit );

@ -206,7 +206,7 @@ void KMyListBox::viewportMousePressEvent( TQMouseEvent* e )
TQListBoxItem *i = itemAt( p );
if ( i ) {
presspos = e->pos();
mousePressed = TRUE;
mousePressed = true;
}
}
}
@ -214,7 +214,7 @@ void KMyListBox::viewportMousePressEvent( TQMouseEvent* e )
void KMyListBox::viewportMouseMoveEvent( TQMouseEvent* e )
{
if ( mousePressed && ( presspos - e->pos() ).manhattanLength() > TDEApplication::startDragDistance() ) {
mousePressed = FALSE;
mousePressed = false;
TQListBoxItem *item = itemAt( presspos );
if ( item ) {
TQStringList source = text( index( item ) );
@ -231,7 +231,7 @@ void KMyListBox::viewportMouseMoveEvent( TQMouseEvent* e )
void KMyListBox::viewportMouseReleaseEvent( TQMouseEvent* e )
{
mousePressed = FALSE;
mousePressed = false;
TDEListBox::viewportMouseReleaseEvent( e );
}

@ -555,14 +555,14 @@ void KRenameImpl::setupFileTab1()
labelDot->setText("<b>.</b>");
extemplate = new KMyHistoryCombo( true, tab, "ExTemplate" );
extemplate->setEnabled( FALSE );
extemplate->setEnabled( false );
buttonHelp = new KPushButton( i18n("&Functions..."), tab );
buttonHelp->setIconSet( SmallIcon("help") );
checkExtension = new TQCheckBox( tab );
checkExtension->setText( i18n( "&Use extension of the input file" ) );
checkExtension->setChecked( TRUE );
checkExtension->setChecked( true );
comboExtension = new KComboBox( false, tab );

@ -76,7 +76,7 @@ void MyPermPlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
Layout0 = new TQVBoxLayout( 0, 0, 6 );
groupPermission = new TQGroupBox ( i18n("Access permissions"), w );
groupPermission->setEnabled( FALSE );
groupPermission->setEnabled( false );
gl = new TQGridLayout (groupPermission, 6, 6, 15);
gl->addRowSpacing(0, 10);
@ -125,17 +125,17 @@ void MyPermPlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
permBox[row][col] = cb;
gl->addWidget (permBox[row][col], row+2, col+1);
permBox[row][0]->setChecked( TRUE );
permBox[row][0]->setChecked( true );
}
}
permBox[0][1]->setChecked( TRUE );
permBox[0][1]->setChecked( true );
gl->setColStretch(6, 10);
checkOwner = new TQCheckBox( i18n("Change &Owner"), w );
groupOwner = new TQGroupBox ( i18n("Ownership"), w );
groupOwner->setEnabled( FALSE );
groupOwner->setEnabled( false );
groupOwner->setColumnLayout(0, TQt::Vertical );
groupOwner->layout()->setSpacing( 6 );
groupOwner->layout()->setMargin( 11 );

Loading…
Cancel
Save