profile/ivi/qtdeclarative.git
13 years agoDebugger: Fix autotest compilation failure
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>
13 years agoqmlplugindump: Dump QObject based module api.
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>
13 years agoTextInput system tests
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>
13 years agoText system tests
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>
13 years agoFixed QQuickPaintedItem texture binding when using Image render target.
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>
13 years agoMake qdeclarativeinspector autotest compile again
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>
13 years agoRename test target to match directory name.
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>
13 years agoFix qdeclarativeinspector test target name
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>
13 years agoRe-add anchors autotest for QtQuick 2.0.
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>
13 years agoUse TESTDATA macro in ListModel tests.
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>
13 years agoReadonly QML property support
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>
13 years agoFix QInputPanel::invokeAction(Click) not being called on mouse clicks
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>
13 years agoRename QDeclarativePropertyCache::Data to QDeclarativePropertyData
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>
13 years agoRemove Q_WS_*, symbian and maemo code in QtDeclarative
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>
13 years agoCursory test for QQuickGroupGoal
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>
13 years agoBasic QQuickSpriteImage autotest
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>
13 years agoAdd state changing properties to QQuickSpriteImage
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>
13 years agoAdd test for bug with typeof in imported js files.
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>
13 years agoEliminated usage of qttest_p4.prf in newly added test.
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>
13 years agoOptimize listmodel and allow nested elements from worker script.
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>
13 years agoTest for changing font via states
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>
13 years agoFix "for (... in ...)" loops for list properties.
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>
13 years agoCache QObject method arguments
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>
13 years agoqmldbg_inspector: Fix compilation on Windows.
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>
13 years agoAllow access to all registered module apis.
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>
13 years agoAdd QT_BEGIN_HEADER/QT_END_HEADER macros
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>
13 years agoAdd MultiPointTouchArea element.
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>
13 years agoRemove warning messages from TestCase.qml
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>
13 years agoCleanup qmltestrunner.pro
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>
13 years agoRename QSG* to QQuick* in particles folder
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>
13 years agoMake show app on top work
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>
13 years agoDebugger: Add autotest skeleton for inspector service
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>
13 years agoDebugger: Inspector code cleanup
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>
13 years agoDebugger: Move inspector parts dealing with QtQuick1 into separate directory
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>
13 years agoFix compilation of QtQuick1 tests.
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>
13 years agoSet DESTDIR for qmltestrunner.
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>
13 years agoFix decimal point bug in Context2D color parsing
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>
13 years agoMake qdeclarativeincubator test compile again
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>
13 years agoRemove QtScript dependency from autotest
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>
13 years agoRemove insignificant test flag from qquickcanvasitem
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>
13 years agoUpdate calls for keyToValue and keysToValue
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>
13 years agoFold Move into Affector
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>
13 years agoAffectors now simulate with a minimum granularity
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>
13 years agoAdd threshold property to Friction
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>
13 years agoQV8DebugService: QML Signal Handling
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>
13 years agoReturn v8::Local instead v8::Handle in some functions.
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>
13 years agoGet rid of legacy glTexParameterf calls.
Samuel Rødal [Fri, 21 Oct 2011 10:37:18 +0000 (12:37 +0200)]
Get rid of legacy glTexParameterf calls.

ES 1.0 didn't have glTexParameteri, which is why we sometimes used
glTexParameterf. However, we shouldn't use glTexParameterf because
that's treating integer values as floating point, which is not type
safe. ES 1.1+ and ES 2.x have glTexParameteri, and we don't really care
about supporting ES 1.0 in any case in Qt 5.

Change-Id: I12247e4ffc8cb0e18b0ffca5759d4655b5432008
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
13 years agoFix BorderImage drawing when no borders are specified.
Martin Jones [Mon, 24 Oct 2011 07:00:34 +0000 (17:00 +1000)]
Fix BorderImage drawing when no borders are specified.

When no borders were specified the innerRect was calculated
based on the item size rather than the image size.

Change-Id: I764caca22aa8a0c6ed3babaad38a93764357cd00
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
13 years agoFix item focus following canvas focus.
Andrew den Exter [Mon, 24 Oct 2011 03:57:12 +0000 (13:57 +1000)]
Fix item focus following canvas focus.

