summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxtextedit.cpp
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2009-08-10 00:11:08 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2009-08-10 00:11:08 (GMT)
commitc4235f6f90613f1a877da067354b912ef0004259 (patch)
tree911306f9fe7d7dd81aa8cf8b7fb89e30292e38b7 /src/declarative/fx/qfxtextedit.cpp
parent1a05457011ca570b1f082f2e4312ad4897fbeb2d (diff)
downloadQt-c4235f6f90613f1a877da067354b912ef0004259.zip
Qt-c4235f6f90613f1a877da067354b912ef0004259.tar.gz
Qt-c4235f6f90613f1a877da067354b912ef0004259.tar.bz2
Documentation
Diffstat (limited to 'src/declarative/fx/qfxtextedit.cpp')
-rw-r--r--src/declarative/fx/qfxtextedit.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/declarative/fx/qfxtextedit.cpp b/src/declarative/fx/qfxtextedit.cpp
index e4001b2..dbaba79 100644
--- a/src/declarative/fx/qfxtextedit.cpp
+++ b/src/declarative/fx/qfxtextedit.cpp
@@ -1010,11 +1010,24 @@ void QFxTextEdit::updateImgCache(const QRectF &r)
emit update();
}
+/*!
+ \qmlproperty bool TextEdit::smooth
+
+ Set this property if you want the text to be smoothly scaled or
+ transformed. Smooth filtering gives better visual quality, but is slower. If
+ the item is displayed at its natural size, this property has no visual or
+ performance effect.
+
+ \note Generally scaling artifacts are only visible if the item is stationary on
+ the screen. A common pattern when animating an item is to disable smooth
+ filtering at the beginning of the animation and reenable it at the conclusion.
+*/
+
void QFxTextEditPrivate::init()
{
Q_Q(QFxTextEdit);
- q->setSmoothTransform(true);
+ q->setSmoothTransform(smooth);
q->setAcceptedMouseButtons(Qt::LeftButton);
q->setFlag(QGraphicsItem::ItemHasNoContents, false);
q->setFlag(QGraphicsItem::ItemAcceptsInputMethod);