aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items/qsgitemsmodule.cpp
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2011-06-09 18:29:50 +1000
committerAndrew den Exter <andrew.den-exter@nokia.com>2011-06-09 18:29:50 +1000
commit73081387d84c4b77dafeda927d1fc1ebee6cfdf2 (patch)
treece963197bc30cd034f7ddba95980ce300486bf6d /src/declarative/items/qsgitemsmodule.cpp
parent206a299923ca985b9ab8b47550f55a74f5473157 (diff)
Add a DragTarget element.
Provides an area that can be used to handle events when other items are dragged over it. Task-number: QMLNG-32
Diffstat (limited to 'src/declarative/items/qsgitemsmodule.cpp')
-rw-r--r--src/declarative/items/qsgitemsmodule.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/items/qsgitemsmodule.cpp b/src/declarative/items/qsgitemsmodule.cpp
index a29776fc68..f1e3a0cb91 100644
--- a/src/declarative/items/qsgitemsmodule.cpp
+++ b/src/declarative/items/qsgitemsmodule.cpp
@@ -77,6 +77,7 @@
#include "qsgcontext2d_p.h"
#include "qsgsprite_p.h"
#include "qsgspriteimage_p.h"
+#include "qsgdragtarget_p.h"
static QDeclarativePrivate::AutoParentResult qsgitem_autoParent(QObject *obj, QObject *parent)
{
@@ -189,6 +190,9 @@ static void qt_sgitems_defineModule(const char *uri, int major, int minor)
qmlRegisterType<QSGAnchorSet>();
qmlRegisterType<QSGAnchorAnimation>(uri, major, minor,"AnchorAnimation");
qmlRegisterType<QSGParentAnimation>(uri, major, minor,"ParentAnimation");
+
+ qmlRegisterType<QSGDragTarget>("QtQuick", 2, 0, "DragTarget");
+ qmlRegisterType<QSGDragTargetEvent>();
}
void QSGItemsModule::defineModule()