Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/package/contents/ui/FolderItemDelegate.qml
Show First 20 Lines • Show All 343 Lines • ▼ Show 20 Line(s) | 343 | if (popupDialog) { | |||
---|---|---|---|---|---|
344 | return false; | 344 | return false; | ||
345 | } | 345 | } | ||
346 | 346 | | |||
347 | return true; | 347 | return true; | ||
348 | } | 348 | } | ||
349 | 349 | | |||
350 | z: 3 | 350 | z: 3 | ||
351 | 351 | | |||
352 | anchors { | 352 | states: [ | ||
353 | centerIn: root.useListViewMode ? icon : undefined | 353 | State { // icon view | ||
354 | when: !root.useListViewMode | ||||
355 | | ||||
356 | AnchorChanges { | ||||
357 | target: actions | ||||
358 | anchors.horizontalCenter: undefined | ||||
359 | anchors.verticalCenter: undefined | ||||
360 | } | ||||
361 | PropertyChanges { | ||||
362 | target: actions | ||||
363 | x: 0 | ||||
364 | y: 0 | ||||
365 | } | ||||
366 | }, | ||||
367 | State { // list view | ||||
368 | when: root.useListViewMode | ||||
369 | | ||||
370 | AnchorChanges { | ||||
371 | target: actions | ||||
372 | anchors.horizontalCenter: icon.horizontalCenter | ||||
373 | anchors.verticalCenter: icon.verticalCenter | ||||
354 | } | 374 | } | ||
375 | PropertyChanges { | ||||
376 | target: actions | ||||
377 | x: undefined | ||||
378 | y: undefined | ||||
379 | } | ||||
380 | } | ||||
381 | ] | ||||
355 | 382 | | |||
356 | width: implicitWidth | 383 | width: implicitWidth | ||
357 | height: implicitHeight | 384 | height: implicitHeight | ||
358 | } | 385 | } | ||
359 | 386 | | |||
360 | Component { | 387 | Component { | ||
361 | id: frameComponent | 388 | id: frameComponent | ||
362 | 389 | | |||
▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines |