Replace TRUE/FALSE with boolean values true/false

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit a3fc822244)
r14.1.x r14.1.4
Michele Calgaro 10 months ago
parent 6a8d645ce8
commit bc1e1feb99
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1105,7 +1105,7 @@ void DOCConduit::syncNextDOC() {
// Include all "extensions" except the last. This allows full stops inside the database name (e.g. abbreviations)
// first fill everything with 0, so we won't have a buffer overflow.
memset(&dbinfo.name[0], 0, 33);
strncpy(&dbinfo.name[0], fl.baseName(TRUE), 30);
strncpy(&dbinfo.name[0], fl.baseName(true), 30);
bool alreadySynced=fDBNames.contains(dbinfo.name);
if (!alreadySynced) {
@ -1155,7 +1155,7 @@ void DOCConduit::checkPDBFiles() {
// Get the doc title and check if it has already been synced (in the synced docs list of in fDBNames to be synced)
// If the doc title doesn't appear in either list, install it to the Handheld, and add it to the list of dbs to be synced.
TQString dbname=fl.baseName(TRUE).left(30);
TQString dbname=fl.baseName(true).left(30);
if (!fDBNames.contains(dbname) && !fDBListSynced.contains(dbname)) {
if (fHandle->installFiles(pdbfilename )) {
DBInfo dbinfo;

@ -1522,7 +1522,7 @@ bool AbbrowserConduit::_buildResolutionTable(ResolutionTable*tab, const Addresse
{
FUNCTIONSETUP;
if (!tab) return false;
tab->setAutoDelete( TRUE );
tab->setAutoDelete( true );
tab->labels[0]=i18n("Item on PC");
tab->labels[1]=i18n("Handheld");
tab->labels[2]=i18n("Last sync");

@ -212,25 +212,25 @@ void ResolutionDlg::adjustButtons(ResolutionTable*tab)
if (!(tab->fExistItems & eExistsPC) )
{
fWidget->fPCValues->setText(i18n("Delete entry"));
fWidget->fKeepBoth->setDisabled(TRUE);
fWidget->fKeepBoth->setDisabled(true);
fWidget->fKeepBoth->hide();
}
if (!(tab->fExistItems & eExistsPalm) )
{
fWidget->fPalmValues->setText(i18n("Delete entry"));
fWidget->fKeepBoth->setDisabled(TRUE);
fWidget->fKeepBoth->setDisabled(true);
fWidget->fKeepBoth->hide();
}
if (!(tab->fExistItems & eExistsBackup) )
{
fWidget->fBackupValues->setDisabled(TRUE);
fWidget->fBackupValues->setDisabled(true);
}
}
void ResolutionDlg::fillListView()
{
FUNCTIONSETUP;
fWidget->fResolutionView->setSorting(-1, FALSE);
fWidget->fResolutionView->setSorting(-1, false);
fWidget->fResolutionView->clear();
for ( ResolutionItem* it = fTable->last(); it; it = fTable->prev() )
{

@ -262,7 +262,7 @@ int DOCConverter::findBmkInline(TQString &text, bmkList &fBmks) {
int nr=0;
TQRegExp rx(CSL1("<\\*(.*)\\*>"));
rx.setMinimal(TRUE);
rx.setMinimal(true);
int pos = 0;
while (pos >= 0) {
pos = rx.search(text, pos);

@ -472,9 +472,9 @@ void DOCConduit::syncNextTXT()
// Include all "extensions" except the last. This allows full stops inside the database name (e.g. abbreviations)
// first fill everything with 0, so we won't have a buffer overflow.
memset(&dbinfo.name[0], 0, 33);
strncpy(&dbinfo.name[0], fl.baseName(TRUE).latin1(), 30);
strncpy(&dbinfo.name[0], fl.baseName(true).latin1(), 30);
bool alreadySynced=fDBNames.contains(fl.baseName(TRUE));
bool alreadySynced=fDBNames.contains(fl.baseName(true));
if (!alreadySynced) {
docSyncInfo syncInfo(TQString::fromLatin1(dbinfo.name),
txtfilename, pdbfilename, eSyncNone);
@ -528,7 +528,7 @@ void DOCConduit::checkPDBFiles() {
// Get the doc title and check if it has already been synced (in the synced docs list of in fDBNames to be synced)
// If the doc title doesn't appear in either list, install it to the Handheld, and add it to the list of dbs to be synced.
TQString dbname=fl.baseName(TRUE).left(30);
TQString dbname=fl.baseName(true).left(30);
if (!fDBNames.contains(dbname) && !fDBListSynced.contains(dbname)) {
if (fHandle->installFiles(pdbfilename, false)) {
DBInfo dbinfo;

@ -98,7 +98,7 @@ ResolutionDialog::ResolutionDialog( TQWidget* parent, const TQString& caption, s
cE.dbname=new TQLabel(text, big_box);
resolutionGroupBoxLayout->addWidget( cE.dbname, cE.index, 0 );
cE.resolution=new TQComboBox( FALSE, big_box);
cE.resolution=new TQComboBox( false, big_box);
cE.resolution->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7,
(TQSizePolicy::SizeType)0, 0, 0,
cE.resolution->sizePolicy().hasHeightForWidth() ) );

@ -628,7 +628,7 @@ bool Memofiles::folderRemove(const TQDir &_d)
TQFileInfo info(d, *it);
if(info.isDir()) {
if(!folderRemove(TQDir(info.filePath())))
return FALSE;
return false;
} else {
DEBUGKPILOT << fname
<< ": deleting file: [" << info.filePath() << "]" << endl;
@ -637,12 +637,12 @@ bool Memofiles::folderRemove(const TQDir &_d)
}
TQString name = d.dirName();
if(!d.cdUp())
return FALSE;
return false;
DEBUGKPILOT << fname
<< ": removing folder: [" << name << "]" << endl;
d.rmdir(name);
return TRUE;
return true;
}
TQString Memofiles::filename(PilotMemo * memo)

@ -70,10 +70,10 @@ DatebookWidget::DatebookWidget(TQWidget *parent, const TQString &dbpath) :
fEventList->addColumn( i18n( "Rec" ) );
fEventList->addColumn( i18n( "Description" ) );
// fEventList->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, fEventList->sizePolicy().hasHeightForWidth() ) );
fEventList->setAllColumnsShowFocus( TRUE );
fEventList->setShowSortIndicator( TRUE );
fEventList->setAllColumnsShowFocus( true );
fEventList->setShowSortIndicator( true );
fEventList->setResizeMode( TDEListView::/*LastColumn*/AllColumns );
fEventList->setFullWidth( TRUE );
fEventList->setFullWidth( true );
// fEventList->setAlternateBackground( TQColor( 221, 146, 240 ) );
g->addMultiCellWidget(fEventList, 0, 2, 3, 3);

@ -128,12 +128,12 @@ void DBRecordEditor::initWidgets()
DBRecordEditorBaseLayout->addWidget( fRecordIDLabel, 0, 2 );
fRecordIndex = new TQLineEdit( fWidget, "fRecordIndex" );
fRecordIndex->setReadOnly( TRUE );
fRecordIndex->setReadOnly( true );
DBRecordEditorBaseLayout->addWidget( fRecordIndex, 0, 1 );
fRecordID = new TQLineEdit( fWidget, "fRecordID" );
fRecordID->setReadOnly( TRUE );
fRecordID->setReadOnly( true );
DBRecordEditorBaseLayout->addWidget( fRecordID, 0, 3 );

@ -79,7 +79,7 @@ void GenericDBWidget::setupWidget()
fDBList = new TDEListBox( this );
g->addWidget( fDBList, 0, 0 );
fDBType = new KComboBox( FALSE, this );
fDBType = new KComboBox( false, this );
g->addWidget( fDBType, 1, 0 );
fDBType->insertItem( i18n( "All Databases" ) );
fDBType->insertItem( i18n( "Only Applications (*.prc)" ) );
@ -88,7 +88,7 @@ void GenericDBWidget::setupWidget()
TQGridLayout *g1 = new TQGridLayout( 0, 1, 1);
fDBInfo = new KTextEdit( this );
fDBInfo->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, fDBInfo->sizePolicy().hasHeightForWidth() ) );
fDBInfo->setReadOnly( TRUE );
fDBInfo->setReadOnly( true );
g1->addWidget( fDBInfo, 0, 0 );
fDBInfoButton = new KPushButton( i18n( "General Database &Information" ), this );
g1->addWidget( fDBInfoButton, 1, 0 );
@ -103,8 +103,8 @@ void GenericDBWidget::setupWidget()
fRecordList->addColumn(i18n("Record ID"));
fRecordList->setAllColumnsShowFocus(true);
fRecordList->setResizeMode( TDEListView::LastColumn );
fRecordList->setFullWidth( TRUE );
fRecordList->setItemsMovable( FALSE );
fRecordList->setFullWidth( true );
fRecordList->setItemsMovable( false );
fAddRecord = new KPushButton( i18n("&Add..."), this );
g2->addWidget( fAddRecord, 1, 0 );

@ -111,7 +111,7 @@ ProbeDialog::ProbeDialog(TQWidget *parent, const char *n) :
fResultsGroup = new TQGroupBox( i18n( "Detected Values" ), mainWidget, "fResultsGroup" );
fResultsGroup->setEnabled( FALSE );
fResultsGroup->setEnabled( false );
fResultsGroup->setColumnLayout(0, TQt::Vertical );
fResultsGroupLayout = new TQGridLayout( fResultsGroup->layout() );
fResultsGroupLayout->setAlignment( TQt::AlignTop );

@ -608,7 +608,7 @@ void MemoWidget::slotImportMemo()
{
TQFile importFile(fileName);
if (importFile.open(IO_ReadOnly) == FALSE)
if (importFile.open(IO_ReadOnly) == false)
{
// show error!
return;

@ -223,11 +223,11 @@ void TodoWidget::setupWidget()
fListBox = new TodoListView(this);
fListBox->addColumn( i18n( "To-do Item" ) );
fListBox->setAllColumnsShowFocus( TRUE );
fListBox->setAllColumnsShowFocus( true );
fListBox->setResizeMode( TDEListView::LastColumn );
fListBox->setFullWidth( TRUE );
fListBox->setItemsMovable( FALSE );
fListBox->setItemsRenameable (TRUE);
fListBox->setFullWidth( true );
fListBox->setItemsMovable( false );
fListBox->setItemsRenameable (true);
grid->addMultiCellWidget(fListBox, 1, 1, 0, 1);
connect(fListBox, TQ_SIGNAL(selectionChanged(TQListViewItem*)),
this, TQ_SLOT(slotShowTodo(TQListViewItem*)));

Loading…
Cancel
Save