summaryrefslogtreecommitdiff
path: root/src/components/qt_hmi/References/Look/Widgets/GridViewWidget.qml
blob: cfbba6253073b03e3b7d6adb3fc4b17c0e9d9368 (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
// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
import QtQuick 2.0
import com.ford.hmiframework 1.0
import "../WidgetLayouts"

FWidget {

    property alias selectElement: _selectElement
    property alias list: l.list
    property alias list_itemWidget: l.list_itemWidget
    property alias list_data: l.list_data
    property alias listWrap: l.listWrap
    property alias gridItemHeight: l.gridItemHeight
    property alias gridItemWidth: l.gridItemWidth

    FEvent { id: _selectElement; }

    layout: GridViewLayout {
        id: l
        anchors.fill: parent
    }

    triggers: [
        FTrgEvent { event: _selectElement
            FActScriptCall { onScript: {
                    list_data.selectElement(l.list.currentIndex);
                }
            }
        }
    ]
}