@@ -151,25 +151,6 @@ Rectangle {
151 to: priv.moveToIndexYTo
151 to: priv.moveToIndexYTo
154− function peeking(peek) {
155− if (!dragging && (peekingIndex === -1 || launcher.visibleWidth > 0)) {
156− priv.moveToIndexYFrom = contentY
157− positionViewAtIndex(peek, ListView.Center)
158− priv.moveToIndexYTo = contentY
159− moveToIndexAnimation.start()
162− if (peekingIndex === -1) {
167− function unpeeking(peek) {
168− if (peekingIndex === peek) {
173 // The height of the area where icons start getting folded
154 // The height of the area where icons start getting folded
174 property int foldingStartHeight: units.gu(6.5)
155 property int foldingStartHeight: units.gu(6.5)
175 // The height of the area where the items reach the final folding angle
156 // The height of the area where the items reach the final folding angle
@@ -229,6 +210,25 @@ Rectangle {
229 property var peekingItem: launcherListView.peekingIndex === index ? launcherDelegate : undefined
210 property var peekingItem: launcherListView.peekingIndex === index ? launcherDelegate : undefined
213+ onAlertingTriggered: {
214+ if (!dragging && (launcherListView.peekingIndex === -1 || launcher.visibleWidth > 0)) {
215+ priv.moveToIndexYFrom = launcherListView.contentY
216+ launcherListView.positionViewAtIndex(alertIndex, ListView.Center)
217+ priv.moveToIndexYTo = launcherListView.contentY
218+ moveToIndexAnimation.start()
221+ if (launcherListView.peekingIndex === -1) {
222+ launcherListView.peekingIndex = alertIndex
227+ if (launcherListView.peekingIndex === alertIndex) {
228+ launcherListView.peekingIndex = -1
232 ThinDivider {
232 ThinDivider {
233 id: dropIndicator
233 id: dropIndicator
234 objectName: "dropIndicator"
234 objectName: "dropIndicator"