@@ -151,25 +151,6 @@ Rectangle {
151151 to: priv.moveToIndexYTo
152152 }
153153
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()
160− }
161−
162− if (peekingIndex === -1) {
163− peekingIndex = peek
164− }
165− }
166−
167− function unpeeking(peek) {
168− if (peekingIndex === peek) {
169− peekingIndex = -1
170− }
171− }
172−
173154 // The height of the area where icons start getting folded
174155 property int foldingStartHeight: units.gu(6.5)
175156 // The height of the area where the items reach the final folding angle
@@ -229,6 +210,25 @@ Rectangle {
229210 property var peekingItem: launcherListView.peekingIndex === index ? launcherDelegate : undefined
230211
231212
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()
219+ }
220+
221+ if (launcherListView.peekingIndex === -1) {
222+ launcherListView.peekingIndex = alertIndex
223+ }
224+ }
225+
226+ onAlertingEnded: {
227+ if (launcherListView.peekingIndex === alertIndex) {
228+ launcherListView.peekingIndex = -1
229+ }
230+ }
231+
232232 ThinDivider {
233233 id: dropIndicator
234234 objectName: "dropIndicator"