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
/
qdeclarativeflickable
/
data
/
resize.qml
1
import QtQuick 1.1
2
3
Rectangle {
4
function resizeContent() {
5
flick.resizeContent(600, 600, Qt.point(100, 100))
6
}
7
function returnToBounds() {
8
flick.returnToBounds()
9
}
10
width: 400
11
height: 360
12
color: "gray"
13
14
Flickable {
15
id: flick
16
objectName: "flick"
17
anchors.fill: parent
18
contentWidth: 300
19
contentHeight: 300
20
21
Rectangle {
22
width: flick.contentWidth
23
height: flick.contentHeight
24
color: "red"
25
}
26
}
27
}