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 /kword/KWResizeTableDia.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 'kword/KWResizeTableDia.cpp')
-rw-r--r-- | kword/KWResizeTableDia.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kword/KWResizeTableDia.cpp b/kword/KWResizeTableDia.cpp index ab81d52b..ec77394a 100644 --- a/kword/KWResizeTableDia.cpp +++ b/kword/KWResizeTableDia.cpp @@ -25,11 +25,11 @@ #include <KoUnitWidgets.h> #include <klocale.h> -#include <qlabel.h> -#include <qvbox.h> +#include <tqlabel.h> +#include <tqvbox.h> -KWResizeTableDia::KWResizeTableDia( QWidget *parent, KWTableFrameSet *table, KWDocument *doc, int resizeColumn ) - : KDialogBase( parent, "resize column dialog" , true, "", Ok | Cancel | User1 | Apply ) +KWResizeTableDia::KWResizeTableDia( TQWidget *tqparent, KWTableFrameSet *table, KWDocument *doc, int resizeColumn ) + : KDialogBase( tqparent, "resize column dialog" , true, "", Ok | Cancel | User1 | Apply ) { setButtonText( KDialogBase::User1, i18n("Reset") ); setCaption( i18n( "Resize Column" ) ); @@ -41,18 +41,18 @@ KWResizeTableDia::KWResizeTableDia( QWidget *parent, KWTableFrameSet *table, KWD } void KWResizeTableDia::setupTab1(int resizeColumn) { - QVBox *page = makeVBoxMainWidget(); - QLabel *rc = new QLabel( i18n( "Column:" ), page ); - rc->resize( rc->sizeHint() ); - rc->setAlignment( AlignLeft | AlignBottom ); - m_value = new QSpinBox( 1, m_table->getColumns(), 1, page ); - m_value->resize( m_value->sizeHint() ); + TQVBox *page = makeVBoxMainWidget(); + TQLabel *rc = new TQLabel( i18n( "Column:" ), page ); + rc->resize( rc->tqsizeHint() ); + rc->tqsetAlignment( AlignLeft | AlignBottom ); + m_value = new TQSpinBox( 1, m_table->getColumns(), 1, page ); + m_value->resize( m_value->tqsizeHint() ); m_value->setValue( resizeColumn ); - rc = new QLabel( i18n( "Width:" ), page ); + rc = new TQLabel( i18n( "Width:" ), page ); m_position= new KoUnitDoubleSpinBox( page, 0.01, m_table->anchorFrameset()->isFloating() ? m_table->anchorFrameset()->frame(0)->width(): 9999, 1, 0.0, m_doc->unit(), m_doc->unit() ); slotValueChanged( m_value->value()); - connect( m_value, SIGNAL( valueChanged ( int )), this, SLOT( slotValueChanged( int ))); + connect( m_value, TQT_SIGNAL( valueChanged ( int )), this, TQT_SLOT( slotValueChanged( int ))); } bool KWResizeTableDia::doResize() @@ -75,7 +75,7 @@ void KWResizeTableDia::slotValueChanged( int pos) { KWFrame *frm = m_table->cell( 0, pos-1 )->frame(0); if (frm) { - m_position->setValue( KoUnit::toUserValue( QMAX(0.00, frm->normalize().width()), m_doc->unit() ) ); + m_position->setValue( KoUnit::toUserValue( TQMAX(0.00, frm->normalize().width()), m_doc->unit() ) ); m_resetValue = m_position->value(); } } |