summaryrefslogtreecommitdiff
path: root/SDL_Core/src/components/qt_hmi/References/Look/WidgetLayouts/GridViewPresetLayout.qml
blob: 82068b5560bc94953d66f5bd241e9e334e4571c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
import QtQuick 2.0
import com.ford.hmiframework 1.0

import "../Widgets"

FLayout {
    id: theLayout

    property alias list : theGridView
    property alias list_itemWidget: theGridView.itemWidget
    property alias list_data: theGridView.data
    property bool listWrap: false
    property alias gridItemHeight: theGridView.cellHeight
    property alias gridItemWidth: theGridView.cellWidth
    property alias curItem: theGridView.currentIndex
    property alias moving: theGridView.moving
    property alias direction: theGridView.flickDeceleration


    FWdgtGridView {
        id: theGridView
        anchors.fill: theLayout
        clip: true
        highlightFollowsCurrentItem: true
        highlightMoveDuration: 100
        keyNavigationWraps: listWrap
        flow: GridView.TopToBottom
        snapMode: GridView.SnapToRow





      /*  populate: Transition {
            id: populateTransition
            SequentialAnimation {
                PropertyAction { property: "opacity"; value: 0 }
                PauseAnimation { duration: populateTransition.ViewTransition.index * 100 }
                NumberAnimation { properties: "opacity"; from: 0; to: 1; duration: 300 }
            }
        }

        add:  Transition {
            NumberAnimation { properties: "opacity"; from: 0; to: 1; duration: 200 }
        }

        addDisplaced: Transition {
            NumberAnimation { properties: "x"; duration: 200 }
        }

        remove:  Transition {
            NumberAnimation { properties: "opacity"; from: 1; to: 0; duration: 200 }
        }

        removeDisplaced: Transition {
            NumberAnimation { properties: "x"; duration: 200 }
        }*/

    }
}