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 --- lib/kformula/MatrixDialog.cc | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'lib/kformula/MatrixDialog.cc') diff --git a/lib/kformula/MatrixDialog.cc b/lib/kformula/MatrixDialog.cc index 7f8ee9d5b..a0536c1d3 100644 --- a/lib/kformula/MatrixDialog.cc +++ b/lib/kformula/MatrixDialog.cc @@ -18,11 +18,11 @@ */ #include "MatrixDialog.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include KFORMULA_NAMESPACE_BEGIN @@ -30,34 +30,34 @@ KFORMULA_NAMESPACE_BEGIN const int DEFAULT_SIZE = 3; const int MAX_SIZE = 200; -MatrixDialog::MatrixDialog( QWidget *parent, int _width, int _height ) - : KDialogBase(parent, "Matrix Dialog", true,i18n("Add Matrix"),Ok|Cancel) +MatrixDialog::MatrixDialog( TQWidget *tqparent, int _width, int _height ) + : KDialogBase(tqparent, "Matrix Dialog", true,i18n("Add Matrix"),Ok|Cancel) { w = _width; h = _height; - QLabel *rows, *columns; - QWidget *page = new QWidget( this ); + TQLabel *rows, *columns; + TQWidget *page = new TQWidget( this ); setMainWidget(page); - QGridLayout *grid = new QGridLayout(page, 4, 2, 10); + TQGridLayout *grid = new TQGridLayout(page, 4, 2, 10); - rows = new QLabel(i18n("Rows:"), page); - columns = new QLabel(i18n("Columns:"), page); + rows = new TQLabel(i18n("Rows:"), page); + columns = new TQLabel(i18n("Columns:"), page); grid->addWidget(rows, 0, 0); grid->addWidget(columns, 0, 1); - QSpinBox *width, *height; + TQSpinBox *width, *height; - height = new QSpinBox(1, MAX_SIZE, 1, page); + height = new TQSpinBox(1, MAX_SIZE, 1, page); grid->addWidget(height, 1, 0); height->setValue(h); - connect(height, SIGNAL(valueChanged(int)), SLOT(setHeight(int))); + connect(height, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(setHeight(int))); - width = new QSpinBox(1, MAX_SIZE, 1, page); + width = new TQSpinBox(1, MAX_SIZE, 1, page); grid->addWidget(width, 1, 1); width->setValue(w); - connect(width, SIGNAL(valueChanged(int)), SLOT(setWidth(int))); + connect(width, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(setWidth(int))); height->setFocus(); } -- cgit v1.2.3