Restore canvas focus handling so that active item focus is added and
removed as  the canvas focus changes.

Task-number: QTBUG-17320
Change-Id: Ief60f35da2f3a563f397ce026ca6fea289a200c4
Reviewed-by: Martin Jones <martin.jones@nokia.com>
13 years agoTests: Remove Q_WS_QPA
Friedemann Kleint [Fri, 21 Oct 2011 11:49:08 +0000 (13:49 +0200)]
Tests: Remove Q_WS_QPA

Prepare for compilation without -qpa.

Change-Id: I8ec76d4ea3d045be457e728391462a8b195c8883
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
13 years agoFix abstractitemmodel for QGuiApplication
Damian Jansen [Fri, 21 Oct 2011 01:18:18 +0000 (11:18 +1000)]
Fix abstractitemmodel for QGuiApplication

Change-Id: If9117f54f0dbe1c05cc5b46b6a6e662613e1b38f
Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
13 years agoFix qmltestrunner hang bug when no TestCase item
Charles Yin [Mon, 24 Oct 2011 00:44:16 +0000 (10:44 +1000)]
Fix qmltestrunner hang bug when no TestCase item

Add a hasTestCase property to the global qtest object, set it to true
in each TestCase's onCompleted handler. qmltestrunner only enter the
event loop if this property is true to avoid infinite waiting.

Task-number:QTBUG-22281
Change-Id: Id609432210ae795d8c128901e64ba0aef4551f01
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Reviewed-by: Charles Yin <charles.yin@nokia.com>
13 years agoMark test as failing, remove insignificant test flag.
Toby Tomkins [Sun, 23 Oct 2011 23:12:54 +0000 (09:12 +1000)]
Mark test as failing, remove insignificant test flag.

Task-number: QTBUG-21682

Change-Id: I2f6cbd65b0b364b5fbc014966817652e982f8564
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
13 years agoRemove insignificant test flag.
Toby Tomkins [Sun, 23 Oct 2011 23:17:59 +0000 (09:17 +1000)]
Remove insignificant test flag.

Change-Id: I1c22b3350add76f97c5268e2f6f2526d818b7556
Reviewed-by: Martin Jones <martin.jones@nokia.com>
13 years agoRemove dependency on QDesktopServices deprecated API.
Martin Jones [Sun, 23 Oct 2011 23:03:51 +0000 (09:03 +1000)]
Remove dependency on QDesktopServices deprecated API.

QDesktopServices::storageLocation() is deprecated in favor of
QStandardPaths::writableLocation().

Change-Id: I50f73e93f39ded555123656282cf5a02abb972d8
Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
13 years agoProvide a way to cheaply flip your painted FBO
Sarah Smith [Thu, 20 Oct 2011 00:01:39 +0000 (10:01 +1000)]
Provide a way to cheaply flip your painted FBO

After recent changes the painted images are upside down from previous
and there is no way to get at the texture coordinates to flip them back
without reimplementing QSGPainterNode and QSGPaintedItem.

This change adds only an enum and has minimal impact, while providing
useful functionality that also fixes this problem.

Change-Id: I6884da884d9303f6e08a984d4560cc7f7728d918
Reviewed-by: Sarah Jane Smith <sarah.j.smith@nokia.com>
13 years agoRename Qt Quick-specific classes to QQuick*
Kent Hansen [Fri, 14 Oct 2011 08:51:42 +0000 (10:51 +0200)]
Rename Qt Quick-specific classes to QQuick*

The QSG (SceneGraph) prefix is too generic for
Qt Quick(2)-specific classes.

All the classes and files in the declarative/items
directory have been renamed.

In particular, for classes that are currently public,
the renaming is as follows:

QSGView --> QQuickView
QSGCanvas --> QQuickCanvas
QSGItem --> QQuickItem
QSGPaintedItem --> QQuickPaintedItem

The header files have been renamed accordingly
(e.g. qsgview.h --> qquickview.h).

Change-Id: Iac937fff81db20bb639486a793c3aeb5230b038c
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
13 years agoFix test fails related to QTBUG-22237
Charles Yin [Thu, 20 Oct 2011 05:28:04 +0000 (15:28 +1000)]
Fix test fails related to QTBUG-22237

