profile/ivi/qtdeclarative.git
12 years agoapi: remove references to inputPanel.
Girish Ramakrishnan [Mon, 23 Apr 2012 04:18:19 +0000 (06:18 +0200)]
api: remove references to inputPanel.

Qt.application.inputPanel is now Qt.inputMethod. Also,
QGuiApplication::inputPanel is being removed.

Change-Id: I0033183235fe0fda6adff13cf5eaf4b8206d91fb
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoQmlDebugJS: Re-enable autotest on mac
Aurindam Jana [Thu, 26 Apr 2012 09:32:21 +0000 (11:32 +0200)]
QmlDebugJS: Re-enable autotest on mac

Execute getScripts() which was previously skipped.

Task-number: QTBUG-23475
Change-Id: I8e64b112fe6fa2d032b386f477594c3c21286431
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
12 years agoDebugger: Re-enable autotest on mac
Kai Koehne [Thu, 26 Apr 2012 09:28:18 +0000 (11:28 +0200)]
Debugger: Re-enable autotest on mac

Remove insignificant test after recent changes.

Task-number: QTBUG-25288
Change-Id: I4ec6237ede78dee4f362abe3135fcec32031fb75
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
12 years agoQmlDebugging: Exchange supported QDataStream versions
Aurindam Jana [Mon, 23 Apr 2012 07:23:23 +0000 (09:23 +0200)]
QmlDebugging: Exchange supported QDataStream versions

Since the client and service needs to pack/unpack
datastreams, they need to encode/decode using the lowest common
QDataStream version.

Change-Id: I3b4886fece59b24950ba618da07a0fefd41a5637
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
12 years agoSpecialize for QJson types in the QObject meta-call binding
Kent Hansen [Tue, 24 Apr 2012 16:22:06 +0000 (18:22 +0200)]
Specialize for QJson types in the QObject meta-call binding

Avoid falling back to QVariant conversion; make the overload handling
consistent.

Also make the MaxSizeOf template helper class actually compute the
correct size needed for the argument storage.

Change-Id: I04afb378bd89743d542973cc3bb0ceb729b400d9
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoUse macro for QByteArrayData initialization.
Jędrzej Nowacki [Tue, 24 Apr 2012 08:35:45 +0000 (10:35 +0200)]
Use macro for QByteArrayData initialization.

Change-Id: I6fc09c69ddd7eba588950cbdaeff4002fcc00ef5
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
12 years agoRe-enable qmltest on non-Mac platforms.
Jason McDonald [Fri, 20 Apr 2012 08:26:13 +0000 (18:26 +1000)]
Re-enable qmltest on non-Mac platforms.

The test only fails on Mac, so only make it insignificant on Mac.

Task-number: QTBUG-25306
Change-Id: If8ca4422ad1db38392397770ef3004ed4a0e8274
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoTypo fix
Pekka Vuorela [Thu, 5 Apr 2012 08:46:13 +0000 (11:46 +0300)]
Typo fix

Change-Id: Ic5be5ee5db80e8434a5ed0bce32a8b73805abac6
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
12 years agoExpound on canvas example documentation
Alan Alpert [Fri, 20 Apr 2012 11:58:59 +0000 (21:58 +1000)]
Expound on canvas example documentation

Change-Id: I5bf82697dcbadaa9dc58e11ee22b2ab8c1a28852
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
12 years agoMore example docs
Alan Alpert [Mon, 23 Apr 2012 04:39:48 +0000 (14:39 +1000)]
More example docs

MouseArea, Threading and TouchInteraction

Change-Id: I9ca812d20a6c87d68ef91066ae0a4b9bc8829478
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
12 years agoUse fixed font size in test
Alan Alpert [Fri, 20 Apr 2012 08:55:16 +0000 (18:55 +1000)]
Use fixed font size in test

Otherwise, system defaults can lead to different wrap points on
different platforms.

Task-number: QTBUG-25306
Change-Id: I4082fb2f9a805982e7c8d076154983af0a393226
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
12 years agoRemove relative directory elements in import paths
Matthew Vogt [Fri, 20 Apr 2012 04:50:03 +0000 (14:50 +1000)]
Remove relative directory elements in import paths

Avoid unnecessary conversions to/from QUrl.

Change-Id: If52e78cfdaf4fe344f34d961e300b21dd4a11fb2
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
12 years agoFlesh out examples documentation
Alan Alpert [Fri, 20 Apr 2012 11:01:04 +0000 (21:01 +1000)]
Flesh out examples documentation

Change-Id: I4f7a1ce6b9957f43e442947dc6b319e919ec9cf7
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
12 years agoOptimise memory usage of bound signals
Chris Adams [Mon, 23 Apr 2012 07:25:48 +0000 (17:25 +1000)]
Optimise memory usage of bound signals

We can save a few bytes per bound signal by using a flag pointer.

