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/KWInsertDia.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/KWInsertDia.cpp')
-rw-r--r-- | kword/KWInsertDia.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kword/KWInsertDia.cpp b/kword/KWInsertDia.cpp index cabae8a1..883332bd 100644 --- a/kword/KWInsertDia.cpp +++ b/kword/KWInsertDia.cpp @@ -24,36 +24,36 @@ #include <klocale.h> -#include <qlabel.h> -#include <qspinbox.h> -#include <qradiobutton.h> -#include <qbuttongroup.h> -#include <qlayout.h> - -KWInsertDia::KWInsertDia( KWView *parent, KWTableFrameSet *table, InsertType type, int insertHint) - : KDialogBase( Plain, (type==insertRow?i18n("Insert Row") : i18n("Insert Column")), Ok | Cancel, Ok, parent, "Insert Table items dialog", true ) +#include <tqlabel.h> +#include <tqspinbox.h> +#include <tqradiobutton.h> +#include <tqbuttongroup.h> +#include <tqlayout.h> + +KWInsertDia::KWInsertDia( KWView *tqparent, KWTableFrameSet *table, InsertType type, int insertHint) + : KDialogBase( Plain, (type==insertRow?i18n("Insert Row") : i18n("Insert Column")), Ok | Cancel, Ok, tqparent, "Insert Table items dialog", true ) { m_type = type; m_table = table; - m_view = parent; + m_view = tqparent; setupTab1(insertHint); } void KWInsertDia::setupTab1(int insertHint) { - QWidget *tab1 = plainPage(); - QGridLayout *grid1 = new QGridLayout( tab1, 2, 2, 0, KDialog::spacingHint() ); + TQWidget *tab1 = plainPage(); + TQGridLayout *grid1 = new TQGridLayout( tab1, 2, 2, 0, KDialog::spacingHint() ); - QButtonGroup *grp = new QButtonGroup( m_type == insertRow ? i18n( "Insert New Row" ) : i18n( "Insert New Column" ), tab1 ); + TQButtonGroup *grp = new TQButtonGroup( m_type == insertRow ? i18n( "Insert New Row" ) : i18n( "Insert New Column" ), tab1 ); - QGridLayout *grid2 = new QGridLayout( grp, 3, 1, KDialog::marginHint(), KDialog::spacingHint() ); + TQGridLayout *grid2 = new TQGridLayout( grp, 3, 1, KDialog::marginHint(), KDialog::spacingHint() ); - m_rBefore = new QRadioButton( i18n( "Before" ), grp, "before_radio_button" ); + m_rBefore = new TQRadioButton( i18n( "Before" ), grp, "before_radio_button" ); grp->insert( m_rBefore ); grid2->addWidget( m_rBefore, 1, 0 ); - QRadioButton *rAfter = new QRadioButton( i18n( "After" ), grp, "after_radio_button"); + TQRadioButton *rAfter = new TQRadioButton( i18n( "After" ), grp, "after_radio_button"); grp->insert( rAfter ); grid2->addWidget( rAfter, 2, 0 ); rAfter->setChecked( true ); @@ -62,10 +62,10 @@ void KWInsertDia::setupTab1(int insertHint) grid1->addMultiCellWidget ( grp, 0, 0, 0, 1 ); - QLabel *rc = new QLabel( m_type == insertRow ? i18n( "Row:" ) : i18n( "Column:" ), tab1 ); + TQLabel *rc = new TQLabel( m_type == insertRow ? i18n( "Row:" ) : i18n( "Column:" ), tab1 ); grid1->addWidget( rc, 1, 0 ); - m_value = new QSpinBox( 1, m_type == insertRow ? m_table->getRows() : m_table->getColumns(), + m_value = new TQSpinBox( 1, m_type == insertRow ? m_table->getRows() : m_table->getColumns(), 1, tab1, "row_col_spinbox" ); m_value->setValue( insertHint + 1 ); // +1 due to the fact that humans count starting at 1 |