summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2010-06-22 22:36:13 (GMT)
committerRohan McGovern <rohan.mcgovern@nokia.com>2010-06-22 22:36:13 (GMT)
commit27d59016d35ae84d89e8d09bdadb1c3a89ac3f22 (patch)
treef493da0591281db183c23c86ecc3dc078009cafa /src/declarative
parentb92a7337d47e8b1be2d65d5a726f7a6f291a65bb (diff)
parent5d3b132dd94f6c985fa3f9584dedb46823acddfe (diff)
downloadQt-27d59016d35ae84d89e8d09bdadb1c3a89ac3f22.zip
Qt-27d59016d35ae84d89e8d09bdadb1c3a89ac3f22.tar.gz
Qt-27d59016d35ae84d89e8d09bdadb1c3a89ac3f22.tar.bz2
Merge remote branch 'origin/4.7' into qml-4.7
Conflicts: examples/declarative/modelviews/webview/transparent.qml
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/QmlChanges.txt2
-rw-r--r--src/declarative/graphicsitems/qdeclarativeanchors.cpp3
-rw-r--r--src/declarative/util/qdeclarativepackage.cpp2
3 files changed, 2 insertions, 5 deletions
diff --git a/src/declarative/QmlChanges.txt b/src/declarative/QmlChanges.txt
index 8b6b83f..432b5d6 100644
--- a/src/declarative/QmlChanges.txt
+++ b/src/declarative/QmlChanges.txt
@@ -50,7 +50,7 @@ Removed Qt.playSound (replaced by SoundEffect element)
Removed Qt.closestAngle (use RotationAnimation instead)
Removed NumberFormatter
Removed DateTimeFormatter (use Qt.formatDateTime() instead)
-Using WebView now requires "import org.webkit 1.0"
+Using WebView now requires "import QtWebKit 1.0"
Using Particles now requires "import Qt.labs.particles 1.0"
AnchorAnimation must now be used to animate anchor changes (and not NumberAnimation)
Removed ParentAction (use ParentAnimation instead)
diff --git a/src/declarative/graphicsitems/qdeclarativeanchors.cpp b/src/declarative/graphicsitems/qdeclarativeanchors.cpp
index 6796977..7ac2b17 100644
--- a/src/declarative/graphicsitems/qdeclarativeanchors.cpp
+++ b/src/declarative/graphicsitems/qdeclarativeanchors.cpp
@@ -213,15 +213,12 @@ void QDeclarativeAnchorsPrivate::centerInChanged()
if (updatingCenterIn < 2) {
++updatingCenterIn;
- QGraphicsItemPrivate *itemPrivate = QGraphicsItemPrivate::get(item);
if (centerIn == item->parentItem()) {
- QGraphicsItemPrivate *parentPrivate = QGraphicsItemPrivate::get(item->parentItem());
QPointF p(hcenter(item->parentItem()) - hcenter(item) + hCenterOffset,
vcenter(item->parentItem()) - vcenter(item) + vCenterOffset);
setItemPos(p);
} else if (centerIn->parentItem() == item->parentItem()) {
- QGraphicsItemPrivate *centerPrivate = QGraphicsItemPrivate::get(centerIn);
QPointF p(centerIn->x() + hcenter(centerIn) - hcenter(item) + hCenterOffset,
centerIn->y() + vcenter(centerIn) - vcenter(item) + vCenterOffset);
setItemPos(p);
diff --git a/src/declarative/util/qdeclarativepackage.cpp b/src/declarative/util/qdeclarativepackage.cpp
index b149120..1e49ad9 100644
--- a/src/declarative/util/qdeclarativepackage.cpp
+++ b/src/declarative/util/qdeclarativepackage.cpp
@@ -74,7 +74,7 @@ QT_BEGIN_NAMESPACE
*/
/*!
- \qmlattachedproperty bool Package::name
+ \qmlattachedproperty string Package::name
This attached property holds the name of an item within a Package.
*/