platform/upstream/qtdeclarative.git
11 years agoDoc: Add a link to the Qt Quick Controls page
Caroline Chao [Fri, 22 Mar 2013 10:03:46 +0000 (11:03 +0100)]
Doc: Add a link to the Qt Quick Controls page

From the Qt Quick main page.

Change-Id: Iaea46afe0f6a795cb33ec53a7b767461ce42d3df
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Nico Vertriest <nico.vertriest@digia.com>
11 years agoDesignerSupport: Adding separate flag for component completion
Thomas Hartmann [Tue, 9 Apr 2013 10:54:09 +0000 (12:54 +0200)]
DesignerSupport: Adding separate flag for component completion

The designer should only disable completion of components
if the component is created directly by the designer.

Change-Id: Id86d2b2f2e61355240bdbbb7875db3e97fb0da17
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
11 years agoStabilize Test
Alan Alpert [Wed, 10 Apr 2013 21:18:46 +0000 (14:18 -0700)]
Stabilize Test

Use QProcess::waitForFinished over a signal spy. Has a
chance of stabilizing the test, but also cleans up the code.

Change-Id: I888c3b9da6d44d11516227c085bcc12a5ccb5e8a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoa nested Window automatically becomes transient for its parent
Shawn Rutledge [Wed, 27 Mar 2013 08:57:59 +0000 (09:57 +0100)]
a nested Window automatically becomes transient for its parent

If you declare Window { Window {}} or Window { Item { Window {}}}
the inner window will automatically become transient for the
outer one.  The transient relationship must be set before the
inner window becomes visible though, so declaring visible: true
doesn't always work, depending on initialization order.  It's OK
if you assign visible (or call show()) later on when the user needs
to see the transient window for the first time.

Also added documentation.

Change-Id: I888c3b9da6d44d11516227c085bcc12a5ccb5e81
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
11 years agoAdded more tests for activeFocusOnTab
Liang Qi [Tue, 9 Apr 2013 10:09:24 +0000 (12:09 +0200)]
Added more tests for activeFocusOnTab

The ignored key events will go to parent.

Change-Id: I5e002ee9df44d1c7865c1c50a1631e8e206c68af
Reviewed-by: Alan Alpert (Personal) <416365416c@gmail.com>
11 years agoFix new warnings in qtdeclarative (found by GCC 4.8)
Thiago Macieira [Sat, 6 Apr 2013 18:35:00 +0000 (11:35 -0700)]
Fix new warnings in qtdeclarative (found by GCC 4.8)

qqmlproperty.cpp:1561:35: warning: typedef ‘VMEMO’ locally defined but not used [-Wunused-local-typedefs]
qquickglobal.cpp:1017:13: warning: ‘initialized’ defined but not used [-Wunused-variable]
qquicktextnode.cpp:245:6: warning: unused parameter ‘position’ [-Wunused-parameter]

Change-Id: I48c5486953278dc960249f68e0e122d108f56e07
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
11 years agoVersion new property and signal
Liang Qi [Fri, 5 Apr 2013 13:39:59 +0000 (15:39 +0200)]
Version new property and signal

activeFocusOnTab and activeFocusOnTabChanged in QQuickItem.

Task-number: QTBUG-30446
Change-Id: I973df95d690b8e533b5cc108d8e083a2fed8528a
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
11 years agoAdd change log file for Qt 5.1.0
Sergio Ahumada [Mon, 8 Apr 2013 09:21:25 +0000 (11:21 +0200)]
Add change log file for Qt 5.1.0

Change-Id: I9bd3fe3cb3897c18b08a3f9d4792f69a29d9d5f9
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
11 years agoQmlDebugging: Remove 'insignificant_test'
Aurindam Jana [Tue, 19 Mar 2013 12:41:34 +0000 (13:41 +0100)]
QmlDebugging: Remove 'insignificant_test'

The test cases used to depend on a specific port being free for
client-server communication. Since, the test cases now use a port
range, they should be more stable now. The timeout has also been
increased from 5s to 10s to ensure that the application output
is read.

Task-number: QTBUG-28263

Change-Id: I7f0670713b8a901e4da3c3d62bbb9fc18e38bd25
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
11 years agoFixed distance field text when using non-opaque colors.
Yoann Lopes [Thu, 21 Mar 2013 15:34:38 +0000 (16:34 +0100)]
Fixed distance field text when using non-opaque colors.

The alpha has to be premultiplied before passing the color to the
shader.

Change-Id: If22f0e0892eb4330d5f7398bea2710fce18c4dcb
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
11 years agoTestLib: Add more mouseMove in mouseDrag implementation
Caroline Chao [Tue, 2 Apr 2013 16:24:46 +0000 (18:24 +0200)]
TestLib: Add more mouseMove in mouseDrag implementation

So the cursor has intermediate states while dragging instead of
jumping to the final position.

This is for example useful for testing the behavior of a control
during the drag.

Add autotest.

Change-Id: I061dd18ef7ac389aa4da4a5b60f9e128ee8c08d0
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
11 years agoUse correct alpha range for the distance field outlined text.
Yoann Lopes [Thu, 21 Mar 2013 17:22:09 +0000 (18:22 +0100)]
Use correct alpha range for the distance field outlined text.

The alpha treshold values used in the outline shader were hard-coded. It
should use the same logic as in the normal text shader, using the
ThresholdFunc and the AntialiasingSpreadFunc for calculating these
values.