Task-number:QTBUG-22237
Change-Id: I933c2cbd9218c8a5403712aa9dafe4221791ce0d
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
13 years agoAdd file and lineno parameters to warn() method
Charles Yin [Thu, 20 Oct 2011 05:27:37 +0000 (15:27 +1000)]
Add file and lineno parameters to warn() method

Change-Id: I1ddfd4793a26a16bf85b72c50d84080cd0b26a87
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
13 years agoFix build error for canvas stockchart example.
Charles Yin [Fri, 21 Oct 2011 04:30:03 +0000 (14:30 +1000)]
Fix build error for canvas stockchart example.

Change-Id: I82115738ada4fe6a77023a56e962c71284ebc91b
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Reviewed-by: Charles Yin <charles.yin@nokia.com>
13 years agoTest for changing bounds of validators and acceptableInput
Damian Jansen [Fri, 21 Oct 2011 01:01:39 +0000 (11:01 +1000)]
Test for changing bounds of validators and acceptableInput

Task-number: QTBUG-19956
Change-Id: I771477d99939ef986bf3fa53e64a372f23ef5593
Reviewed-by: Charles Yin <charles.yin@nokia.com>
13 years agoRemoving some stale comments.
Alan Alpert [Thu, 20 Oct 2011 00:52:29 +0000 (10:52 +1000)]
Removing some stale comments.

Change-Id: If30a6e044c1e15dbbbd9dfca44fe64572099ea13
Reviewed-by: Martin Jones <martin.jones@nokia.com>
13 years agoReplace Smiles with Starfish
Alan Alpert [Wed, 19 Oct 2011 08:17:55 +0000 (18:17 +1000)]
Replace Smiles with Starfish

And a bear.

Change-Id: I9809bca1664a7fe1aa6734edc986440b6ca2a63c
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
13 years agoRemove SkipMode from qtestlib API.
Jason McDonald [Wed, 19 Oct 2011 03:24:34 +0000 (13:24 +1000)]
Remove SkipMode from qtestlib API.

The SkipMode parameter to QSKIP has been removed in qtbase, therefore it
must also be removed here.

Task-number: QTBUG-21851, QTBUG-21652
Change-Id: I8016f8c28338b1b532bdb593c796d699b99250dc
Reviewed-by: Charles Yin <charles.yin@nokia.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
13 years agoUnit test for QTBUG-21742
Damian Jansen [Thu, 20 Oct 2011 02:44:43 +0000 (12:44 +1000)]
Unit test for QTBUG-21742

Test for crash when accessing a ListView in an odd way.

Change-Id: I47dd8f4eaa2990c6842cf95a62ce925edac26f9a
Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
13 years agoTest for ASSERT on empty tags in TextEdit
Damian Jansen [Thu, 20 Oct 2011 05:48:29 +0000 (15:48 +1000)]
Test for ASSERT on empty tags in TextEdit

Test for assert if user enters empty text, generally when binding
a Text element to a TextEdit.

Change-Id: I9d5ec511971eb823d1f2388de13eb5cdb82a4477
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
13 years agoAllow QDeclarativeIncubator to be deleted within statusChanged() callback
Aaron Kennedy [Tue, 18 Oct 2011 04:56:25 +0000 (14:56 +1000)]
Allow QDeclarativeIncubator to be deleted within statusChanged() callback

Change-Id: I17621870b67d8a975545adc27ddaf9695e6a9428
Reviewed-by: Martin Jones <martin.jones@nokia.com>
13 years agoAllow one incubator to start in the statusChanged() of another
Aaron Kennedy [Tue, 18 Oct 2011 04:10:36 +0000 (14:10 +1000)]
Allow one incubator to start in the statusChanged() of another

Change-Id: I91cb7e2a8ecc67f34cdcadc0b71f819c2881e2da
Reviewed-by: Martin Jones <martin.jones@nokia.com>
13 years agoBehave correctly when AsynchronousIfNested is nested
Aaron Kennedy [Tue, 18 Oct 2011 03:34:20 +0000 (13:34 +1000)]
Behave correctly when AsynchronousIfNested is nested

When AIN is nested within a synchronous AIN, it should behave
synchronously.

