summaryrefslogtreecommitdiffstats
path: root/src/webquery.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-03-28 12:35:55 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-02 09:11:28 +0900
commit59be12b130757642abe0ea212fcb8f919879e5b5 (patch)
treeb407f94812a772cf01d1281110b9c030080446d6 /src/webquery.cpp
parenta034edf0e3a516b55994c7aba28d1956c697c231 (diff)
downloadkbibtex-r14.1.4.tar.gz
kbibtex-r14.1.4.zip
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 278778f1151c2c3b4fade15afc7b94f624900b60)
Diffstat (limited to 'src/webquery.cpp')
-rw-r--r--src/webquery.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/webquery.cpp b/src/webquery.cpp
index 959ac44..24678c9 100644
--- a/src/webquery.cpp
+++ b/src/webquery.cpp
@@ -232,8 +232,8 @@ namespace KBibTeX
if ( data == TQString::null )
return NULL;
- BibTeX::FileImporterBibTeX importer( FALSE );
- importer.setIgnoreComments( TRUE );
+ BibTeX::FileImporterBibTeX importer( false );
+ importer.setIgnoreComments( true );
TQBuffer buffer;
buffer.open( IO_WriteOnly );
@@ -345,7 +345,7 @@ namespace KBibTeX
if ( rlvi != NULL )
{
BibTeX::Entry *entry = rlvi->entry();
- KBibTeX::EntryWidget::execute( entry, NULL, TRUE, FALSE );
+ KBibTeX::EntryWidget::execute( entry, NULL, true, false );
}
}
@@ -379,8 +379,8 @@ namespace KBibTeX
int index = m_comboBoxEngines->currentItem();
- setEnabled( FALSE );
- m_dlg->enableButtonCancel( FALSE );
+ setEnabled( false );
+ m_dlg->enableButtonCancel( false );
TQApplication::setOverrideCursor( TQt::waitCursor );
m_listViewResults->clear();
connect( m_webQueries[index], TQ_SIGNAL( foundEntry( BibTeX::Entry*, bool ) ), this, TQ_SLOT( addHit( BibTeX::Entry*, bool ) ) );
@@ -394,8 +394,8 @@ namespace KBibTeX
int index = m_comboBoxEngines->currentItem();
disconnect( m_webQueries[index], TQ_SIGNAL( foundEntry( BibTeX::Entry*, bool ) ), this, TQ_SLOT( addHit( BibTeX::Entry*, bool ) ) );
disconnect( m_webQueries[index], TQ_SIGNAL( endSearch( WebQuery::Status ) ), this, TQ_SLOT( endSearch( WebQuery::Status ) ) );
- setEnabled( TRUE );
- m_dlg->enableButtonCancel( TRUE );
+ setEnabled( true );
+ m_dlg->enableButtonCancel( true );
importEnableChanging();
TQApplication::restoreOverrideCursor();
if ( status == WebQuery::statusInsufficientPermissions )
@@ -430,7 +430,7 @@ namespace KBibTeX
TQLabel *label = new TQLabel( i18n( "&Engine:" ), this );
layout->addWidget( label, 0, 0 );
- m_comboBoxEngines = new KComboBox( FALSE, this );
+ m_comboBoxEngines = new KComboBox( false, this );
label->setBuddy( m_comboBoxEngines );
layout->addWidget( m_comboBoxEngines, 0, 1 );
connect( m_comboBoxEngines, TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( otherEngineSelected( int ) ) );
@@ -442,7 +442,7 @@ namespace KBibTeX
m_pushButtonSearch = new KPushButton( i18n( "&Search" ), this );
layout->addWidget( m_pushButtonSearch, 0, 3 );
m_pushButtonSearch->setIconSet( TQIconSet( SmallIcon( "edit-find" ) ) );
- m_pushButtonSearch->setEnabled( FALSE );
+ m_pushButtonSearch->setEnabled( false );
m_listViewResults = new TDEListView( this );
m_listViewResults->addColumn( i18n( "Year" ), 64 );
@@ -453,7 +453,7 @@ namespace KBibTeX
else
m_listViewResults->setFont( TDEGlobalSettings::generalFont() );
m_listViewResults->header() ->setFont( TDEGlobalSettings::generalFont() );
- m_listViewResults->setAllColumnsShowFocus( TRUE );
+ m_listViewResults->setAllColumnsShowFocus( true );
m_listViewResults->setFullWidth( true );
m_listViewResults->setSelectionMode( TQListView::Extended );
layout->addMultiCellWidget( m_listViewResults, 3, 3, 0, 3 );