Change-Id: I96d23dc287722e549e21e4c5d978bed0ba2f4bed
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
12 years agoAdapt qtdeclarative to the change in QMetaObject
Olivier Goffart [Thu, 19 Apr 2012 07:54:17 +0000 (09:54 +0200)]
Adapt qtdeclarative to the change in QMetaObject

Changed in qtbase in If0b8f586cbaf633eed10045adee3ba3366826c86

Change-Id: I28e7d84873c92908b10cbcd61ae66bd8d52ef51e
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
12 years agoDon't use the QRegExp methods that modify the object
Thiago Macieira [Mon, 23 Apr 2012 14:47:50 +0000 (16:47 +0200)]
Don't use the QRegExp methods that modify the object

QRegExp matching methods modify the object, which we don't want to. In
particular, when we receive a QRegExp from the user or we store in a
context that might require thread-safety, make sure we make a copy
before using it.

QRegularExpression has no such shortcoming.

Task-number: QTBUG-25064
Change-Id: I252d1c47d7039caacec6aac5b572371d5b7efe32
Reviewed-by: Giuseppe D'Angelo <dangelog@gmail.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoDebugger: Change name and protocol of QDeclarativeObserverMode
Aurindam Jana [Tue, 24 Apr 2012 07:23:13 +0000 (09:23 +0200)]
Debugger: Change name and protocol of QDeclarativeObserverMode

Rename QDeclarativeObserverMode to QmlInspector service.
This is because the current protocol has been changed
completely and just a version change is misleading.

Change-Id: I3b72f081f6ab77eac474dcef7a84375ef69e20dc
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
12 years agoDebugger: Fix race conditions in block mode
Kai Koehne [Tue, 24 Apr 2012 12:39:38 +0000 (14:39 +0200)]
Debugger: Fix race conditions in block mode

Using waitForMessage() in the constructor after registerService() is
_not_ safe: You might get the first message already after the
registerService() and before the waitForMessage() call. Instead,
use QMutex/QWaitCondition to block the initialization. Also make
the use of the block mode explicit, since the service might already
be enabled also for non-blocking modes ...

Change-Id: I387bfe0627c80e2029acff71f86d12cd9ab58de1
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
12 years agoDebugger: Fix warnings about declarative_debug in autotests
Kai Koehne [Wed, 25 Apr 2012 06:40:48 +0000 (08:40 +0200)]
Debugger: Fix warnings about declarative_debug in autotests

declarative_debug is deprecated and will be removed eventually.

Change-Id: I1f5a61c91c25e37ff39e9154bcaa3cd74d60e109
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
12 years agoDebugger: Improve output of autotests
Kai Koehne [Fri, 16 Mar 2012 15:44:24 +0000 (16:44 +0100)]
Debugger: Improve output of autotests

Change-Id: Ib938d2f39d8a0928c257ef923df5d5fcfa85c4cf
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
12 years agoDebugger: Fix race condition in block mode, QQmlDebugServer
Kai Koehne [Tue, 24 Apr 2012 11:31:17 +0000 (13:31 +0200)]
Debugger: Fix race condition in block mode, QQmlDebugServer

Make sure that the first message hasn't already arrived before
we call d->messageArrivedCondition.wait().

Change-Id: I0d3df9adbd41f71df5c1c7d6df90c0037f494514
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
12 years agoMake touch event delivery in the canvas reentrant
Laszlo Agocs [Tue, 24 Apr 2012 07:51:59 +0000 (10:51 +0300)]
Make touch event delivery in the canvas reentrant

At the moment the unlikely case of spinning the event loop from a
QQuickItem event handler for TouchBegin is not handled properly: It
will end up not delivering the subsequent TouchUpdate and TouchEnd
events to the item, leaving it in a state that should not normally
happen.

Change-Id: I668d065c9cf1a299bfd9268a9125d7a7e32f6786
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
12 years agoDebugger: Fix RAII usage of ReadWriteLocker
Kai Koehne [Wed, 11 Apr 2012 14:26:15 +0000 (16:26 +0200)]
Debugger: Fix RAII usage of ReadWriteLocker

Variables without a name are free to be deleted even before the
scope ends.

Change-Id: I07fb6f98cd5b36876db5de2e1b4e8ce355f74415
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
12 years agoDebugger: Add asserts for right usage of threads
Kai Koehne [Wed, 11 Apr 2012 14:27:14 +0000 (16:27 +0200)]
Debugger: Add asserts for right usage of threads

Change-Id: I7c377863eb42e693aa4022af33a83098547e0d58
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
12 years agoFix usage of QMutexLocker
Kai Koehne [Tue, 24 Apr 2012 13:17:24 +0000 (15:17 +0200)]
Fix usage of QMutexLocker

Not giving QMutexLocker a name means that it's lifetime is
not guaranteed to be bound to the current scope.

Change-Id: I6e58b0aab814c5e686fac3ff0aa6b671e17db240
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
12 years agoDebugger: Make sure stateChanged is called from debugger thread
Kai Koehne [Fri, 16 Mar 2012 15:44:24 +0000 (16:44 +0100)]
Debugger: Make sure stateChanged is called from debugger thread

Make sure stateAboutToBeChanged(), stateChanged() is always called
from the debugger thread. This matches how messageReceived()
is called. On exit, run an event loop until all stateAboutToBeChanged
calls have returned.

Change-Id: I9cd6199cc80552ad97e4b7d504ea91aa116a6a34
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
12 years agoMark all Latin 1 strings with QString::fromLatin1 or QLatin1String
Thiago Macieira [Mon, 23 Apr 2012 14:46:20 +0000 (16:46 +0200)]
Mark all Latin 1 strings with QString::fromLatin1 or QLatin1String

This is in preparation of QString's constructor using UTF-8 by default

Change-Id: Ibd0a585342af572e3f74636deb97c1b6b3afeb9a
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
12 years agoThe QUrl constructor can be used once again, so use it.
Thiago Macieira [Mon, 26 Mar 2012 22:56:23 +0000 (19:56 -0300)]
The QUrl constructor can be used once again, so use it.

Slight performance gain by avoiding a round-trip through QByteArray.

Change-Id: Ibcd2e20f92236ca9878e52665b6d677019bb19a4
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
12 years agoInitialize value type properties.
Roberto Raggi [Tue, 24 Apr 2012 10:03:51 +0000 (12:03 +0200)]
Initialize value type properties.

This patch ensures that the value type properties (e.g. QColor)
are initialized before updating their values.

Change-Id: I789fe8247e0ded17460570ab28b8834aa22f0a40
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
12 years agoDisambiguate qmltest example and qmltest autotest.
Jason McDonald [Fri, 20 Apr 2012 07:51:39 +0000 (17:51 +1000)]
Disambiguate qmltest example and qmltest autotest.

Give the example a different name so that CI logs are not so confusing.

Task-number: QTBUG-25306
Change-Id: Iafa06790ced42656217f3478b6398b3b4fd1c8bd
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
12 years agoDoc: Fixed tutorial articles' types.
vertries [Tue, 17 Apr 2012 12:53:26 +0000 (14:53 +0200)]
Doc: Fixed tutorial articles' types.

-Added "tutorial" to the \page command.
-Removed "Tutorial" in the title.

Change-Id: Id336828239a39413a438dc4126c10432aba65553
Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
12 years agoQmlInspectorPlugin: AbstractViewInspector
Aurindam Jana [Mon, 23 Apr 2012 15:00:31 +0000 (17:00 +0200)]
QmlInspectorPlugin: AbstractViewInspector

Remove unneeded members.

Change-Id: I62334561ca53264124dbbc73d679d9b631c8a32d
Reviewed-by: Simjees Abraham <simjees.abraham@nokia.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
12 years agoDo not use deprecated API
Olivier Goffart [Fri, 20 Apr 2012 19:12:12 +0000 (21:12 +0200)]
Do not use deprecated API

Change-Id: I0c61f9cb4abe926d5f1e0a3acda7117d8d54efb6
Reviewed-by: Simjees Abraham <simjees.abraham@nokia.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
12 years agoVerify that QML can reliably receive datetime info from C++
Matthew Vogt [Mon, 23 Apr 2012 05:14:42 +0000 (15:14 +1000)]
Verify that QML can reliably receive datetime info from C++

Since a JavaScript Date object does not contain any information about
the timezone in which it is specified, a C++ module that exports
datetime information to QML must also provide the relevant timezone
data so that clients can correctly interpret the datetime value.

Provide an example of exporting datetime information to QML, verifying
that the data can be correctly interpreted in JS.

Task-number: QTBUG-25262
Change-Id: I732797da225861470e6b034f2e3d89a43df36cf7
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
12 years agoRecord current status of date conversion from QML
Matthew Vogt [Fri, 13 Apr 2012 06:12:55 +0000 (16:12 +1000)]
Record current status of date conversion from QML

Ensure that the qqmlecmascript test is not broken by changes in the
time zone of the test environment.

This test documents the existing situation with convertibility
of date information between QML and JS.

Task-number: QTBUG-25262
Change-Id: I42716e0b34ef26daa391fdb4aebc1f31340fcea0
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
12 years agoAdd support for var properties in V4
Matthew Vogt [Mon, 16 Apr 2012 06:51:23 +0000 (16:51 +1000)]
Add support for var properties in V4

Support initialization of var properties in V4.  Var properties, which
can only be manipulated by V8, are constructed directly into the form
in which they will be stored.

