2016-12-18 10:53:50 +00:00
|
|
|
/*
|
2020-08-02 22:22:19 +00:00
|
|
|
SPDX-FileCopyrightText: 2016 Martin Graesslin <mgraesslin@kde.org>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
|
|
|
|
|
|
|
*/
|
2016-12-18 10:53:50 +00:00
|
|
|
|
|
|
|
import QtQuick 2.0;
|
|
|
|
import QtQuick.Window 2.0;
|
|
|
|
import org.kde.plasma.core 2.0 as PlasmaCore;
|
|
|
|
import org.kde.plasma.components 2.0 as Plasma;
|
|
|
|
import QtQuick.Layouts 1.3;
|
|
|
|
|
|
|
|
PlasmaCore.Dialog {
|
|
|
|
id: dialog
|
|
|
|
location: PlasmaCore.Types.Floating
|
|
|
|
visible: osd.visible
|
2020-09-23 15:28:02 +00:00
|
|
|
flags: Qt.FramelessWindowHint
|
2016-12-18 10:53:50 +00:00
|
|
|
type: PlasmaCore.Dialog.OnScreenDisplay
|
|
|
|
outputOnly: true
|
|
|
|
|
|
|
|
mainItem: RowLayout {
|
|
|
|
PlasmaCore.IconItem {
|
2018-10-26 11:13:50 +00:00
|
|
|
implicitWidth: PlasmaCore.Units.iconSizes["medium"]
|
|
|
|
implicitHeight: implicitWidth
|
2016-12-18 10:53:50 +00:00
|
|
|
source: osd.iconName
|
|
|
|
visible: osd.iconName != ""
|
|
|
|
}
|
|
|
|
Plasma.Label {
|
|
|
|
text: osd.message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|