Change-Id: Ib3f8281667118d7787967f25e27797f67e581006
Reviewed-by: Martin Jones <martin.jones@nokia.com>
13 years agoMark qsgcanvasitem test as insignificant.
Martin Jones [Thu, 20 Oct 2011 08:20:10 +0000 (18:20 +1000)]
Mark qsgcanvasitem test as insignificant.

See QTBUG-22242.

Change-Id: I736455cff04bb4c88f0fd03ecb5fffe028687c12
Reviewed-by: Martin Jones <martin.jones@nokia.com>
13 years agoSkip failing tests.
Martin Jones [Thu, 20 Oct 2011 05:49:54 +0000 (15:49 +1000)]
Skip failing tests.

Possibly due to V8 update.

Task-number: QTBUG-22238
Change-Id: Ide61c6693726e7b21766cac1166716a3af97e9d5
Reviewed-by: Martin Jones <martin.jones@nokia.com>
13 years agoDeclarative: Fix MSVC and g++ warnings
Friedemann Kleint [Tue, 18 Oct 2011 09:00:02 +0000 (11:00 +0200)]
Declarative: Fix MSVC and g++ warnings

Potentially severe:
- Fix int/bool mismatches
- Use of uninitialized variable
- Do connectionMask shift operations in 64bit
- Enum type mismatch for QLineControl::EchoMode

Various:
- class/struct mismatches
- UnhandledEnumeration values
- Unused variables
- Constructor initialization order

Change-Id: Ieb52f8990445fe95f94070175a0f9beb66863240
Reviewed-by: Martin Jones <martin.jones@nokia.com>
13 years agoRemove copy of tests/shared/util.h.
Jason McDonald [Mon, 17 Oct 2011 09:05:25 +0000 (19:05 +1000)]
Remove copy of tests/shared/util.h.

This module has a copy of qtbase's tests/shared/util.h, the contents of
which have been moved into qtestlib and are now accessible from the
QtTest/QtTest header.

Change-Id: I0be9e21dc9f30629dad283a740b9d80347e01140
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
13 years agoSkip test that crashes entire test suite.
Toby Tomkins [Wed, 19 Oct 2011 03:34:24 +0000 (13:34 +1000)]
Skip test that crashes entire test suite.

Task-number: QTBUG-21995

Change-Id: Ic6b6d052f20e4d8c710e00f7b13bacdc146288d6
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
13 years agoCorrect behavior for passing test, ifdef out failing test.
Toby Tomkins [Mon, 17 Oct 2011 05:52:18 +0000 (15:52 +1000)]
Correct behavior for passing test, ifdef out failing test.

Task-number: QTBUG-21005, QTBUG-21688

Change-Id: I2b6ada399e7d26045c7f0a767082892332a6a378
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
13 years agoDebugger: Delete service if inspector plugin fails
Kai Koehne [Sat, 15 Oct 2011 14:05:13 +0000 (16:05 +0200)]
Debugger: Delete service if inspector plugin fails

Change-Id: Id782ddf17b04abd8efe1f504de7e55f4cc4262bb
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
13 years agoDebugger: Let inspector plugin compile again
Kai Koehne [Tue, 18 Oct 2011 11:21:27 +0000 (13:21 +0200)]
Debugger: Let inspector plugin compile again

Change-Id: Ic1db404c0a62da7f8f9e31c7b400fba654e92979
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
13 years agoDebugger: Remove visual toolbox from inspector
Kai Koehne [Tue, 18 Oct 2011 11:13:29 +0000 (13:13 +0200)]
Debugger: Remove visual toolbox from inspector

Change-Id: I8847d52a718a20a04cb23d8f0f5affdb7e038c57
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
13 years agoqdoc3: Remove several "QML:" qualifiers which should no longer be required
Martin Smith [Tue, 18 Oct 2011 08:04:30 +0000 (10:04 +0200)]
qdoc3: Remove several "QML:" qualifiers which should no longer be required

Task-number:  QTBUG-22123

Change-Id: I78f755f978547685e77f4864bc47d1a2b2602343
Reviewed-by: Martin Smith <martin.smith@nokia.com>
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
13 years agoDeliver touch event timestamps in QSGCanvas.
Laszlo Agocs [Mon, 17 Oct 2011 05:20:58 +0000 (08:20 +0300)]
Deliver touch event timestamps in QSGCanvas.

