diff options
Diffstat (limited to 'src/fieldlineedit.cpp')
-rw-r--r-- | src/fieldlineedit.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/fieldlineedit.cpp b/src/fieldlineedit.cpp index 910ea12..29aa3c0 100644 --- a/src/fieldlineedit.cpp +++ b/src/fieldlineedit.cpp @@ -38,7 +38,7 @@ namespace KBibTeX { FieldLineEdit::FieldLineEdit( const TQString& caption, InputType inputType, bool isReadOnly, TQWidget *parent, const char *name ) - : TQWidget( parent, name ), m_value( new BibTeX::Value() ), m_caption( caption ), m_lineEdit( NULL ), m_textEdit( NULL ), m_isReadOnly( isReadOnly ), m_enabled( TRUE ), m_inputType( inputType ), m_isModified( FALSE ), m_fieldType( BibTeX::EntryField::ftUnknown ), m_completion( NULL ) + : TQWidget( parent, name ), m_value( new BibTeX::Value() ), m_caption( caption ), m_lineEdit( NULL ), m_textEdit( NULL ), m_isReadOnly( isReadOnly ), m_enabled( true ), m_inputType( inputType ), m_isModified( false ), m_fieldType( BibTeX::EntryField::ftUnknown ), m_completion( NULL ) { setupGUI( name ); } @@ -59,7 +59,7 @@ namespace KBibTeX m_value = new BibTeX::Value(); updateGUI(); - m_isModified = FALSE; + m_isModified = false; } BibTeX::Value *FieldLineEdit::value() @@ -149,7 +149,7 @@ namespace KBibTeX else m_value->items.append( new BibTeX::PlainText( text ) ); } - m_isModified = TRUE; + m_isModified = true; } updateGUI(); @@ -195,7 +195,7 @@ namespace KBibTeX updateGUI(); emit textChanged(); - m_isModified = TRUE; + m_isModified = true; } void FieldLineEdit::slotComplexClicked() @@ -204,7 +204,7 @@ namespace KBibTeX { updateGUI(); emit textChanged(); - m_isModified = TRUE; + m_isModified = true; } } @@ -224,10 +224,10 @@ namespace KBibTeX m_pushButtonString = new TQPushButton( this, subname ); m_pushButtonString->setIconSet( TQIconSet( SmallIcon( "flag" ) ) ); m_pushButtonString->setSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ); - m_pushButtonString->setToggleButton( TRUE ); + m_pushButtonString->setToggleButton( true ); TQToolTip::add( m_pushButtonString, TQString( i18n( "Set '%1' to be a string key" ) ).arg( m_caption ) ); m_pushButtonString->setEnabled( !m_isReadOnly ); - connect( m_pushButtonString, SIGNAL( clicked() ), this, SLOT( slotStringToggled() ) ); + connect( m_pushButtonString, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotStringToggled() ) ); if ( subname != NULL ) { @@ -238,7 +238,7 @@ namespace KBibTeX m_pushButtonComplex->setIconSet( TQIconSet( SmallIcon( "format-justify-left" ) ) ); m_pushButtonComplex->setSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ); TQToolTip::add( m_pushButtonComplex, TQString( i18n( "Edit '%1' as a concatenated value" ) ).arg( m_caption ) ); - connect( m_pushButtonComplex, SIGNAL( clicked() ), this, SLOT( slotComplexClicked() ) ); + connect( m_pushButtonComplex, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotComplexClicked() ) ); TQGridLayout * layout = NULL; switch ( m_inputType ) @@ -290,12 +290,12 @@ namespace KBibTeX if ( subname != NULL ) delete[] subname; - enableSignals( TRUE ); + enableSignals( true ); } void FieldLineEdit::updateGUI() { - enableSignals( FALSE ); + enableSignals( false ); bool inputEnable = ( m_value->items.count() <= 1 ) && m_enabled; m_pushButtonString->setEnabled( inputEnable && !m_isReadOnly ); @@ -344,7 +344,7 @@ namespace KBibTeX break; } - enableSignals( TRUE ); + enableSignals( true ); } void FieldLineEdit::enableSignals( bool enabled ) @@ -353,15 +353,15 @@ namespace KBibTeX { case itSingleLine: if ( enabled ) - connect( m_lineEdit, SIGNAL( textChanged( const TQString& ) ), this, SLOT( slotTextChanged( ) ) ); + connect( m_lineEdit, TQ_SIGNAL( textChanged( const TQString& ) ), this, TQ_SLOT( slotTextChanged( ) ) ); else - disconnect( m_lineEdit, SIGNAL( textChanged( const TQString& ) ), this, SLOT( slotTextChanged( ) ) ); + disconnect( m_lineEdit, TQ_SIGNAL( textChanged( const TQString& ) ), this, TQ_SLOT( slotTextChanged( ) ) ); break; case itMultiLine: if ( enabled ) - connect( m_textEdit, SIGNAL( textChanged( ) ), this, SLOT( slotTextChanged( ) ) ); + connect( m_textEdit, TQ_SIGNAL( textChanged( ) ), this, TQ_SLOT( slotTextChanged( ) ) ); else - disconnect( m_textEdit, SIGNAL( textChanged( ) ), this, SLOT( slotTextChanged( ) ) ); + disconnect( m_textEdit, TQ_SIGNAL( textChanged( ) ), this, TQ_SLOT( slotTextChanged( ) ) ); break; } } |