diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-08-10 00:21:47 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-08-10 00:21:47 (GMT) |
commit | 27b5da4ff5a762df0ab3e98ecde9dac4aa589178 (patch) | |
tree | 642c70e79da4173b74b4273049461e25078b384c /src/declarative | |
parent | 48cd20335f838db5aa31031c10352ca7058d84e8 (diff) | |
parent | 0d060e71a5a03f21df5b2edbb4f6de1e928b9ada (diff) | |
download | Qt-27b5da4ff5a762df0ab3e98ecde9dac4aa589178.zip Qt-27b5da4ff5a762df0ab3e98ecde9dac4aa589178.tar.gz Qt-27b5da4ff5a762df0ab3e98ecde9dac4aa589178.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativeflipable.cpp | 14 | ||||
-rw-r--r-- | src/declarative/util/qdeclarativexmllistmodel.cpp | 8 |
2 files changed, 17 insertions, 5 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeflipable.cpp b/src/declarative/graphicsitems/qdeclarativeflipable.cpp index 8c9d2dd..b266273 100644 --- a/src/declarative/graphicsitems/qdeclarativeflipable.cpp +++ b/src/declarative/graphicsitems/qdeclarativeflipable.cpp @@ -83,10 +83,16 @@ public: \image flipable.gif - The \l Rotation element is used to specify the angle and axis of the flip, - and the \l State defines the changes in angle which produce the flipping - effect. Finally, the \l Transition creates the animation that changes the - angle over one second. + The \l Rotation element is used to specify the angle and axis of the flip. + When \c flipped is \c true, the item changes to the "back" state, where + the angle is changed to 180 degrees to produce the flipping effect. + Finally, the \l Transition creates the animation that changes the + angle over one second: when the item changes between its "back" and + default states, the NumberAnimation animates the angle between + its old and new values. + + See the \l {QML States} and \l {QML Animation} documentation for more + details on state changes and how animations work within transitions. \sa {declarative/ui-components/flipable}{Flipable example} */ diff --git a/src/declarative/util/qdeclarativexmllistmodel.cpp b/src/declarative/util/qdeclarativexmllistmodel.cpp index 7c1e1fd..8bd829e 100644 --- a/src/declarative/util/qdeclarativexmllistmodel.cpp +++ b/src/declarative/util/qdeclarativexmllistmodel.cpp @@ -560,7 +560,7 @@ void QDeclarativeXmlListModelPrivate::clear_role(QDeclarativeListProperty<QDecla ListView { width: 180; height: 300 model: xmlModel - delegate: Text { text: title + " (" + pubDate + ")" } + delegate: Text { text: title + ": " + pubDate } } \endqml @@ -855,6 +855,12 @@ qreal QDeclarativeXmlListModel::progress() const return d->progress; } +/*! + \qmlmethod void XmlListModel::errorString() + + Returns a string description of the last error that occurred + if \l status is XmlListModel::Error. +*/ QString QDeclarativeXmlListModel::errorString() const { Q_D(const QDeclarativeXmlListModel); |