Task-number: QTBUG-25022
Change-Id: I27c6af9f8a310e7baec91bef2593c8518ec1e462
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
12 years agoDon't use deprecated QVariant API
Olivier Goffart [Fri, 20 Apr 2012 19:00:29 +0000 (21:00 +0200)]
Don't use deprecated QVariant API

Change-Id: I64d356db824eb1db7113dde45d83958387acebe9
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
12 years agoImprove test to use actual double click timeout.
Frederik Gladhorn [Sat, 21 Apr 2012 02:45:58 +0000 (04:45 +0200)]
Improve test to use actual double click timeout.

I'll keep the function marked as skip since I have no clue if this
is even remotely connected to the issues it was having.

Change-Id: I04b2a4f61321553804d29ef076178ea7c63b0deb
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoDoc: Changed the title for QtQuick articles
Jerome Pasion [Tue, 17 Apr 2012 13:24:22 +0000 (15:24 +0200)]
Doc: Changed the title for QtQuick articles

- Removed "QML" from the title
- Fixed the links to the articles
- Removed extra references to QML

Change-Id: I47e0871d9362be9625ada61d27123b1605d55a94
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoDoc Fix
Alan Alpert [Wed, 18 Apr 2012 04:21:46 +0000 (14:21 +1000)]
Doc Fix

More emphasis on what imports are needed for specialty elements.

Change-Id: Ia24ac97bb77ed57c313a5120b0fbd02b6fcaa4a8
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 years agoqMalloc, qFree, qRealloc, qMemCopy, qMemSet are deprecated
Olivier Goffart [Fri, 20 Apr 2012 17:55:49 +0000 (19:55 +0200)]
qMalloc, qFree, qRealloc, qMemCopy, qMemSet are deprecated

Use the stdlib version directly instead

Change-Id: Ifc600f6c418b395c4ada9e5beb207ad3985575e3
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
12 years agoReduce memory usage of QQuickPath for simple paths.
Andrew den Exter [Fri, 20 Apr 2012 05:52:41 +0000 (15:52 +1000)]
Reduce memory usage of QQuickPath for simple paths.

For a single segment line path we can get correct results by
interpolating across just two points, so there no need to allocate
the comparatively large point cache required for more complex paths.

This also correct a normally small interpolation error caused by
including the terminal point in the number of intervals.

Change-Id: I564c3c012b6822831251276951603fca8544a356
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
12 years agoOnly run populate for items in model at creation
Bea Lam [Fri, 20 Apr 2012 07:02:38 +0000 (17:02 +1000)]
Only run populate for items in model at creation

Don't run for items added in Component.onCompleted.

Change-Id: I58745ab989efae168d036875cb2fb88e3e2db0c3
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
12 years agoQtDeclarative: Fix compiler warnings.
Friedemann Kleint [Thu, 19 Apr 2012 15:24:08 +0000 (17:24 +0200)]
QtDeclarative: Fix compiler warnings.

- QString from ASCII conversion, remove global-static QString
  variable from class.
- Signed/unsigned comparison.
- Unused variable.

Change-Id: I4ea3e72da85ba7ed329196d39085d7bba8bfa389
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
12 years agoAlso check notifier endpoints when checking whether a signal is connected.
Michael Brasser [Mon, 2 Apr 2012 00:02:28 +0000 (10:02 +1000)]
Also check notifier endpoints when checking whether a signal is connected.

This is required for the QQmlBoundSignal optimizations.

Change-Id: I63540b96cd7d4523ec49973a2540054c83d82b12
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
12 years agoSupport and use parameters in QQmlNotifierEndpoint.
Michael Brasser [Mon, 23 Apr 2012 00:17:57 +0000 (10:17 +1000)]
Support and use parameters in QQmlNotifierEndpoint.

Allow QQmlNotifierEndpoint to support signals
with parameters. Update QQmlBoundSignal to use
this support.

Change-Id: Ie2a245b39283b0b66d66bd2350e8bc85fe519bb5
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
12 years agoAdd some component path canonicalization tests
Chris Adams [Thu, 19 Apr 2012 07:30:59 +0000 (17:30 +1000)]
Add some component path canonicalization tests

Previously, no unit test existed to ensure that url canonicalization
worked correctly, which could result in two import statements using
relative paths to the same actual component triggering two separate
types being generated.

This commit adds a unit test with various relative-addressing and both
static and dynamic imports, to enforce type-consistency.

Change-Id: I7772e3c531069322d5fa44063cbf57a758ed3710
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
12 years agoRe-enable QQuickPixmapCache test on most platforms.
Jason McDonald [Fri, 20 Apr 2012 11:04:05 +0000 (21:04 +1000)]
Re-enable QQuickPixmapCache test on most platforms.

This test fails unstably on Ubuntu 10.04 and passes on all other CI
platforms, so only disbale it on Ubuntu 10.04.

