aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickimage.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2012-07-18 13:53:40 +1000
committerQt by Nokia <qt-info@nokia.com>2012-08-28 01:51:19 +0200
commit3912bbaceab166eb116447311eb16453e4f26edf (patch)
treeb44561b4fbded41d7011e79c3d9a5411a1de438c /src/quick/items/qquickimage.cpp
parentc2f2ae8ce90e621cc3835428c40c116fbdc593e6 (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 'src/quick/items/qquickimage.cpp')
-rw-r--r--src/quick/items/qquickimage.cpp17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/quick/items/qquickimage.cpp b/src/quick/items/qquickimage.cpp
index 8b0392f403..44aa9734b2 100644
--- a/src/quick/items/qquickimage.cpp
+++ b/src/quick/items/qquickimage.cpp
@@ -199,7 +199,6 @@ void QQuickImagePrivate::setImage(const QImage &image)
\qml
Image {
width: 130; height: 100
- smooth: true
source: "qtlogo.png"
}
\endqml
@@ -211,7 +210,6 @@ void QQuickImagePrivate::setImage(const QImage &image)
Image {
width: 130; height: 100
fillMode: Image.PreserveAspectFit
- smooth: true
source: "qtlogo.png"
}
\endqml
@@ -223,7 +221,6 @@ void QQuickImagePrivate::setImage(const QImage &image)
Image {
width: 130; height: 100
fillMode: Image.PreserveAspectCrop
- smooth: true
source: "qtlogo.png"
clip: true
}
@@ -247,7 +244,6 @@ void QQuickImagePrivate::setImage(const QImage &image)
Image {
width: 120; height: 120
fillMode: Image.TileVertically
- smooth: true
source: "qtlogo.png"
}
\endqml
@@ -259,7 +255,6 @@ void QQuickImagePrivate::setImage(const QImage &image)
Image {
width: 120; height: 120
fillMode: Image.TileHorizontally
- smooth: true
source: "qtlogo.png"
}
\endqml
@@ -360,14 +355,12 @@ qreal QQuickImage::paintedHeight() const
/*!
\qmlproperty bool QtQuick2::Image::smooth
- Set this property if you want the image to be smoothly filtered when scaled or
- transformed. Smooth filtering gives better visual quality, but is slower. If
- the image is displayed at its natural size, this property has no visual or
- performance effect.
+ This property holds whether the image is smoothly filtered when scaled or
+ transformed. Smooth filtering gives better visual quality, but it may be slower
+ on some hardware. If the image is displayed at its natural size, this property has
+ no visual or performance effect.
- \note Generally scaling artifacts are only visible if the image is stationary on
- the screen. A common pattern when animating an image is to disable smooth
- filtering at the beginning of the animation and reenable it at the conclusion.
+ By default, this property is set to true.
*/
/*!