summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxtextedit.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-08-12 01:33:05 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-08-12 01:33:05 (GMT)
commit10408036279e8102c3dd2870a6c71280c43da614 (patch)
tree57d307a842a8d2527d18e0c212295199a04ff771 /src/declarative/fx/qfxtextedit.cpp
parent6fc7ce61ba1b623421ca3ca8ee2315746be0a37b (diff)
parenteae40ec9e65326bf268979afe1399d1fb8548105 (diff)
downloadQt-10408036279e8102c3dd2870a6c71280c43da614.zip
Qt-10408036279e8102c3dd2870a6c71280c43da614.tar.gz
Qt-10408036279e8102c3dd2870a6c71280c43da614.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'src/declarative/fx/qfxtextedit.cpp')
-rw-r--r--src/declarative/fx/qfxtextedit.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/declarative/fx/qfxtextedit.cpp b/src/declarative/fx/qfxtextedit.cpp
index 85e0a5a..fcc9e69 100644
--- a/src/declarative/fx/qfxtextedit.cpp
+++ b/src/declarative/fx/qfxtextedit.cpp
@@ -329,7 +329,7 @@ void QFxTextEdit::setHighlightColor(const QColor &color)
QColor QFxTextEdit::highlightedTextColor() const
{
Q_D(const QFxTextEdit);
- return d->highlightColor;
+ return d->highlightedTextColor;
}
void QFxTextEdit::setHighlightedTextColor(const QColor &color)
@@ -1001,11 +1001,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);