Warning, /plasma/kscreen/plasmoid/package/contents/ui/InhibitionHint.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2015 Kai Uwe Broulik <kde@privat.broulik.de> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 2.15 0008 import QtQuick.Layouts 1.15 0009 0010 import org.kde.plasma.components 3.0 as PlasmaComponents3 0011 import org.kde.kirigami 2.20 as Kirigami 0012 0013 // everything like in battery applet, but slightly bigger 0014 RowLayout { 0015 property alias iconSource: iconItem.source 0016 property alias text: label.text 0017 0018 spacing: Kirigami.Units.smallSpacing * 2 0019 0020 Kirigami.Icon { 0021 id: iconItem 0022 Layout.preferredWidth: Kirigami.Units.iconSizes.medium 0023 Layout.preferredHeight: Kirigami.Units.iconSizes.medium 0024 visible: valid 0025 } 0026 0027 PlasmaComponents3.Label { 0028 id: label 0029 Layout.fillWidth: true 0030 Layout.maximumWidth: Math.min(Kirigami.Units.gridUnit * 20, implicitWidth) 0031 font: Kirigami.Theme.smallFont 0032 textFormat: Text.PlainText 0033 wrapMode: Text.WordWrap 0034 elide: Text.ElideRight 0035 maximumLineCount: 4 0036 } 0037 }