Task-number: QTBUG-25307
Change-Id: Iae5d401e1c7b2398abfd80abc7827df27a84e63b
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoQtQml doesn't depend on xmlpatterns anymore
Lars Knoll [Fri, 20 Apr 2012 09:55:08 +0000 (11:55 +0200)]
QtQml doesn't depend on xmlpatterns anymore

Change-Id: Id6bd03f26e0e90ecfc485d3701c3f46f78539f7b
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
12 years agoDebugger: Improve autotest output on failure
Kai Koehne [Fri, 20 Apr 2012 09:53:45 +0000 (11:53 +0200)]
Debugger: Improve autotest output on failure

Change-Id: Ia463b198b5d6dac8e480d141412cb4475e54d204
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
12 years agoFix warnings about non-virtual destructors
Tobias Hunger [Thu, 19 Apr 2012 08:08:10 +0000 (10:08 +0200)]
Fix warnings about non-virtual destructors

Change-Id: Ief63ebe0ab3622b8858e23fdfb773c6b283a9c14
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
12 years agoRemove uninitialized variable.
Andrew den Exter [Fri, 20 Apr 2012 06:25:33 +0000 (16:25 +1000)]
Remove uninitialized variable.

Relic from a prospective change to defer layout of text in more
circumstances.

Change-Id: I75d14e8cb01b86ab36ddbf58da99ba1cde14d801
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
12 years agoAvoid losing mouse events when the event loop gets spinned
Laszlo Agocs [Thu, 19 Apr 2012 08:31:14 +0000 (11:31 +0300)]
Avoid losing mouse events when the event loop gets spinned

The touchMouseId value has to be updated to its potential new value
before delivering the events.

Change-Id: I47ac5b3aad63293e19985b7b242b56db258fe786
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 years agoDisable local storage if the standard data location is empty
Charles Yin [Thu, 19 Apr 2012 03:50:39 +0000 (13:50 +1000)]
Disable local storage if the standard data location is empty

Change-Id: I05ea7fa9521c807099b39e610f965a331e538f6e
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 years agoFix eliding when text width is reset by an implicitWidth change.
Andrew den Exter [Fri, 20 Apr 2012 01:40:40 +0000 (11:40 +1000)]
Fix eliding when text width is reset by an implicitWidth change.

After emitting implicit size changed signals, reevaluate any conditions
that were dependent on the validity of the item dimensions.

Change-Id: Ie4ee0c87a22cf82752c207c69d426056c36ede67
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 years agoAdd a virtual destructor to QQuickVisualDataGroupEmitter.
Andrew den Exter [Fri, 20 Apr 2012 04:04:42 +0000 (14:04 +1000)]
Add a virtual destructor to QQuickVisualDataGroupEmitter.

Not strictly necessary since pointers to that type are not used to
destroy objects implementing the interface.  But there's no harm and
it will keep well meaning static analysis tools happy.

Task-number: QTBUG-25286
Change-Id: I84dd59798d08566f34bdfe0f3774dfcf5a8a96e2
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 years agoPaint TextInput when it is reparented
Bea Lam [Thu, 19 Apr 2012 06:56:32 +0000 (16:56 +1000)]
Paint TextInput when it is reparented

Wasn't being repainted if it was moved off then back into view as part
of a VisualItemModel with a ListView.

Task-number: QTBUG-24731
Change-Id: I4ba8035709d3e889fb3f0fe82ef0c0523a39ead8
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
12 years agoImprove examples documentation
Yann Bodson [Wed, 18 Apr 2012 04:41:14 +0000 (14:41 +1000)]
Improve examples documentation

Add more details and snippets to the examples for text and
imageelements.

Change-Id: If0b20a0dca1778a8a4cc0ebf1e43017bdce839ec
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoClean up test
Bea Lam [Mon, 16 Apr 2012 07:03:13 +0000 (17:03 +1000)]
Clean up test

Change-Id: I750d059492c74fbdcd8d61ec3268ba10dcf0466b
Reviewed-by: Bea Lam <bea.lam@nokia.com>
12 years agoImprove example documentation
Alan Alpert [Wed, 18 Apr 2012 08:07:13 +0000 (18:07 +1000)]
Improve example documentation

Add more detail and snippets to the examples for shadereffects and
positioners.

Change-Id: I62a257289cbfb6c53ecc092ac898d923f0058248
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
12 years agoMove data file to correct location
Matthew Vogt [Fri, 20 Apr 2012 01:19:11 +0000 (11:19 +1000)]
Move data file to correct location

Change-Id: Iaf5363f6bd0a7983dc937e427131f6537a19b1c3
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
12 years agoProvide receivers count from QQmlData.
Michael Brasser [Thu, 5 Apr 2012 03:30:00 +0000 (13:30 +1000)]
Provide receivers count from QQmlData.