Change-Id: I0e6f38644692cc7a8a4cee1e8e60622fe289d615
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
11 years agoMerge "Merge remote-tracking branch 'origin/release' into stable" into refs/staging...
Frederik Gladhorn [Fri, 5 Apr 2013 14:01:51 +0000 (16:01 +0200)]
Merge "Merge remote-tracking branch 'origin/release' into stable" into refs/staging/stable

11 years agoImplemented text styles for QSGDefaultGlyphNode.
Yoann Lopes [Tue, 12 Mar 2013 17:43:21 +0000 (18:43 +0100)]
Implemented text styles for QSGDefaultGlyphNode.

Used when Text has renderType: Text.NativeRendering.

Task-number: QTBUG-27867
Change-Id: Id1262ef49e26229c86ebd2533b9f6de638bc75cb
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
11 years agoMake keyClick/Press/Release work with a char
Albert Astals Cid [Wed, 3 Apr 2013 09:07:18 +0000 (11:07 +0200)]
Make keyClick/Press/Release work with a char

Change-Id: Id821bddd993d4da4458464713a69edfea4aaecaa
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
11 years agoAndroid: Support implicit import paths for assets:/ urls
Eskil Abrahamsen Blomfeldt [Thu, 4 Apr 2013 14:17:35 +0000 (16:17 +0200)]
Android: Support implicit import paths for assets:/ urls

The assets: scheme is not handled by QNetworkAccessManager, so it needs
to be special cased along side the qrc: scheme. We make QML recognize
it as a synchronously loaded, local file, and we make the type loader
get the correct path and check existence of the directory correctly.
This makes it possible to implicitly import the containing directory
of QML files that are bundled in the assets directory.

Task-number: QTBUG-30510

Change-Id: I048292757e509066a4af342081ec8428e2bd8af3
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
11 years agoRemove unused declaration of accessibility text functions.
Frederik Gladhorn [Thu, 4 Apr 2013 12:33:04 +0000 (14:33 +0200)]
Remove unused declaration of accessibility text functions.

Change-Id: I5cf9849f5c1ea39954050292d29db9cb1bd78c0c
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
11 years agoTestLib: add mouse release at the end of a mouseDrag
Caroline Chao [Wed, 27 Mar 2013 12:13:30 +0000 (13:13 +0100)]
TestLib: add mouse release at the end of a mouseDrag

Change-Id: I901f23a2bc7089784ed644a53a3712669b21f417
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
11 years agoFix autotest-exported class from QtQuick.
Thiago Macieira [Tue, 2 Apr 2013 05:45:28 +0000 (22:45 -0700)]
Fix autotest-exported class from QtQuick.

Each class with a virtual table should have at least one non-inline
member. Especially if it's exported (there's no point in exporting it
otherwise).

Change-Id: I6b2821faa9662c6e8b65ce9ced53332e1a18e8d9
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
11 years agoRemove the APPLE_texture_format path
Gunnar Sletta [Mon, 18 Mar 2013 12:22:54 +0000 (13:22 +0100)]
Remove the APPLE_texture_format path

It is untested and is causing problems elsewhere.

Change-Id: I412f820d14c1632e3d1000b627231d8f78e792b5
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
11 years agoRemove resize hook from QSGRenderLoop, exposureChanged is enough.
Gunnar Sletta [Thu, 21 Feb 2013 10:16:58 +0000 (11:16 +0100)]
Remove resize hook from QSGRenderLoop, exposureChanged is enough.

After much back and forth, I think we have settled on the right approach
in QtGui, which is that resizeEvent is pretty much useless as the
action happens on the following exposeEvent().

Change-Id: I5e87bda89853907d041f56acf9a2895e540c41f0
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
11 years agoOur debug env vars are a mess. Standardize on QSG_RENDER_TIMING
Gunnar Sletta [Thu, 4 Apr 2013 07:39:03 +0000 (09:39 +0200)]
Our debug env vars are a mess. Standardize on QSG_RENDER_TIMING

Change-Id: I4e88b479a8a9a5126312a05800e8170511b1f7ac
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
11 years agoQQuickTextEdit: render inline images after change 48798
Pierre Rossi [Thu, 21 Mar 2013 12:15:01 +0000 (13:15 +0100)]
QQuickTextEdit: render inline images after change 48798

The refactoring in QQuickTextEdit from this change:
https://codereview.qt-project.org/#change,48798
accidentally broke rendering of inline images.
Revive the ProtectedLayoutAccessor trick to get the proper
format and properly extract the image from it.

Change-Id: I445914efcea1012daa79d594aa1e828b1039b988
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
11 years agoMark tst_dialogs insignificant to stop geting CI failures
Shawn Rutledge [Thu, 4 Apr 2013 13:02:58 +0000 (15:02 +0200)]
Mark tst_dialogs insignificant to stop geting CI failures

Task-number: QTBUG-30513
Change-Id: I625ff99e2e2e31b58fd219cf9736f262098d2664
Reviewed-by: David Faure (KDE) <faure@kde.org>
11 years agoMerge remote-tracking branch 'origin/release' into stable
Frederik Gladhorn [Wed, 3 Apr 2013 14:16:08 +0000 (16:16 +0200)]
Merge remote-tracking branch 'origin/release' into stable

