// SPDX-FileCopyrightText: 2026 Matvey Shcherbinin // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL import QtQuick import QtQuick.Controls as QQC2 import QtQuick.Layouts import org.kde.kirigami as Kirigami // The shape every step of the tour shares, and the shape the original tour // uses: the title rides in the window's toolbar, the description is the first // thing on the page, and the step's own content fills what is left. Written // once here so the five steps carry only what makes them different. // // The description is a label and not a heading on purpose - it is read top to // bottom as the first sentence of the step, and a second heading above the // content competed with the title in the toolbar for the same glance. Kirigami.Page { id: page required property string description topPadding: 0 header: Item { height: layout.implicitHeight + page.padding * 2 ColumnLayout { id: layout width: parent.width - page.padding * 2 anchors.centerIn: parent spacing: Kirigami.Units.smallSpacing QQC2.Label { Layout.fillWidth: true text: page.description wrapMode: Text.WordWrap } } } }