Change-Id: I70b06507158797df3083dc23a119935497aa19f4
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
12 years agoUse QInputMethod::isVisible instead of QInputMethod::visible
Girish Ramakrishnan [Wed, 18 Apr 2012 19:16:21 +0000 (12:16 -0700)]
Use QInputMethod::isVisible instead of QInputMethod::visible

QInputMethod::visible will be removed in qtbase.

Change-Id: I16ffbe56d55a62ae6a905e3cfdab8ad245d24aa0
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
12 years agoUse QUrl constructor directly.
Michael Brasser [Thu, 19 Apr 2012 23:27:01 +0000 (09:27 +1000)]
Use QUrl constructor directly.

setEncodedUrl is deprecated, and no longer required as the new QUrl
makes this behavior default. This is a partial revert of
3aa53b8bc383ebcdf8dc922b2670170ec012949f.

Change-Id: I14f29cbe2a2e2cd9c41f7afc92b1cb66b53996bb
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
12 years agoDon't initiate delegate incubation in delegate creation frames.
Martin Jones [Wed, 18 Apr 2012 08:25:16 +0000 (18:25 +1000)]
Don't initiate delegate incubation in delegate creation frames.

If we've just instantiated a synchronous delegate, don't schedule
a buffered delegate until the next frame.

Change-Id: Id269457cb74a7900e4405022c15148fd2a3dc180
Reviewed-by: Bea Lam <bea.lam@nokia.com>
12 years agoQtDeclarative: No longer use QDeclarative compatibility defines.
Friedemann Kleint [Thu, 19 Apr 2012 15:31:32 +0000 (17:31 +0200)]
QtDeclarative: No longer use QDeclarative compatibility defines.

Change-Id: Icbd9777cf1d978468c8023712ed90cd3c7dda56f
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
12 years agoCompile fix if QT_NO_CLIPBOARD defined
Andreas Holzammer [Thu, 19 Apr 2012 13:59:57 +0000 (15:59 +0200)]
Compile fix if QT_NO_CLIPBOARD defined

Change-Id: Ic287a89193c98b2405032fe5859782286d4528d0
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoinclude QWindowSystemInterface explicity when needed
Girish Ramakrishnan [Tue, 17 Apr 2012 01:04:52 +0000 (18:04 -0700)]
include QWindowSystemInterface explicity when needed

QtTest will not include QWindowSystemInterface anymore. See
https://codereview.qt-project.org/#change,23440.

Change-Id: Icad9f04fa748ad938925716b0012bc4cf1b3f154
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
12 years agoDoc: Moved article from Qt QML to Qt Quick.
vertries [Tue, 17 Apr 2012 13:03:51 +0000 (15:03 +0200)]
Doc: Moved article from Qt QML to Qt Quick.

-about the UI, not QML.

Change-Id: Ib4a3195e763c3b9d86ff17f5581a4aaa4f89243d
Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
12 years agoDoc: Adding list of JavaScript functions in QML.
Jerome Pasion [Tue, 17 Apr 2012 08:20:33 +0000 (10:20 +0200)]
Doc: Adding list of JavaScript functions in QML.

-Added a link to the ECMA-262 standard

Change-Id: I0b3173f93bf947908bf9d39d207468d2b9f0cbd7
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
12 years agoCall onreadystatechange() when new data available during loading
Charles Yin [Wed, 21 Mar 2012 06:07:25 +0000 (16:07 +1000)]
Call onreadystatechange() when new data available during loading

Task-number: QTBUG-21459
Change-Id: I84e11cbf9ade361d5d578c8871491e631f8e4ea4
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
12 years agoDelay rendering until canvas is exposed.
Samuel Rødal [Thu, 19 Apr 2012 08:49:12 +0000 (10:49 +0200)]
Delay rendering until canvas is exposed.

Prevents warnings about swapBuffers() being called with non-exposed
window on xcb.

Change-Id: Ib43fd588a7b62e7aaf14f2caddfa498fdced283a
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
12 years agoDebugger: Display selected item name in inspector
Simjees Abraham [Wed, 18 Apr 2012 14:13:50 +0000 (16:13 +0200)]
Debugger: Display selected item name in inspector

Changes made to Inspect Tool such that the selected item's name is displayed
during selection and then on click of the selected item. The name is displayed
for 1.5 seconds.

Change-Id: Id71c82775c2d55eeda969b8a998e130d2f5ff29d
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
12 years agoMake QML work with the new QUrl implementation.
Martin Jones [Thu, 19 Apr 2012 08:07:32 +0000 (18:07 +1000)]
Make QML work with the new QUrl implementation.

Change-Id: Ie7a41670e467108ed68b67deb4987936465094a0
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
12 years agoDebugger: Changes made for selection using Inspect Tool
Simjees Abraham [Tue, 17 Apr 2012 13:28:23 +0000 (15:28 +0200)]
Debugger: Changes made for selection using Inspect Tool

