add close button

This commit is contained in:
Anika Raemer 2021-03-13 17:06:39 +01:00
parent 693078b892
commit 5d5e3c6888
6 changed files with 56 additions and 30 deletions

View file

@ -4,18 +4,31 @@ import QtQuick 2.0
* @brief Navigation view containing list view displaying artists or genres and albums
*/
Item {
id: container
property int margins: 20
RoundButton{
id: back
anchors.top: parent.top
anchors.left: parent.left
anchors.margins: 20
anchors.margins: container.margins
visible: navigationList.pIsBackVisible
onClicked: navigationList.navigateBack();
} // RoundButton: navigate back
RoundButton{
id: closeApp
anchors.right: parent.right
anchors.top: parent.top
anchors.margins: container.margins
imageSource: "qrc:/icon_close"
onClicked: {
Qt.quit();
}
} // RoundButton: closeApp
Rectangle{
anchors.left: parent.left
anchors.right: parent.right