diff options
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. |