diff options
Diffstat (limited to 'kword/KWFootNoteDia.cpp')
-rw-r--r-- | kword/KWFootNoteDia.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/kword/KWFootNoteDia.cpp b/kword/KWFootNoteDia.cpp index 52aa50c5..254260c8 100644 --- a/kword/KWFootNoteDia.cpp +++ b/kword/KWFootNoteDia.cpp @@ -20,13 +20,13 @@ #include "KWFootNoteDia.h" #include "KWFootNoteDia.moc" -#include <qbuttongroup.h> -#include <qvbox.h> -#include <qradiobutton.h> +#include <tqbuttongroup.h> +#include <tqvbox.h> +#include <tqradiobutton.h> #include <klocale.h> -#include <qlayout.h> -#include <qlineedit.h> +#include <tqlayout.h> +#include <tqlineedit.h> #include "KWConfigFootNoteDia.h" @@ -34,20 +34,20 @@ /* Class: KWFootNoteDia */ /******************************************************************/ -KWFootNoteDia::KWFootNoteDia( NoteType _noteType, KWFootNoteVariable::Numbering _numberingType, const QString & _manualString, QWidget *parent, KWDocument *_doc, const char *name ) - : KDialogBase( parent, name, true, QString::null, Ok|Cancel|User1, Ok, true ) +KWFootNoteDia::KWFootNoteDia( NoteType _noteType, KWFootNoteVariable::Numbering _numberingType, const TQString & _manualString, TQWidget *tqparent, KWDocument *_doc, const char *name ) + : KDialogBase( tqparent, name, true, TQString(), Ok|Cancel|User1, Ok, true ) { m_doc =_doc; //setButtonOKText(i18n("&Insert")); setCaption( i18n("Insert Footnote/Endnote") ); - QVBox *page = makeVBoxMainWidget(); + TQVBox *page = makeVBoxMainWidget(); - QButtonGroup *grp = new QButtonGroup( i18n("Numbering"), page ); - QGridLayout *grid = new QGridLayout( grp, 9, 4, KDialog::marginHint(), KDialog::spacingHint()); - m_rbAuto = new QRadioButton( i18n("&Automatic"), grp ); - m_rbManual= new QRadioButton( i18n("&Manual"), grp ); + TQButtonGroup *grp = new TQButtonGroup( i18n("Numbering"), page ); + TQGridLayout *grid = new TQGridLayout( grp, 9, 4, KDialog::marginHint(), KDialog::spacingHint()); + m_rbAuto = new TQRadioButton( i18n("&Automatic"), grp ); + m_rbManual= new TQRadioButton( i18n("&Manual"), grp ); grp->setExclusive( true ); int fHeight = grp->fontMetrics().height(); @@ -58,16 +58,16 @@ KWFootNoteDia::KWFootNoteDia( NoteType _noteType, KWFootNoteVariable::Numbering m_rbAuto->setChecked( true ); else m_rbManual->setChecked( true ); - m_footLine = new QLineEdit( grp); + m_footLine = new TQLineEdit( grp); m_footLine->setText( _manualString ); - connect( m_footLine, SIGNAL( textChanged ( const QString & )), this, SLOT(footLineChanged( const QString & ))); - connect( grp, SIGNAL( clicked ( int ) ), this, SLOT(footNoteTypeChanged())); + connect( m_footLine, TQT_SIGNAL( textChanged ( const TQString & )), this, TQT_SLOT(footLineChanged( const TQString & ))); + connect( grp, TQT_SIGNAL( clicked ( int ) ), this, TQT_SLOT(footNoteTypeChanged())); grid->addWidget( m_footLine, 2, 1); - grp = new QButtonGroup( 4, Qt::Vertical, page ); - m_rbFootNote = new QRadioButton( i18n("&Footnote"), grp ); - m_rbEndNote = new QRadioButton( i18n("&Endnote"), grp ); + grp = new TQButtonGroup( 4, Qt::Vertical, page ); + m_rbFootNote = new TQRadioButton( i18n("&Footnote"), grp ); + m_rbEndNote = new TQRadioButton( i18n("&Endnote"), grp ); grp->setExclusive( true ); grp->insert( m_rbFootNote ); @@ -79,7 +79,7 @@ KWFootNoteDia::KWFootNoteDia( NoteType _noteType, KWFootNoteVariable::Numbering footNoteTypeChanged(); setButtonText( KDialogBase::User1, i18n("C&onfigure...") ); - connect( this, SIGNAL( user1Clicked() ), this, SLOT(slotConfigurate())); + connect( this, TQT_SIGNAL( user1Clicked() ), this, TQT_SLOT(slotConfigurate())); } void KWFootNoteDia::footNoteTypeChanged() @@ -96,7 +96,7 @@ void KWFootNoteDia::footNoteTypeChanged() } } -void KWFootNoteDia::footLineChanged( const QString &text ) +void KWFootNoteDia::footLineChanged( const TQString &text ) { m_rbManual->setChecked( true ); if ( text.isEmpty() || footNoteAlreadyExists(text) ) @@ -115,9 +115,9 @@ KWFootNoteVariable::Numbering KWFootNoteDia::numberingType()const return m_rbAuto->isChecked() ? KWFootNoteVariable::Auto : KWFootNoteVariable::Manual; } -QString KWFootNoteDia::manualString()const +TQString KWFootNoteDia::manualString()const { - return m_rbAuto->isChecked() ? QString::null : m_footLine->text(); + return m_rbAuto->isChecked() ? TQString() : m_footLine->text(); } void KWFootNoteDia::slotConfigurate() @@ -127,12 +127,12 @@ void KWFootNoteDia::slotConfigurate() delete dia; } -bool KWFootNoteDia::footNoteAlreadyExists( const QString & text ) +bool KWFootNoteDia::footNoteAlreadyExists( const TQString & text ) { - return manualFootNotes.contains( text ); + return manualFootNotes.tqcontains( text ); } -void KWFootNoteDia::appendManualFootNote( const QString & text ) +void KWFootNoteDia::appendManualFootNote( const TQString & text ) { manualFootNotes.append( text ); } |