/* SPDX-FileCopyrightText: 2021 Noah Davis * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.15 import QtQuick.Templates 2.15 as T /** * This is meant to be a very basic page that behaves like most pages do, * but inherits no externally defined content or behavior. */ T.Page { id: root // implicitHeader/FooterWidth and implicitHeader/FooterHeight are 0 when header/footer is not visible // using a custom implementation that only checks if defined. property real implicitHeaderWidth2: header ? header.implicitWidth : 0 property real implicitHeaderHeight2: header ? header.implicitHeight : 0 property real implicitFooterWidth2: footer ? footer.implicitWidth : 0 property real implicitFooterHeight2: footer ? footer.implicitHeight : 0 implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset, contentWidth + leftPadding + rightPadding, implicitHeaderWidth2, implicitFooterWidth2) implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset, contentHeight + topPadding + bottomPadding + (implicitHeaderHeight2 > 0 ? implicitHeaderHeight2 + spacing : 0) + (implicitFooterHeight2 > 0 ? implicitFooterHeight2 + spacing : 0)) Accessible.ignored: true }