The timestamp in input events is new in Qt5. When making copies of a
touch event this field must be copied too otherwise the event received
by the items will contain a default timestamp of 0.

Change-Id: I87dd337c964f34a6da6db808d83b7311df64fcd5
Reviewed-by: Martin Jones <martin.jones@nokia.com>
13 years agoDeclarative: Give qmlscene top level window flags.
Friedemann Kleint [Mon, 17 Oct 2011 14:02:01 +0000 (16:02 +0200)]
Declarative: Give qmlscene top level window flags.

Add menu and close buttons on Windows as well.

Change-Id: Ie458f8f21b14583c1a02d48819ec797e6db7390e
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
13 years agoMark particles tests as significant
Alan Alpert [Mon, 17 Oct 2011 05:15:31 +0000 (15:15 +1000)]
Mark particles tests as significant

Believed to be stable enough for CI now. Except qsgage.

Change-Id: I49d52c3913bb4140de89b769777f9b6d67abbaaa
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
13 years agoFix assert
Aaron Kennedy [Tue, 18 Oct 2011 03:19:57 +0000 (13:19 +1000)]
Fix assert

Change-Id: I6db293c278f10be7e998ed15fe93b9d328474e6a
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
13 years agoFix reference to test data file
Bea Lam [Tue, 18 Oct 2011 01:09:25 +0000 (11:09 +1000)]
Fix reference to test data file

Change-Id: I04e220635487d76d2908572ceb0f0696f6876e9e
Reviewed-by: Bea Lam <bea.lam@nokia.com>
13 years agoSimplify expression guard logic
Aaron Kennedy [Tue, 11 Oct 2011 04:21:42 +0000 (14:21 +1000)]
Simplify expression guard logic

Change-Id: I7d191bc8786452c5a1f14d024ff62d223adebd8b
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
13 years agoFix TextInput echoMode test failure.
Andrew den Exter [Wed, 12 Oct 2011 03:02:39 +0000 (13:02 +1000)]
Fix TextInput echoMode test failure.

The default input method hints for a QSGItem is Qt::ImhMultiline and
TextInput is a single line input so clear that default flag in init.

Task-number: QTBUG-21686
Change-Id: I3b57227ee4182bf89f6789f775b56efb156df85b
Reviewed-by: Martin Jones <martin.jones@nokia.com>
13 years agoRemove the InputContext module.
Andrew den Exter [Wed, 12 Oct 2011 01:21:29 +0000 (11:21 +1000)]
Remove the InputContext module.

The input context module provided a bridge between QML and a
QInputContext which allowed an application to implement it's own input
method in-process.  However since QInputContext has been replaced and
now only exists as a QWidget compatibility API this module no longer
works with the QtQuick 2 items and porting it to the new
QPlatformInputContext API does not seem to be an option as there is
no way to override the instance provided by the platform integration.

Change-Id: Ica602377436fcea42b9ffd05e1b347e2ee52acc8
Reviewed-by: Martin Jones <martin.jones@nokia.com>
13 years agoDon't keep a cache of created QSGDragAttached objects.
Andrew den Exter [Tue, 11 Oct 2011 03:09:42 +0000 (13:09 +1000)]
Don't keep a cache of created QSGDragAttached objects.

It's unnecessary and can potentially return stale objects.

Change-Id: Ia04b9a58757ef06d3178e6a64e168f68abc1c9d8
Reviewed-by: Martin Jones <martin.jones@nokia.com>
13 years agoDebugger: Fix compilation warning
Kai Koehne [Sat, 15 Oct 2011 15:15:45 +0000 (17:15 +0200)]
Debugger: Fix compilation warning

Change-Id: I22fc756ce29bba2834bbdcaa40a9769a5391e337
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
13 years agoFix QDeclarativeInspector when starting with ,block
Kai Koehne [Sat, 15 Oct 2011 14:56:40 +0000 (16:56 +0200)]
Fix QDeclarativeInspector when starting with ,block

Change-Id: I3797567f22f61abf59ec5332ebc74b3fa37ede93
(cherrypicked from commit 6cb43a9b72c67b71409a59fdeb419f390441f0c7)
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
13 years agoDebugger: Create InspectorService only when debugging is enabled
Kai Koehne [Sat, 15 Oct 2011 13:56:06 +0000 (15:56 +0200)]
Debugger: Create InspectorService only when debugging is enabled