The selected item is shown in black transparent background.

Change-Id: Ifc9d2892cc000041df6d9585f5c5adcca07abfb5
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
12 years agoAdd contains method to QQuickItem public API
Adriano Rezende [Sun, 26 Feb 2012 16:26:53 +0000 (17:26 +0100)]
Add contains method to QQuickItem public API

This method can be overwritten in order to provide fine grained control
over the mouse events handled by the item.

Change-Id: I23cb61958d3ac0b2f5091c47fa9e0ed07dc5e5d0
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 years agoEnsure the cursor delegate position is correct when wrapping.
Andrew den Exter [Wed, 18 Apr 2012 07:20:24 +0000 (17:20 +1000)]
Ensure the cursor delegate position is correct when wrapping.

When inserting text into a TextEdit with implicit width and wrapping
the cursor delegate position has to be updated after the width is
expanded to the implicit width otherwise it will be positioned in a
wrapped location.

Change-Id: Ibcb709ec1b4f6827ea8ae919f2e0c932c7372869
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 years agoClean up qmltest code
Charles Yin [Wed, 18 Apr 2012 11:01:57 +0000 (21:01 +1000)]
Clean up qmltest code

1. Remove qmlviewer related code from TestCase.qml
2. util.wrapper is no longer used

Change-Id: I17d9198a7871762da07a790700d69504b8226c48
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
12 years agoDon't create glyphs for truncated text.
Andrew den Exter [Tue, 10 Apr 2012 05:06:48 +0000 (15:06 +1000)]
Don't create glyphs for truncated text.

Instead of positioning truncated lines far out of the way where they
won't be seen, simply skip them when creating the glyph node.

Change-Id: I83bd8f76619d822fb22ec2ebd8c1e45c45b8b990
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
12 years agoImprove QML performance documentation
Chris Adams [Fri, 30 Mar 2012 07:45:38 +0000 (17:45 +1000)]
Improve QML performance documentation

This commit documents several memory-related considerations which
could be of importance to application developers.

It also adds a short section on the optimized binding compiler.

Change-Id: I737fc70c1b686867cd938dcb042466c8788de7e4
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoDocument AnchorChanges and ParentChange for QtQuick 2.
Michael Brasser [Tue, 17 Apr 2012 00:04:57 +0000 (10:04 +1000)]
Document AnchorChanges and ParentChange for QtQuick 2.

Copied documentation from QtQuick1 module.

Change-Id: I871f313b1b24e8b66db04c423bef190274547dfa
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
12 years agoAdd a note in the docs about FBO multisampling
Gunnar Sletta [Wed, 18 Apr 2012 06:29:56 +0000 (08:29 +0200)]
Add a note in the docs about FBO multisampling

Change-Id: I4c0b522ce937e681a9208cc94a1265f6b10ebcd3
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
12 years agoQQmlEngineDebugService: Object creation
Aurindam Jana [Tue, 17 Apr 2012 11:59:33 +0000 (13:59 +0200)]
QQmlEngineDebugService: Object creation

Send parent debug id when a new object is created.

Change-Id: I8e3871fee91f0d24c44b0d458d5b273f9f527b11
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
12 years agoEnabled widget free compilation of QtQuick
Donald Carr [Tue, 17 Apr 2012 05:23:21 +0000 (05:23 +0000)]
Enabled widget free compilation of QtQuick

There is no hard dependency of QtQuick on QWidget. This change makes the
minor adjustments required to remove the build dependency altogether. This
patch follows the path of least resistance bypassing any elements with a
dependency on the legacy QWidget functionality.

Change-Id: Ie3f47d3b4f60a1460dbb5d76a494a2c329469cc0
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoSplit qquicklistmodel test into two parts
Matthew Vogt [Wed, 18 Apr 2012 01:18:57 +0000 (11:18 +1000)]
Split qquicklistmodel test into two parts

This long-running test was potentially being terminated by the test
framework for simply exceeding the maximum run time.

Change-Id: I7e1be44f25885ae869f05acbce3c0fb1c05f76a6
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoMerge remote-tracking branch 'origin/api_changes'
Lars Knoll [Tue, 17 Apr 2012 14:35:19 +0000 (16:35 +0200)]
Merge remote-tracking branch 'origin/api_changes'

Change-Id: I39905acde16ba6bb0ba39401cb73082a73dd9167

12 years agoSet rootItem'ownership as CppOwnerShip
Charles Yin [Tue, 17 Apr 2012 06:47:33 +0000 (16:47 +1000)]
Set rootItem'ownership as CppOwnerShip

rootItem should not be deleted until the QQuickCanvas itself has been deleted.
Set the rootItem's object ownership to CppOwnerShip can prevent it being destroyed
by javascript destroy() method or v8 garbage collection.

Change-Id: I7d83fec8ffcb8062d143b1b050a38368a2af800f
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Reviewed-by: J-P Nurmi <j-p.nurmi@nokia.com>
12 years agoQV8DebugService: v8::AfterCompile Events
Aurindam Jana [Tue, 17 Apr 2012 09:00:18 +0000 (11:00 +0200)]
QV8DebugService: v8::AfterCompile Events

Do not send v8::AfterCompile events. This speeds up the
debugger.

Change-Id: I84f5d90e24878af42d514e5d26c9e051502605f6
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
12 years agoDoc: Unifying directories for the configuration files.
Jerome Pasion [Tue, 18 Oct 2011 08:31:10 +0000 (10:31 +0200)]
Doc: Unifying directories for the configuration files.

-Added information that the qch version is for Qt Quick 2.

Change-Id: I8d1a090534c3078b30066efc5a10cded358a80b8
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoDon't crash when calculating the implicit width of truncated lines.
Andrew den Exter [Tue, 17 Apr 2012 07:28:50 +0000 (17:28 +1000)]
Don't crash when calculating the implicit width of truncated lines.

Remember to call beginLayout() on the QTextLayout before creating
lines or the layout data won't be allocated.

Change-Id: Ic344ca376fc25e38c50078135deb02dee3afc4f1
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
12 years agoImprove StyledText tests
Yann Bodson [Tue, 17 Apr 2012 04:24:06 +0000 (14:24 +1000)]
Improve StyledText tests

Extra tests for anchors and invalid input.

Task-number: QTBUG-25134
Change-Id: Ib465e0aba2fc5671c7f044d1bb655247d562d1f1
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoFix broken stockchart demo
Charles Yin [Tue, 17 Apr 2012 07:39:42 +0000 (17:39 +1000)]
Fix broken stockchart demo

Change-Id: Ie0118579cc57e9406044d763e699cb1aa66bd6cd
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoUse bit fields
Bea Lam [Tue, 17 Apr 2012 05:54:39 +0000 (15:54 +1000)]
Use bit fields

Change-Id: Ie04d59642117f00091e8b28ae4fb07df7e226f8c
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
12 years agoVertical layout direction for ListView and GridView
Bea Lam [Tue, 20 Mar 2012 01:37:10 +0000 (11:37 +1000)]
Vertical layout direction for ListView and GridView

Provide verticalLayoutDirection property with TopToBottom
and BottomToTop values.

Change-Id: If6f0da5dd4735036162868d391852a661854de5b
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
12 years agoCompile fix for qqmldebugservice test
Girish Ramakrishnan [Tue, 17 Apr 2012 01:00:58 +0000 (18:00 -0700)]
Compile fix for qqmldebugservice test

Change-Id: I8efd3686521c3221be79f5bbf5e28a8ef2bb4e19
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
12 years agoFine-tune animation's pause()/resume() behaviors
Charles Yin [Fri, 16 Mar 2012 13:15:00 +0000 (23:15 +1000)]
Fine-tune animation's pause()/resume() behaviors

Only allow pause/resume to be used while running, and when stop the
animation reset the paused value to false.

Change-Id: Ia465045006478936146356f9e2e0632614c6b527
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
12 years agoFix Text baselineOffset caclulations.
Andrew den Exter [Mon, 26 Mar 2012 05:54:16 +0000 (15:54 +1000)]
Fix Text baselineOffset caclulations.

Update the baselineOffset when short cutting layout due to an empty
text property.  And allow alterations to the baseline due to images,
font scaling and custom layouts when doing a layout.

Task-number: QTBUG-24303
Change-Id: I5a31a6108cded490fef8b0674e15558ea4e22d6b
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
12 years agoDon't use QWindow::visible
Girish Ramakrishnan [Mon, 16 Apr 2012 14:14:00 +0000 (07:14 -0700)]
Don't use QWindow::visible

The deprecated method (in favor of QWindow::isVisible) is
going away.

Change-Id: I1ead05f8d74800a29c315ca4ca74577e89314882
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
12 years agoDebugger: Code cleanup for Inspect Tool
Simjees Abraham [Mon, 16 Apr 2012 13:14:12 +0000 (15:14 +0200)]
Debugger: Code cleanup for Inspect Tool

Code cleanup done for Inspect Tool. Member variables removed which were
not required.

Change-Id: I74ab43c4e8bf39d00a5428bb6219653b7887c46d
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
12 years agoQPointer used instead of QWeakPointer
Simjees Abraham [Mon, 16 Apr 2012 09:33:41 +0000 (11:33 +0200)]
QPointer used instead of QWeakPointer

Correctly used QPointer instead of QWeakPointer in QuickViewInspector
and Highlight classes.

Change-Id: I579bd148e71803b029d7a036cdcb7255740dbd91
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>