Fix reference errors, port to Kirigami

Fix reference errors in qml/Outline and plugins/OutputLabel
This commit is contained in:
Mike Noe 2023-07-01 07:19:26 +00:00 committed by David Edmundson
parent 8ea47b4c62
commit f09f5c608d
2 changed files with 7 additions and 5 deletions

View file

@ -6,6 +6,7 @@
import QtQuick
import org.kde.plasma.components 3.0 as PlasmaComponents3
import org.kde.kirigami 2 as Kirigami
Rectangle {
id: root;
@ -14,16 +15,16 @@ Rectangle {
property size resolution;
property double scale;
color: theme.backgroundColor
color: Kirigami.Theme.backgroundColor
implicitWidth: childrenRect.width + 2 * childrenRect.x
implicitHeight: childrenRect.height + 2 * childrenRect.y
PlasmaComponents3.Label {
id: displayName
x: units.largeSpacing * 2
y: units.largeSpacing
font.pointSize: theme.defaultFont.pointSize * 3
x: Kirigami.Units.largeSpacing * 2
y: Kirigami.Units.largeSpacing
font.pointSize: Kirigami.Theme.defaultFont.pointSize * 3
text: root.outputName;
wrapMode: Text.WordWrap;
horizontalAlignment: Text.AlignHCenter;

View file

@ -8,11 +8,12 @@ import QtQuick
import QtQuick.Window
import org.kde.kwin
import org.kde.ksvg 1.0 as KSvg
import org.kde.kirigami 2 as Kirigami
Window {
id: window
readonly property int animationDuration: units.longDuration
readonly property int animationDuration: Kirigami.Units.longDuration
property bool animationEnabled: false
flags: Qt.BypassWindowManagerHint | Qt.FramelessWindowHint