Aaron Kennedy [Wed, 2 Nov 2011 17:08:16 +0000 (17:08 +0000)]
Don't crash if contexts are deleted during refreshExpressions
Change-Id: I23b59d33c07b017ef7355a7fe4a728d84c5d7eaa
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Aaron Kennedy [Wed, 2 Nov 2011 14:28:02 +0000 (14:28 +0000)]
Skip the captured properties step in bindings
Objects and notifiers in the capturedProperties list were not guarded
which can lead to crashes if they're deleted prior to the binding
completing. Now the notifiers are connected to and guarded immediately
to prevent this.
Change-Id: I912e323c52bf6169fb5077e552d5d38d9aa7faec
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Chris Adams [Fri, 4 Nov 2011 04:38:38 +0000 (14:38 +1000)]
Fix crash in object serialization due to sequences
Commit
c177691118e4e2bace9b5c1f4f57343190e6ad64 added support for
sequences, but in doing so, introduced a crash bug into worker thread
object serialisation. This commit fixes the bug by ensuring that the
object resource type is checked prior to serialisation.
Change-Id: I4ef9e4d0865a337c4fe6e8f1cd40cf4462ca7a60
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Andrew den Exter [Fri, 4 Nov 2011 03:43:15 +0000 (13:43 +1000)]
Fix invalid remove cache indexes caused by consecutive ranges.
listItemsRemoved attempts to merge and consecutive cache only ranges
it produces, this same logic would also merge other consecutive ranges
incorrectly incrementing the cacheIndex in the process. Since
listItemsRemoved won't produce these consecutive ranges itself handle
only the cache only ranges there and compress the other consecutive
ranges where they originate.
Change-Id: If4d95fb741c8e7003ed48bfb2559c30c948c255b
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Martin Jones [Fri, 4 Nov 2011 04:04:20 +0000 (14:04 +1000)]
Fix test stability with threaded renderer.
Change-Id: I0ba617d2dcbc97de3e8c6bb280ccd8d1b9448fdc
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Chris Adams [Tue, 1 Nov 2011 06:54:47 +0000 (16:54 +1000)]
Fix documentation for property var
Previously, it was not clear that a binding which accesses a property
of a JavaScript Objects assigned to a var property would not be
re-evaluated if the value of the property changed.
Change-Id: I72d990e05104bc452fc516511a14716b2913ff9a
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Chris Adams [Fri, 4 Nov 2011 01:51:53 +0000 (11:51 +1000)]
Fix module API provider registration function documentation
Previously, the documentation was not able to be linked correctly by
qdoc3. This commit moves the documentation to the correct file and
ensures that the links work correctly. It also fixes a typo in
the QQuickLoader documentation.
Change-Id: Id675954dd3009fafe6e0cfeb81342c947302ffcb
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Yann Bodson [Thu, 3 Nov 2011 06:34:47 +0000 (16:34 +1000)]
Text.RichText ignores color property
Task-number: QTBUG-21921
Change-Id: I2adb9062e658742a704dc55b4def7f6f1eb1f954
Reviewed-by: Damian Jansen <damian.jansen@nokia.com>
Damian Jansen [Fri, 28 Oct 2011 01:27:22 +0000 (11:27 +1000)]
Fix elements quicktest groups to work with filtering
Change-Id: Iaa1b2bf9a3f810f9f3f5c599d2f5b85e30828bc0
Reviewed-by: Daron Andrew Edie
Christiaan Janssen [Wed, 2 Nov 2011 14:59:17 +0000 (15:59 +0100)]
QmlProfiler: Send trace start event when starting profiling
Change-Id: Ic81c99922f73b0bf9ee830adc2fe35f1c154d868
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Christiaan Janssen [Thu, 3 Nov 2011 11:42:35 +0000 (12:42 +0100)]
V8Profiler: fix block at start when profiling is disabled
The constructor would block the execution of the whole thread until
profiling was enabled. This fix lets the user launch an application
with profiling disabled.
Change-Id: Ia57c19ce9200f7cc21ae2105db954cc2cb0df271
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Aaron Kennedy [Mon, 31 Oct 2011 13:10:51 +0000 (13:10 +0000)]
Only issue non-threaded renderer warning once
Change-Id: Id278fa28080d829763c907423089897728b01baa
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Christian Kamm [Thu, 3 Nov 2011 09:19:33 +0000 (10:19 +0100)]
qmlplugindump: Add flush to fix output redirection on windows.
Task-number: QTCREATORBUG-5825
Change-Id: I26c2ecb77a89b352de97c70ff17fd076872a636b
Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
Kai Koehne [Thu, 3 Nov 2011 08:47:08 +0000 (09:47 +0100)]
Profiler: Fix profiling when disabled on startup
Don't try to call addEvent(EndTrace) if we've just received the inital
message telling us whether to profiler or not.
Change-Id: I78e7437fce46bc1eabfa0c3095ffe11f396c403e
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
Kai Koehne [Thu, 3 Nov 2011 08:24:26 +0000 (09:24 +0100)]
Debugger: Remove unused files
Change-Id: Ib7b9f37226525d2c42729a4ea7fa8f0fd7a4e4c4
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
Alan Alpert [Thu, 3 Nov 2011 00:09:38 +0000 (10:09 +1000)]
Cursory docs for QQuickCanvas and QQuickView
Change-Id: I6955164715b07fc11a00466b5a5a1818d97fb9b5
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Alan Alpert [Thu, 20 Oct 2011 08:03:37 +0000 (18:03 +1000)]
Fix Gravity
Now simulates acceleration instead of setting it, and properties are
renamed to be consistent with AngleDirection
Change-Id: I648aa9122c49b46aa7b7d7796bc25d5bd56bfffe
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Alan Alpert [Wed, 2 Nov 2011 03:46:01 +0000 (13:46 +1000)]
Only simulate if particle was alive
When spliting the simulation into multiple parts, do not simulate for
times before the particle was born. Otherwise huge simulation times lead
to huge effects even on particles with a simulated birth of near the end
of that time.
Change-Id: I7ff507b27bf819dbebd61934b9523b23316b5e80
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Kai Koehne [Wed, 2 Nov 2011 11:19:56 +0000 (12:19 +0100)]
Debugger: Remove widgets dependency for qtquick2 inspector
Change-Id: I596a49375afc1e148fec1aabe0a7d47a81e7442a
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Kai Koehne [Wed, 2 Nov 2011 11:21:11 +0000 (12:21 +0100)]
Debugger: Fix compile of qmldbg_qtquick1 plugin on Windows
Change-Id: I5e1991365aa633319ac828898d35d239089816c0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Alan Alpert [Tue, 1 Nov 2011 10:13:35 +0000 (20:13 +1000)]
Make initialize work despite pending resets
This allows for the data to be updated instantly, instead of waiting for
the reset in the next paint event. This is needed by the
QQuickImageParticle autotest to pass stably.
Change-Id: I554eb9d9ddbfc6ba06264dedafb14498685e04cf
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Alan Alpert [Tue, 1 Nov 2011 04:16:09 +0000 (14:16 +1000)]
Fix SizeRootObjectToView mode
It is not yet possible to check if the window has been resized (after
the refactor branch merge). Instead, resize to rootObject regardless
only if the current view has no visible area.
Task-number: QTBUG-22019
Change-Id: I158aaa11862529745ad389e1cbadb6a0ad18c742
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Alan Alpert [Wed, 2 Nov 2011 03:44:06 +0000 (13:44 +1000)]
Delete view at end of test
Change-Id: I290536bd975e7e6f6f65cf964604664faf7d3056
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Andrew den Exter [Fri, 14 Oct 2011 06:44:46 +0000 (16:44 +1000)]
Fix incorrect cache indexes when consecutive list items are removed.
When cached model items are removed listItemsRemoved will try and append
a new cache only range onto a preceding one where possible. Previously
it would then re-run that range so the current indexes in the list were
incremented before moving onto the next range, which meant that the
current indexes were incremented by size of the previous range twice.
Instead of processing the range a second time increment the cache
indexes directly when inserting a cache only range and move directly
onto the next range in the list.
Change-Id: I63418c4397f911cefb521c5a5b0dd25faf66e08b
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Chris Adams [Mon, 3 Oct 2011 00:52:38 +0000 (10:52 +1000)]
Add support for more sequence types
This commit adds support for more sequence types by adding a sequence
wrapper. This class enables conversion between v8::Array and C++
sequences of various types (currently just QList<int>, QList<qreal>,
QList<bool>, QList<QString>, QList<QUrl> and QStringList), but more
types can be added later if required).
When a JavaScript object is created from such a sequence, its
prototype object is set to the v8::Array prototype object. The
indexed setter, indexed getter, length and toString methods are
implemented directly or in terms of the underlying sequence resource.
Note that currently, sequences of ValueTypes are NOT supported, due to
the fact that operations like:
someObj.someValueTypeSequence[i].x = 5;
would not behave as required.
Task-number: QTBUG-20826
Task-number: QTBUG-21770
Change-Id: I36deb448fb0e87a32084a900e70a2604ff369309
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Yann Bodson [Tue, 1 Nov 2011 22:42:16 +0000 (08:42 +1000)]
Add Text.onLineLaidOut example
Change-Id: I87bef980cea9c9b5525c3dc88c15b4a9a555888c
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Yann Bodson [Tue, 1 Nov 2011 06:55:19 +0000 (16:55 +1000)]
QDeclarativeStyledText::parse on empty tag causes assert in QString
Task-number: QTBUG-22058
Change-Id: I7141002b751722ab34b378215251562153c4ff46
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Jani Uusi-Rantala [Tue, 1 Nov 2011 19:30:55 +0000 (21:30 +0200)]
Fix most of the declarative bindings failing on ARM.
There was a mismatch between 32 and 64-bit integers which
caused a lot of qdeclarative unit tests to fail and QML to
generally not work properly on ARM.
All of the failing auto tests pass now on ARMV7.
Change-Id: Icf230f79e56c15743c6ee943859ac02e649a6e0a
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Kai Koehne [Mon, 31 Oct 2011 13:40:37 +0000 (14:40 +0100)]
Debugger: Add QML_DEBUGGER_VERBOSE environment variable
Print detailed information about plugin loading when QML_DEBUGGER_VERBOSE
is set in the environment.
Change-Id: I48b9df01948b2cd226969cfbc520801527ff5492
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Kai Koehne [Wed, 26 Oct 2011 13:52:48 +0000 (15:52 +0200)]
Debugger: Split inspector plugin into a qtquick1 and a qtquick2 plugin
This allows the inspector to be used also when e.g. qtquick1 and widgets libraries
are not available.
Change-Id: Id8510ea2a1a9c2a776d67e6d7732a4e40363d5a3
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Kim Motoyoshi Kalland [Tue, 1 Nov 2011 11:53:13 +0000 (12:53 +0100)]
Fixed Rectangle where the radius is less than half the border width.
Task-number: QTBUG-21215
Change-Id: Ife6a8aa9070e3da49d02825507a00feb1ecf338f
Reviewed-by: Yoann Lopes <yoann.lopes@nokia.com>
Kim Motoyoshi Kalland [Mon, 31 Oct 2011 11:25:13 +0000 (12:25 +0100)]
Avoid crash when ShaderEffect source is not available.
Task-number: QTBUG-21711
Change-Id: I65992ef69a0db829054971125bfb8eb9c150ee99
Reviewed-by: Yoann Lopes <yoann.lopes@nokia.com>
Kim Motoyoshi Kalland [Tue, 1 Nov 2011 10:56:25 +0000 (11:56 +0100)]
Repaint when the ShaderEffect's shader properties change.
Task-number: QTBUG-22176
Change-Id: I742d67fc9d4b379ffe931053c096153394a93bec
Reviewed-by: Yoann Lopes <yoann.lopes@nokia.com>
Martin Jones [Tue, 1 Nov 2011 00:05:47 +0000 (10:05 +1000)]
Ensure that chained incubation works from componentCompleted.
Make chained AsynchronousIfNested initiated from componentComplete
work correctly, i.e. asynchronous incubator is not Ready until
all chained creation is Ready.
Change-Id: I286cc10e2f09e36dcc6034f3f23681e833d7e6e8
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Friedemann Kleint [Fri, 28 Oct 2011 08:24:28 +0000 (10:24 +0200)]
Declarative: Fix gcc 4.6 warnings about assigned/unused variables.
Change-Id: Iac4bb4a6b1aa4071a239bb25f25f01b71e36868b
Reviewed-by: Alexis Menard <alexis.menard@openbossa.org>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Simon Hausmann [Fri, 28 Oct 2011 10:06:17 +0000 (12:06 +0200)]
Fix bus errors on Linux/ARM due to word alignment issues
If the kernel is configured to SIGBUS on unaligned word access, then the code
in qdeclarativecompiler.cpp that accesses the structs that follow
QDeclarativeVMEMetaData in memory may cause the process to get killed. They
contain integers but they're not aligned.
Ensure that the size of the first structure gives integer alignment for the
following structures.
Change-Id: Iad85557aa3be4949f653d389dbaa3666960be404
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Friedemann Kleint [Fri, 28 Oct 2011 08:22:25 +0000 (10:22 +0200)]
Declarative: Remove qpa-conditionals from test profiles.
Change-Id: I72619c5f76cd455c3fd4ca992dadef73901c1b18
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Alan Alpert [Thu, 20 Oct 2011 10:28:22 +0000 (20:28 +1000)]
Add non-floats to particle type
booleans exposed for the 1.0 or 0.0 floats, and color exposed as 0.0-1.0
even though it's 0-255 internally.
Change-Id: Idc7ab2527fef150fddb077fc73ac1c7cf122cfdd
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Alan Alpert [Mon, 31 Oct 2011 06:49:42 +0000 (16:49 +1000)]
Add performance guideline page for the particle system
Change-Id: I1c49dc574921b1edbd2d0874bc5b4e806ce42416
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Andrew den Exter [Fri, 28 Oct 2011 06:15:38 +0000 (16:15 +1000)]
Workaround windows not gaining focus on mac.
Delaying giving focus to the rootItem until the canvas window gains
focus doesn't work if the window never gains focus. So give focus to
the rootItem immediately so text input continues to work while
QTBUG-22415 is being resolved.
Task-number: QTBUG-22409
Change-Id: I1bdb13485219d0c2a2f8bdcb3e0972444e3813f2
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Glenn Watson [Mon, 31 Oct 2011 03:06:44 +0000 (13:06 +1000)]
Fix crash when trying to access a missing texture.
Check for valid texture pointer before calling member function
to determine if it is part of a texture atlas.
Change-Id: Ic36ad21f79c514aa92e4c37c467fb4e5d91b4e60
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Glenn Watson [Thu, 27 Oct 2011 03:13:23 +0000 (13:13 +1000)]
Force V8 debugger load on startup instead of on demand.
The V8 debugger code can take several hundred milliseconds to
start. This is by default loaded and unloaded on demand, for
example whenever a script is compiled. This has a significant
effect on the timing reported by the QML profiler in Qt
Creator. This change forces the debugger context to be loaded
when the v8 context is created, so that this cost is paid
once on startup and no longer affects the QML profiling times.
Task-number: QTBUG-22170
Change-Id: I5533b53908b3c53e18b0eb870ed6166d109429df
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Alan Alpert [Fri, 28 Oct 2011 10:10:31 +0000 (20:10 +1000)]
Clean up ImageParticle shader
Avoid implicit float casts in GLSL and bail out of size == 0 properly
Change-Id: I72a742697089d88c64fc05d23d3009cdcfdb480b
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Alan Alpert [Mon, 31 Oct 2011 09:59:36 +0000 (19:59 +1000)]
Mark ImageParticle as insignificant
CI system only unstable failures take a while to track down and aren't
worth blocking all commits for.
Change-Id: I10750b644f13ad25f66afb3f9551988e1ed2d8b6
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Kai Koehne [Mon, 31 Oct 2011 12:45:10 +0000 (13:45 +0100)]
Debugger: Fix crash on exit
It's not guaranteed that the static instance of QPerformanceTimer
still exists when the (also static) QDeclarativeDebugTrace instance
is deleted.
Change-Id: I24ca3154e592011af43714c2574f7243f7550109
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
Kai Koehne [Fri, 28 Oct 2011 07:05:42 +0000 (09:05 +0200)]
Pass the right line information to signal handlers in Connection element
Make sure that the right line information is passed to v8 when executing
signal handlers in the Connection element.
Change-Id: I384caa40217e9c148fdb4943cf471d1aafcea735
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Jiang Jiang [Fri, 28 Oct 2011 13:57:50 +0000 (15:57 +0200)]
Eliminate some warnings
Change-Id: Ic76e02ee0a46002e8a30614fb7b1799dd0b74d95
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Alan Alpert [Fri, 28 Oct 2011 10:07:25 +0000 (20:07 +1000)]
Basic autotest of QQuickSpriteGoal
Depends on the fix for QQuickImageParticle that makes it actually update
the data object.
Change-Id: I12992cbe504988c6df45b319c1e6f6e304b327de
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Damian Jansen [Wed, 26 Oct 2011 04:13:23 +0000 (14:13 +1000)]
System test for TextEdit
Basic tests for the QtQuick TextEdit element
Change-Id: I532a6b4d3d433ac853248780ee9a6ac03c2f7275
Reviewed-by: Natalia Shubina <natalia.shubina@nokia.com>
Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
Alan Alpert [Fri, 28 Oct 2011 08:43:36 +0000 (18:43 +1000)]
ImageParticle Sprite Improvements
Sprite updates are now from signals instead of polled, and update
ParticleData as well as vertices.
Change-Id: Ib91604a70f4b1fe849bd27c3212ccc1d1482c075
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Alan Alpert [Mon, 31 Oct 2011 01:47:13 +0000 (11:47 +1000)]
Stabilize Particles tests some more
Odd timings can lead to slight variances in the particle groups size,
this is allowable in autotests. Also fixes incorrect use of
extremelyFuzzyCompare in tst_qquickage.
Change-Id: Ibea3a2b2a3a31ab1fe6d908c1676d865db9ba968
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Kai Koehne [Fri, 28 Oct 2011 14:27:11 +0000 (16:27 +0200)]
Debugger: Don't crash in v8 profiler service if client sends false on startup
Change-Id: I2a10536db749d4edd8c2958ef4c87124ddda4d47
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Charles Yin [Thu, 27 Oct 2011 06:55:43 +0000 (16:55 +1000)]
Add I18N support to qmltestrunner
Add a new command line option "-translation file" to handle translation
files to qmltestrunner.
Task-number:QTBUG-22390
Change-Id: I351ed41734c79a51e00aeef551af642482bf36f2
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
Charles Yin [Thu, 27 Oct 2011 03:06:57 +0000 (13:06 +1000)]
Fix PaintedItem redraw bug
1) After QQuickItem::update() being called (means item's content is dirty),
the paint() function should always been called, so the contentsDirty
and geometryDirty flags are not needed.
2) Update the smile example to validate the above changes
Task-number:QTBUG-22250
Change-Id: I5a72f18e6982bdb3ba23e78a253c2876aca2e8cb
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Reviewed-by: Yoann Lopes <yoann.lopes@nokia.com>
Kai Koehne [Fri, 28 Oct 2011 12:16:47 +0000 (14:16 +0200)]
Debugger: Fix autotest compilation failure
Change-Id: I3f44837a611af1dde9d34ccf99d38fb04fda48c2
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Christian Kamm [Wed, 5 Oct 2011 09:42:33 +0000 (11:42 +0200)]
qmlplugindump: Dump QObject based module api.
Change-Id: Icc18392f63cd505e0264567e6c7d2d4cf7dac021
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
Damian Jansen [Tue, 25 Oct 2011 06:46:54 +0000 (16:46 +1000)]
TextInput system tests
Basic tests for the TextInput element
Change-Id: I0531044fa7f901dcd80a10d39b537688926ac03f
Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
Reviewed-by: Natalia Shubina <natalia.shubina@nokia.com>
Damian Jansen [Tue, 25 Oct 2011 03:39:44 +0000 (13:39 +1000)]
Text system tests
Basic tests for the QtQuick Text element
Change-Id: I25156055867d9fd4aa6b0b1bad789444894b7960
Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
Reviewed-by: Natalia Shubina <natalia.shubina@nokia.com>
Yoann Lopes [Fri, 21 Oct 2011 11:32:21 +0000 (13:32 +0200)]
Fixed QQuickPaintedItem texture binding when using Image render target.
Change-Id: Ia5c0f8de1109a26471c69267fdd9c9d71325dd39
Reviewed-by: Yoann Lopes <yoann.lopes@nokia.com>
Kent Hansen [Tue, 25 Oct 2011 06:33:22 +0000 (08:33 +0200)]
Make qdeclarativeinspector autotest compile again
Change-Id: I3a359e920494dc6eb51fc9c19f4f95d9911d0fa4
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Michael Brasser [Wed, 26 Oct 2011 23:44:07 +0000 (09:44 +1000)]
Rename test target to match directory name.
Change-Id: I8570d7ff4a824879ea32666e0715a253b472829a
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Damian Jansen [Thu, 27 Oct 2011 00:17:16 +0000 (10:17 +1000)]
Fix qdeclarativeinspector test target name
Change-Id: Ia56fa0d58f7d1a78eaebd1e57222216144a43fcb
Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
Michael Brasser [Wed, 26 Oct 2011 06:19:02 +0000 (16:19 +1000)]
Re-add anchors autotest for QtQuick 2.0.
Change-Id: I4365e0b14b359e2deab96097dba79f31d807809a
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Michael Brasser [Wed, 26 Oct 2011 05:46:33 +0000 (15:46 +1000)]
Use TESTDATA macro in ListModel tests.
Task-number: QTBUG-21721
Change-Id: I5fa4359f3042552896676a4183a70bf91df97724
Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
Aaron Kennedy [Wed, 26 Oct 2011 14:04:58 +0000 (15:04 +0100)]
Readonly QML property support
Task-number: QTBUG-15257
Change-Id: I539b6e6a9e0e0172b68e8002aaa3f7c7e6648769
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Simon Hausmann [Tue, 25 Oct 2011 10:06:01 +0000 (12:06 +0200)]
Fix QInputPanel::invokeAction(Click) not being called on mouse clicks
It appears that the introduction of the KeyRelease event type check in
commit
70cc5c9b7b420ecaf099d5d08fb1b4e8ad81a920 was accidential and meant
to use MouseButtonRelease (in QSGTextInputPrivate::sendMouseEventToInputContext).
This patch also removes the unnecessary QEvent::MouseMove check as well as
the mousePos = -1 setting if the position is out of range. The input methods
do the same check and reset() accordingly anyway.
Change-Id: Icf3638979583d97c066cb639f80fa11f44538d7c
Reviewed-by: Pekka Vuorela <pekka.ta.vuorela@nokia.com>
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
Aaron Kennedy [Tue, 25 Oct 2011 15:24:37 +0000 (16:24 +0100)]
Rename QDeclarativePropertyCache::Data to QDeclarativePropertyData
This class is now too large to be nicely nested.
Change-Id: I32cfa5caa524b8bf447d1f8c53ef2763f60bdac1
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Damian Jansen [Wed, 19 Oct 2011 05:04:15 +0000 (15:04 +1000)]
Remove Q_WS_*, symbian and maemo code in QtDeclarative
Change-Id: If64daf80f9d19973e0bc2d864b003a66be5ca61d
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Alan Alpert [Wed, 26 Oct 2011 03:47:24 +0000 (13:47 +1000)]
Cursory test for QQuickGroupGoal
Change-Id: Ieb31c2885895c8377d12ba0b44b78b462d02c98e
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Alan Alpert [Wed, 26 Oct 2011 03:23:36 +0000 (13:23 +1000)]
Basic QQuickSpriteImage autotest
At least verifies the property covenant and instantiation success.
Change-Id: I9d5170c3fd3ae59919684d377151804b71f9081f
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Alan Alpert [Wed, 26 Oct 2011 05:36:36 +0000 (15:36 +1000)]
Add state changing properties to QQuickSpriteImage
Also adds a manual test for them.
Change-Id: I5f7effe43f5784eccf7221f2bd72da480792bf89
Reviewed-by: Damian Jansen <damian.jansen@nokia.com>
Michael Brasser [Mon, 24 Oct 2011 23:49:22 +0000 (09:49 +1000)]
Add test for bug with typeof in imported js files.
Task-number: QTBUG-21864
Change-Id: I0fc9dc02f7ec00a2f7234484f5afafbbfe7ffca0
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Rohan McGovern [Wed, 26 Oct 2011 01:10:49 +0000 (11:10 +1000)]
Eliminated usage of qttest_p4.prf in newly added test.
Change-Id: I4a1d797714e61fa5dded1137c07180c4b1cad84c
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Glenn Watson [Wed, 26 Oct 2011 00:28:01 +0000 (10:28 +1000)]
Optimize listmodel and allow nested elements from worker script.
Added support for nested listmodels when used from a worker script
thread. Optimized the implementation of ListModel, especially the
performance of appending a large number of items. Added a batch
append mode (with an array of JS objects) to reduce the overhead
of calling from JS into native code for each append operation.
Task-number:QTBUG-21508
Change-Id: I07b381dc3e8200d92d6e0af458df8850d78b510f
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Damian Jansen [Mon, 24 Oct 2011 05:50:38 +0000 (15:50 +1000)]
Test for changing font via states
Change-Id: I1bc4bfefb5b4892be53b261d65a50a0cfd5a7d00
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Michael Brasser [Mon, 24 Oct 2011 22:52:01 +0000 (08:52 +1000)]
Fix "for (... in ...)" loops for list properties.
Task-number: QTBUG-22276
Change-Id: Ibe5a1180044d8e4a6ca6458e8170dd027885ad10
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Aaron Kennedy [Tue, 25 Oct 2011 14:41:33 +0000 (15:41 +0100)]
Cache QObject method arguments
This more than doubles the performance of invoking simple QObject methods
with parameters - such as myFunction(int,int) - multiple times.
Change-Id: I4bf21fb3980b09aedf0f440a246682c418933a65
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Friedemann Kleint [Tue, 25 Oct 2011 10:50:08 +0000 (12:50 +0200)]
qmldbg_inspector: Fix compilation on Windows.
Change-Id: I2de713e0bb250e07cd09be80aeea6fee86aabcf1
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Christian Kamm [Tue, 4 Oct 2011 12:17:52 +0000 (14:17 +0200)]
Allow access to all registered module apis.
Change-Id: I02a5ff116fe77871dc6bb1b31e0870e51653f7ac
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Sergio Ahumada [Mon, 24 Oct 2011 20:08:04 +0000 (22:08 +0200)]
Add QT_BEGIN_HEADER/QT_END_HEADER macros
Fixing `macros' function test of `tst_headers'
Task-number: QTQAINFRA-324
Change-Id: I0cd3ea6ee631c3e19078eda2104c78803d77939d
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Reviewed-by: Charles Yin <charles.yin@nokia.com>
Michael Brasser [Tue, 23 Aug 2011 03:30:38 +0000 (13:30 +1000)]
Add MultiPointTouchArea element.
Change-Id: I3a4f774cd96ab7f5d08e85c965f59e1416f02e0e
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Charles Yin [Mon, 24 Oct 2011 23:40:37 +0000 (09:40 +1000)]
Remove warning messages from TestCase.qml
qtest_run should be called only when the whole TestCase is completely
loaded.
Task-number:QTBUG-22299
Change-Id: Id2874ed2493ccea72a4f17e6cb61aeb58ae4fa31
Reviewed-by: Charles Yin <charles.yin@nokia.com>
Charles Yin [Mon, 24 Oct 2011 23:47:33 +0000 (09:47 +1000)]
Cleanup qmltestrunner.pro
Change-Id: I4a02eeafdb29e4f75773b79649d1aabaab895213
Reviewed-by: Charles Yin <charles.yin@nokia.com>
Alan Alpert [Mon, 24 Oct 2011 21:57:54 +0000 (07:57 +1000)]
Rename QSG* to QQuick* in particles folder
Change-Id: I793eaf16f3810df0cb0f9f8482ac0b9d6137595d
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Kai Koehne [Thu, 20 Oct 2011 09:53:18 +0000 (11:53 +0200)]
Make show app on top work
Change-Id: I21328e57e5130fb6d375a982cb4922b3facfad21
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
Kai Koehne [Mon, 17 Oct 2011 14:09:17 +0000 (16:09 +0200)]
Debugger: Add autotest skeleton for inspector service
Change-Id: I2edd0d46f9b82262b91833945515374b9683be4b
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
Kai Koehne [Tue, 18 Oct 2011 14:52:42 +0000 (16:52 +0200)]
Debugger: Inspector code cleanup
Change-Id: Ibf647e2885466d521406fca15cc0cf85c5412f52
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
Kai Koehne [Tue, 18 Oct 2011 14:35:22 +0000 (16:35 +0200)]
Debugger: Move inspector parts dealing with QtQuick1 into separate directory
Change-Id: Ifd024e214406dfc58d4389ce4397efcb4626b860
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
Friedemann Kleint [Mon, 24 Oct 2011 13:20:26 +0000 (15:20 +0200)]
Fix compilation of QtQuick1 tests.
Per widget context is no longer supported as of
qtbase:
3d71266fea91628d28ae4e55cd105a0bd5d8b457
Change-Id: I67c84eda958053973e764e33dc7e65b7316c8c00
Reviewed-by: Pekka Vuorela <pekka.ta.vuorela@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Xizhi Zhu [Mon, 24 Oct 2011 11:25:23 +0000 (14:25 +0300)]
Set DESTDIR for qmltestrunner.
Change-Id: I785fe1936ae3ee9819cd30e4f5a6b99b03a8ee5f
Reviewed-by: Charles Yin <charles.yin@nokia.com>
Kent Hansen [Mon, 24 Oct 2011 13:04:03 +0000 (15:04 +0200)]
Fix decimal point bug in Context2D color parsing
strtod() uses the locale's decimal point, which for
me is ','. But we want to always use '.' when parsing
color values for Context2D. qstrtod() does that.
This fixes two test failures in qquickcanvasitem.
Change-Id: I2ea58ad328f26903c57c7c80ed95fd24599805f4
Reviewed-by: Charles Yin <charles.yin@nokia.com>
Kent Hansen [Mon, 24 Oct 2011 12:34:47 +0000 (14:34 +0200)]
Make qdeclarativeincubator test compile again
Change-Id: I6586a75f52964d9dc466e70a9115c17fb3838d62
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Kent Hansen [Mon, 24 Oct 2011 11:59:12 +0000 (13:59 +0200)]
Remove QtScript dependency from autotest
Change-Id: Icb6aaa95d97078101c88d4c4f821f246a98a6ab7
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Kent Hansen [Mon, 24 Oct 2011 11:58:01 +0000 (13:58 +0200)]
Remove insignificant test flag from qquickcanvasitem
Change-Id: I667f65bad25b0ec8d97dc7bd8b594a90609a7286
Reviewed-by: Charles Yin <charles.yin@nokia.com>
Liang Qi [Wed, 19 Oct 2011 13:40:04 +0000 (15:40 +0200)]
Update calls for keyToValue and keysToValue
They are from QMetaEnum and changed recently
Task-number: QTBUG-21672
Change-Id: I46698ec7eb4a1b23068146593ee93f71fc53a815
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Reviewed-by: Liang Qi <liang.qi@nokia.com>
Alan Alpert [Thu, 20 Oct 2011 07:48:40 +0000 (17:48 +1000)]
Fold Move into Affector
Since 'Move' was just a generic physics property affector, it makes
sense to fold it into the generic affector as an easier way of
implementing the common case of custom affector (and much faster, since
it doesn't hit JS).
For completeness in the Move behavior, 'once' now applies the effect of
affectors over a second in that one time, so as to avoid exposing the
simulation tick. This allows once to have actual meaning for continous
affectors.
Gravity is also going to be kept around as a convenience (although it
will change slightly), so just removing its deprecation warning.
Change-Id: Ieb52f8990445fe95f94070175a0f9beb6686324b
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Alan Alpert [Thu, 20 Oct 2011 06:58:06 +0000 (16:58 +1000)]
Affectors now simulate with a minimum granularity
Since all time is sourced from the ParticleSystem, the easiest way is
to alter the common time point while doing the multiple simulation runs.
Also removes the experimental TargetAffector.
Change-Id: Ieb52f8990445fe95f94070175a0f9beb6686324a
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Alan Alpert [Thu, 20 Oct 2011 11:01:28 +0000 (21:01 +1000)]
Add threshold property to Friction
So much easier than calculating exact counterbalancing acceleration.
Change-Id: I7cc43cc2e4d0ad39d1996d432f0e29ccf7bff554
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Aurindam Jana [Sun, 23 Oct 2011 14:34:00 +0000 (16:34 +0200)]
QV8DebugService: QML Signal Handling
Store state of breakpoints of type "Break on QML Signal Handler" so
that such breakpoints can be edited (enabled/disabled).
Change-Id: Ic69bcd18b5e527af68190e7f18371ebb5e9e83fe
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Jędrzej Nowacki [Thu, 6 Oct 2011 11:31:49 +0000 (13:31 +0200)]
Return v8::Local instead v8::Handle in some functions.
Lets try to keep information about original handle type if possible.
Change-Id: I76484c688ee5605cc99687aa4a17c6ca5d1a3891
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>