summaryrefslogtreecommitdiff
path: root/editor/widget.cc
diff options
context:
space:
mode:
authordeva <deva>2008-07-07 07:36:42 +0000
committerdeva <deva>2008-07-07 07:36:42 +0000
commit12bd3e7ff088b097bf4e280161aee646fbbb50dc (patch)
treec8923c3b73fe578c95d45f99e6bcc36dbe2e72f5 /editor/widget.cc
parent678aba4c1fd1c9930ecda84a126f1bc7163dc29d (diff)
Made actual widgets get dragged around
Diffstat (limited to 'editor/widget.cc')
-rw-r--r--editor/widget.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/widget.cc b/editor/widget.cc
index 15bcd2f..7b35d03 100644
--- a/editor/widget.cc
+++ b/editor/widget.cc
@@ -28,6 +28,7 @@
#include <QDrag>
#include <QLayout>
+#include "widgetwrapper.h"
Widget::Widget(QString type)
: QLabel(type)
@@ -48,7 +49,7 @@ void Widget::mousePressEvent(QMouseEvent *event)
drag->setPixmap(QPixmap("drag.png"));
QMimeData *mimedata = new QMimeData();
- mimedata->setData("pracro/widget", widget.toAscii());
+ mimedata->setData("pracro/widget", wrapWidget(this));
drag->setMimeData(mimedata);
parentWidget()->layout()->removeWidget(this);