summaryrefslogtreecommitdiffstats
path: root/lib/kformula/kformulawidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kformula/kformulawidget.h')
-rw-r--r--lib/kformula/kformulawidget.h35
1 files changed, 18 insertions, 17 deletions
diff --git a/lib/kformula/kformulawidget.h b/lib/kformula/kformulawidget.h
index 99079e1d..ead28ddc 100644
--- a/lib/kformula/kformulawidget.h
+++ b/lib/kformula/kformulawidget.h
@@ -21,10 +21,10 @@
#ifndef KFORMULAWIDGET_H
#define KFORMULAWIDGET_H
-#include <qdom.h>
-#include <qpixmap.h>
-#include <qpoint.h>
-#include <qwidget.h>
+#include <tqdom.h>
+#include <tqpixmap.h>
+#include <tqpoint.h>
+#include <tqwidget.h>
#include "kformuladefs.h"
#include "kformulaview.h"
@@ -45,18 +45,19 @@ using namespace KFormula;
* The view. A widget that shows the formula. There are methods
* to move the cursor around. To edit the formula use the document.
*/
-class KFormulaWidget : public QWidget {
+class KFormulaWidget : public TQWidget {
Q_OBJECT
+ TQ_OBJECT
public:
- KFormulaWidget(Container*, QWidget* parent=0, const char* name=0, WFlags f=0);
+ KFormulaWidget(Container*, TQWidget* tqparent=0, const char* name=0, WFlags f=0);
~KFormulaWidget();
/**
* @returns the point inside the formula widget where the cursor is.
*/
- QPoint getCursorPoint() const;
+ TQPoint getCursorPoint() const;
/**
* Puts the widget in read only mode.
@@ -85,16 +86,16 @@ protected slots:
protected:
- virtual void mousePressEvent(QMouseEvent* event);
- virtual void mouseReleaseEvent(QMouseEvent* event);
- virtual void mouseDoubleClickEvent(QMouseEvent* event);
- virtual void mouseMoveEvent(QMouseEvent* event);
- virtual void wheelEvent(QWheelEvent* event);
+ virtual void mousePressEvent(TQMouseEvent* event);
+ virtual void mouseReleaseEvent(TQMouseEvent* event);
+ virtual void mouseDoubleClickEvent(TQMouseEvent* event);
+ virtual void mouseMoveEvent(TQMouseEvent* event);
+ virtual void wheelEvent(TQWheelEvent* event);
- virtual void paintEvent(QPaintEvent* event);
- virtual void keyPressEvent(QKeyEvent* event);
- virtual void focusInEvent(QFocusEvent* event);
- virtual void focusOutEvent(QFocusEvent* event);
+ virtual void paintEvent(TQPaintEvent* event);
+ virtual void keyPressEvent(TQKeyEvent* event);
+ virtual void focusInEvent(TQFocusEvent* event);
+ virtual void focusOutEvent(TQFocusEvent* event);
/**
* The document we show.
@@ -113,7 +114,7 @@ private:
*/
View formulaView;
- QPixmap buffer;
+ TQPixmap buffer;
};
#endif // KFORMULAWIDGET_H