Code Review
/
staging
/
HomeScreen.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
WIP: add Qt Quick HomeScreen UI
[staging/HomeScreen.git]
/
HomeScreenNG
/
qml
/
MediaArea.qml
1
import QtQuick 2.7
2
import QtQuick.Controls 2.0
3
4
StackView {
5
id: root
6
width: 1080
7
height: 215
8
9
initialItem: blank
10
11
Component {
12
id: blank
13
MediaAreaBlank {
14
MouseArea {
15
anchors.fill: parent
16
onClicked: root.push(mouse.x < 540 ? music : radio)
17
}
18
}
19
}
20
21
Component {
22
id: music
23
MediaAreaMusic {
24
MouseArea {
25
anchors.fill: parent
26
onClicked: root.pop()
27
}
28
}
29
}
30
31
Component {
32
id: radio
33
MediaAreaRadio {
34
MouseArea {
35
anchors.fill: parent
36
onClicked: root.pop()
37
}
38
}
39
}
40
}