projects
/
profile
/
ivi
/
qtdeclarative.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add a hidden XandYAxis enum value
[profile/ivi/qtdeclarative.git]
/
tests
/
auto
/
quick
/
qquickmousearea
/
data
/
changeAxis.qml
1
import QtQuick 2.0
2
Rectangle {
3
id: whiteRect
4
width: 200
5
height: 200
6
color: "white"
7
Rectangle {
8
id: blackRect
9
objectName: "blackrect"
10
color: "black"
11
y: 50
12
x: 50
13
width: 100
14
height: 100
15
MouseArea {
16
objectName: "mouseregion"
17
anchors.fill: parent
18
drag.target: blackRect
19
drag.axis: blackRect.x <= 75 ? Drag.XAndYAxis : Drag.YAxis
20
}
21
}
22
}