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
/
qdeclarativeitem
/
data
/
mouseFocus.qml
1
import QtQuick 1.0
2
3
QGraphicsWidget {
4
size: "200x100"
5
focusPolicy: QGraphicsWidget.ClickFocus
6
Item {
7
objectName: "declarativeItem"
8
id: item
9
width: 200
10
height: 100
11
MouseArea {
12
anchors.fill: parent
13
onPressed: {
14
if (!item.focus) {
15
item.focus = true;
16
}
17
}
18
}
19
}
20
}