summaryrefslogtreecommitdiffstats
path: root/src/idsuggestionswidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/idsuggestionswidget.cpp')
-rw-r--r--src/idsuggestionswidget.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/idsuggestionswidget.cpp b/src/idsuggestionswidget.cpp
index 5de293b..0265933 100644
--- a/src/idsuggestionswidget.cpp
+++ b/src/idsuggestionswidget.cpp
@@ -115,7 +115,7 @@ namespace KBibTeX
TQLabel *label = new TQLabel( m_title, this );
TQFont labelFont( label->font() );
- labelFont.setBold( TRUE );
+ labelFont.setBold( true );
label->setFont( labelFont );
label->setBackgroundColor( TDEGlobalSettings::highlightColor() );
label->setPaletteForegroundColor( TDEGlobalSettings::highlightedTextColor() );
@@ -139,7 +139,7 @@ namespace KBibTeX
label = new TQLabel( i18n( "Casing:" ), this );
layout->addWidget( label, 2, 0 );
- m_comboBoxCasing = new KComboBox( FALSE, this );
+ m_comboBoxCasing = new KComboBox( false, this );
label->setBuddy( m_comboBoxCasing );
layout->addWidget( m_comboBoxCasing, 2, 1 );
m_comboBoxCasing->insertItem( i18n( "No change" ) );
@@ -204,7 +204,7 @@ namespace KBibTeX
TQLabel *label = new TQLabel( m_title, this );
TQFont labelFont( label->font() );
- labelFont.setBold( TRUE );
+ labelFont.setBold( true );
label->setFont( labelFont );
label->setBackgroundColor( TDEGlobalSettings::highlightColor() );
label->setPaletteForegroundColor( TDEGlobalSettings::highlightedTextColor() );
@@ -220,7 +220,7 @@ namespace KBibTeX
label = new TQLabel( i18n( "Casing:" ), this );
layout->addWidget( label, 2, 0 );
- m_comboBoxCasing = new KComboBox( FALSE, this );
+ m_comboBoxCasing = new KComboBox( false, this );
label->setBuddy( m_comboBoxCasing );
layout->addWidget( m_comboBoxCasing, 2, 1 );
m_comboBoxCasing->insertItem( i18n( "No change" ) );
@@ -279,7 +279,7 @@ namespace KBibTeX
TQLabel *label = new TQLabel( m_title, this );
TQFont labelFont( label->font() );
- labelFont.setBold( TRUE );
+ labelFont.setBold( true );
label->setFont( labelFont );
label->setBackgroundColor( TDEGlobalSettings::highlightColor() );
label->setPaletteForegroundColor( TDEGlobalSettings::highlightedTextColor() );
@@ -314,7 +314,7 @@ namespace KBibTeX
TQLabel *label = new TQLabel( m_title, this );
TQFont labelFont( label->font() );
- labelFont.setBold( TRUE );
+ labelFont.setBold( true );
label->setFont( labelFont );
label->setBackgroundColor( TDEGlobalSettings::highlightColor() );
label->setPaletteForegroundColor( TDEGlobalSettings::highlightedTextColor() );
@@ -442,7 +442,7 @@ namespace KBibTeX
void IdSuggestionsWidget::apply( TQString& formatStr )
{
- bool first = TRUE;
+ bool first = true;
formatStr = "";
TQLayoutIterator it = m_listOfComponents->layout()->iterator();
TQLayoutItem *child;
@@ -452,7 +452,7 @@ namespace KBibTeX
TQString text = TQString::null;
if ( component != NULL && ( text = component->text() ) != TQString::null )
{
- if ( first ) first = FALSE; else formatStr.append( "|" );
+ if ( first ) first = false; else formatStr.append( "|" );
formatStr.append( text );
}
++it;
@@ -477,7 +477,7 @@ namespace KBibTeX
m_scrollViewComponents->addChild( m_listOfComponents );
gridLayout->addMultiCellWidget( m_scrollViewComponents, 2, 2, 0, 1 );
TQVBoxLayout *listLayout = new TQVBoxLayout( m_listOfComponents, 0, KDialog::spacingHint() );
- listLayout->setAutoAdd( TRUE );
+ listLayout->setAutoAdd( true );
TDEPopupMenu *addMenu = new TDEPopupMenu( m_pushButtonAdd );
addMenu->insertItem( i18n( "Author" ), 1 );
@@ -520,7 +520,7 @@ namespace KBibTeX
TQLayoutIterator it = m_listOfComponents->layout()->iterator();
TQLayoutItem *child = NULL;
IdSuggestionComponent *lastComponent = NULL;
- bool first = TRUE;
+ bool first = true;
int i = 0;
while (( child = it.current() ) != 0 )
{
@@ -530,11 +530,11 @@ namespace KBibTeX
{
if ( first )
{
- first = FALSE;
- component->setEnableUpDown( FALSE, m_componentCount > 1 );
+ first = false;
+ component->setEnableUpDown( false, m_componentCount > 1 );
}
else
- component->setEnableUpDown( TRUE, i < m_componentCount - 1 );
+ component->setEnableUpDown( true, i < m_componentCount - 1 );
++i;
lastComponent = component;
@@ -542,7 +542,7 @@ namespace KBibTeX
}
if ( lastComponent != NULL )
- lastComponent->setEnableUpDown( m_componentCount > 1, FALSE );
+ lastComponent->setEnableUpDown( m_componentCount > 1, false );
m_scrollViewComponents->updateGeometry();
m_parent->enableButtonOK( m_componentCount > 0 );