Warning, /frameworks/kirigami/tests/OverlayFocusTest.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2021 Ismael Asensio <isma.af@gmail.com> 0003 * SPDX-FileCopyrightText: 2021 David Edmundson <davidedmundson@kde.org> 0004 * 0005 * SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 import QtQuick 0009 import QtQuick.Layouts 0010 import QtQuick.Controls as QQC2 0011 0012 import org.kde.kirigami as Kirigami 0013 0014 Rectangle { 0015 id: background 0016 0017 implicitWidth: 600 0018 implicitHeight: 600 0019 color: Kirigami.Theme.backgroundColor 0020 0021 Kirigami.FormLayout { 0022 id: layout 0023 anchors.centerIn: parent 0024 0025 QQC2.Button { 0026 Layout.fillWidth: true 0027 text: "Open overlay sheet" 0028 onClicked: sheet.open() 0029 } 0030 } 0031 0032 Kirigami.OverlaySheet { 0033 id: sheet 0034 parent: background 0035 0036 header: QQC2.TextField { 0037 id: headerText 0038 focus: true 0039 } 0040 footer: QQC2.TextField { 0041 id: footerText 0042 } 0043 0044 ListView { 0045 id: content 0046 model: 10 0047 0048 delegate: QQC2.ItemDelegate { 0049 text: "Item " + modelData 0050 width: parent.width 0051 } 0052 } 0053 } 0054 }