From 3912bbaceab166eb116447311eb16453e4f26edf Mon Sep 17 00:00:00 2001 From: Michael Brasser Date: Wed, 18 Jul 2012 13:53:40 +1000 Subject: Update usage of smooth and antialiasing. Change-Id: Icc8b28bdd466389ed3f269f076f1bdb6e9abe3f2 Reviewed-by: Yunqiao Yin Reviewed-by: Bea Lam --- examples/quick/customitems/dialcontrol/content/Dial.qml | 2 +- examples/quick/customitems/dialcontrol/content/QuitButton.qml | 1 - examples/quick/customitems/dialcontrol/dialcontrol.qml | 4 ++-- examples/quick/customitems/flipable/content/Card.qml | 4 ++-- examples/quick/customitems/maskedmousearea/maskedmousearea.qml | 3 --- 5 files changed, 5 insertions(+), 9 deletions(-) (limited to 'examples/quick/customitems') diff --git a/examples/quick/customitems/dialcontrol/content/Dial.qml b/examples/quick/customitems/dialcontrol/content/Dial.qml index c61adee364..688bb95fea 100644 --- a/examples/quick/customitems/dialcontrol/content/Dial.qml +++ b/examples/quick/customitems/dialcontrol/content/Dial.qml @@ -63,7 +63,7 @@ Item { Image { id: needle x: 98; y: 33 - smooth: true + antialiasing: true source: "needle.png" transform: Rotation { id: needleRotation diff --git a/examples/quick/customitems/dialcontrol/content/QuitButton.qml b/examples/quick/customitems/dialcontrol/content/QuitButton.qml index 702b892d23..3fcdcf855f 100644 --- a/examples/quick/customitems/dialcontrol/content/QuitButton.qml +++ b/examples/quick/customitems/dialcontrol/content/QuitButton.qml @@ -42,7 +42,6 @@ import QtQuick 2.0 Image { source: "quit.png" scale: quitMouse.pressed ? 0.8 : 1.0 - smooth: quitMouse.pressed MouseArea { id: quitMouse anchors.fill: parent diff --git a/examples/quick/customitems/dialcontrol/dialcontrol.qml b/examples/quick/customitems/dialcontrol/dialcontrol.qml index 467a558696..562a3c6e2a 100644 --- a/examples/quick/customitems/dialcontrol/dialcontrol.qml +++ b/examples/quick/customitems/dialcontrol/dialcontrol.qml @@ -67,7 +67,7 @@ Rectangle { radius: 8 opacity: 0.7 - smooth: true + antialiasing: true gradient: Gradient { GradientStop { position: 0.0; color: "gray" } GradientStop { position: 1.0; color: "white" } @@ -77,7 +77,7 @@ Rectangle { id: slider x: 1; y: 1; width: 30; height: 14 radius: 6 - smooth: true + antialiasing: true gradient: Gradient { GradientStop { position: 0.0; color: "#424242" } GradientStop { position: 1.0; color: "black" } diff --git a/examples/quick/customitems/flipable/content/Card.qml b/examples/quick/customitems/flipable/content/Card.qml index 6006ea14fc..aad177c710 100644 --- a/examples/quick/customitems/flipable/content/Card.qml +++ b/examples/quick/customitems/flipable/content/Card.qml @@ -51,8 +51,8 @@ Flipable { width: front.width; height: front.height - front: Image { id: frontImage; smooth: true } - back: Image { source: "back.png"; smooth: true } + front: Image { id: frontImage } + back: Image { source: "back.png" } state: "back" diff --git a/examples/quick/customitems/maskedmousearea/maskedmousearea.qml b/examples/quick/customitems/maskedmousearea/maskedmousearea.qml index 82d351b04f..df4c42f0da 100644 --- a/examples/quick/customitems/maskedmousearea/maskedmousearea.qml +++ b/examples/quick/customitems/maskedmousearea/maskedmousearea.qml @@ -58,7 +58,6 @@ Rectangle { Image { id: moon - smooth: true anchors.centerIn: parent scale: moonArea.pressed ? 1.1 : 1.0 opacity: moonArea.containsMouse ? 1.0 : 0.7 @@ -86,7 +85,6 @@ Rectangle { verticalCenterOffset: 30 horizontalCenterOffset: 80 } - smooth: true scale: rightCloudArea.pressed ? 1.1 : 1.0 opacity: rightCloudArea.containsMouse ? 1.0 : 0.7 source: Qt.resolvedUrl("images/cloud_2.png") @@ -113,7 +111,6 @@ Rectangle { verticalCenterOffset: 40 horizontalCenterOffset: -80 } - smooth: true scale: leftCloudArea.pressed ? 1.1 : 1.0 opacity: leftCloudArea.containsMouse ? 1.0 : 0.7 source: Qt.resolvedUrl("images/cloud_1.png") -- cgit v1.2.3