diff options
Diffstat (limited to 'lib/kotext/KoHighlightingTab.cpp')
-rw-r--r-- | lib/kotext/KoHighlightingTab.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/lib/kotext/KoHighlightingTab.cpp b/lib/kotext/KoHighlightingTab.cpp index 8b90c5b5..b2f829d1 100644 --- a/lib/kotext/KoHighlightingTab.cpp +++ b/lib/kotext/KoHighlightingTab.cpp @@ -20,10 +20,10 @@ #include "KoHighlightingTab.h" #include "KoTextFormat.h" -#include <qstringlist.h> -#include <qbuttongroup.h> -#include <qradiobutton.h> -#include <qcheckbox.h> +#include <tqstringlist.h> +#include <tqbuttongroup.h> +#include <tqradiobutton.h> +#include <tqcheckbox.h> #include <kcombobox.h> #include <kcolorbutton.h> @@ -31,8 +31,8 @@ #include "KoHighlightingTab.moc" -KoHighlightingTab::KoHighlightingTab( QWidget* parent, const char* name, WFlags fl ) - : KoHighlightingTabBase( parent, name, fl ) +KoHighlightingTab::KoHighlightingTab( TQWidget* tqparent, const char* name, WFlags fl ) + : KoHighlightingTabBase( tqparent, name, fl ) { underlineStyleKComboBox->insertStringList( KoTextFormat::underlineTypeList() ); underlineLineStyleKComboBox->insertStringList( KoTextFormat::underlineStyleList() ); @@ -40,19 +40,19 @@ KoHighlightingTab::KoHighlightingTab( QWidget* parent, const char* name, WFlags strikethroughLineStyleKComboBox->insertStringList( KoTextFormat::strikeOutStyleList() ); capitalisationButtonGroup->setColumnLayout( 3, Qt::Horizontal ); - QStringList attributes = KoTextFormat::fontAttributeList(); - for ( QStringList::Iterator it = attributes.begin(); it != attributes.end(); ++it ) { - capitalisationButtonGroup->insert( new QRadioButton( *it, capitalisationButtonGroup ) ); + TQStringList attributes = KoTextFormat::fontAttributeList(); + for ( TQStringList::Iterator it = attributes.begin(); it != attributes.end(); ++it ) { + capitalisationButtonGroup->insert( new TQRadioButton( *it, capitalisationButtonGroup ) ); } capitalisationButtonGroup->setButton( 0 ); - connect( underlineStyleKComboBox, SIGNAL( activated( int ) ), this, SLOT( slotUnderlineChanged( int ) ) ); - connect( underlineLineStyleKComboBox, SIGNAL( activated( int ) ), this, SIGNAL( underlineStyleChanged( int ) ) ); - connect( underlineKColorButton, SIGNAL( changed( const QColor & ) ), this, SIGNAL( underlineColorChanged( const QColor & ) ) ); - connect( strikethroughStyleKComboBox, SIGNAL( activated( int ) ), this, SLOT( slotStrikethroughChanged( int ) ) ); - connect( strikethroughLineStyleKComboBox, SIGNAL( activated( int ) ), this, SIGNAL( strikethroughStyleChanged( int ) ) ); - connect( underlineWordByWordCheckBox, SIGNAL( toggled( bool ) ), this, SIGNAL( wordByWordChanged( bool ) ) ); - connect( capitalisationButtonGroup, SIGNAL( clicked( int ) ), this, SIGNAL( capitalisationChanged( int ) ) ); + connect( underlineStyleKComboBox, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( slotUnderlineChanged( int ) ) ); + connect( underlineLineStyleKComboBox, TQT_SIGNAL( activated( int ) ), this, TQT_SIGNAL( underlineStyleChanged( int ) ) ); + connect( underlineKColorButton, TQT_SIGNAL( changed( const TQColor & ) ), this, TQT_SIGNAL( underlineColorChanged( const TQColor & ) ) ); + connect( strikethroughStyleKComboBox, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( slotStrikethroughChanged( int ) ) ); + connect( strikethroughLineStyleKComboBox, TQT_SIGNAL( activated( int ) ), this, TQT_SIGNAL( strikethroughStyleChanged( int ) ) ); + connect( underlineWordByWordCheckBox, TQT_SIGNAL( toggled( bool ) ), this, TQT_SIGNAL( wordByWordChanged( bool ) ) ); + connect( capitalisationButtonGroup, TQT_SIGNAL( clicked( int ) ), this, TQT_SIGNAL( capitalisationChanged( int ) ) ); } KoHighlightingTab::~KoHighlightingTab() @@ -69,7 +69,7 @@ KoTextFormat::UnderlineStyle KoHighlightingTab::getUnderlineStyle() const return static_cast<KoTextFormat::UnderlineStyle>( underlineLineStyleKComboBox->currentItem() ); } -QColor KoHighlightingTab::getUnderlineColor() const +TQColor KoHighlightingTab::getUnderlineColor() const { return underlineKColorButton->color(); } @@ -106,7 +106,7 @@ void KoHighlightingTab::setUnderlineStyle( KoTextFormat::UnderlineStyle item ) emit underlineStyleChanged( static_cast<int>( item ) ); } -void KoHighlightingTab::setUnderlineColor( const QColor &color ) +void KoHighlightingTab::setUnderlineColor( const TQColor &color ) { underlineKColorButton->setColor( color ); } |