summaryrefslogtreecommitdiffstats
path: root/lib/kformula/kformulaview.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kformula/kformulaview.h')
-rw-r--r--lib/kformula/kformulaview.h57
1 files changed, 29 insertions, 28 deletions
diff --git a/lib/kformula/kformulaview.h b/lib/kformula/kformulaview.h
index f93b491f..9562bbfe 100644
--- a/lib/kformula/kformulaview.h
+++ b/lib/kformula/kformulaview.h
@@ -21,14 +21,14 @@
#ifndef KFORMULAVIEW_H
#define KFORMULAVIEW_H
-#include <qevent.h>
-#include <qobject.h>
-#include <qrect.h>
+#include <tqevent.h>
+#include <tqobject.h>
+#include <tqrect.h>
#include "kformuladefs.h"
#include "contextstyle.h"
-class QColorGroup;
+class TQColorGroup;
KFORMULA_NAMESPACE_BEGIN
@@ -47,8 +47,9 @@ class Container;
* to be used alone if there is a bigger widget the formula
* is to be drawn into.
*/
-class KOFORMULA_EXPORT View : public QObject {
+class KOFORMULA_EXPORT View : public TQObject {
Q_OBJECT
+ TQ_OBJECT
public:
@@ -58,41 +59,41 @@ public:
/**
* @returns the point inside the formula view where the cursor is.
*/
- QPoint getCursorPoint() const;
+ TQPoint getCursorPoint() const;
/**
* Puts the widget in read only mode.
*/
void setReadOnly(bool ro);
- void mousePressEvent(QMouseEvent* event);
- void mouseReleaseEvent(QMouseEvent* event);
- void mouseDoubleClickEvent(QMouseEvent* event);
- void mouseMoveEvent(QMouseEvent* event);
- void wheelEvent(QWheelEvent* event);
+ void mousePressEvent(TQMouseEvent* event);
+ void mouseReleaseEvent(TQMouseEvent* event);
+ void mouseDoubleClickEvent(TQMouseEvent* event);
+ void mouseMoveEvent(TQMouseEvent* event);
+ void wheelEvent(TQWheelEvent* event);
// the mouse event happened at a certain point
- void mousePressEvent( QMouseEvent* event, const PtPoint& pos );
- void mouseReleaseEvent( QMouseEvent* event, const PtPoint& pos );
- void mouseDoubleClickEvent( QMouseEvent* event, const PtPoint& pos );
- void mouseMoveEvent( QMouseEvent* event, const PtPoint& pos );
- void wheelEvent( QWheelEvent* event, const PtPoint& pos );
+ void mousePressEvent( TQMouseEvent* event, const PtPoint& pos );
+ void mouseReleaseEvent( TQMouseEvent* event, const PtPoint& pos );
+ void mouseDoubleClickEvent( TQMouseEvent* event, const PtPoint& pos );
+ void mouseMoveEvent( TQMouseEvent* event, const PtPoint& pos );
+ void wheelEvent( TQWheelEvent* event, const PtPoint& pos );
// the mouse event happened at a certain point
- void mousePressEvent( QMouseEvent* event, const LuPixelPoint& pos );
- void mouseReleaseEvent( QMouseEvent* event, const LuPixelPoint& pos );
- void mouseDoubleClickEvent( QMouseEvent* event, const LuPixelPoint& pos );
- void mouseMoveEvent( QMouseEvent* event, const LuPixelPoint& pos );
- void wheelEvent( QWheelEvent* event, const LuPixelPoint& pos );
+ void mousePressEvent( TQMouseEvent* event, const LuPixelPoint& pos );
+ void mouseReleaseEvent( TQMouseEvent* event, const LuPixelPoint& pos );
+ void mouseDoubleClickEvent( TQMouseEvent* event, const LuPixelPoint& pos );
+ void mouseMoveEvent( TQMouseEvent* event, const LuPixelPoint& pos );
+ void wheelEvent( TQWheelEvent* event, const LuPixelPoint& pos );
- void keyPressEvent(QKeyEvent* event);
- virtual void focusInEvent(QFocusEvent* event);
- virtual void focusOutEvent(QFocusEvent* event);
+ void keyPressEvent(TQKeyEvent* event);
+ virtual void focusInEvent(TQFocusEvent* event);
+ virtual void focusOutEvent(TQFocusEvent* event);
void calcCursor();
- void draw(QPainter& painter, const QRect& rect, const QColorGroup& cg);
- void draw(QPainter& painter, const QRect& rect);
+ void draw(TQPainter& painter, const TQRect& rect, const TQColorGroup& cg);
+ void draw(TQPainter& painter, const TQRect& rect);
/**
* The document we show.
@@ -123,7 +124,7 @@ public:
bool isEnd() const;
void eraseSelection( Direction direction = beforeCursor );
- void addText( QString str );
+ void addText( TQString str );
signals:
@@ -140,7 +141,7 @@ protected slots:
/**
* The cursor has been moved by the container.
- * We need to repaint if it was ours.
+ * We need to tqrepaint if it was ours.
*/
void slotCursorMoved(FormulaCursor* cursor);