diff options
Diffstat (limited to 'src/entrywidgetkeyword.cpp')
-rw-r--r-- | src/entrywidgetkeyword.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/entrywidgetkeyword.cpp b/src/entrywidgetkeyword.cpp index ec79e4b..c1537fa 100644 --- a/src/entrywidgetkeyword.cpp +++ b/src/entrywidgetkeyword.cpp @@ -63,7 +63,7 @@ namespace KBibTeX } } - EntryWidgetKeyword::EntryWidgetKeyword( BibTeX::File *bibtexfile, bool isReadOnly, TQWidget *parent, const char *name ) : EntryWidgetTab( bibtexfile, isReadOnly, parent, name ), m_bibtexfile( bibtexfile ), m_isModified( FALSE ), m_numKeywords( 0 ) + EntryWidgetKeyword::EntryWidgetKeyword( BibTeX::File *bibtexfile, bool isReadOnly, TQWidget *parent, const char *name ) : EntryWidgetTab( bibtexfile, isReadOnly, parent, name ), m_bibtexfile( bibtexfile ), m_isModified( false ), m_numKeywords( 0 ) { setupGUI(); } @@ -158,7 +158,7 @@ namespace KBibTeX if ( text.isEmpty() ) { item->setText( 0, m_beforeRenaming ); - kwlvi->setOn( FALSE ); + kwlvi->setOn( false ); } else if ( text != m_beforeRenaming ) { @@ -183,15 +183,15 @@ namespace KBibTeX } TQCheckListItem *checkedItem = dynamic_cast<TQCheckListItem*>( item ); if ( checkedItem != NULL ) - checkedItem->setOn( TRUE ); + checkedItem->setOn( true ); } } } void EntryWidgetKeyword::slotNewKeyword() { - KeywordListViewItem * item = new KeywordListViewItem( m_listviewKeywords, TQString( i18n( "May only contain ASCII characters, in case of doubt keep English form", "NewKeyword%1" ) ).arg( ++m_numKeywords ), FALSE ); - m_listviewKeywords->setSelected( item, TRUE ); + KeywordListViewItem * item = new KeywordListViewItem( m_listviewKeywords, TQString( i18n( "May only contain ASCII characters, in case of doubt keep English form", "NewKeyword%1" ) ).arg( ++m_numKeywords ), false ); + m_listviewKeywords->setSelected( item, true ); TQTimer::singleShot( 100, this, TQ_SLOT( slotEditKeyword() ) ); } @@ -230,7 +230,7 @@ namespace KBibTeX m_listviewKeywords->addColumn( i18n( "Keyword" ) ); m_listviewKeywords->addColumn( i18n( "Origin" ) ); gridLayout->addMultiCellWidget( m_listviewKeywords, 0, 4, 0, 0 ); - m_listviewKeywords->setAllColumnsShowFocus( TRUE ); + m_listviewKeywords->setAllColumnsShowFocus( true ); connect( m_listviewKeywords, TQ_SIGNAL( currentChanged( TQListViewItem* ) ), this, TQ_SLOT( slotSelectionChanged() ) ); connect( m_listviewKeywords, TQ_SIGNAL( clicked( TQListViewItem * ) ), this, TQ_SLOT( slotSelectionChanged() ) ); connect( m_listviewKeywords, TQ_SIGNAL( itemRenamed( TQListViewItem*, const TQString&, int ) ), this, TQ_SLOT( slotKeywordRenamed( TQListViewItem*, const TQString&, int ) ) ); @@ -246,14 +246,14 @@ namespace KBibTeX m_buttonEdit->setIconSet( TQIconSet( SmallIcon( "edit" ) ) ); TQToolTip::add( m_buttonEdit, i18n( "Edit the selected keyword" ) ); gridLayout->addWidget( m_buttonEdit, 1, 1 ); - m_buttonEdit->setEnabled( FALSE ); + m_buttonEdit->setEnabled( false ); connect( m_buttonEdit, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotEditKeyword() ) ); m_buttonToggleGlobal = new TQPushButton( i18n( "keyword", "Toggle &global" ), this ); m_buttonToggleGlobal->setIconSet( TQIconSet( SmallIcon( "package" ) ) ); TQToolTip::add( m_buttonToggleGlobal, i18n( "Add or remove the selected keyword to or from the global list" ) ); gridLayout->addWidget( m_buttonToggleGlobal, 2, 1 ); - m_buttonToggleGlobal->setEnabled( FALSE ); + m_buttonToggleGlobal->setEnabled( false ); connect( m_buttonToggleGlobal, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotToggleGlobal() ) ); TQLabel *label = new TQLabel( i18n( "There is no need to delete keywords. Simply uncheck unwanted keywords and make them non-global.\nGlobal keywords can also be edited in the settings dialog." ), this ); @@ -269,7 +269,7 @@ namespace KBibTeX { KeywordListViewItem *item = new KeywordListViewItem( m_listviewKeywords, *it, m_globalKeywords.contains( *it ) ); if ( m_usedKeywords.contains( *it ) ) - item->setOn( TRUE ); + item->setOn( true ); } } |