diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kpresenter/KPrRectProperty.cpp | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpresenter/KPrRectProperty.cpp')
-rw-r--r-- | kpresenter/KPrRectProperty.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kpresenter/KPrRectProperty.cpp b/kpresenter/KPrRectProperty.cpp index f1732476..73573646 100644 --- a/kpresenter/KPrRectProperty.cpp +++ b/kpresenter/KPrRectProperty.cpp @@ -25,23 +25,23 @@ #include <KoImageResource.h> -#include <qspinbox.h> -#include <qtoolbutton.h> -#include <qlayout.h> +#include <tqspinbox.h> +#include <tqtoolbutton.h> +#include <tqlayout.h> -KPrRectProperty::KPrRectProperty( QWidget *parent, const char *name, KPrRectValueCmd::RectValues &rectValue ) -: QWidget( parent, name ) +KPrRectProperty::KPrRectProperty( TQWidget *tqparent, const char *name, KPrRectValueCmd::RectValues &rectValue ) +: TQWidget( tqparent, name ) , m_rectValue( rectValue ) { formerVerticalValue = 0; - QVBoxLayout *layout = new QVBoxLayout( this ); - layout->addWidget( m_ui = new RectPropertyUI( this ) ); + TQVBoxLayout *tqlayout = new TQVBoxLayout( this ); + tqlayout->addWidget( m_ui = new RectPropertyUI( this ) ); KoImageResource kir; m_ui->combineButton->setPixmap(kir.chain()); - connect( m_ui->xRndInput, SIGNAL( valueChanged( int ) ), this, SLOT( slotRndChanged() ) ); - connect( m_ui->yRndInput, SIGNAL( valueChanged( int ) ), this, SLOT( slotRndChanged() ) ); - connect( m_ui->combineButton, SIGNAL( toggled( bool ) ), this, SLOT( combineToggled( bool ) ) ); + connect( m_ui->xRndInput, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( slotRndChanged() ) ); + connect( m_ui->yRndInput, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( slotRndChanged() ) ); + connect( m_ui->combineButton, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( combineToggled( bool ) ) ); slotReset(); } @@ -127,17 +127,17 @@ void KPrRectProperty::combineToggled( bool on) if( on ) { formerVerticalValue = getYRnd(); m_ui->yRndInput->setValue( getXRnd() ); - connect(m_ui->yRndInput, SIGNAL( valueChanged ( int ) ), - m_ui->xRndInput, SLOT( setValue ( int ) )); - connect(m_ui->xRndInput, SIGNAL( valueChanged ( int ) ), - m_ui->yRndInput, SLOT( setValue ( int ) )); + connect(m_ui->yRndInput, TQT_SIGNAL( valueChanged ( int ) ), + m_ui->xRndInput, TQT_SLOT( setValue ( int ) )); + connect(m_ui->xRndInput, TQT_SIGNAL( valueChanged ( int ) ), + m_ui->yRndInput, TQT_SLOT( setValue ( int ) )); m_ui->combineButton->setPixmap(kir.chain()); } else { - disconnect(m_ui->yRndInput, SIGNAL( valueChanged ( int ) ), - m_ui->xRndInput, SLOT( setValue ( int ) )); - disconnect(m_ui->xRndInput, SIGNAL( valueChanged ( int ) ), - m_ui->yRndInput, SLOT( setValue ( int ) )); + disconnect(m_ui->yRndInput, TQT_SIGNAL( valueChanged ( int ) ), + m_ui->xRndInput, TQT_SLOT( setValue ( int ) )); + disconnect(m_ui->xRndInput, TQT_SIGNAL( valueChanged ( int ) ), + m_ui->yRndInput, TQT_SLOT( setValue ( int ) )); if(formerVerticalValue != 0) m_ui->yRndInput->setValue( formerVerticalValue ); m_ui->combineButton->setPixmap(kir.chainBroken()); |