summaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2010-04-14 03:18:03 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2010-04-14 03:21:55 (GMT)
commit37581fa549c5cbe56afc68c71fa97d8f933512c0 (patch)
tree621a068e2a786eec416facdce9aa2eccd92e36f2 /src/imports
parent298335af52cd39ad6683198674e799799d5b6d6f (diff)
downloadQt-37581fa549c5cbe56afc68c71fa97d8f933512c0.zip
Qt-37581fa549c5cbe56afc68c71fa97d8f933512c0.tar.gz
Qt-37581fa549c5cbe56afc68c71fa97d8f933512c0.tar.bz2
Bring support of anchors in QML for QGraphicsWidget derived classes.
This commit add a extension object to bring the anchors property for a QGraphicsWidget. The actual implement uses a separate object for storing the anchor pointer. In the future it would be nice if the extension object is the anchor itself. Also there are two connects extra for QGraphicsWidget one can perhaps disappear with a later commit. Only baseline case is not supported because QGraphicsWidget don't have any concept of baseline. Reviewed-by:akennedy
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/widgets/widgets.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/imports/widgets/widgets.cpp b/src/imports/widgets/widgets.cpp
index f26969a..1a71a68 100644
--- a/src/imports/widgets/widgets.cpp
+++ b/src/imports/widgets/widgets.cpp
@@ -44,7 +44,7 @@
#include <QGraphicsWidget>
#include "graphicslayouts_p.h"
-
+#include <private/qdeclarativegraphicswidget_p.h>
QT_BEGIN_NAMESPACE
class QWidgetsQmlModule : public QDeclarativeExtensionPlugin
@@ -60,7 +60,6 @@ public:
qmlRegisterType<QGraphicsLinearLayoutStretchItemObject>(uri,4,6,"QGraphicsLinearLayoutStretchItem");
qmlRegisterType<QGraphicsLinearLayoutObject>(uri,4,6,"QGraphicsLinearLayout");
qmlRegisterType<QGraphicsGridLayoutObject>(uri,4,6,"QGraphicsGridLayout");
- qmlRegisterType<QGraphicsWidget>(uri,4,6,"QGraphicsWidget");
}
};