X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=HomeScreenNG%2Fqml%2FMediaArea.qml;fp=HomeScreenNG%2Fqml%2FMediaArea.qml;h=16ceb275712b232c740b3b97d0dd925658675cef;hb=6bf5bbd0ab5abab05305667a516c069c7c5556f4;hp=0000000000000000000000000000000000000000;hpb=505ec164e5174ddd838c0cac1e3e828930cb3b50;p=staging%2FHomeScreen.git diff --git a/HomeScreenNG/qml/MediaArea.qml b/HomeScreenNG/qml/MediaArea.qml new file mode 100644 index 0000000..16ceb27 --- /dev/null +++ b/HomeScreenNG/qml/MediaArea.qml @@ -0,0 +1,40 @@ +import QtQuick 2.7 +import QtQuick.Controls 2.0 + +StackView { + id: root + width: 1080 + height: 215 + + initialItem: blank + + Component { + id: blank + MediaAreaBlank { + MouseArea { + anchors.fill: parent + onClicked: root.push(mouse.x < 540 ? music : radio) + } + } + } + + Component { + id: music + MediaAreaMusic { + MouseArea { + anchors.fill: parent + onClicked: root.pop() + } + } + } + + Component { + id: radio + MediaAreaRadio { + MouseArea { + anchors.fill: parent + onClicked: root.pop() + } + } + } +}