diff options
Diffstat (limited to 'lib/kotext/KoDecorationTab.cpp')
-rw-r--r-- | lib/kotext/KoDecorationTab.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/kotext/KoDecorationTab.cpp b/lib/kotext/KoDecorationTab.cpp index 57837dbc..8fb82755 100644 --- a/lib/kotext/KoDecorationTab.cpp +++ b/lib/kotext/KoDecorationTab.cpp @@ -25,32 +25,32 @@ #include <knuminput.h> #include <klocale.h> -#include <qbuttongroup.h> +#include <tqbuttongroup.h> #include "KoDecorationTab.moc" -KoDecorationTab::KoDecorationTab( QWidget* parent, const char* name, WFlags fl ) - : KoDecorationTabBase( parent, name, fl ) +KoDecorationTab::KoDecorationTab( TQWidget* tqparent, const char* name, WFlags fl ) + : KoDecorationTabBase( tqparent, name, fl ) { shadowDistanceKDoubleNumInput->setRange(0, 9, 0.5, false); - connect( textKColorButton, SIGNAL( changed( const QColor& ) ), this, SIGNAL( fontColorChanged( const QColor& ) ) ); - connect( backgroundKColorButton, SIGNAL( changed( const QColor& ) ), this, SIGNAL( backgroundColorChanged( const QColor& ) ) ); - connect( shadowKColorButton, SIGNAL( changed( const QColor& ) ), this, SIGNAL( shadowColorChanged( const QColor& ) ) ); - connect( shadowDistanceKDoubleNumInput, SIGNAL( valueChanged( double ) ), this, SIGNAL( shadowDistanceChanged( double ) ) ); - connect( shadowDirectionButtonGroup, SIGNAL( clicked( int ) ), this, SIGNAL( shadowDirectionChanged( int ) ) ); + connect( textKColorButton, TQT_SIGNAL( changed( const TQColor& ) ), this, TQT_SIGNAL( fontColorChanged( const TQColor& ) ) ); + connect( backgroundKColorButton, TQT_SIGNAL( changed( const TQColor& ) ), this, TQT_SIGNAL( backgroundColorChanged( const TQColor& ) ) ); + connect( shadowKColorButton, TQT_SIGNAL( changed( const TQColor& ) ), this, TQT_SIGNAL( shadowColorChanged( const TQColor& ) ) ); + connect( shadowDistanceKDoubleNumInput, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SIGNAL( shadowDistanceChanged( double ) ) ); + connect( shadowDirectionButtonGroup, TQT_SIGNAL( clicked( int ) ), this, TQT_SIGNAL( shadowDirectionChanged( int ) ) ); } KoDecorationTab::~KoDecorationTab() { } -QColor KoDecorationTab::getTextColor() const +TQColor KoDecorationTab::getTextColor() const { return textKColorButton->color(); } -QColor KoDecorationTab::getBackgroundColor() const +TQColor KoDecorationTab::getBackgroundColor() const { return backgroundKColorButton->color(); } @@ -69,22 +69,22 @@ double KoDecorationTab::getShadowDistanceY() const return shadowDistanceY( sd, dist ); } -QColor KoDecorationTab::getShadowColor() const +TQColor KoDecorationTab::getShadowColor() const { return shadowKColorButton->color(); } -void KoDecorationTab::setTextColor( const QColor &color ) +void KoDecorationTab::setTextColor( const TQColor &color ) { textKColorButton->setColor( color ); } -void KoDecorationTab::setBackgroundColor( const QColor &color ) +void KoDecorationTab::setBackgroundColor( const TQColor &color ) { backgroundKColorButton->setColor( color ); } -void KoDecorationTab::setShadow( double shadowDistanceX, double shadowDistanceY, const QColor& shadowColor ) +void KoDecorationTab::setShadow( double shadowDistanceX, double shadowDistanceY, const TQColor& shadowColor ) { short int sd = SD_RIGHT_UP; double dist = 0.0; @@ -104,7 +104,7 @@ void KoDecorationTab::setShadow( double shadowDistanceX, double shadowDistanceY, shadowDirectionButtonGroup->setButton( sd ); - dist = QMAX( QABS(shadowDistanceX), QABS(shadowDistanceY) ); + dist = TQMAX( TQABS(shadowDistanceX), TQABS(shadowDistanceY) ); shadowDistanceKDoubleNumInput->setValue( dist ); shadowKColorButton->setColor( shadowColor.isValid() ? shadowColor: gray ); |