/** SPDX-FileCopyrightText: 2021 Noah Davis <noahadvs@gmail.com>* SPDX-License-Identifier: LGPL-2.0-or-later*/pragma ComponentBehavior: Boundimport QtQuickimport QtQuick.Templates as TEmptyPage {id: rootproperty real preferredSideBarWidth: Math.max(footer.tabBar.implicitWidth, applicationsPage.implicitSideBarWidth)contentItem: HorizontalStackView {id: stackViewfocus: truereverseTransitions: footer.tabBar.currentIndex === 1initialItem: ApplicationsPage {id: applicationsPagepreferredSideBarWidth: root.preferredSideBarWidth + kickoff.backgroundMetrics.leftPadding}Component {id: placesPagePlacesPage {preferredSideBarWidth: root.preferredSideBarWidth + kickoff.backgroundMetrics.leftPaddingpreferredSideBarHeight: applicationsPage.implicitSideBarHeight}}Connections {target: footer.tabBarfunction onCurrentIndexChanged() {if (footer.tabBar.currentIndex === 0) {stackView.replace(applicationsPage)} else if (footer.tabBar.currentIndex === 1) {stackView.replace(placesPage)}}}}footer: Footer {id: footerpreferredTabBarWidth: root.preferredSideBarWidthBinding {target: kickoffproperty: "footer"value: footerrestoreMode: Binding.RestoreBinding}// Eat down events to prevent them from reaching the contentArea or searchFieldKeys.onDownPressed: event => {}}}