diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2012-07-18 13:53:40 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-28 01:51:19 +0200 |
commit | 3912bbaceab166eb116447311eb16453e4f26edf (patch) | |
tree | b44561b4fbded41d7011e79c3d9a5411a1de438c /examples/tutorials | |
parent | c2f2ae8ce90e621cc3835428c40c116fbdc593e6 (diff) |
Update usage of smooth and antialiasing.
Change-Id: Icc8b28bdd466389ed3f269f076f1bdb6e9abe3f2
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
Reviewed-by: Bea Lam <bea.lam@nokia.com>
Diffstat (limited to 'examples/tutorials')
14 files changed, 16 insertions, 20 deletions
diff --git a/examples/tutorials/gettingStartedQml/core/Button.qml b/examples/tutorials/gettingStartedQml/core/Button.qml index 9ea8c6dfff..aa93c55c79 100644 --- a/examples/tutorials/gettingStartedQml/core/Button.qml +++ b/examples/tutorials/gettingStartedQml/core/Button.qml @@ -64,7 +64,7 @@ Rectangle { //set appearance properties radius: 6 - smooth: true + antialiasing: true border { width: 2; color: borderColor } width: buttonWidth; height: buttonHeight diff --git a/examples/tutorials/gettingStartedQml/core/FileDialog.qml b/examples/tutorials/gettingStartedQml/core/FileDialog.qml index 0a4341b868..76a11d1bd5 100644 --- a/examples/tutorials/gettingStartedQml/core/FileDialog.qml +++ b/examples/tutorials/gettingStartedQml/core/FileDialog.qml @@ -55,6 +55,7 @@ Rectangle { Rectangle { id: dirBox radius: 10 + antialiasing: true anchors.centerIn:parent height: parent.height -15; width: parent.width -30 @@ -62,6 +63,7 @@ Rectangle { id:header height: parent.height*0.1; width: parent.width radius:3 + antialiasing: true z:1 gradient: Gradient { GradientStop { position: 0.0; color: "#8C8F8C" } @@ -110,7 +112,7 @@ Rectangle { width: parent.width; height: parent.height anchors.centerIn: parent radius: 10 - smooth: true + antialiasing: true scale: GridView.view.currentIndex == index ? 1 : 0.5 opacity: GridView.view.currentIndex == index ? 1 : 0 Text { @@ -121,7 +123,6 @@ Rectangle { color: "#696167" font.weight: Font.DemiBold font.pointSize: 12 - smooth: true elide: Text.ElideMiddle horizontalAlignment: Text.AlignHCenter } diff --git a/examples/tutorials/gettingStartedQml/core/MenuBar.qml b/examples/tutorials/gettingStartedQml/core/MenuBar.qml index 8d7be29fdd..f1311805b7 100644 --- a/examples/tutorials/gettingStartedQml/core/MenuBar.qml +++ b/examples/tutorials/gettingStartedQml/core/MenuBar.qml @@ -70,7 +70,6 @@ Rectangle { text: "menu: " color: "lightblue" font { weight: Font.Light; italic: true } - smooth: true } //row displays its children in a vertical row Row { @@ -85,7 +84,6 @@ Rectangle { scale: menuListView.currentIndex == 0? 1.25: 1 labelSize: menuListView.currentIndex == 0? 16:12 radius: 1 - smooth:true //on a button click, change the list's currently selected item to FileMenu onButtonClick: menuListView.currentIndex = 0 gradient: Gradient { @@ -101,7 +99,6 @@ Rectangle { label: "Edit" radius: 1 labelSize: menuListView.currentIndex == 1? 16:12 - smooth:true //on a button click, change the list's currently selected item to EditMenu onButtonClick: menuListView.currentIndex = 1 gradient: Gradient { diff --git a/examples/tutorials/gettingStartedQml/parts/part1/Button.qml b/examples/tutorials/gettingStartedQml/parts/part1/Button.qml index 118e6fc4d3..15ac50b20e 100644 --- a/examples/tutorials/gettingStartedQml/parts/part1/Button.qml +++ b/examples/tutorials/gettingStartedQml/parts/part1/Button.qml @@ -60,7 +60,7 @@ Rectangle { //set appearance properties radius: 10 - smooth: true + antialiasing: true border{color: "white"; width: 3} width: buttonWidth; height: buttonHeight diff --git a/examples/tutorials/gettingStartedQml/parts/part2/Button.qml b/examples/tutorials/gettingStartedQml/parts/part2/Button.qml index aa178f8bf9..51cfb7dd9c 100644 --- a/examples/tutorials/gettingStartedQml/parts/part2/Button.qml +++ b/examples/tutorials/gettingStartedQml/parts/part2/Button.qml @@ -60,7 +60,7 @@ Rectangle { //set appearance properties radius:10 - smooth: true + antialiasing: true border{color: "white"; width: 3} width: buttonWidth; height: buttonHeight diff --git a/examples/tutorials/gettingStartedQml/parts/part3/Button.qml b/examples/tutorials/gettingStartedQml/parts/part3/Button.qml index aa178f8bf9..51cfb7dd9c 100644 --- a/examples/tutorials/gettingStartedQml/parts/part3/Button.qml +++ b/examples/tutorials/gettingStartedQml/parts/part3/Button.qml @@ -60,7 +60,7 @@ Rectangle { //set appearance properties radius:10 - smooth: true + antialiasing: true border{color: "white"; width: 3} width: buttonWidth; height: buttonHeight diff --git a/examples/tutorials/gettingStartedQml/parts/part4/Button.qml b/examples/tutorials/gettingStartedQml/parts/part4/Button.qml index 7fb4f1e536..830e3efe5d 100644 --- a/examples/tutorials/gettingStartedQml/parts/part4/Button.qml +++ b/examples/tutorials/gettingStartedQml/parts/part4/Button.qml @@ -62,7 +62,7 @@ Rectangle { //set appearance properties radius:10 - smooth: true + antialiasing: true border.color: "white" border.width: 3 width: buttonWidth; height: buttonHeight diff --git a/examples/tutorials/gettingStartedQml/parts/part5/core/Button.qml b/examples/tutorials/gettingStartedQml/parts/part5/core/Button.qml index f6dd54ac9a..9ed4ee9fdd 100644 --- a/examples/tutorials/gettingStartedQml/parts/part5/core/Button.qml +++ b/examples/tutorials/gettingStartedQml/parts/part5/core/Button.qml @@ -63,7 +63,7 @@ Rectangle { property real labelSize: 14 //set appearance properties radius:6 - smooth: true + antialiasing: true border.width: 2 border.color: borderColor width: buttonWidth; height: buttonHeight diff --git a/examples/tutorials/gettingStartedQml/parts/part5/core/FileDialog.qml b/examples/tutorials/gettingStartedQml/parts/part5/core/FileDialog.qml index af83ef5e63..2d7e0fe3f9 100644 --- a/examples/tutorials/gettingStartedQml/parts/part5/core/FileDialog.qml +++ b/examples/tutorials/gettingStartedQml/parts/part5/core/FileDialog.qml @@ -55,6 +55,7 @@ Rectangle { Rectangle{ id: dirBox radius: 10 + antialiasing: true anchors.centerIn:parent height: parent.height -15; width: parent.width -30 @@ -63,6 +64,7 @@ Rectangle { height:parent.height*0.1 width: parent.width radius:3 + antialiasing: true z:1 gradient: Gradient { GradientStop { position: 0.0; color: "#8C8F8C" } @@ -117,7 +119,7 @@ Rectangle { width:parent.width; height:parent.height anchors.centerIn: parent radius: 10 - smooth: true + antialiasing: true scale: GridView.view.currentIndex == index ? 1 : 0.5 opacity: GridView.view.currentIndex == index ? 1 : 0 Text{ @@ -128,7 +130,6 @@ Rectangle { color: "#696167" font.weight: Font.DemiBold font.pointSize: 12 - smooth:true elide: Text.ElideMiddle horizontalAlignment: Text.AlignHCenter } diff --git a/examples/tutorials/gettingStartedQml/parts/part5/core/MenuBar.qml b/examples/tutorials/gettingStartedQml/parts/part5/core/MenuBar.qml index 4a13f59dac..186eb20891 100644 --- a/examples/tutorials/gettingStartedQml/parts/part5/core/MenuBar.qml +++ b/examples/tutorials/gettingStartedQml/parts/part5/core/MenuBar.qml @@ -70,7 +70,6 @@ Rectangle { text: "menu: " color: "lightblue" font {weight: Font.Light; italic: true} - smooth: true } //row displays its children in a vertical row @@ -86,7 +85,6 @@ Rectangle { scale: menuListView.currentIndex == 0? 1.25: 1 labelSize: menuListView.currentIndex == 0? 16:12 radius: 1 - smooth:true //on a button click, change the list's currently selected item to FileMenu onButtonClick: menuListView.currentIndex = 0 gradient: Gradient{ @@ -102,7 +100,6 @@ Rectangle { label: "Edit" radius: 1 labelSize: menuListView.currentIndex == 1? 16:12 - smooth:true //on a button click, change the list's currently selected item to EditMenu onButtonClick: menuListView.currentIndex = 1 gradient: Gradient{ diff --git a/examples/tutorials/samegame/samegame1/Button.qml b/examples/tutorials/samegame/samegame1/Button.qml index 6d1d1268de..90eb9b72dc 100644 --- a/examples/tutorials/samegame/samegame1/Button.qml +++ b/examples/tutorials/samegame/samegame1/Button.qml @@ -50,7 +50,7 @@ Rectangle { width: buttonLabel.width + 20; height: buttonLabel.height + 5 border { width: 1; color: Qt.darker(activePalette.button) } - smooth: true + antialiasing: true radius: 8 // color the button with a gradient diff --git a/examples/tutorials/samegame/samegame2/Button.qml b/examples/tutorials/samegame/samegame2/Button.qml index 248c20cf0f..df5f840276 100644 --- a/examples/tutorials/samegame/samegame2/Button.qml +++ b/examples/tutorials/samegame/samegame2/Button.qml @@ -49,7 +49,7 @@ Rectangle { width: buttonLabel.width + 20; height: buttonLabel.height + 5 border { width: 1; color: Qt.darker(activePalette.button) } - smooth: true + antialiasing: true radius: 8 // color the button with a gradient diff --git a/examples/tutorials/samegame/samegame3/Button.qml b/examples/tutorials/samegame/samegame3/Button.qml index 248c20cf0f..df5f840276 100644 --- a/examples/tutorials/samegame/samegame3/Button.qml +++ b/examples/tutorials/samegame/samegame3/Button.qml @@ -49,7 +49,7 @@ Rectangle { width: buttonLabel.width + 20; height: buttonLabel.height + 5 border { width: 1; color: Qt.darker(activePalette.button) } - smooth: true + antialiasing: true radius: 8 // color the button with a gradient diff --git a/examples/tutorials/samegame/samegame4/content/Button.qml b/examples/tutorials/samegame/samegame4/content/Button.qml index 248c20cf0f..df5f840276 100644 --- a/examples/tutorials/samegame/samegame4/content/Button.qml +++ b/examples/tutorials/samegame/samegame4/content/Button.qml @@ -49,7 +49,7 @@ Rectangle { width: buttonLabel.width + 20; height: buttonLabel.height + 5 border { width: 1; color: Qt.darker(activePalette.button) } - smooth: true + antialiasing: true radius: 8 // color the button with a gradient |