Conflicts:
examples/qml/xmlhttprequest/doc/src/xmlhttprequest.qdoc
examples/quick/accessibility/doc/src/accessibility.qdoc
examples/quick/animation/doc/src/animation.qdoc
examples/quick/canvas/doc/src/canvas.qdoc
examples/quick/draganddrop/doc/src/draganddrop.qdoc
examples/quick/imageelements/doc/src/imageelements.qdoc
examples/quick/keyinteraction/doc/src/keyinteraction.qdoc
examples/quick/localstorage/doc/src/localstorage.qdoc
examples/quick/mousearea/doc/src/mousearea.qdoc
examples/quick/particles/affectors/doc/src/affectors.qdoc
examples/quick/particles/customparticle/doc/src/customparticle.qdoc
examples/quick/particles/emitters/doc/src/emitters.qdoc
examples/quick/particles/imageparticle/doc/src/imageparticle.qdoc
examples/quick/particles/system/doc/src/system.qdoc
examples/quick/positioners/doc/src/positioners.qdoc
examples/quick/righttoleft/doc/src/righttoleft.qdoc
examples/quick/scenegraph/customgeometry/doc/src/customgeometry.qdoc
examples/quick/scenegraph/openglunderqml/doc/src/openglunderqml.qdoc
examples/quick/scenegraph/simplematerial/doc/src/simplematerial.qdoc
examples/quick/threading/doc/src/threading.qdoc
examples/quick/touchinteraction/doc/src/touchinteraction.qdoc
examples/quick/views/doc/src/views.qdoc

Change-Id: Idf7bb76c82acacf86b19a9f4633c3cbf4ae1a9a0

11 years agoFix export macros for the QML parser export.
Thiago Macieira [Tue, 2 Apr 2013 05:44:32 +0000 (22:44 -0700)]
Fix export macros for the QML parser export.

