Changeset View
Changeset View
Standalone View
Standalone View
desktoppackage/contents/explorer/WidgetExplorer.qml
Show First 20 Lines • Show All 300 Lines • ▼ Show 20 Line(s) | 289 | GridView { | |||
---|---|---|---|---|---|
301 | highlightMoveDuration: 0 | 301 | highlightMoveDuration: 0 | ||
302 | //highlightResizeDuration: 0 | 302 | //highlightResizeDuration: 0 | ||
303 | 303 | | |||
304 | //slide in to view from the left | 304 | //slide in to view from the left | ||
305 | add: Transition { | 305 | add: Transition { | ||
306 | NumberAnimation { | 306 | NumberAnimation { | ||
307 | properties: "x" | 307 | properties: "x" | ||
308 | from: -list.width | 308 | from: -list.width | ||
309 | duration: units.shortDuration * 3 | 309 | duration: units.shortDuration | ||
310 | } | 310 | } | ||
311 | } | 311 | } | ||
312 | 312 | | |||
313 | //slide out of view to the right | 313 | //slide out of view to the right | ||
314 | remove: Transition { | 314 | remove: Transition { | ||
315 | NumberAnimation { | 315 | NumberAnimation { | ||
316 | properties: "x" | 316 | properties: "x" | ||
317 | to: list.width | 317 | to: list.width | ||
318 | duration: units.shortDuration * 3 | 318 | duration: units.shortDuration | ||
319 | } | 319 | } | ||
320 | } | 320 | } | ||
321 | 321 | | |||
322 | //if we are adding other items into the view use the same animation as normal adding | 322 | //if we are adding other items into the view use the same animation as normal adding | ||
323 | //this makes everything slide in together | 323 | //this makes everything slide in together | ||
324 | //if we make it move everything ends up weird | 324 | //if we make it move everything ends up weird | ||
325 | addDisplaced: list.add | 325 | addDisplaced: list.add | ||
326 | 326 | | |||
327 | //moved due to filtering | 327 | //moved due to filtering | ||
328 | displaced: Transition { | 328 | displaced: Transition { | ||
329 | NumberAnimation { | 329 | NumberAnimation { | ||
330 | properties: "x,y" | 330 | properties: "x,y" | ||
331 | duration: units.shortDuration * 3 | 331 | duration: units.shortDuration | ||
332 | } | 332 | } | ||
333 | } | 333 | } | ||
334 | 334 | | |||
335 | PlasmaExtras.Heading { | 335 | PlasmaExtras.Heading { | ||
336 | anchors.fill: parent | 336 | anchors.fill: parent | ||
337 | anchors.margins: units.largeSpacing | 337 | anchors.margins: units.largeSpacing | ||
338 | horizontalAlignment: Text.AlignHCenter | 338 | horizontalAlignment: Text.AlignHCenter | ||
339 | verticalAlignment: Text.AlignVCenter | 339 | verticalAlignment: Text.AlignVCenter | ||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |