From 8e17e58f24c7d6f56ce46d4e0061ebfb4aa0111b Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Fri, 17 Mar 2017 23:59:50 +0200 Subject: [PATCH] add effectArea in DebugWindow --export correctly the drawEffects variable --- app/dockview.cpp | 2 +- containment/contents/ui/DebugWindow.qml | 30 +++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/app/dockview.cpp b/app/dockview.cpp index f65dccb45..c4f35194f 100644 --- a/app/dockview.cpp +++ b/app/dockview.cpp @@ -742,7 +742,7 @@ void DockView::setDrawShadows(bool draw) bool DockView::drawEffects() const { - return m_drawShadows; + return m_drawEffects; } void DockView::setDrawEffects(bool draw) diff --git a/containment/contents/ui/DebugWindow.qml b/containment/contents/ui/DebugWindow.qml index ee857991b..b5dca2837 100644 --- a/containment/contents/ui/DebugWindow.qml +++ b/containment/contents/ui/DebugWindow.qml @@ -140,6 +140,36 @@ Window{ dock.localGeometry.width + "x" + dock.localGeometry.height } + Text{ + text: "Draw Effects"+space + } + + Text{ + text: { + if (dock.drawEffects) + return "Yes"; + else + return "No"; + } + } + + Text{ + text: "Effects Area"+space + } + + Text{ + text: dock.effectsArea.x + ", " + dock.effectsArea.y + " " + + dock.effectsArea.width + "x" + dock.effectsArea.height + } + + Text{ + text: " ----------- " + } + + Text{ + text: " ----------- " + } + Text{ text: "Is Hidden (flag)"+space }