From ca2890537f6172bbc0d644bbedaeb5dca319c981 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Thu, 12 Sep 2013 16:25:40 +0200 Subject: Revamp QQuickDwmFeatures Add missing change notifiers, fix property names vs. isFoo() accessor names, remove unused member variables, fix the event filter and add missing updates... Change-Id: Ie86a89dc1415ad082ac5c2e839245d55a446a1d4 Reviewed-by: Ivan Vizir Reviewed-by: Caroline Chao --- examples/winextras/quickdwm/quickdwm.qml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'examples') diff --git a/examples/winextras/quickdwm/quickdwm.qml b/examples/winextras/quickdwm/quickdwm.qml index 54042b4..925e05b 100644 --- a/examples/winextras/quickdwm/quickdwm.qml +++ b/examples/winextras/quickdwm/quickdwm.qml @@ -48,11 +48,11 @@ Rectangle { height: 130 color: "transparent" - WinDwmFeatures { + DwmFeatures { id: dwmfeatures - bottomGlassMargin: isCompositionEnabled ? 30 : 0 + bottomGlassMargin: compositionEnabled ? 30 : 0 excludedFromPeek: true - flip3DPolicy: WinDwmFeatures.FlipExcludeAbove + flip3DPolicy: DwmFeatures.FlipExcludeAbove } Window { @@ -65,8 +65,8 @@ Rectangle { visible: true title: "Sheet of glass" - WinDwmFeatures { - bottomGlassMargin: isCompositionEnabled ? -1 : 0 + DwmFeatures { + bottomGlassMargin: compositionEnabled ? -1 : 0 } } @@ -77,7 +77,7 @@ Rectangle { Rectangle { id: rectColorization - color: WinDwmFeatures.colorizationColor + color: DwmFeatures.colorizationColor anchors.top: parent.top anchors.left: parent.left anchors.right: parent.right @@ -92,7 +92,7 @@ Rectangle { Rectangle { id: rectRealColorization - color: WinDwmFeatures.realColorizationColor + color: DwmFeatures.realColorizationColor anchors.top: rectColorization.bottom anchors.left: parent.left anchors.right: parent.right @@ -122,7 +122,7 @@ Rectangle { Text { anchors.centerIn: parent - text: "DWM composition is " + (WinDwmFeatures.isCompositionEnabled ? "enabled" : "disabled") + text: "DWM composition is " + (DwmFeatures.compositionEnabled ? "enabled" : "disabled") font.pointSize: 12 } @@ -130,14 +130,14 @@ Rectangle { id: mouseComposition anchors.fill: parent hoverEnabled: true - onClicked: WinDwmFeatures.isCompositionEnabled = !WinDwmFeatures.isCompositionEnabled + onClicked: DwmFeatures.compositionEnabled = !DwmFeatures.compositionEnabled } } } Rectangle { id: transparentBottom - color: WinDwmFeatures.isCompositionEnabled ? "transparent" : "#EEE" + color: DwmFeatures.compositionEnabled ? "transparent" : "#EEE" height: dwmfeatures.bottomGlassMargin anchors.bottom: parent.bottom anchors.left: parent.left @@ -146,7 +146,7 @@ Rectangle { Text { id: textOnGlass anchors.centerIn: parent - text: "Text on glass" + (WinDwmFeatures.isCompositionEnabled ? "" : " (potentially)") + text: "Text on glass" + (DwmFeatures.compositionEnabled ? "" : " (potentially)") font.pointSize: 12 } } -- cgit v1.2.3