From f008adb5a77e094eaf6abf3fc0f36958e66896a5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 25 Jun 2011 05:28:35 +0000 Subject: 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 --- kpresenter/KPrMarginWidget.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'kpresenter/KPrMarginWidget.cpp') diff --git a/kpresenter/KPrMarginWidget.cpp b/kpresenter/KPrMarginWidget.cpp index 3a5874d4d..2e942de7d 100644 --- a/kpresenter/KPrMarginWidget.cpp +++ b/kpresenter/KPrMarginWidget.cpp @@ -22,9 +22,9 @@ #include "KPrMarginWidget.h" -#include -#include -#include +#include +#include +#include #include #include @@ -32,19 +32,19 @@ #include "marginui.h" #include //for KoUnitDoubleSpinBox -KPrMarginWidget::KPrMarginWidget( QWidget *parent, const char *name, const KoUnit::Unit unit ) -: QWidget( parent, name ) +KPrMarginWidget::KPrMarginWidget( TQWidget *tqparent, const char *name, const KoUnit::Unit unit ) +: TQWidget( tqparent, name ) , m_unit( unit ) , m_changed( false ) , m_noSignal( false ) { - QVBoxLayout *layout = new QVBoxLayout( this ); + TQVBoxLayout *tqlayout = new TQVBoxLayout( this ); m_ui = new MarginUI( this ); - layout->addWidget( m_ui ); + tqlayout->addWidget( m_ui ); - QSpacerItem *spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Expanding ); - layout->addItem( spacer ); + TQSpacerItem *spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Expanding ); + tqlayout->addItem( spacer ); m_ui->margins->setTitle( i18n( "Margins" ) ); @@ -62,14 +62,14 @@ KPrMarginWidget::KPrMarginWidget( QWidget *parent, const char *name, const KoUni m_ui->bottomInput->setUnit( unit ); m_ui->bottomInput->setMinMaxStep( 0, dMax, dStep ); - connect( m_ui->leftInput, SIGNAL( valueChanged( double ) ), - this, SLOT( slotValueChanged( double ) ) ); - connect( m_ui->rightInput, SIGNAL( valueChanged( double ) ), - this, SLOT( slotValueChanged( double ) ) ); - connect( m_ui->topInput, SIGNAL( valueChanged( double ) ), - this, SLOT( slotValueChanged( double ) ) ); - connect( m_ui->bottomInput, SIGNAL( valueChanged( double ) ), - this, SLOT( slotValueChanged( double ) ) ); + connect( m_ui->leftInput, TQT_SIGNAL( valueChanged( double ) ), + this, TQT_SLOT( slotValueChanged( double ) ) ); + connect( m_ui->rightInput, TQT_SIGNAL( valueChanged( double ) ), + this, TQT_SLOT( slotValueChanged( double ) ) ); + connect( m_ui->topInput, TQT_SIGNAL( valueChanged( double ) ), + this, TQT_SLOT( slotValueChanged( double ) ) ); + connect( m_ui->bottomInput, TQT_SIGNAL( valueChanged( double ) ), + this, TQT_SLOT( slotValueChanged( double ) ) ); } -- cgit v1.2.3