Warning, /frameworks/kirigami/tests/OverlayTest.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  *  SPDX-FileCopyrightText: 2022 Aleix Pol <aleixpol@kde.org>
0003  *
0004  *  SPDX-License-Identifier: LGPL-2.0-or-later
0005  */
0006 
0007 import QtQuick
0008 import QtQuick.Layouts
0009 import QtQuick.Controls as QQC2
0010 
0011 import org.kde.kirigami as Kirigami
0012 
0013 Kirigami.ApplicationWindow {
0014     height: 720
0015     width: 360
0016     visible: true
0017 
0018     Kirigami.OverlaySheet {
0019         id: sheet
0020 
0021         title: "Certificate Viewer"
0022 
0023         ColumnLayout {
0024             QQC2.DialogButtonBox {
0025                 Layout.fillWidth: true
0026 
0027                 QQC2.Button {
0028                     QQC2.DialogButtonBox.buttonRole: QQC2.DialogButtonBox.ActionRole
0029                     text: "Export…"
0030                 }
0031 
0032                 QQC2.Button {
0033                     QQC2.DialogButtonBox.buttonRole: QQC2.DialogButtonBox.DestructiveRole
0034                     text: "Close"
0035                     icon.name: "dialog-close"
0036                 }
0037             }
0038         }
0039     }
0040 
0041     Timer {
0042         interval: 150
0043         running: true
0044         onTriggered: sheet.open()
0045     }
0046 }