summaryrefslogtreecommitdiff
path: root/doc/src/snippets/code/src_script_qscriptengine.cpp
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2011-11-10 17:16:25 +0000
committerShane Kearns <shane.kearns@accenture.com>2011-11-11 11:51:02 +0000
commit425272e7405eed077cb65a101d5dd1fafc4b11d2 (patch)
treec6909b5941f553caf633fe68cbaf3ddeca89af1a /doc/src/snippets/code/src_script_qscriptengine.cpp
parentd8213cbff66784a3e1132e278d608500f88975f2 (diff)
downloadqt4-tools-425272e7405eed077cb65a101d5dd1fafc4b11d2.tar.gz
Fix warning when using QXmlInputSource with non opened QIODevice
Calling setTextModeEnabled on a QIODevice that is not open generates a warning as a result of QTBUG-20905. Previously, it caused incorrect behaviour when called with true. Now only call it if the QIODevice passed in is already opened. If not open, then it is opened by the xml reader without text mode, so there is no difference in behaviour. xml autotests still pass, although this removes several QWARN messages from the qdom autotest. Task-number: QTBUG-22659 Change-Id: Ie3137e44fe776bff6371ebd008428110168717ec Reviewed-by: João Abecasis <joao.abecasis@nokia.com> (cherry picked from commit d457f148cf1efbea3db5fdc87c418cc9647e2baf)
Diffstat (limited to 'doc/src/snippets/code/src_script_qscriptengine.cpp')
0 files changed, 0 insertions, 0 deletions