Warning, /plasma/plasma-desktop/applets/kickoff/package/contents/ui/EmptyPage.qml is written in an unsupported language. File is not indexed.

0001 /* SPDX-FileCopyrightText: 2021 Noah Davis <noahadvs@gmail.com>
0002  * SPDX-License-Identifier: LGPL-2.0-or-later
0003  */
0004 
0005 import QtQuick 2.15
0006 import QtQuick.Templates 2.15 as T
0007 
0008 /**
0009  * This is meant to be a very basic page that behaves like most pages do,
0010  * but inherits no externally defined content or behavior.
0011  */
0012 T.Page {
0013     id: root
0014     // implicitHeader/FooterWidth and implicitHeader/FooterHeight are 0 when header/footer is not visible
0015     // using a custom implementation that only checks if defined.
0016     property real implicitHeaderWidth2: header ? header.implicitWidth : 0
0017     property real implicitHeaderHeight2: header ? header.implicitHeight : 0
0018     property real implicitFooterWidth2: footer ? footer.implicitWidth : 0
0019     property real implicitFooterHeight2: footer ? footer.implicitHeight : 0
0020     implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
0021                             contentWidth + leftPadding + rightPadding,
0022                             implicitHeaderWidth2,
0023                             implicitFooterWidth2)
0024     implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
0025                              contentHeight + topPadding + bottomPadding
0026                              + (implicitHeaderHeight2 > 0 ? implicitHeaderHeight2 + spacing : 0)
0027                              + (implicitFooterHeight2 > 0 ? implicitFooterHeight2 + spacing : 0))
0028 
0029     Accessible.ignored: true
0030 }