2020-08-20 00:14:19 +02:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2019 David Edmundson <kde@davidedmundson.co.uk>
|
|
|
|
* SPDX-FileCopyrightText: 2020 Noah Davis <noahadvs@gmail.com>
|
|
|
|
* SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
|
|
|
*/
|
2019-12-09 17:33:23 +01:00
|
|
|
import QtQuick 2.0
|
|
|
|
import QtQuick.Layouts 1.2
|
|
|
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
|
|
|
import org.kde.plasma.components 3.0 as PlasmaComponents
|
2020-08-18 11:45:23 +02:00
|
|
|
import org.kde.plasma.extras 2.0 as PlasmaExtras
|
2019-12-09 17:33:23 +01:00
|
|
|
|
2020-08-18 11:45:23 +02:00
|
|
|
PlasmaComponents.Page {
|
|
|
|
id: mainPage
|
|
|
|
title: "Test"
|
|
|
|
width: Math.max(mainPage.contentWidth, mainPage.implicitHeaderWidth, mainPage.implicitFooterWidth)
|
|
|
|
+ leftPadding + rightPadding
|
|
|
|
height: mainPage.contentHeight + mainPage.implicitHeaderHeight + mainPage.implicitFooterHeight
|
|
|
|
+ topPadding + bottomPadding
|
2019-12-09 17:33:23 +01:00
|
|
|
|
2020-08-18 11:45:23 +02:00
|
|
|
padding: PlasmaCore.Units.gridUnit
|
|
|
|
|
|
|
|
header: PlasmaComponents.ToolBar {
|
|
|
|
leftPadding: mainPage.padding
|
|
|
|
rightPadding: mainPage.padding
|
|
|
|
contentItem: PlasmaExtras.Heading {
|
|
|
|
text: mainPage.title
|
|
|
|
/* FIXME: this line is needed to prevent vertical pixel
|
|
|
|
* misalignment of controls, such as checkboxes.
|
|
|
|
* The cause of the problem is unknown.
|
|
|
|
*/
|
|
|
|
level: 2
|
2019-12-09 17:33:23 +01:00
|
|
|
}
|
2020-08-18 11:45:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
background: Rectangle {
|
|
|
|
color: PlasmaCore.ColorScope.backgroundColor
|
2019-12-09 17:33:23 +01:00
|
|
|
}
|
|
|
|
}
|
2020-08-18 11:45:23 +02:00
|
|
|
|