summaryrefslogtreecommitdiff
path: root/editor/widget.cc
diff options
context:
space:
mode:
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);