Warning, /network/kaccounts-integration/src/kcm/ui/MessageBoxSheet.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2020 Dan Leinir Turthra Jensen <admin@leinir.dk> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 0008 import QtQuick.Controls as QtControls 0009 import QtQuick.Layouts as QtLayouts 0010 0011 import org.kde.kirigami as Kirigami 0012 0013 Kirigami.OverlaySheet { 0014 id: component 0015 0016 property alias title: headerLabel.text 0017 property alias text: messageLabel.text 0018 property list<QtObject> actions 0019 0020 showCloseButton: true 0021 header: Kirigami.Heading { 0022 id: headerLabel 0023 QtLayouts.Layout.fillWidth: true 0024 elide: Text.ElideRight 0025 } 0026 QtControls.Label { 0027 id: messageLabel 0028 QtLayouts.Layout.preferredWidth: Kirigami.Units.gridUnit * 10 0029 QtLayouts.Layout.margins: Kirigami.Units.largeSpacing 0030 wrapMode: Text.Wrap 0031 } 0032 footer: QtLayouts.RowLayout { 0033 Item { QtLayouts.Layout.fillWidth: true } 0034 Repeater { 0035 model: component.actions; 0036 QtControls.Button { 0037 action: modelData 0038 Connections { 0039 target: action 0040 function onTriggered() { component.close(); } 0041 } 0042 } 0043 } 0044 } 0045 }