summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativegridview.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix snapping in listview.Martin Jones2010-03-311-1/+3
|
* Finished file rename of qdeclarative easefollow to smoothedanimationLeonardo Sobral Cunha2010-03-301-1/+1
|
* Change and rename qml EaseFollow to SmoothedAnimationLeonardo Sobral Cunha2010-03-301-19/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QDeclarativeSmoothedAnimation inherits from QDeclarativeNumberAnimation, as a consequence SmoothedAnimation can be used inside Behaviors and as PropertySourceValues, like any other animation. The old EaseFollow properties changed to comply with the other declarative animations ('source' changed to 'to'), so now 'to' changes are not automatically 'followed' anymore. You can achieve the following behavior by putting a SmoothedAnimation inside a Behavior of a property that is bound to another, as the following example: If you want to follow an hypothetical rect1, you should do now: Rectangle { color: "green" width: 60; height: 60; x: rect1.x - 5; y: rect1.y - 5; Behavior on x { SmoothedAnimation { velocity: 200 } } Behavior on y { SmoothedAnimation { velocity: 200 } } } SmoothedAnimation also supports animating multiple target(s)/property(ies) in the transition case. When a QDeclarativeSmoothedAnimation is restarted, it will match the QDeclarativeProperty which were being animated and transfer the corresponding track velocity to the new starting animations. QSmoothedAnimation is an uncontrolled animation, duration == -1. The duration is set as -1 to avoid consecutive animation state changes stop()/start(). This is particularly useful when using QSmoothAnimation to 'follow' another property, which is also being animated (change the 'to' property every tick). Reviewed-by: Michael Brasser
* Fix parenting after 6f88388db4e8e202780d789e66664ff824691948.Michael Brasser2010-03-301-5/+6
|
* Do not call parent implementation if we accept the keyPressEvent in GridView ↵Yann Bodson2010-03-261-3/+3
| | | | and ListView delegates.
* Doc fix.Michael Brasser2010-03-251-1/+1
|
* Ensure currentIndex is updated when items inserted before currentIndexMartin Jones2010-03-251-2/+15
| | | | | | Was occurring when items inserted but no items had been created yet. Task-number: QTBUG-9313
* Fix flicking views at boundary with StricthighlighRangeMartin Jones2010-03-241-18/+25
| | | | Task-number: QTBUG-9256
* Add ListView and GridView.indexAt() methods to get the index at a point.Martin Jones2010-03-171-8/+32
|
* Add a positioning 'mode' to positionViewAtIndex()Martin Jones2010-03-111-17/+54
| | | | Provides more control over where and how the view is positioned.
* Ensure currentIndex NOTIFY is emitted when currentIndex changes due to model ↵Martin Jones2010-03-101-0/+2
| | | | change.
* Schedule view relayout after itemsInserted/Removed()Martin Jones2010-03-101-35/+59
| | | | | So that they handle model changes involving multiple insertion and deletion without entering the event loop.
* When flicking with snap, bias towards moving at least one item.Martin Jones2010-03-091-7/+9
| | | | Task-number: QTBUG-8839
* Add highlightRangeMode and snapMode to GridView.Martin Jones2010-03-091-20/+357
| | | | | | Brings ListView and GridView APIs closer. Task-number: QTBUG-8779
* Remove code dupliation in fixupX/Y(), flickX/Y()Martin Jones2010-03-081-15/+18
| | | | Also some minor perf improvements by avoiding signal/slot connection
* Documented view behavior when items are removed from start of view.Martin Jones2010-03-041-0/+12
| | | | Task-number: QTBUG-7694
* Remove unnecessary additional hash of QDeclarativeGridViewAttachedMartin Jones2010-03-041-5/+4
|
* Fix spelling.Martin Jones2010-03-041-1/+1
|
* Document that the views do not set clip: true.Martin Jones2010-03-041-0/+5
| | | | Task-number: QT-2942
* 'on' syntax fixesYann Bodson2010-03-031-3/+3
|
* Add NOTIFY signals to list, grid and path viewsJoona Petrell2010-03-021-1/+11
| | | | Reviewed-by: akennedy
* Replace remaining QGuard usage with QDeclarativeGuard.Michael Brasser2010-03-011-1/+2
|
* Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-qmlMartin Jones2010-03-011-0/+1
|\
| * Merge remote branch 'origin/master' into 4.7Thiago Macieira2010-02-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/corelib/kernel/qmetatype.cpp src/declarative/graphicsitems/qdeclarativeevents.cpp src/declarative/graphicsitems/qdeclarativeflickable.cpp src/declarative/graphicsitems/qdeclarativegridview.cpp src/declarative/qml/qdeclarativescript.cpp src/declarative/util/qdeclarativeanimation.cpp src/declarative/util/qdeclarativebehavior.cpp src/declarative/util/qdeclarativeeasefollow.cpp src/declarative/util/qdeclarativefontloader.cpp src/declarative/util/qdeclarativelistmodel.cpp src/declarative/util/qdeclarativespringfollow.cpp src/declarative/util/qdeclarativestategroup.cpp src/declarative/util/qdeclarativesystempalette.cpp src/declarative/util/qdeclarativetimer.cpp src/declarative/util/qmlstateoperations.cpp src/multimedia/qml/qdeclarativeaudio.cpp src/multimedia/qml/qdeclarativevideo.cpp
* | Set delegate Z before complete() so that view Z is overridden by delegate.Martin Jones2010-03-011-1/+1
|/
* Renamed Flickable viewportXXX properties contentXXXMartin Jones2010-02-261-11/+11
| | | | A viewport is the thing you look through, not what you look at.
* Rename QDeclarativeMetaProperty -> QDeclarativePropertyAaron Kennedy2010-02-251-2/+2
| | | | There's nothing meta about our properties.
* React to QAbstractItemModel::modelReset() signal.Martin Jones2010-02-251-0/+12
| | | | Task-number: QTBUG-8494
* Don't crash if the currentIndex is set while creating a delegate.Martin Jones2010-02-241-1/+3
| | | | Task-number: QTBUG-8456
* Change class prefix to from QmlXXX to QDeclarativeXXX, QmlGraphicsXXX to ↵Warwick Allison2010-02-241-0/+1723
QDeclarativeXXX.