From 969ded95eb3b2b58903f6d35ceed213d77469cba Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Tue, 14 Feb 2017 22:25:00 +0200 Subject: [PATCH] improvements for debug window --add new debug variable containsMouse, show the values for variable cases --- containment/contents/ui/DebugWindow.qml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/containment/contents/ui/DebugWindow.qml b/containment/contents/ui/DebugWindow.qml index 8f56f6868..5def8de71 100644 --- a/containment/contents/ui/DebugWindow.qml +++ b/containment/contents/ui/DebugWindow.qml @@ -104,6 +104,19 @@ Window{ } } + Text{ + text: "Contains Mouse (flag)"+space + } + + Text{ + text: { + if (dock.visibility.containsMouse) + return "Yes"; + else + return "No"; + } + } + Text{ text: " ----------- " } @@ -133,7 +146,7 @@ Window{ break; } - return " "; + return " : " + plasmoid.location; } } @@ -164,7 +177,7 @@ Window{ break; } - return ""; + return " : " + plasmoid.configuration.panelPosition; } } @@ -190,9 +203,12 @@ Window{ case Latte.Dock.DodgeAllWindows: return "Dodge All Windows"; break; + case Latte.Dock.None: + return "None"; + break; } - return ""; + return " : " + dock.visibility.mode; } }