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/KPrTextProperty.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/KPrTextProperty.cpp')
-rw-r--r-- | kpresenter/KPrTextProperty.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kpresenter/KPrTextProperty.cpp b/kpresenter/KPrTextProperty.cpp index 1f610538..850c89b4 100644 --- a/kpresenter/KPrTextProperty.cpp +++ b/kpresenter/KPrTextProperty.cpp @@ -22,8 +22,8 @@ #include "KPrTextProperty.h" -#include <qcheckbox.h> -#include <qlayout.h> +#include <tqcheckbox.h> +#include <tqlayout.h> #include <klocale.h> #include <kdebug.h> @@ -31,21 +31,21 @@ #include "KPrMarginWidget.h" -KPrTextProperty::KPrTextProperty( QWidget *parent, const char *name, const MarginsStruct &marginsStruct, +KPrTextProperty::KPrTextProperty( TQWidget *tqparent, const char *name, const MarginsStruct &marginsStruct, const KoUnit::Unit unit, PropValue protectContent ) -: QWidget( parent, name ) +: TQWidget( tqparent, name ) , m_unit( unit ) , m_protectContent( protectContent ) { - QGridLayout *layout = new QGridLayout( this, 1, 1, 11, 6 ); + TQGridLayout *tqlayout = new TQGridLayout( this, 1, 1, 11, 6 ); - layout->addWidget( m_protectContentCheck = new QCheckBox( i18n( "Protect content" ), this ), 0, 0 ); - layout->addWidget( m_margins = new KPrMarginWidget( this, name, m_unit ), 1, 0 ); + tqlayout->addWidget( m_protectContentCheck = new TQCheckBox( i18n( "Protect content" ), this ), 0, 0 ); + tqlayout->addWidget( m_margins = new KPrMarginWidget( this, name, m_unit ), 1, 0 ); - connect( m_protectContentCheck, SIGNAL( toggled ( bool ) ), - this, SLOT( slotProtectContentChanged( bool ) ) ); + connect( m_protectContentCheck, TQT_SIGNAL( toggled ( bool ) ), + this, TQT_SLOT( slotProtectContentChanged( bool ) ) ); - resize( QSize( 301, 217 ).expandedTo( minimumSizeHint() ) ); + resize( TQSize( 301, 217 ).expandedTo( tqminimumSizeHint() ) ); m_margins->setValues( marginsStruct.leftMargin, marginsStruct.rightMargin, marginsStruct.topMargin, marginsStruct.bottomMargin ); @@ -63,7 +63,7 @@ int KPrTextProperty::getTextPropertyChange() const { int flags = 0; - if ( m_protectContentCheck->state() != QButton::NoChange ) + if ( m_protectContentCheck->state() != TQButton::NoChange ) { if ( ( m_protectContentCheck->isOn() ? STATE_ON : STATE_OFF ) != m_protectContent ) { |