Commit 5f59b733 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[AppletAppearance] Remove d QtObject

It's not like this is public API or anything.

Differential Revision: https://phabricator.kde.org/D10571
parent 83cb47c3
......@@ -74,14 +74,10 @@ Item {
property alias margins: plasmoidBackground.margins
property alias imagePath: plasmoidBackground.imagePath
visible: false
QtObject {
id: d
property int lastX: 0
property int lastY: 0
property real lastX: 0
property real lastY: 0
}
visible: false
Timer {
id: positionTimer
......@@ -143,20 +139,20 @@ Item {
onXChanged: {
if (animationsEnabled) {
animationsEnabled = false;
mouseListener.x += d.lastX - x;
mouseListener.x += lastX - x;
animationsEnabled = true;
}
mouseListener.x = mouseListener.endX = (width - innerEndWidth)/2;
d.lastX = x;
lastX = x;
}
onYChanged: {
if (animationsEnabled) {
animationsEnabled = false;
mouseListener.y += d.lastY - y;
mouseListener.y += lastY - y;
animationsEnabled = true;
}
mouseListener.y = mouseListener.endY = (height - innerEndHeight)/2;
d.lastY = y;
lastY = y;
}
// use this function to position appletItem instead of root.layoutManager.positionItem(appletItem)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment