diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-03-16 15:05:20 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-03-16 15:05:20 (GMT) |
commit | dbcca9a809c9a5eb47f5c9236eb84c5baba7c560 (patch) | |
tree | e57f650d04872261f8e03ecbdd4f9634b03c6a56 /src/declarative/QmlChanges.txt | |
parent | b83172f8cfb4439f17c96886f0c6046a885370f6 (diff) | |
parent | d5e7356a16e51c544b7c5d148af7dcc70a7d6532 (diff) | |
download | Qt-dbcca9a809c9a5eb47f5c9236eb84c5baba7c560.zip Qt-dbcca9a809c9a5eb47f5c9236eb84c5baba7c560.tar.gz Qt-dbcca9a809c9a5eb47f5c9236eb84c5baba7c560.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: (100 commits)
Remove test in .pro file also
Remove unneeded #include and add needed header to .pri
Add easing changes to QmlChanges.txt
Update more animation on property value source docs.
Doc fixes.
QmlChanges.txt cleanup.
Remove WorkerListModel and integrate its functionality into ListModel.
Split post alpha API changes into a separate section.
Optimize drawPixmapFragments for the GL2 paint engine.
Optimize QRegion::intersects(QRect).
Compile with user defined Qt namespace
Fix regression from previous commit
Import "content" with as qualifier to support network without qmldir
Small fixes to photoviewer demo
Little more doc on QabstractItemModel and QML.
Fix benchmark.
Add basic QUrl benchmarks.
Add busy indicator to photoviewer demo
Set maximumExtents correctly for highlightRangeMode: StrictlyEnforceRange
fix installation of imports libraries
...
Diffstat (limited to 'src/declarative/QmlChanges.txt')
-rw-r--r-- | src/declarative/QmlChanges.txt | 97 |
1 files changed, 61 insertions, 36 deletions
diff --git a/src/declarative/QmlChanges.txt b/src/declarative/QmlChanges.txt index 591fb3d..7c584b4d 100644 --- a/src/declarative/QmlChanges.txt +++ b/src/declarative/QmlChanges.txt @@ -1,4 +1,32 @@ ============================================================================= +The changes below are pre Qt 4.7.0 beta + +PathView: offset property now uses range 0-1.0 rather than 0-100 +ListView, GridView::positionViewAtIndex() gained a 'mode' parameter +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 Particles now requires "import Qt.labs.particles 1.0" +AnchorAnimation must now be used to animate anchor changes (and not NumberAnimation) + +C++ API +------- +QDeclarativeContext::addDefaultObject() has been replaced with +QDeclarativeContext::setContextObject() + +Behavior and Animation syntax +----------------------------- +Previously animations and behaviors could be "assigned" to properties like this: + Item { x: Behavior {}; y: NumberAnimation {} } +To make it more obvious that these are not regular value assignments a new "on" +syntax has been introduced: + Item { Behavior on x {}; NumberAnimation on y {} } +Only the syntax has changed, the behavior is identical. + + +============================================================================= The changes below are pre Qt 4.7.0 alpha Flickable: renamed viewportWidth -> contentWidth @@ -6,33 +34,14 @@ Flickable: renamed viewportHeight -> contentHeight Flickable: renamed viewportX -> contentX Flickable: renamed viewportY -> contentY Removed Flickable.reportedVelocitySmoothing -Removed Qt.playSound (replaced by SoundEffect element) -Removed NumberFormatter -Removed DateTimeFormatter (use Qt.formatDateTime() instead) Renamed MouseRegion -> MouseArea Connection: syntax and rename: Connection { sender: a; signal: foo(); script: xxx } Connection { sender: a; signal: bar(); script: yyy } becomes: Connections { target: a; onFoo: xxx; onBar: yyy } -Using WebView now requires "import org.webkit 1.0" - -QmlView -------- -The API of QmlView has been narrowed and its role as a convenience class -reinforced. -- remove addItem() -- remove clearItems() - use 'delete root()' -- remove reset() -- resizeContent -> enum ResizeMode { SizeViewToRootObject, SizeRootObjectToView } -- remove setQml(), qml() -- rename setUrl(), ur() to setSource(), source() -- root() -> rootObject(), returns QGraphicsObject rather than QmlGraphicsItem -- remove quit() signal -> use quit() signal of engine() -- initialSize() signal removed -- Added status() to determine status of the internal QmlComponent -sectionExpression has been replaced by section.property, section.criteria +ListView::sectionExpression has been replaced by section.property, section.criteria ListModel --------- @@ -42,29 +51,45 @@ ListModel - foo: true is now a bool (not string "true") - foo: false is now a bool (not string "false" == true!) -C++ API -------- -QML_DEFINE_... definition macros, previously global macros, are replaced by -QML_REGISTER_... registration macros, which must be called explicitly. C++ API users -should also consider using the QmlExtensionPlugin (previously named QmlModulePlugin) -as a cleaner mechanism for publishing libraries of QML types, or the upcoming -application plugin features of the qmlviewer / qmlruntime / qml. - PropertyAnimation ------------------ matchProperties and matchTargets have been renamed back to properties and targets. The semantics are explained in the PropertyAnimation::properties documentation and the animation overview documentation. -Behavior and Animation syntax ------------------------------ +Easing curves and their parameters are now specified via dot properties: +* easing.type : enum +* easing.amplitude : real +* easing.overshoot : real +* easing.period : real +For example: +PropertyAnimation { properties: "y"; easing.type: "InOutElastic"; easing.amplitude: 2.0; easing.period: 1.5 } + +C++ API +------- +QML_DEFINE_... definition macros, previously global macros, are replaced by +qmlRegisterType registration functions, which must be called explicitly. +C++ API users should also consider using the QmlExtensionPlugin (previously +named QmlModulePlugin) as a cleaner mechanism for publishing libraries of QML +types, or the upcoming application plugin features of the qmlviewer / +qmlruntime / qml. + +QmlView +------- +The API of QmlView has been narrowed and its role as a convenience class +reinforced. +- remove addItem() +- remove clearItems() - use 'delete root()' +- remove reset() +- resizeContent -> enum ResizeMode { SizeViewToRootObject, SizeRootObjectToView } +- remove setQml(), qml() +- rename setUrl(), ur() to setSource(), source() +- root() -> rootObject(), returns QGraphicsObject rather than QmlGraphicsItem +- remove quit() signal -> use quit() signal of engine() +- initialSize() signal removed +- Added status() to determine status of the internal QmlComponent +- removed execute() - setSource() will also execute the QML. -Previously animations and behaviors could be "assigned" to properties like this: - Item { x: Behavior {}; y: NumberAnimation {} } -To make it more obvious that these are not regular value assignments a new "on" -syntax has been introduced: - Item { Behavior on x {}; NumberAnimation on y {} } -Only the syntax has changed, the behavior is identical. ============================================================================= The changes below are pre-4.6.0 release. |