summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativetext.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-04-09 05:18:08 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-04-09 05:18:08 (GMT)
commit95ad31adca64f639712fa378d25aa3e552b3dc72 (patch)
treed03e2ed9999a17572be62f54fc4173608221eb9e /src/declarative/graphicsitems/qdeclarativetext.cpp
parent60e0a0b0fb6a2cf7b9fffd4ff2d30838ffa4ac84 (diff)
downloadQt-95ad31adca64f639712fa378d25aa3e552b3dc72.zip
Qt-95ad31adca64f639712fa378d25aa3e552b3dc72.tar.gz
Qt-95ad31adca64f639712fa378d25aa3e552b3dc72.tar.bz2
TextEdit::wrap changed to TextEdit::wrapMode enumeration
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativetext.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativetext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetext.cpp b/src/declarative/graphicsitems/qdeclarativetext.cpp
index c950e31..1f53b75 100644
--- a/src/declarative/graphicsitems/qdeclarativetext.cpp
+++ b/src/declarative/graphicsitems/qdeclarativetext.cpp
@@ -362,7 +362,7 @@ bool QDeclarativeText::wrap() const
void QDeclarativeText::setWrap(bool w)
{
qmlInfo(this) << "\"wrap\" property is deprecated and will soon be removed. Use wrapMode";
- setWrapMode(WordWrap);
+ setWrapMode(w ? WordWrap : NoWrap);
}