summaryrefslogtreecommitdiff
path: root/editor/macrowindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/macrowindow.h')
-rw-r--r--editor/macrowindow.h21
1 files changed, 4 insertions, 17 deletions
diff --git a/editor/macrowindow.h b/editor/macrowindow.h
index 5ff375f..e6c2876 100644
--- a/editor/macrowindow.h
+++ b/editor/macrowindow.h
@@ -27,27 +27,14 @@
#ifndef __PRACRO_MACROWINDOW_H__
#define __PRACRO_MACROWINDOW_H__
-#include <QFrame>
-#include <QDragEnterEvent>
-#include <QDropEvent>
+#include "widget.h"
+#include <QDomNode>
-class MacroWindow : public QFrame
+class MacroWindow : public Widget
{
Q_OBJECT
public:
- MacroWindow(Qt::Orientation orientation);
-
-protected:
- void dragEnterEvent(QDragEnterEvent *event);
- void dragLeaveEvent(QDragLeaveEvent *event);
- void dragMoveEvent(QDragMoveEvent *event);
- void dropEvent(QDropEvent *event);
- void mousePressEvent(QMouseEvent *event);
-
-private:
- Qt::Orientation orientation;
- QWidget *dragObject;
- QWidget *findWidget(QPoint pos);
+ MacroWindow(QDomNode &node);
};
#endif/*__PRACRO_MACROWINDOW_H__*/