Replace TRUE/FALSE with boolean values true/false

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/24/head
Michele Calgaro 5 months ago
parent a132037910
commit 8f75c0362c
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -161,7 +161,7 @@ void ConfWizard::setupPage3()
Layout5_2->addWidget( buttonCreate ); Layout5_2->addWidget( buttonCreate );
buttonExample = new KPushButton( page_3, "buttonExample" ); buttonExample = new KPushButton( page_3, "buttonExample" );
buttonExample->setEnabled( FALSE ); buttonExample->setEnabled( false );
buttonExample->setText( i18n( "&Add Example Data" ) ); buttonExample->setText( i18n( "&Add Example Data" ) );
Layout5_2->addWidget( buttonExample ); Layout5_2->addWidget( buttonExample );
TQSpacerItem* spacer_6 = new TQSpacerItem( 0, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); TQSpacerItem* spacer_6 = new TQSpacerItem( 0, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding );

@ -130,12 +130,12 @@ DefinitionDialog::DefinitionDialog( TQWidget* parent, const char* name, bool mo
Layout17->addLayout( Layout13 ); Layout17->addLayout( Layout13 );
Layout14 = new TQVBoxLayout( 0, 0, 6, "Layout14"); Layout14 = new TQVBoxLayout( 0, 0, 6, "Layout14");
comboProducer = new KComboBox( FALSE, this, "comboProducer" ); comboProducer = new KComboBox( false, this, "comboProducer" );
comboProducer->setEditable( TRUE ); comboProducer->setEditable( true );
Layout14->addWidget( comboProducer ); Layout14->addWidget( comboProducer );
comboType = new KComboBox( FALSE, this, "type" ); comboType = new KComboBox( false, this, "type" );
comboType->setEditable( TRUE ); comboType->setEditable( true );
Layout14->addWidget( comboType ); Layout14->addWidget( comboType );
editWidth = new KRestrictedLine( this, "editWidth" ); editWidth = new KRestrictedLine( this, "editWidth" );

@ -66,8 +66,8 @@ NewLabel::NewLabel( TQWidget* parent, const char* name, bool change, WFlags fl
TextLabel3 = new TQLabel( group1, "TextLabel3" ); TextLabel3 = new TQLabel( group1, "TextLabel3" );
TextLabel3->setText( i18n( "Type:" ) ); TextLabel3->setText( i18n( "Type:" ) );
comboProducer = new KComboBox( FALSE, group1, "comboProducer" ); comboProducer = new KComboBox( false, group1, "comboProducer" );
comboType = new KComboBox( FALSE, group1, "comboType" ); comboType = new KComboBox( false, group1, "comboType" );
checkEmpty = new TQCheckBox( i18n("&Start with an empty label"), group1 ); checkEmpty = new TQCheckBox( i18n("&Start with an empty label"), group1 );
checkEmpty->setEnabled( !change ); checkEmpty->setEnabled( !change );

@ -38,7 +38,7 @@ class NewLabel : public TQDialog
TQ_OBJECT TQ_OBJECT
public: public:
NewLabel( TQWidget* parent = 0, const char* name = 0, bool change = FALSE, WFlags fl = 0 ); NewLabel( TQWidget* parent = 0, const char* name = 0, bool change = false, WFlags fl = 0 );
~NewLabel(); ~NewLabel();
int labelId() const { return curid; } int labelId() const { return curid; }

@ -138,7 +138,7 @@ PropertyRotation::PropertyRotation( TQWidget* parent )
: PropertyWidget( parent ) : PropertyWidget( parent )
{ {
TQLabel* label = new TQLabel( i18n("&Rotation:"), this ); TQLabel* label = new TQLabel( i18n("&Rotation:"), this );
comboRotation = new KComboBox( FALSE, this ); comboRotation = new KComboBox( false, this );
label->setBuddy( comboRotation ); label->setBuddy( comboRotation );
comboRotation->insertItem( i18n("0") ); comboRotation->insertItem( i18n("0") );
@ -211,7 +211,7 @@ PropertyBarcode::PropertyBarcode( TokenProvider* token, TQWidget* parent )
TQLabel* TextLabel1 = new TQLabel( this, "TextLabel1" ); TQLabel* TextLabel1 = new TQLabel( this, "TextLabel1" );
TextLabel1->setText( i18n( "Barcode Settings:" ) ); TextLabel1->setText( i18n( "Barcode Settings:" ) );
comboComplex = new KComboBox( FALSE, this ); comboComplex = new KComboBox( false, this );
if( SqlTables::isConnected() ) if( SqlTables::isConnected() )
{ {
TQSqlQuery* query = new TQSqlQuery("select encoding_type from barcode_basic group by encoding_type"); TQSqlQuery* query = new TQSqlQuery("select encoding_type from barcode_basic group by encoding_type");
@ -464,7 +464,7 @@ PropertyImage::PropertyImage( TokenProvider* token, TQWidget* parent )
: PropertyWidget( parent ), m_token( token ) : PropertyWidget( parent ), m_token( token )
{ {
TQLabel* label = new TQLabel( i18n("&Rotation:"), this ); TQLabel* label = new TQLabel( i18n("&Rotation:"), this );
comboRotation = new KComboBox( FALSE, this ); comboRotation = new KComboBox( false, this );
label->setBuddy( comboRotation ); label->setBuddy( comboRotation );
TQVButtonGroup* groupFile = new TQVButtonGroup( i18n("&Image"), this ); TQVButtonGroup* groupFile = new TQVButtonGroup( i18n("&Image"), this );

@ -343,10 +343,10 @@ void TokenProvider::findBrackets( TQString & text, TQString (TokenProvider::*par
int num, pos = -1, a; int num, pos = -1, a;
TQString token; TQString token;
if( text.contains("]", FALSE) <= 0 || text.isEmpty() ) if( text.contains("]", false) <= 0 || text.isEmpty() )
return; return;
num = text.contains("[", FALSE); num = text.contains("[", false);
if(num <= 0 ) if(num <= 0 )
return; return;

Loading…
Cancel
Save