Changeset View
Changeset View
Standalone View
Standalone View
qml/frame/noframe.qml
- This file was added.
1 | import QtQuick 2.12 | ||||
---|---|---|---|---|---|
2 | import QtQuick.Layouts 1.2 | ||||
3 | import org.kde.plasma.core 2.0 as PlasmaCore | ||||
4 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||||
5 | | ||||
6 | RowLayout { | ||||
7 | id: layout | ||||
8 | anchors.centerIn: parent | ||||
9 | width: Math.min(parent.width, implicitWidth) | ||||
10 | height: Math.min(parent.height, implicitHeight) | ||||
11 | | ||||
12 | PlasmaCore.IconItem { | ||||
13 | source: frameData.icon | ||||
14 | animated: frameData.crossFadeEnabled | ||||
15 | Layout.preferredWidth: frameData.iconSize.width | ||||
16 | Layout.preferredHeight: frameData.iconSize.height | ||||
17 | } | ||||
18 | PlasmaComponents.Label { | ||||
19 | Layout.fillWidth: true | ||||
20 | visible: text != "" | ||||
21 | text: frameData.text | ||||
22 | font: frameData.font | ||||
23 | elide: Text.ElideRight | ||||
24 | } | ||||
25 | } |