-
Notifications
You must be signed in to change notification settings - Fork 2
/
GridView.qml
42 lines (33 loc) · 968 Bytes
/
GridView.qml
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
import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Layouts 1.1
import "." as App
ScrollView {
anchors.fill: parent
GridView {
id: gridView
cellWidth: 250
cellHeight: 30
model: App.Model { }
delegate: Row {
spacing: 10
Text {
width: gridView.cellHeight
height: gridView.cellHeight
font.family: awesome.family
font.pointSize: 14
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
text: model.unicode
}
Text {
height: gridView.cellHeight
font.family: awesome.family
font.pointSize: 14
verticalAlignment: Text.AlignVCenter
text: "fa." + model.name
}
}
}
Keys.onPressed: App.Actions.keyPressed(event, parent);
}