projects
/
profile
/
ivi
/
qtdeclarative.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git]
/
tests
/
auto
/
declarative
/
qdeclarativegridview
/
data
/
setindex.qml
1
import QtQuick 1.0
2
3
Rectangle {
4
width: 200
5
height: 200
6
Component {
7
id: appDelegate
8
9
Item {
10
id : wrapper
11
function startupFunction() {
12
if (index == 5) view.currentIndex = index;
13
}
14
Component.onCompleted: startupFunction();
15
width: 30; height: 30
16
Text { text: index }
17
}
18
}
19
20
GridView {
21
id: view
22
objectName: "grid"
23
anchors.fill: parent
24
cellWidth: 30; cellHeight: 30
25
model: 35
26
delegate: appDelegate
27
focus: true
28
}
29
}