summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/ConduitProgrammingTutorial/index.tex4
-rw-r--r--conduits/abbrowserconduit/abbrowser-conduit.cpp2
-rw-r--r--conduits/abbrowserconduit/resolutionDialog.cpp8
-rw-r--r--conduits/docconduit/DOC-converter.cpp2
-rw-r--r--conduits/docconduit/doc-conduit.cpp6
-rw-r--r--conduits/docconduit/doc-conflictdialog.cpp2
-rw-r--r--conduits/memofileconduit/memofiles.cpp6
-rw-r--r--kpilot/datebookWidget.cpp6
-rw-r--r--kpilot/dbRecordEditor.cpp4
-rw-r--r--kpilot/dbviewerWidget.cpp8
-rw-r--r--kpilot/kpilotProbeDialog.cpp2
-rw-r--r--kpilot/memoWidget.cpp2
-rw-r--r--kpilot/todoWidget.cpp8
13 files changed, 30 insertions, 30 deletions
diff --git a/Documentation/ConduitProgrammingTutorial/index.tex b/Documentation/ConduitProgrammingTutorial/index.tex
index e852eeb..9f39441 100644
--- a/Documentation/ConduitProgrammingTutorial/index.tex
+++ b/Documentation/ConduitProgrammingTutorial/index.tex
@@ -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;
diff --git a/conduits/abbrowserconduit/abbrowser-conduit.cpp b/conduits/abbrowserconduit/abbrowser-conduit.cpp
index 6e63596..9657ef3 100644
--- a/conduits/abbrowserconduit/abbrowser-conduit.cpp
+++ b/conduits/abbrowserconduit/abbrowser-conduit.cpp
@@ -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");
diff --git a/conduits/abbrowserconduit/resolutionDialog.cpp b/conduits/abbrowserconduit/resolutionDialog.cpp
index 1dd4e65..442a377 100644
--- a/conduits/abbrowserconduit/resolutionDialog.cpp
+++ b/conduits/abbrowserconduit/resolutionDialog.cpp
@@ -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() )
{
diff --git a/conduits/docconduit/DOC-converter.cpp b/conduits/docconduit/DOC-converter.cpp
index 6502fe5..862e6af 100644
--- a/conduits/docconduit/DOC-converter.cpp
+++ b/conduits/docconduit/DOC-converter.cpp
@@ -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);
diff --git a/conduits/docconduit/doc-conduit.cpp b/conduits/docconduit/doc-conduit.cpp
index fb87c37..9e4afd5 100644
--- a/conduits/docconduit/doc-conduit.cpp
+++ b/conduits/docconduit/doc-conduit.cpp
@@ -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;
diff --git a/conduits/docconduit/doc-conflictdialog.cpp b/conduits/docconduit/doc-conflictdialog.cpp
index c22c58b..a3d7b57 100644
--- a/conduits/docconduit/doc-conflictdialog.cpp
+++ b/conduits/docconduit/doc-conflictdialog.cpp
@@ -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() ) );
diff --git a/conduits/memofileconduit/memofiles.cpp b/conduits/memofileconduit/memofiles.cpp
index e1bb91e..99114c8 100644
--- a/conduits/memofileconduit/memofiles.cpp
+++ b/conduits/memofileconduit/memofiles.cpp
@@ -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)
diff --git a/kpilot/datebookWidget.cpp b/kpilot/datebookWidget.cpp
index 895c8ad..4510e4a 100644
--- a/kpilot/datebookWidget.cpp
+++ b/kpilot/datebookWidget.cpp
@@ -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);
diff --git a/kpilot/dbRecordEditor.cpp b/kpilot/dbRecordEditor.cpp
index a6cc54e..530a241 100644
--- a/kpilot/dbRecordEditor.cpp
+++ b/kpilot/dbRecordEditor.cpp
@@ -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 );
diff --git a/kpilot/dbviewerWidget.cpp b/kpilot/dbviewerWidget.cpp
index 050735e..1d0af4d 100644
--- a/kpilot/dbviewerWidget.cpp
+++ b/kpilot/dbviewerWidget.cpp
@@ -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 );
diff --git a/kpilot/kpilotProbeDialog.cpp b/kpilot/kpilotProbeDialog.cpp
index e78367b..7d57134 100644
--- a/kpilot/kpilotProbeDialog.cpp
+++ b/kpilot/kpilotProbeDialog.cpp
@@ -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 );
diff --git a/kpilot/memoWidget.cpp b/kpilot/memoWidget.cpp
index 8e3f5f0..61d96d4 100644
--- a/kpilot/memoWidget.cpp
+++ b/kpilot/memoWidget.cpp
@@ -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;
diff --git a/kpilot/todoWidget.cpp b/kpilot/todoWidget.cpp
index 90ab873..0c3817e 100644
--- a/kpilot/todoWidget.cpp
+++ b/kpilot/todoWidget.cpp
@@ -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*)));