summaryrefslogtreecommitdiffstats
path: root/kexi/formeditor/resizehandle.h
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 /kexi/formeditor/resizehandle.h
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 'kexi/formeditor/resizehandle.h')
-rw-r--r--kexi/formeditor/resizehandle.h38
1 files changed, 20 insertions, 18 deletions
diff --git a/kexi/formeditor/resizehandle.h b/kexi/formeditor/resizehandle.h
index 15ddbf36..85390fe1 100644
--- a/kexi/formeditor/resizehandle.h
+++ b/kexi/formeditor/resizehandle.h
@@ -20,9 +20,9 @@
#ifndef KFE_RESIZEHANDLER_H
#define KFE_RESIZEHANDLER_H
-#include <qdict.h>
-#include <qguardedptr.h>
-#include <qwidget.h>
+#include <tqdict.h>
+#include <tqguardedptr.h>
+#include <tqwidget.h>
/**
*@author Joseph Wenninger
@@ -38,9 +38,10 @@ class ResizeHandleSet;
* a single widget which represents a dot for resizing a widget
* @author Joseph Wenninger
*/
-class KFORMEDITOR_EXPORT ResizeHandle : public QWidget
+class KFORMEDITOR_EXPORT ResizeHandle : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
enum HandlePos { TopLeft = 0, TopCenter = 2, TopRight = 4, LeftCenter = 8, RightCenter = 16,
@@ -50,19 +51,19 @@ class KFORMEDITOR_EXPORT ResizeHandle : public QWidget
void setEditingMode(bool editing);
protected:
- virtual void mousePressEvent(QMouseEvent *ev);
- virtual void mouseMoveEvent(QMouseEvent *ev);
- virtual void mouseReleaseEvent(QMouseEvent *ev);
- virtual void paintEvent( QPaintEvent *ev );
+ virtual void mousePressEvent(TQMouseEvent *ev);
+ virtual void mouseMoveEvent(TQMouseEvent *ev);
+ virtual void mouseReleaseEvent(TQMouseEvent *ev);
+ virtual void paintEvent( TQPaintEvent *ev );
protected slots:
- bool eventFilter(QObject *obj, QEvent *ev);
+ bool eventFilter(TQObject *obj, TQEvent *ev);
void updatePos();
private:
ResizeHandleSet *m_set;
HandlePos m_pos;
- //QWidget *m_buddy;
+ //TQWidget *m_buddy;
bool m_dragging;
//bool m_editing;
int m_x;
@@ -73,25 +74,26 @@ class KFORMEDITOR_EXPORT ResizeHandle : public QWidget
* a set of resize handles (for resizing widgets)
* @author Joseph Wenninger
*/
-class KFORMEDITOR_EXPORT ResizeHandleSet: public QObject
+class KFORMEDITOR_EXPORT ResizeHandleSet: public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- typedef QDict<ResizeHandleSet> Dict;
+ typedef TQDict<ResizeHandleSet> Dict;
- ResizeHandleSet(QWidget *modify, Form *form, bool editing = false);
+ ResizeHandleSet(TQWidget *modify, Form *form, bool editing = false);
~ResizeHandleSet();
- void setWidget(QWidget *modify, bool editing = false);
- QWidget *widget() const { return m_widget; }
+ void setWidget(TQWidget *modify, bool editing = false);
+ TQWidget *widget() const { return m_widget; }
void raise();
void setEditingMode(bool editing);
private:
- QGuardedPtr<ResizeHandle> m_handles[8];
- QGuardedPtr<QWidget> m_widget;
- QGuardedPtr<Form> m_form;
+ TQGuardedPtr<ResizeHandle> m_handles[8];
+ TQGuardedPtr<TQWidget> m_widget;
+ TQGuardedPtr<Form> m_form;
bool m_editing;
friend class ResizeHandle;