Changeset View
Changeset View
Standalone View
Standalone View
lib/draghelper.cpp
Show All 23 Lines | |||||
24 | #include <QMimeData> | 24 | #include <QMimeData> | ||
25 | #include <QQuickItem> | 25 | #include <QQuickItem> | ||
26 | 26 | | |||
27 | using namespace Milou; | 27 | using namespace Milou; | ||
28 | 28 | | |||
29 | DragHelper::DragHelper(QObject* parent) : QObject(parent) | 29 | DragHelper::DragHelper(QObject* parent) : QObject(parent) | ||
30 | , m_dragIconSize(32) | 30 | , m_dragIconSize(32) | ||
31 | { | 31 | { | ||
32 | qmlRegisterType<QMimeData>(); | 32 | qmlRegisterType<QMimeData>("org.kde.milou", 1, 0, "MimeData"); | ||
33 | } | 33 | } | ||
34 | 34 | | |||
35 | DragHelper::~DragHelper() | 35 | DragHelper::~DragHelper() | ||
36 | { | 36 | { | ||
37 | } | 37 | } | ||
38 | 38 | | |||
39 | int DragHelper::dragIconSize() const | 39 | int DragHelper::dragIconSize() const | ||
40 | { | 40 | { | ||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |