qtdeclarative/src/quick/items
Anton Kudryavtsev 273e5b0bdc PathView: fix item creation
First call of QQuickPathView::refill() did not use currentIndex
for item prepending and there was situation when items were
not created, e.g.:

PathView with current item in center and currentIndex was set
so that item with index 0 was after current item and before path
end. The result of this situation: items from path begin to current
item were not created.

The reason was that idx always equaled (modelCount-1) for item
prepending.

Now first filling uses currentIndex to calculate valid idx.

Task-number: QTBUG-53464
Change-Id: I7e343b0712c9c5c5cd56b1d8e020cf8c0f6e6301
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2016-08-12 13:18:51 +00:00
..
context2d Avoid Canvas crashes with qtquickcompiler 2016-05-24 08:00:19 +00:00
shaders
checksync.pl Update copyright headers 2015-02-12 10:28:11 +00:00
items.pri Move QQuickTextDocumentWithImageResources out of qquicktext_p_p.h 2015-10-29 04:46:57 +00:00
items.qrc Move Qt Quick resources under the :/qt-project.org/ directory 2016-04-01 18:40:58 +00:00
qquickaccessibleattached.cpp Merge remote-tracking branch 'origin/5.4' into 5.5 2015-02-24 17:36:04 +01:00
qquickaccessibleattached_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickanchors.cpp QML: Access QQuickItemPrivate data (like x/y/etc) directly. 2016-04-21 15:04:36 +00:00
qquickanchors_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickanchors_p_p.h Update copyright headers 2015-02-12 10:28:11 +00:00
qquickanimatedimage.cpp AnimatedImage: Fix value of sourceSize property 2016-05-02 06:49:54 +00:00
qquickanimatedimage_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickanimatedimage_p_p.h AnimatedImage: Fix value of sourceSize property 2016-05-02 06:49:54 +00:00
qquickanimatedsprite.cpp Move Qt Quick resources under the :/qt-project.org/ directory 2016-04-01 18:40:58 +00:00
qquickanimatedsprite_p.h AnimatedSprite: don't access deleted scene graph nodes 2016-03-03 18:05:14 +00:00
qquickborderimage.cpp BorderImage support for @2x assets 2015-05-06 14:25:38 +00:00
qquickborderimage_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickborderimage_p_p.h Update copyright headers 2015-02-12 10:28:11 +00:00
qquickclipnode.cpp Fix QQuickDefaultClipNode::updateGeometry() 2016-08-05 07:14:32 +00:00
qquickclipnode_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickdrag.cpp QQuickDragAttached: fix updating of "active" property 2016-04-26 08:27:08 +00:00
qquickdrag_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickdroparea.cpp Fix rejecting drag enter events in QML DropArea 2016-01-28 14:38:08 +00:00
qquickdroparea_p.h QQuickDropArea include cleanup 2015-12-24 00:26:52 +00:00
qquickevents.cpp Update examples to deal correctly with fine-grained wheel events 2015-11-30 15:32:20 +00:00
qquickevents_p_p.h Update copyright headers 2015-02-12 10:28:11 +00:00
qquickflickable.cpp Flickable: avoid infinite velocity during release after drag 2016-08-05 08:59:52 +00:00
qquickflickable_p.h Flickable: ensure movementEnded after wheel/trackpad flick 2016-02-02 14:57:25 +00:00
qquickflickable_p_p.h Flickable: ensure movementEnded after wheel/trackpad flick 2016-02-02 14:57:25 +00:00
qquickflickablebehavior_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickflipable.cpp QQuickFlipable: Set enabled property on whichever side is considered active. 2015-12-31 18:01:51 +00:00
qquickflipable_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickfocusscope.cpp Update copyright headers 2015-02-12 10:28:11 +00:00
qquickfocusscope_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickframebufferobject.cpp Merge remote-tracking branch 'origin/5.5' into 5.6 2015-10-02 14:41:35 +02:00
qquickframebufferobject.h Make public headers compile with -Wzero-as-null-pointer-constant 2016-03-03 11:41:39 +00:00
qquickgridview.cpp ItemViews: Make the wording of the warning on cache properties slightly sterner. 2016-06-16 10:43:22 +00:00
qquickgridview_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickimage.cpp Fix Image.Pad on high DPI 2016-03-24 19:40:28 +00:00
qquickimage_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickimage_p_p.h Update copyright headers 2015-02-12 10:28:11 +00:00
qquickimagebase.cpp Fix high-DPI image and svg providers 2016-04-12 12:58:49 +00:00
qquickimagebase_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickimagebase_p_p.h Optionally apply orientation on images 2015-05-19 11:29:15 +00:00
qquickimplicitsizeitem.cpp Update copyright headers 2015-02-12 10:28:11 +00:00
qquickimplicitsizeitem_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickimplicitsizeitem_p_p.h Export QQuickTextInputPrivate and QQuickTextEditPrivate 2015-06-23 20:33:30 +00:00
qquickitem.cpp ungrab touch points if the MultiPointTouchArea is hidden or disabled 2016-06-23 08:14:00 +00:00
qquickitem.h Make public headers compile with -Wzero-as-null-pointer-constant 2016-03-03 11:41:39 +00:00
qquickitem_p.h QML: Remove baselineOffsetValid flag from QQuickItem. 2016-04-20 14:14:45 +00:00
qquickitemanimation.cpp Work around ICC bug about C++11 noexcept inheritance 2016-07-23 06:05:24 +00:00
qquickitemanimation_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickitemanimation_p_p.h Update copyright headers 2015-02-12 10:28:11 +00:00
qquickitemchangelistener_p.h qquickitemchangelistener_p.h: add comments for the sake of clarity 2015-10-13 19:56:47 +00:00
qquickitemgrabresult.cpp Item: mention the actual type of the grab result 2016-06-03 11:57:35 +00:00
qquickitemgrabresult.h Make public headers compile with -Wzero-as-null-pointer-constant 2016-03-03 11:41:39 +00:00
qquickitemsmodule.cpp Add possibility to mirror ShaderEffectSource generated textures 2015-08-20 09:49:18 +00:00
qquickitemsmodule_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickitemview.cpp Fix QQuickItemViewPrivate::updateUnrequestedPositions() 2016-02-02 17:22:07 +00:00
qquickitemview_p.h Private export QQuickItemView 2015-11-20 17:45:10 +00:00
qquickitemview_p_p.h QQuickItemView: Take sticky header/footer into account for positionViewAtIndex(). 2016-01-15 11:04:22 +00:00
qquickitemviewtransition.cpp Merge remote-tracking branch 'origin/5.5' into 5.6 2015-10-02 14:41:35 +02:00
qquickitemviewtransition_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquicklistview.cpp Report changes correctly when inserting into a ListView 2016-06-21 11:51:46 +00:00
qquicklistview_p.h ListView: fix random crashes when accessing deleted objects 2015-11-26 17:25:27 +00:00
qquickloader.cpp Fix crashes when incubating objects asynchronously with initial properties 2016-05-18 10:08:30 +00:00
qquickloader_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickloader_p_p.h Fix crashes when incubating objects asynchronously with initial properties 2016-05-18 10:08:30 +00:00
qquickmousearea.cpp Revert removal of "Fixed MouseArea threshold with preventStealing" 2016-06-03 10:32:33 +00:00
qquickmousearea_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickmousearea_p_p.h Revert removal of "Fixed MouseArea threshold with preventStealing" 2016-06-03 10:32:33 +00:00
qquickmultipointtoucharea.cpp MultiPointTouchArea: Fixed released() duplication on mouse release. 2015-12-02 12:15:01 +00:00
qquickmultipointtoucharea_p.h Initialize _startX and _startY 2015-12-01 15:59:57 +00:00
qquickopenglinfo.cpp Update copyright headers 2015-02-12 10:28:11 +00:00
qquickopenglinfo_p.h Port from Q_ENUMS to new macro Q_ENUM. 2015-06-19 10:01:35 +00:00
qquickpainteditem.cpp Update the item when the DevicePixelRatio changes 2016-04-07 08:39:31 +00:00
qquickpainteditem.h Update the item when the DevicePixelRatio changes 2016-04-07 08:39:31 +00:00
qquickpainteditem_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickpathview.cpp PathView: fix item creation 2016-08-12 13:18:51 +00:00
qquickpathview_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickpathview_p_p.h Fix QQuickPathViewPrivate::snapToIndex() 2015-10-22 09:44:55 +00:00
qquickpincharea.cpp Fix compilation of QtDeclarative with QT_NO_GESTURES 2015-09-22 07:02:55 +00:00
qquickpincharea_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickpincharea_p_p.h Update copyright headers 2015-02-12 10:28:11 +00:00
qquickpositioners.cpp QQuickPositioner: move paddings into extraData 2015-06-15 09:31:06 +00:00
qquickpositioners_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickpositioners_p_p.h QQuickPositioner: move paddings into extraData 2015-06-15 09:31:06 +00:00
qquickrectangle.cpp Update copyright headers 2015-02-12 10:28:11 +00:00
qquickrectangle_p.h Private export QQuickPen 2015-11-26 17:25:48 +00:00
qquickrectangle_p_p.h Update copyright headers 2015-02-12 10:28:11 +00:00
qquickrendercontrol.cpp QQuickRenderControl: cleanup material cache on invalidate 2016-03-01 11:41:43 +00:00
qquickrendercontrol.h Make more ctors explicit 2016-03-03 18:19:37 +00:00
qquickrendercontrol_p.h Clean up correctly in rendercontrol to avoid crashes 2015-12-09 08:09:28 +00:00
qquickrepeater.cpp QQuickRepeater: Use qmlobject_(dis)connect instead of regular (dis)connect. 2016-01-05 09:38:44 +00:00
qquickrepeater_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickrepeater_p_p.h Repeater: Don't rely on the createFrom variable 2015-03-17 11:16:58 +00:00
qquickscalegrid.cpp Update copyright headers 2015-02-12 10:28:11 +00:00
qquickscalegrid_p_p.h Export some more classes. 2016-03-06 11:40:42 +00:00
qquickscreen.cpp Revert "Avoid calling potentially pure virtual method" 2015-09-18 10:25:51 +00:00
qquickscreen_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickshadereffect.cpp Fix crash in QQuickShaderEffect::updatePaintNode 2016-07-05 11:05:27 +00:00
qquickshadereffect_p.h Ensure ShaderEffect correctly updates with supportsAtlasTexture. 2016-03-01 14:14:13 +00:00
qquickshadereffectmesh.cpp Update copyright headers 2015-02-12 10:28:11 +00:00
qquickshadereffectmesh_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickshadereffectnode.cpp Drop the class name from shader effect material keys 2016-04-20 08:57:42 +00:00
qquickshadereffectnode_p.h Drop the class name from shader effect material keys 2016-04-20 08:57:42 +00:00
qquickshadereffectsource.cpp Add possibility to mirror ShaderEffectSource generated textures 2015-08-20 09:49:18 +00:00
qquickshadereffectsource_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquicksprite.cpp Export some more classes. 2016-03-06 11:40:42 +00:00
qquicksprite_p.h Export some more classes. 2016-03-06 11:40:42 +00:00
qquickspriteengine.cpp QQuickSpriteEngine: avoid entering infinite loop in assembledImage() 2016-06-21 14:31:09 +00:00
qquickspriteengine_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickspritesequence.cpp Move Qt Quick resources under the :/qt-project.org/ directory 2016-04-01 18:40:58 +00:00
qquickspritesequence_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickstateoperations.cpp Get rid of QQuickStateActionEvent::Reason 2015-06-10 11:40:56 +00:00
qquickstateoperations_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquicktext.cpp Don't accept left clicks when text format is plain. 2016-08-09 07:05:27 +00:00
qquicktext_p.h QQuickText,QQuickTextInput: Fully qualify enumerations in changed() signals. 2016-04-07 20:29:08 +00:00
qquicktext_p_p.h Move QQuickTextDocumentWithImageResources out of qquicktext_p_p.h 2015-10-29 04:46:57 +00:00
qquicktextcontrol.cpp TextEdit: selectedTextChanged not emitted when calling select 2nd time 2015-09-21 13:53:49 +00:00
qquicktextcontrol_p.h Update copyright headers 2015-02-12 10:28:11 +00:00
qquicktextcontrol_p_p.h TextEdit: selectedTextChanged not emitted when calling select 2nd time 2015-09-21 13:53:49 +00:00
qquicktextdocument.cpp Merge remote-tracking branch 'origin/5.5' into 5.6 2015-11-17 07:19:54 +01:00
qquicktextdocument.h Update copyright headers 2015-02-12 10:28:11 +00:00
qquicktextdocument_p.h Move QQuickTextDocumentWithImageResources out of qquicktext_p_p.h 2015-10-29 04:46:57 +00:00
qquicktextedit.cpp Fix missing closing parenthesis in TextEdit docs 2016-07-14 14:42:48 +00:00
qquicktextedit_p.h QQuickTextEdit: Fully qualify enumerations in changed() signals. 2015-12-15 05:09:02 +00:00
qquicktextedit_p_p.h QQuickTextEdit/Input: revise implicit resizing - take two 2015-10-04 08:14:49 +00:00
qquicktextinput.cpp Prevent cutting in non-Normal echoMode of TextInput 2016-03-07 05:04:07 +00:00
qquicktextinput_p.h QQuickText,QQuickTextInput: Fully qualify enumerations in changed() signals. 2016-04-07 20:29:08 +00:00
qquicktextinput_p_p.h QQuickTextEdit/Input: revise implicit resizing - take two 2015-10-04 08:14:49 +00:00
qquicktextnode.cpp QQuickTextNode: Nuke some dead code. 2016-01-26 09:43:55 +00:00
qquicktextnode_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquicktextnodeengine.cpp QQuickTextNodeEngine: early out if no document layout. 2016-06-01 10:02:35 +00:00
qquicktextnodeengine_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquicktextutil.cpp Update copyright headers 2015-02-12 10:28:11 +00:00
qquicktextutil_p.h Update copyright headers 2015-02-12 10:28:11 +00:00
qquicktranslate.cpp Cleanup math function includes and usage 2015-02-19 10:49:03 +00:00
qquicktranslate_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickview.cpp Move remaining objects to new constructor syntax 2015-09-22 08:20:13 +00:00
qquickview.h Make more ctors explicit 2016-03-03 18:19:37 +00:00
qquickview_p.h qmltime: Remove widgets dependency. 2016-03-11 14:42:46 +00:00
qquickwindow.cpp Fix QQuickItem's setAcceptedMouseButtons function 2016-07-21 14:42:39 +00:00
qquickwindow.h Make more ctors explicit 2016-03-03 18:19:37 +00:00
qquickwindow_p.h QQuickWindow: Fill out timestamps in QHoverEvents sent to QQuickItems 2016-07-12 10:41:42 +00:00
qquickwindowattached.cpp Window attached property: fix notifier signals 2016-02-02 17:21:59 +00:00
qquickwindowattached_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
qquickwindowmodule.cpp Speed up object creation 2015-04-16 17:14:20 +00:00
qquickwindowmodule_p.h Add missing "We mean it" comments to private headers. 2015-10-06 15:39:36 +00:00
syncexcludes