Change-Id: Ie9704233012b0bd0e473c5ee6011e6382c61900f
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
13 years agoDebugger: Make QDeclarativeDebugJS autotest more robust & faster
Kai Koehne [Mon, 17 Oct 2011 12:13:01 +0000 (14:13 +0200)]
Debugger: Make QDeclarativeDebugJS autotest more robust & faster

Also compile it by default (again).

Change-Id: I04537e29d48cd1918160fe57220eecf1a72a8e66
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
13 years agoFix coding style issues
Kent Hansen [Mon, 17 Oct 2011 11:03:58 +0000 (13:03 +0200)]
Fix coding style issues

Avoid Qt Sanity Bot noise when these files are moved.

Change-Id: I714e949837909883fe7e387ae336d2ffc4a1912b
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
13 years agoTidy up some more declarative includes
Kent Hansen [Fri, 14 Oct 2011 06:13:44 +0000 (08:13 +0200)]
Tidy up some more declarative includes

Remove file dependencies that aren't needed.

Change-Id: I0496ef9435141528f680bbd326da55c3a31e5978
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
13 years agoClean up declarative includes
Kent Hansen [Wed, 12 Oct 2011 06:26:22 +0000 (08:26 +0200)]
Clean up declarative includes

(This commit is in preparation of moving several files
to a separate library (QtQuick2).)

Don't add all subfolders to the includepath (from the
.pri files). There's no good reason to do that.

For headers (both public and private) that are in the
same folder as the file that includes them, prefer to use

 #include "foo.h"
 #include "bar_p.h"

For public headers that are outside the current folder
but have "unambiguous" names (e.g. qdeclarative prefix), use

 #include <foo.h>

For private headers that are outside the current folder, use

 #include <private/baz_p.h>

Also change

 #include <QtDeclarative/private/foo_p.h>

to

 #include <private/foo_p.h>

The header filenames already have a qdeclarative or qsg
prefix; there's no need to prefix by module name to
disambiguate.

Finally,

 #include "private/foo_p.h"

should be avoided. private/ is used for auto-generated
(forwarding) headers, which never reside in the current
(source) directory. Use angle brackets instead.

Change-Id: I04f8477fdba043546064ee276475c09dc373f8f2
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
13 years agoDebugger: Remove outdated test stub
Kai Koehne [Sat, 15 Oct 2011 15:52:17 +0000 (17:52 +0200)]
Debugger: Remove outdated test stub

This stub is testing the  QScriptEngineAgent interface, which is deprecated.

Change-Id: I192a7b9aed0fa49f413bd6048e874414dab8256b
Reviewed-by: Martin Jones <martin.jones@nokia.com>
13 years agoDebugger: Move debugging autotests into own folder
Kai Koehne [Sat, 15 Oct 2011 15:43:55 +0000 (17:43 +0200)]
Debugger: Move debugging autotests into own folder

This mirrors the source tree structure and
makes it easier to run them all in one go.

Change-Id: Ia191790eaec2c409857c41aff479d2ebd144aaf8
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
13 years agoFix GridView to repaint when geometry changes
Bea Lam [Mon, 17 Oct 2011 05:50:07 +0000 (15:50 +1000)]
Fix GridView to repaint when geometry changes

Task-number: QTBUG-22078
Change-Id: Ic0ad67832dad9a7b3a7e5501893befe2d30b6c94
Reviewed-by: Bea Lam <bea.lam@nokia.com>
13 years agoRemove insignificant flag from tests, some failing test cleanup.
Toby Tomkins [Mon, 17 Oct 2011 04:46:07 +0000 (14:46 +1000)]
Remove insignificant flag from tests, some failing test cleanup.

Task-number: QTBUG-21054 QTBUG-21004

Change-Id: I9d1a3ca99363949eee952e1bd09aabef82fc1831
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
13 years agoAdd Affector Benchmark
Alan Alpert [Mon, 17 Oct 2011 04:17:41 +0000 (14:17 +1000)]
Add Affector Benchmark

Just for generic affector.

Change-Id: I62acf524eb2c6491bc88fd687a0065866d7ceaaa
Reviewed-by: Martin Jones <martin.jones@nokia.com>