Alan Alpert [Tue, 1 May 2012 04:08:24 +0000 (14:08 +1000)]
Update Screen documentation
Task-Number: QTBUG-25031
Change-Id: Ie27b42417d63d50769eedcf1f760405861f439e5
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Yann Bodson [Thu, 3 May 2012 05:00:33 +0000 (15:00 +1000)]
Fix alignment bug in QQuickText with multi-line text and implicit width
If the horizontal alignment is not left and the width of the text is not
known during the first pass, we need to relayout once we know the
maximum line width.
Task-number: QTBUG-18617
Change-Id: I0cad100946beda151034067e23439185684de144
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Andrew den Exter [Thu, 3 May 2012 03:03:29 +0000 (13:03 +1000)]
Ensure the cursor rectangle is updated when preedit text changes.
Updating only when the cursor position changes isn't enough because
changing pre-edit text changes the width of the pre-edit area and
the x offset of all cursor positions within it.
Change-Id: I3c0a5e4ad4714a903ca84c1a25374491f34d95a0
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Charles Yin [Wed, 2 May 2012 23:55:48 +0000 (09:55 +1000)]
Add a static flag to avoid unnecessary QQmlData::init() calls
Change-Id: I0b38753bfaf2d1e22ab67977001b946a686b0f56
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
sh kim [Thu, 22 Mar 2012 02:19:43 +0000 (11:19 +0900)]
Fix build error when QT_NO_FILESYSTEMWATCHER is set
Change-Id: I41cd921f6f779b8103e8dbef9c1f8e8e661fb4ad
Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
Yann Bodson [Wed, 2 May 2012 04:29:20 +0000 (14:29 +1000)]
Fix QQuickImage tiling_QTBUG_6716 and mirror tests.
QQuickView::grabFrameBuffer doesn't crash on mac anymore.
Also update mirror test to reflect the way we handle tiling now
(centered if no horizontal or vertical alignment set).
Task-number: QTBUG-21688
Change-Id: Ifaa321ac0914840562ee61241c8f30d8fe8e8f04
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Laszlo Agocs [Wed, 2 May 2012 11:15:13 +0000 (14:15 +0300)]
Transform the velocity taken from touch event
Change-Id: Ib90531f4526fad0c51b2f2e1e7c5ebcff4f5dec8
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Glenn Watson [Wed, 2 May 2012 04:20:42 +0000 (14:20 +1000)]
Mark image particle material as requiring full matrix.
The image particle shader does additional transformations to the
incoming vertex positions. This change notifies custom renderers
to avoid any optimizations that may break this functionality.
Change-Id: I82353d689a1d19b4edf2cc91e42164e6a1f75b6b
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Damian Jansen [Mon, 30 Apr 2012 05:54:20 +0000 (15:54 +1000)]
Gradient doc fix
4.7 -> 5.0
Change-Id: I76413bdd7812342015727c73c56a576d603c9830
Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
Bea Lam [Tue, 1 May 2012 07:48:34 +0000 (17:48 +1000)]
Fix compile warning
Change-Id: Iccbb17c929f7966bb1cfa21437434d9a9a6a04ee
Reviewed-by: Bea Lam <bea.lam@nokia.com>
Kent Hansen [Thu, 26 Apr 2012 09:10:04 +0000 (11:10 +0200)]
Port tst_qquickshadereffect to QMetaMethod-based connectNotify()
The const char *-based API is deprecated and will be removed in Qt5.
Change-Id: Ib265719c4314f260f2cf0ee478990658449ca7d5
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Yann Bodson [Mon, 16 Apr 2012 00:12:38 +0000 (10:12 +1000)]
Improve QQuickText tests
Test list support and make sure that we paint the text elements.
This should also improve QQuickTextNode code coverage.
Change-Id: I96c24cc452c6a4cf16064d580738e6764d859812
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Bea Lam [Mon, 30 Apr 2012 02:55:45 +0000 (12:55 +1000)]
Fix content pos adjustment when resizing first item
If visibleItems.first() changes size in a ListView, the size change
should be made in the direction of the content flow. This was not
working correctly for layouts other than the default vertical+LTR
layout. This patch fixes the issue for other layouts and also fixes
resizing of implicitly sized delegates (e.g. positioners) within the
default layout.
Change-Id: Ib1d84ce000a3a341fe617cf644420dc5d589d577
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Charles Yin [Tue, 1 May 2012 04:32:04 +0000 (14:32 +1000)]
Remove init() call from QQmlData's ctor.
This static method only needs to be called once and is already called
in QQmlEnginePrivate::init() method.
Change-Id: If2ea46ed06dca068164116b3f0b04cc404a18fb5
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
Yann Bodson [Tue, 1 May 2012 01:29:00 +0000 (11:29 +1000)]
Remove warning
Enumeration value 'AlignJustify' was not handled in switch.
Change-Id: Id93f1002c8ec8fcf9da78d7d9b81516044f71c9d
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Michael Brasser [Thu, 26 Apr 2012 06:12:21 +0000 (16:12 +1000)]
More robust tracking of signal handler expression ownership.
Reference count the expressions, and improve testing.
Change-Id: I810509eae1c7608b367e9ff5f7891a294667a692
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Charles Yin [Thu, 22 Mar 2012 02:27:30 +0000 (12:27 +1000)]
Consolidate SignalSpy item
1. Add signalArguments to track emitted signal parameters
2. Add valid property to track signal connection status
3. Make count, valid, signalArguments read only properties
Task-number: QTBUG-18531
Change-Id: I08e99c1086786a0e5095bf0d04750dec33153fde
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Topi Reinio [Wed, 18 Apr 2012 12:55:02 +0000 (14:55 +0200)]
Keep XMLHttpRequest response data after receiving a server error
Fix XMLHttpRequest.responseText being set to empty string whenever a
server status code other than '200/OK' is received. XMLHttpRequest
specification says that response entity body is to be returned unless
the error flag is set, and the flag is set only in case of abort() or
network error. This change enables clients to receive additional error
information the server may return in the response body.
http://www.w3.org/TR/XMLHttpRequest/#the-responsetext-attribute
Task-number: QTBUG-21706
Change-Id: I7e44f481494dc7eddea3868d6f92ee45d7ab0c69
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
Reviewed-by: Bea Lam <bea.lam@nokia.com>
Matthew Vogt [Fri, 27 Apr 2012 06:09:22 +0000 (16:09 +1000)]
Ensure context is valid before VME method creation
Ensure that a valid context exists prior to evaluation of a VME method
function. Invalid contexts can occur if a method's first invocation is
triggered after the destruction of the component's context.
Task-number: QTBUG-25516
Change-Id: I349a73c5713e178f920c44f5ddcaa1dc6eec199f
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Charles Yin [Mon, 23 Apr 2012 04:11:31 +0000 (14:11 +1000)]
Prevent object being delete by GC before object is fully created
Add a new flag inCreation to QQmlData. Set it to true when a top-level object begins creation,
and back to false when initial creation is finished and the object has been marked indestructible.
In the GC callback function, if inCreation is true, skip the GC and make a weak reference for next GC loop.
Change-Id: I4ec82864c52f6be0c3e6ef892474dd77d835e152
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Bea Lam [Tue, 17 Apr 2012 01:35:14 +0000 (11:35 +1000)]
populate transition for positioners
Fix positioners to apply a "populate" transition for initially added
items. This is consistent with ListView and GridView and also fixes the
behaviour from QtQuick 1.x where the positioners were instead running
the "move" transition for initially added items.
Change-Id: Ib43f1141ce3e7379df085c178b684f89b8567403
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Frederik Gladhorn [Fri, 27 Apr 2012 09:36:16 +0000 (11:36 +0200)]
Rename absorb to enabled.
This makes the code easier to read.
Change-Id: Id0deca6e9bdbcf7291eaa30fda0ec5b76bbf5bf6
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@nokia.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Gunnar Sletta [Tue, 24 Apr 2012 12:31:20 +0000 (14:31 +0200)]
Improved scene graph docs
Change-Id: I013e8eba2c13bd7abb01d2116af2e72c99ea5921
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Andrew den Exter [Fri, 27 Apr 2012 06:35:12 +0000 (16:35 +1000)]
Elaborate on drag and drop and model view examples with snippets.
Change-Id: I8a6874c4bb480ed9bcc59e743b97d439f053840e
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Alan Alpert [Fri, 27 Apr 2012 02:09:01 +0000 (12:09 +1000)]
Mention the common usecase for classBegin in QQmlParserStatus doc
Change-Id: I17800a5f03831750432eab2775a47f6146733e92
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Jerome Pasion [Fri, 27 Apr 2012 08:47:36 +0000 (10:47 +0200)]
Whitespace fix in the source code.
Change-Id: I1ff9d3f72102807fc07c0519287fbc990b9c37a1
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Matthew Vogt [Thu, 26 Apr 2012 01:05:41 +0000 (11:05 +1000)]
Ensure external value types are initialized before write
Ensure that the logic used when writing to a property having a value
type provided by an external module matches that used for properties
of internal value types.
Change-Id: I925b8b30a211ef813e2a51134411a162b0b146b5
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Yann Bodson [Fri, 27 Apr 2012 06:50:52 +0000 (16:50 +1000)]
Fix typo in documentation
Change-Id: Ia3cc61b2af7a68e15ad9668dc67275e8a2386a8c
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Pekka Vuorela [Tue, 24 Apr 2012 13:46:27 +0000 (16:46 +0300)]
TextEdit to honor input direction on neutral text
Text with neutral direction, such as e.g. plain spaces, do not
need to make text left aligned on arabic input method.
Change-Id: I9aab5244ec47cf80fb2ba0f83e7087430eb2c7bb
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
Pekka Vuorela [Fri, 20 Apr 2012 14:18:53 +0000 (17:18 +0300)]
Fix TextEdit with right aligned text when size changes
Geometry change was avoiding updating size of the QTextDocument, thus
it was not able to right align before something else triggered size
change, e.g. a modification to the text. Also removed unnecessary
cursorRectangleChanged signal that was emitted when moving focus with
mouse.
Change-Id: I293fd5119473eb3def5acd1b3fbb951c12e14412
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
Pekka Vuorela [Fri, 13 Apr 2012 14:49:52 +0000 (17:49 +0300)]
QQuickTextInput aligment to follow input method on neutral content
Earlier input method was followed only on empty editor. This made
inputting one space character with arabic to be visualized left to
right.
As related change arabic numbers are aligned right even though the
flow goes left to right.
Change-Id: I36448949569f6290faad69de14df424575d8b97e
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
Frederik Gladhorn [Thu, 26 Apr 2012 16:26:43 +0000 (18:26 +0200)]
Fix typos.
Change-Id: I770f74c1aa323e9ec924da13d1ccd7747ac0def3
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Jerome Pasion [Thu, 26 Apr 2012 14:15:24 +0000 (16:15 +0200)]
Doc: Fixing errors due to incorrect QDoc commands.
-\hint, \QQV are not supported
-fixed \a
-\sa requires a comma to separate entries
Change-Id: Iae68fd92d7fbc5988e4ec801ab095fd717728036
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Jędrzej Nowacki [Thu, 19 Apr 2012 12:38:38 +0000 (14:38 +0200)]
Avoid calling gc in QQmlEngine destructor.
GC may be expensive. GC call in QQmlEngine doesn't have much sense
because V8 will destroy all objects living in a current context.
The only problem is that V8 may decide to not invoke weak callbacks
which may cause a memory leak. To avoid that we track all QObjects that
have JavaScript ownership set and we delete them explicitly.
The change reduce time of destroying QQmlEngine by 75%, which is really
visible in qquicklistmodel test.
Change-Id: I2a3668fd23630669114baee8c241a7ecc4100e33
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Rohan McGovern [Fri, 27 Apr 2012 05:16:30 +0000 (15:16 +1000)]
Removed parallel_test from parallel-unsafe autotest.
This autotest passes when run alone, but sometimes fails when run
concurrently with other tests.
Change-Id: Iaaedd29eea994bbf31344957ba24488936451ecc
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Andrew den Exter [Thu, 19 Apr 2012 01:08:28 +0000 (11:08 +1000)]
Fix bounding rects of text items.
Ensure the rectangles are correctly positioned with right
and center aligned text, not just sized correctly. Also add
padding to the clip rects so the cursor and styled text aren't
clipped at the item boundaries.
Change-Id: I03ef140589154ebd49b600b0a4c4fbeff845c10f
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Andrew den Exter [Fri, 27 Apr 2012 01:30:34 +0000 (11:30 +1000)]
Don't do a layout for wrapping if there is no width binding.
If no width has been set on the TextEdit then the text will never wrap
so we can skip the layout on geometry changed.
Task-number: QTBUG-25489
Change-Id: I3aa8dcedeeed0792f3135a4a01f90f24941d01b3
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Andrew den Exter [Fri, 27 Apr 2012 01:06:12 +0000 (11:06 +1000)]
Propagate left key presses to the parent item when TextInput is empty.
Don't overwrite the ignore value once it's been set to true.
Task-number: QTBUG-25447
Change-Id: I7284147bc525d0971564570f0dd0599cec190905
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>