diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 23:37:00 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 23:37:00 +0000 |
commit | b0e912c8b3d02a518fedda28c3180eb4794a7520 (patch) | |
tree | 07d344862562fab58cbe2df39d13d16f2e4d2bea /k9author/k9menueditor.h | |
parent | 4d695ec81fe4d4335ee82c7a9346ad9c9e144ecc (diff) | |
download | k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.tar.gz k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.zip |
TQt4 convert k9copy
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1233843 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'k9author/k9menueditor.h')
-rw-r--r-- | k9author/k9menueditor.h | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/k9author/k9menueditor.h b/k9author/k9menueditor.h index 53c1921..d4332dd 100644 --- a/k9author/k9menueditor.h +++ b/k9author/k9menueditor.h @@ -12,7 +12,7 @@ #ifndef K9MENUEDITOR_H #define K9MENUEDITOR_H -#include <qcanvas.h> +#include <tqcanvas.h> /** @author Jean-Michel PETIT <k9copy@free.fr> @@ -21,11 +21,12 @@ class k9MenuButton; class k9MenuEdit; class k9CanvasSelection; -class k9MenuEditor : public QCanvasView { +class k9MenuEditor : public TQCanvasView { Q_OBJECT + TQ_OBJECT public: - k9MenuEditor(QCanvas&, QWidget* parent=0, const char* name=0, WFlags f=0); + k9MenuEditor(TQCanvas&, TQWidget* tqparent=0, const char* name=0, WFlags f=0); void clear(); k9MenuButton* getSelected() ; @@ -33,31 +34,31 @@ public: m_menu=_menu; } - QCanvasItem* getMoving() const; + TQCanvasItem* getMoving() const; - void setMoving(QCanvasItem* _value); - QPtrList< k9MenuButton > *getSelection() ; + void setMoving(TQCanvasItem* _value); + TQPtrList< k9MenuButton > *getSelection() ; void clearSelection(); void hideSelection(); protected: - void contentsMousePressEvent(QMouseEvent*); - void contentsMouseMoveEvent(QMouseEvent*); - void contentsMouseReleaseEvent(QMouseEvent* e); - void updateCursor(QMouseEvent *e); - virtual void resizeEvent ( QResizeEvent * e ); - void addSelection(QCanvasItem *_item); - bool isSelected(QCanvasItem *_item); + void contentsMousePressEvent(TQMouseEvent*); + void contentsMouseMoveEvent(TQMouseEvent*); + void contentsMouseReleaseEvent(TQMouseEvent* e); + void updateCursor(TQMouseEvent *e); + virtual void resizeEvent ( TQResizeEvent * e ); + void addSelection(TQCanvasItem *_item); + bool isSelected(TQCanvasItem *_item); void drawSelection(); signals: - void status(const QString&); + void status(const TQString&); void itemSelected(); private: - QCanvasItem* moving; - QCanvasRectangle *m_rect; - QPoint moving_start; + TQCanvasItem* moving; + TQCanvasRectangle *m_rect; + TQPoint moving_start; k9MenuEdit *m_menu; - QPtrList <k9MenuButton> m_selection; + TQPtrList <k9MenuButton> m_selection; k9CanvasSelection *m_canvasSelection; }; |