Warning, /plasma/discover/discover/qml/DiscoverInlineMessage.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  *   SPDX-FileCopyrightText: 2022 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
0003  *
0004  *   SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005  */
0006 
0007 import QtQuick
0008 import org.kde.kirigami as Kirigami
0009 import org.kde.discover as Discover
0010 
0011 Loader {
0012     id: root
0013 
0014     property Discover.InlineMessage inlineMessage
0015 
0016     active: inlineMessage !== null
0017 
0018     sourceComponent: Kirigami.InlineMessage {
0019         text: root.inlineMessage.message
0020         type: root.inlineMessage.type
0021         icon.name: root.inlineMessage.iconName
0022 
0023         Component {
0024             id: component
0025             ConvertDiscoverAction {}
0026         }
0027         actions: root.inlineMessage.actions.map(action => component.createObject(this, { action }))
0028         visible: true
0029     }
0030 }