diff options
Diffstat (limited to 'src/documentsourceview.cpp')
-rw-r--r-- | src/documentsourceview.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/documentsourceview.cpp b/src/documentsourceview.cpp index d26ad85..9622ae8 100644 --- a/src/documentsourceview.cpp +++ b/src/documentsourceview.cpp @@ -88,10 +88,10 @@ namespace KBibTeX if ( clip ) { clip->paste(); - return TRUE; + return true; } else - return FALSE; + return false; } /** @@ -150,14 +150,14 @@ namespace KBibTeX void DocumentSourceView::find() { - KFindDialog dlg( TRUE, this ); + KFindDialog dlg( true, this ); dlg.setFindHistory( m_findHistory ); - dlg.setHasSelection( FALSE ); + dlg.setHasSelection( false ); #if KDE_IS_VERSION(3,4,0) - dlg.setSupportsWholeWordsFind( FALSE ); - dlg.setSupportsBackwardsFind( FALSE ); - dlg.setSupportsCaseSensitiveFind( FALSE ); - dlg.setSupportsRegularExpressionFind( FALSE ); + dlg.setSupportsWholeWordsFind( false ); + dlg.setSupportsBackwardsFind( false ); + dlg.setSupportsCaseSensitiveFind( false ); + dlg.setSupportsRegularExpressionFind( false ); #endif if ( dlg.exec() == TQDialog::Accepted ) { @@ -210,7 +210,7 @@ namespace KBibTeX { Settings * settings = Settings::self(); - bool result = FALSE; + bool result = false; m_progDlg = new KProgressDialog( this, NULL, i18n( "Source View" ), i18n( "Converting BibTeX document to plain text ..." ), true ); m_progDlg->setAllowCancel( false ); kapp->processEvents(); @@ -240,8 +240,8 @@ namespace KBibTeX { kapp->processEvents(); // very strange: to set the text, you have to set - // readwrite to TRUE... - m_document->setReadWrite( TRUE ); + // readwrite to true... + m_document->setReadWrite( true ); m_editInterface->setText( text ); m_document->setReadWrite( !m_isReadOnly ); } @@ -355,7 +355,7 @@ namespace KBibTeX do { - bool result = searchIf->searchText( fromLine, fromCol, m_lastSearchTerm, &foundAtLine, &foundAtCol, &matchLen, FALSE ); + bool result = searchIf->searchText( fromLine, fromCol, m_lastSearchTerm, &foundAtLine, &foundAtCol, &matchLen, false ); if ( result ) { selectionIf->setSelection( foundAtLine, foundAtCol, foundAtLine, foundAtCol + matchLen ); |