These classes are in the QtQml library. They shouldn't be defined to
export (even if it's autotest export) when compiling other libraries,
notably QtQuick.

Change-Id: Id76d2b2f2c60355240edabb7875db3e97fb0da17
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
11 years agoStabilize Code
Alan Alpert [Mon, 1 Apr 2013 18:14:48 +0000 (11:14 -0700)]
Stabilize Code

Apparently it is no longer necessary to rely on undefined compiler
behavior.

Change-Id: I8e93dc0de663713c714d7894f4c66acb0aec30b4
Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
11 years agoVersion new signals
Alan Alpert [Fri, 29 Mar 2013 22:14:50 +0000 (15:14 -0700)]
Version new signals

New signals added as a workaround need to be versioned as new. However,
because they're used just to override the property's signals and are
forwarded to the old signal you can still use the old signal names from
QML. Consequently, this revision shouldn't need to be exposed to QML.

Change-Id: I80407852f0a5063866c5f4334cfd0285f00d5578
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
11 years agoProvide workaround to slow glyph cache updates.
Michael Brasser [Tue, 26 Mar 2013 14:15:10 +0000 (09:15 -0500)]
Provide workaround to slow glyph cache updates.

The environmental variable QML_USE_GLYPHCACHE_WORKAROUND can be
specified to use the workaround path, which performs better on some
hardware.

Task-number: QTBUG-29264
Change-Id: I16d35ceabc12c990e4f791693ec4694f4e7f55f7
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
11 years agoUse distance fields for text on retina displays
Gunnar Sletta [Wed, 20 Mar 2013 14:41:44 +0000 (15:41 +0100)]
Use distance fields for text on retina displays

Change-Id: I6d3f3e7e4813155f2abb3edc51b145fb709c485b
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
11 years agoFix incorrect merge in textureprovider example.
Michael Brasser [Tue, 26 Mar 2013 19:53:38 +0000 (14:53 -0500)]
Fix incorrect merge in textureprovider example.

Change-Id: I5a76ab1ef77c43aecd2a03cc7d614a198290f427
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
11 years agoQmlProfiling: Test case uses port range
Aurindam Jana [Tue, 19 Mar 2013 12:38:57 +0000 (13:38 +0100)]
QmlProfiling: Test case uses port range

Change-Id: I45fcb8b7d496d480ad7fa72064b13c00a4bd6fa6
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
11 years agoDebugger: Accepts port range as arguments
Aurindam Jana [Mon, 18 Mar 2013 16:17:52 +0000 (17:17 +0100)]
Debugger: Accepts port range as arguments

Allow a port range to pass on command line, and try to listen on any of the
ports in the range. (Re)using the ',' separator allows for backwards compatibility,
that is, also Qt 4 will accept a -qmljsdebugger=port:1000,1010 argument, but
will only try to listen on port 1000.

Change-Id: Ic03fe20e4aee9ecdea86651f46f1df5cb19bd75c
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
11 years agoUpdate EtcProvider example to support configurable base url.
Michael Brasser [Wed, 27 Mar 2013 01:29:10 +0000 (20:29 -0500)]
Update EtcProvider example to support configurable base url.

Change-Id: Idb047bc7bf2c9f1c62c4749cb416bdf267e66e17
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
11 years agoFix distance field antialiasing for retina displays.
Gunnar Sletta [Wed, 20 Mar 2013 14:40:49 +0000 (15:40 +0100)]
Fix distance field antialiasing for retina displays.

Change-Id: I01d7d41a4e70822555bae453978dbe92fbb5c98d
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
11 years agoShow fullscreen button in qmlscene on Mac
Gunnar Sletta [Thu, 21 Mar 2013 08:56:37 +0000 (09:56 +0100)]
Show fullscreen button in qmlscene on Mac

Change-Id: I3202e8e7461f457eeb73a82b7a8da40a11e4f76d
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
11 years agoDoc: Fix some titles and links
Sze Howe Koh [Thu, 28 Mar 2013 12:39:13 +0000 (20:39 +0800)]
Doc: Fix some titles and links

Make page titles follow the conventions at
http://qt-project.org/wiki/Spelling_Module_Names_in_Qt_Documentation.

Make class/type list titles follow the "<Qt Module> C++ Classes" and
"<Qt Module> QML Types" formats.

Links are updated accordingly, along with broken links found during this
sweep. Some inline links also have their surrounding text modified, to
improve flow.

Change-Id: I0ed7788caa250085d7ea0080a77d8a2655debf39
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
11 years agoDoc: Update module "Qt Declarative" -> "Qt Quick"
Sze Howe Koh [Wed, 27 Mar 2013 14:28:24 +0000 (22:28 +0800)]
Doc: Update module "Qt Declarative" -> "Qt Quick"

Also update examples/README to show the relationship between Qt Quick
and Qt QML.

Change-Id: I4e50d9f0ddb1ac25ccdfed09f579f76a375b14fe
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
11 years agoDelay loading implicit import
Alan Alpert [Sat, 8 Dec 2012 21:57:12 +0000 (13:57 -0800)]
Delay loading implicit import

As a performance improvement to avoid extra filesystem access, only
import "." if it is needed for type resolution.

Change-Id: If9be25deb3205f8c81f9f418404d9fb41bebb84f
Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
11 years agoFix warning QQuickImplicitSizeItem redefines signals
Caroline Chao [Mon, 25 Mar 2013 13:12:19 +0000 (14:12 +0100)]
Fix warning QQuickImplicitSizeItem redefines signals

Task-number: QTBUG-30258

Change-Id: I3ab2a3ffbe22f583ac422f876be3037c07e8255d
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
11 years agoDoc: Fixed some uses of terminolgies in qdoc files.
Jerome Pasion [Mon, 25 Mar 2013 11:37:22 +0000 (12:37 +0100)]
Doc: Fixed some uses of terminolgies in qdoc files.

-"element" -> "type" or "object" (not in all cases where this change applies)
-some instances of QtQuick. It should be "Qt Quick".
-only in qdoc files. Examples and source code changes will be done later.

Task-number: QTBUG-30180
Change-Id: Ie587461a138e97606f761ad1e90909c91b479303
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Reviewed-by: Martin Smith <martin.smith@digia.com>
11 years agoBump MODULE_VERSION to 5.1.0
Sergio Ahumada [Mon, 25 Mar 2013 10:09:43 +0000 (11:09 +0100)]
Bump MODULE_VERSION to 5.1.0

Change-Id: I3d794f16eb81634b9fe69d4fc9559be19cf3a998
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoAttempt to stabilize tst_qquickanimatedsprite
Frederik Gladhorn [Tue, 26 Mar 2013 14:24:31 +0000 (15:24 +0100)]
Attempt to stabilize tst_qquickanimatedsprite

Change-Id: I557f985ca5e68eb75d0b032b1dfa28cc33d56b6a
Reviewed-by: David Faure (KDE) <faure@kde.org>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoDoc: Spelling fix.
Jerome Pasion [Tue, 26 Mar 2013 09:57:28 +0000 (10:57 +0100)]
Doc: Spelling fix.

"sufficent" -> "sufficient"

Change-Id: Id46e15c3fb0a2514e8a391108065a52a18da6936
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
11 years agoAdd changes-5.0.2 file
Sergio Ahumada [Mon, 25 Mar 2013 09:38:04 +0000 (10:38 +0100)]
Add changes-5.0.2 file

Change-Id: Ifb952f46be13cd1009a82131d1eb7c17962c7118
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Iikka Eklund <iikka.eklund@digia.com>
11 years agoEnable accessibility again.
Frederik Gladhorn [Tue, 12 Mar 2013 12:38:48 +0000 (13:38 +0100)]
Enable accessibility again.

Revert "Disable accessibility temporarily."

This reverts commit 361015dc73b887026e1937da09c11df89acf5c85.

Change-Id: Ie1d053fe64ee79fbd9e57bf2d0d2764bb638db72
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
11 years agoMerge "Merge remote-tracking branch 'origin/dev' into stable" into refs/staging/stable
J-P Nurmi [Fri, 22 Mar 2013 15:31:39 +0000 (16:31 +0100)]
Merge "Merge remote-tracking branch 'origin/dev' into stable" into refs/staging/stable

11 years agoMerge remote-tracking branch 'origin/dev' into stable
Frederik Gladhorn [Fri, 22 Mar 2013 15:27:17 +0000 (16:27 +0100)]
Merge remote-tracking branch 'origin/dev' into stable

These two patches should have targeted 5.1 and went in just
at the wrong time.

Change-Id: Idd0a7a812fb11e2aea2c187d5e82aa31494c576c

11 years agoSkip flaky FileDialog modality test
Shawn Rutledge [Thu, 21 Mar 2013 07:27:43 +0000 (08:27 +0100)]
Skip flaky FileDialog modality test

It's been failing in CI, not just on MacOS

Change-Id: Iba3ff400c0b8b6b0cc9a7c6bddd710d3f0e78964
Reviewed-by: David Faure (KDE) <faure@kde.org>
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
11 years agoMerge "Merge branch 'dev' into stable" into refs/staging/stable
Sergio Ahumada [Fri, 22 Mar 2013 12:16:59 +0000 (13:16 +0100)]
Merge "Merge branch 'dev' into stable" into refs/staging/stable

11 years agoTry to stabilize tst_QQuickPathView
Sergio Ahumada [Tue, 19 Mar 2013 12:11:27 +0000 (13:11 +0100)]
Try to stabilize tst_QQuickPathView

Change-Id: I673604d4f0bc90352efe115422762c7c4ec210ad
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
11 years agoTry to stabilize qquickimage and rendernode tests.
Gunnar Sletta [Wed, 20 Mar 2013 09:19:38 +0000 (10:19 +0100)]
Try to stabilize qquickimage and rendernode tests.

Some of Our CI machines are running on tiny screens and recent
changes in Qt have caused us to limit windows to the screen
geometry (which is sensible).

Change-Id: I29eb3b5c73a7ea650ac26494c25d204fb254dee3
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
11 years agoFix duplicate examples for qml/quick modules
Kai Koehne [Mon, 18 Mar 2013 16:00:14 +0000 (17:00 +0100)]
Fix duplicate examples for qml/quick modules

Task-number: QTBUG-30233
Change-Id: Ic0a6d9112dbf8903d68f571e0ac853d89ff31ebe
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
11 years agoTry to stabilize qquickimage and rendernode tests.
Gunnar Sletta [Wed, 20 Mar 2013 09:19:38 +0000 (10:19 +0100)]
Try to stabilize qquickimage and rendernode tests.

Some of Our CI machines are running on tiny screens and recent
changes in Qt have caused us to limit windows to the screen
geometry (which is sensible).

Change-Id: I29eb3b5c73a7ea650ac26494c25d204fb254dee3
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
11 years agoAdd Instantiator type to QtQml
Alan Alpert [Mon, 24 Dec 2012 06:57:10 +0000 (22:57 -0800)]
Add Instantiator type to QtQml

Provides a dynamic instantiation type which is not tied to visual items.

Change-Id: I42f7332b29b752dcc94979b6e0ec191fc76b96ef
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoMerge branch 'dev' into stable
Sergio Ahumada [Wed, 20 Mar 2013 08:13:42 +0000 (09:13 +0100)]
Merge branch 'dev' into stable

This starts Qt 5.1 release cycle

Change-Id: I6178a580b4c99aded1a69032a02169cff502b71d

11 years agoOptimize QQuickTextEdit for larger documents.
Pierre Rossi [Mon, 18 Mar 2013 15:25:59 +0000 (16:25 +0100)]
Optimize QQuickTextEdit for larger documents.

The rationale is to not end up re-processing the whole document on each update
Since we know where the editing takes place, we can break down the text edit's
contents in several text nodes and only re-create the affected text nodes upon
editing.

This requires ripping out the SelectionEngine helper class from QQuickTextNode
so that QQuickTextEdit can tap into its functionality directly.

A positive side-effect of this exercise is that it should be much harder to
to come across GlyphNodes packing more than 16300 glyphs or so.

Task-number: QTBUG-29596
Change-Id: Id29b0709baa43f5b29c44ab02398ba996be3e28a
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
11 years agoAdd QQmlApplicationEngine
Alan Alpert [Fri, 21 Dec 2012 21:37:30 +0000 (13:37 -0800)]
Add QQmlApplicationEngine

This helper class exposes QML application functionality that QML-only
applications want to have, but QML-using applications may not.

Change-Id: If91c3f55ffa2a4aecdd9d6cc62f6ad09fd35b0dd
Reviewed-by: Alan Alpert (Personal) <416365416c@gmail.com>
11 years agoFix multi-line string content.
Erik Verbruggen [Tue, 19 Mar 2013 12:04:54 +0000 (13:04 +0100)]
Fix multi-line string content.

ECMA5.1, paragraph 7.8.4, item 9 under semantics: The SV of
   LineContinuation :: \ LineTerminatorSequence
is the empty character sequence.

So, do not add any line-terminator inside a multi-line string. Escaped
characters like \r and \n are added of course.

Change-Id: I8c58b7971b1d1bc90adc795ea278541758246e01
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoMake sure that TextInteractionFlags get set.
Frederik Gladhorn [Tue, 19 Mar 2013 14:04:44 +0000 (15:04 +0100)]
Make sure that TextInteractionFlags get set.

The first time the function is called,
it could fail to set the flags.

Calling setSelectByKeyboard(true) would not actually
set the text interaction flags (was == on).

The test didn't detect it because it called setReadOnly
before setSelectByKeyboard.

Change-Id: Ia54cc782b6ad5a74f1d7029c92fa230116d034b0
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
11 years agoQQuickItemView: Add guard before returning currentItem item
Caroline Chao [Tue, 19 Mar 2013 13:01:54 +0000 (14:01 +0100)]
QQuickItemView: Add guard before returning currentItem item

And don't check if the currentItem is empty before calling
applyPendingChanges().

And an autotest. (Patch from Steffen Imhof)

Task-number: QTBUG-30227

Change-Id: Ia16362a6d0dce771f20772929c32e9306ed0e0f9
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
11 years agoGet rid of warning Module 'QtQuick.Dialogs'...cannot be protected...
Shawn Rutledge [Mon, 18 Mar 2013 14:53:52 +0000 (15:53 +0100)]
Get rid of warning Module 'QtQuick.Dialogs'...cannot be protected...

After I86bc6d975223979c19d94a3fd70e4b5130b73f47 it's possible for
qmldir to have the module declaration again.  The reason it was
absent was that src/imports/dialogs/plugin.cpp was registering
new types in initializeEngine.

Change-Id: I6b28a3b97df7f7817cfdc1e745c4ce6f048302f1
Reviewed-by: Liang Qi <liang.qi@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
11 years agoMark renderNode test as insignificant, as CI doesn't manage to run it
Gunnar Sletta [Tue, 19 Mar 2013 11:11:53 +0000 (12:11 +0100)]
Mark renderNode test as insignificant, as CI doesn't manage to run it

Change-Id: I43c2306f8b1c095140c9712821ddcc2dcea1b95d
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
11 years agoFix jump and property changes on first move when dragging a Flickable.
Andrew den Exter [Tue, 12 Mar 2013 04:05:32 +0000 (14:05 +1000)]
Fix jump and property changes on first move when dragging a Flickable.

Fixes a regression introduced by https://codereview.qt-project.org/48690
whereby on the first mouse move the contentItem was moved the total
distance from the touch point to where the drag distance was exceeded.
For large drag thresholds this causes a noticeable jump. Reverting the
dragStartOffset portion of that change fixes the regression.

That same change was also resposible for the property update regression
https://codereview.qt-project.org/49768 attempted to fix.  That change
is also reverted as it was unnecessary and may have introduced some
regressions of its own.

Task-number: QTBUG-30032
Change-Id: I7723b459cc5a6a0731893aeb6332d00cad1bd79b
Reviewed-by: Martin Jones <martin.jones@jollamobile.com>
11 years agoRemove unused field in test class.
Erik Verbruggen [Mon, 18 Mar 2013 14:31:22 +0000 (15:31 +0100)]
Remove unused field in test class.

Change-Id: Id9bfbd1c84acb59a669908e933ed1f63a4987526
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
11 years agoFix hexadecimal escape sequence validation in strings.
Erik Verbruggen [Mon, 18 Mar 2013 14:30:55 +0000 (15:30 +0100)]
Fix hexadecimal escape sequence validation in strings.

Give an error message when the sequence does not conform to the grammar.
Although the specification does not explicitly state that this is an
error, this is the behaviour of both JSC and V8.

Change-Id: I34d189f07628bc6cc40b13bfbb8d09bee7810ced
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
11 years agoRemove duplicated docs
Alan Alpert [Mon, 4 Mar 2013 22:03:56 +0000 (14:03 -0800)]
Remove duplicated docs

In the move of docs to a separate file, this copy of docs seemed to be
resurrected by mistake. Removing it and properly formatting the code.

Change-Id: Id7257c232880a8829e8864af12c5b7b5c484a398
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
11 years agoQQuickItem: Support FocusReason in focusNextPrev
Liang Qi [Mon, 18 Mar 2013 08:46:09 +0000 (09:46 +0100)]
QQuickItem: Support FocusReason in focusNextPrev

Change-Id: Ib1b69607e1b4b52bad6e382d8102a42553f13432
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
11 years agoAdd ColorDialog to QtQuick.Dialogs
Shawn Rutledge [Mon, 11 Mar 2013 10:05:30 +0000 (11:05 +0100)]
Add ColorDialog to QtQuick.Dialogs

As with FileDialog, it tries QPA, then QColorDialog, and falls back to
a QML implementation (which is also provided here) if neither type of
native dialog is available.

Change-Id: I384928e1f7322bb6b867d4618d07c88c70e3cbfe
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
11 years agoCosmetic changes in DefaultFileDialog and dialog shared controls
Shawn Rutledge [Mon, 11 Mar 2013 10:42:00 +0000 (11:42 +0100)]
Cosmetic changes in DefaultFileDialog and dialog shared controls

Implementation of the button for QML-based dialogs matches
the one for QML examples.  The button and the text field
use system palette colors, as does the file dialog.

Change-Id: Ibf45d57bdab8799ae6aa69ba543c0e05c55b01d3
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
11 years agoFixed invalid GLSL in openglunderqml example.
Samuel Rødal [Mon, 18 Mar 2013 08:12:43 +0000 (09:12 +0100)]
Fixed invalid GLSL in openglunderqml example.

First argument to pow is not allowed to be negative.

Task-number: QTBUG-30191
Change-Id: Iac6c25d84e26777564d6741690aab552a0bb513e
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
11 years agoQQuickLoader: fix the recursion guard for size updates
J-P Nurmi [Wed, 13 Mar 2013 17:31:57 +0000 (18:31 +0100)]
QQuickLoader: fix the recursion guard for size updates

Task-number: QTBUG-30183
Change-Id: Ic8720e1e35bf2f349d74d2021dd202849da67852
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
11 years agooptionally bootstrap QmlDevTools and qmlmin
Oswald Buddenhagen [Thu, 1 Nov 2012 19:05:49 +0000 (20:05 +0100)]
optionally bootstrap QmlDevTools and qmlmin

QmlDevTools is really meant for host tools (the two only ones using this
being qmlmin in this repo and lupdate in qttools). qmake magic will take
care of bootstrapping them while x-building.

Change-Id: I29d921af483659d5455be0ad080dc1a88540c036
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years agoimprove dependencies of qmlparser test
Oswald Buddenhagen [Thu, 7 Mar 2013 15:31:03 +0000 (16:31 +0100)]
improve dependencies of qmlparser test

first, this doesn't need gui.
second, use qml instead of qmldevtools - there is no need to use the
static library here, and after bootstrapping it would pose a real
problem (testlib is not bootstrapped). on the downside, this makes the
test rely on private_tests.

Change-Id: Ic550fa05dcd0f3ba333850640a5b7e3fdd47d905
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoCreate common base class for declarative dialogs
Shawn Rutledge [Thu, 28 Feb 2013 16:57:38 +0000 (17:57 +0100)]
Create common base class for declarative dialogs

QQuickAbstractFileDialog inherits QQuickAbstractDialog, and so can
the future platform dialog types.  Also some header comment corrections.

Change-Id: I86bc6d975223979c19d94a3fd70e4b5130b73f47
Reviewed-by: Liang Qi <liang.qi@digia.com>
11 years agophotosurface example: simplify PinchArea usage; fileUrls; license
Shawn Rutledge [Thu, 14 Mar 2013 20:06:51 +0000 (21:06 +0100)]
photosurface example: simplify PinchArea usage; fileUrls; license

FileDialog.filePaths was changed to fileUrls.  No need to do so much
scripting because the PinchArea.target takes care of the math already,
and with better rotational symmetry too.  Example QML should have a
BSD license.

Change-Id: I892292574c81c032d948c1c2d4924fc7127dd008
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
11 years agoAdd TextEdit::selectByKeyboard
J-P Nurmi [Fri, 1 Mar 2013 14:26:54 +0000 (15:26 +0100)]
Add TextEdit::selectByKeyboard

The main use case is for enabling text selection by keyboard
for read-only editors.

Change-Id: Ieaa9af366fd0eaf863a104a2fdf33c9ddad38b10
Reviewed-by: Alan Alpert (Personal) <416365416c@gmail.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
11 years agoQQuickWindow: expose activeFocusItem as a property
J-P Nurmi [Wed, 27 Feb 2013 12:54:26 +0000 (13:54 +0100)]
QQuickWindow: expose activeFocusItem as a property

Change-Id: Ifd393399f93b04313cd66d7873fb99b505640c8a
Reviewed-by: Alan Alpert (Personal) <416365416c@gmail.com>
11 years agoQQuickView's equivalent in QtQuick1 is QDeclarativeView
Debao Zhang [Thu, 7 Mar 2013 09:23:30 +0000 (17:23 +0800)]
QQuickView's equivalent in QtQuick1 is QDeclarativeView

Change-Id: I12104e8bd58a406a0ff03c110e2df54bbc1c816c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoMove QML types to types folder
Alan Alpert [Wed, 23 Jan 2013 23:17:27 +0000 (15:17 -0800)]
Move QML types to types folder

The QtQml module has gain a bunch of QML types cluttering up the qml
folder. Moving them to types organizes them a bit better.

Change-Id: I570884c00f4abc48f4f1aea048bf002bc70223f3
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoCosmetic changes in common controls for examples
Shawn Rutledge [Fri, 8 Mar 2013 15:44:32 +0000 (16:44 +0100)]
Cosmetic changes in common controls for examples

Use system palette colors.  SimpleLauncherDelegate has its own "button"
rather than using the shared one, which really wasn't suitable for any other
purpose.  So now example apps can use Button, and ToolButton isn't necessary.

Change-Id: I632397f36b96a26c32a86301ddacb85d5c3221f0
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
11 years agoAdd some docs, improve scope of var.
Frederik Gladhorn [Mon, 4 Mar 2013 20:45:24 +0000 (21:45 +0100)]
Add some docs, improve scope of var.

Change-Id: I62e0b3bb4882f58ba58b3c8d71679e4ad2dbc5a3
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
11 years agoAdd clocks.qmlproject
hjk [Thu, 14 Mar 2013 11:30:57 +0000 (12:30 +0100)]
Add clocks.qmlproject

Change-Id: I4fb063d1a4ccc990b5098237f1784b3dce015a81
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoSmooth dragging an item with MouseArea.
Andrew den Exter [Thu, 14 Mar 2013 02:36:20 +0000 (12:36 +1000)]
Smooth dragging an item with MouseArea.

Calculate drag distance relative to the mouse position when a drag is
detected rather than the press position so there isn't a large change
in position on the first move.

Task-number: QTBUG-30188
Change-Id: I5c2269c2228668a3842e18f65167637497b3beb4
Reviewed-by: Joona Petrell <joona.petrell@jollamobile.com>
11 years agoMerge remote-tracking branch 'origin/stable' into dev
Frederik Gladhorn [Thu, 14 Mar 2013 08:30:12 +0000 (09:30 +0100)]
Merge remote-tracking branch 'origin/stable' into dev

Conflicts:
tests/auto/qml/debugger/qv8profilerservice/qv8profilerservice.pro

Change-Id: I2fd99ed8bd03302b9bbf31e6f21990f6455c4f1c

11 years agoCompile fix.
Samuel Rødal [Wed, 13 Mar 2013 15:10:06 +0000 (16:10 +0100)]
Compile fix.

Some compilers don't allow the first argument to printf and similar
functions to be a non-literal string.

Change-Id: Idd11ae6679d5c0585b5d10b76c991dcfdb4f65da
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
11 years agoPolish usage of a QElapsedTime instance in QSGThreadedRenderLoop
Jędrzej Nowacki [Tue, 12 Mar 2013 10:03:51 +0000 (11:03 +0100)]
Polish usage of a QElapsedTime instance in QSGThreadedRenderLoop

The patch should make valgrind happy, by not using an uninitialized
memory.

Change-Id: Iec7f16c56f250dd121a37f03da4cfc5d9e5c0742
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
11 years agoFixed tutorial gettingStartedQml part5.
Libor Tomsik [Thu, 7 Mar 2013 07:37:08 +0000 (08:37 +0100)]
Fixed tutorial gettingStartedQml part5.

In FileDialog.qml the selector GridView.view.currentIndex does not work, replaced with dirView.currentIndex

Change-Id: I7c1893ce3872c41fc4f0fd63bad0e6a2cff2b207
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
11 years agoFix usages of \since for QML items
Thomas McGuire [Wed, 13 Mar 2013 09:43:51 +0000 (10:43 +0100)]
Fix usages of \since for QML items

\since uses the QML import, not the Qt version.

When adding a new property, it needs a REVISION argument and the type
needs to be registered again for the new version.

Change-Id: I2e636e9d26c8e989729eadad2ef73a836c35caa1
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
11 years agoMerge "Merge remote-tracking branch 'origin/release' into stable" into refs/staging...
Stephen Kelly [Wed, 13 Mar 2013 14:47:29 +0000 (15:47 +0100)]
Merge "Merge remote-tracking branch 'origin/release' into stable" into refs/staging/stable

11 years agoDocumentation and versioning for new Window properties
Shawn Rutledge [Tue, 5 Mar 2013 08:26:45 +0000 (09:26 +0100)]
Documentation and versioning for new Window properties

Even some of the properties that existed in 5.0 were not documented.

Change-Id: I25a14b9b19425a6c792d06bc41983e9abd1d17d0
Task-number: QTBUG-29807
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
11 years agoDoc: Changed section title in whatsnew.qdoc
Jerome Pasion [Wed, 13 Mar 2013 09:57:11 +0000 (10:57 +0100)]
Doc: Changed section title in whatsnew.qdoc

- "Qt 5.0" is the name of the main landing page, which causes link
conflicts in Qt QML module.

Change-Id: I2becb864873ea3784eb4fece3ebcbe64e0a00cba
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
Reviewed-by: Geir Vattekar <geir.vattekar@digia.com>
11 years agoAbort rendering when QOpenGLContext::create/makeCurrent fails.
Gunnar Sletta [Wed, 13 Mar 2013 06:36:30 +0000 (07:36 +0100)]
Abort rendering when QOpenGLContext::create/makeCurrent fails.

Task-number: QTBUG-30158
Change-Id: Ic8239fe6f074c989e4474d46042e1a82796b4908
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
11 years agodon't use CamelCase includes
Oswald Buddenhagen [Tue, 12 Mar 2013 19:26:13 +0000 (20:26 +0100)]
don't use CamelCase includes

they are not available during bootstrap.

Change-Id: I5e941f22cd2b9fa622730ba0bf8389394f6a30a5
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Alan Alpert (Personal) <416365416c@gmail.com>
11 years agoMakes QSmoothedAnimation respect zero duration.
Thomas Kristensen [Mon, 11 Mar 2013 11:54:56 +0000 (12:54 +0100)]
Makes QSmoothedAnimation respect zero duration.

In automated GUI test scenarios it often desired not to wait for animations
before verifying a result, so setting the duration to zero should accomplish
this, before this patch; if duration was set to zero QSmoothedAnimation
would treat it as if duration was not set, and used velocity to calculate
animation speed.

Change-Id: Ia57f1c9ffdd2056ac7c85d1cb94dbd3835fcbb7a
Reviewed-by: Andreas Aardal Hanssen <andreas@hanssen.name>
11 years agoAdd QtQml.Models module
Alan Alpert [Wed, 23 Jan 2013 22:08:58 +0000 (14:08 -0800)]
Add QtQml.Models module

The moved Model classes can now be exposed in a QtQml import.

To keep the QtQml import resticted to more core functionality, they are
being exposed in a plugin module.

Change-Id: I0a84642a72c7c9bbf9b6ffd2a6c33549f8e61c29
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoFix remote image loading for AnimatedSprite
Alan Alpert [Tue, 26 Feb 2013 21:50:51 +0000 (13:50 -0800)]
Fix remote image loading for AnimatedSprite

The Sprite generated behind the scenes had no QmlEngine associated, and
the engine is needed by QQuickPixmap for async loading.

Task-number: QTBUG-28086
Change-Id: Ibf3b03c54b339fe8f44201dc6fcb507e5274bbec
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
11 years agoFixed some auto tests
Bernd Weimer [Thu, 7 Mar 2013 15:07:35 +0000 (16:07 +0100)]
Fixed some auto tests

In the listmodel test an error description was not converted to a
string.
In the pathview test, number literals are always interpreted as double,
but qreal can also be float, which lead to failing tests. Constructor
usage prevents "expected data of type 'float', got 'double'".

Change-Id: I0c760486de0ba4df6a5e9a33e9528ca7d7a1a63e
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
11 years agoFixed text opacity when using Text.NativeRendering.
Yoann Lopes [Tue, 12 Mar 2013 11:57:39 +0000 (12:57 +0100)]
Fixed text opacity when using Text.NativeRendering.

Change-Id: I76922074c02c368f8a8a6998c478a33537e9a6e8
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
11 years agoFix QString usage in createPixmapDataSync().
Friedemann Kleint [Thu, 7 Mar 2013 14:47:27 +0000 (15:47 +0100)]
Fix QString usage in createPixmapDataSync().

Warning introduced by  707bbe5dea9d7398b205124a54422f2fafb6f151 .

Change-Id: I20f0da00ea519cc2ec82a1d13f1887c099a3947c
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>