summaryrefslogtreecommitdiffstats
path: root/lib/kformula/MatrixDialog.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kformula/MatrixDialog.cc
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-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 'lib/kformula/MatrixDialog.cc')
-rw-r--r--lib/kformula/MatrixDialog.cc34
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/kformula/MatrixDialog.cc b/lib/kformula/MatrixDialog.cc
index 7f8ee9d5..a0536c1d 100644
--- a/lib/kformula/MatrixDialog.cc
+++ b/lib/kformula/MatrixDialog.cc
@@ -18,11 +18,11 @@
*/
#include "MatrixDialog.h"
-#include <qpushbutton.h>
-#include <qspinbox.h>
-#include <qlabel.h>
-#include <qcheckbox.h>
-#include <qlayout.h>
+#include <tqpushbutton.h>
+#include <tqspinbox.h>
+#include <tqlabel.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
#include <klocale.h>
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();
}