Lars Knoll [Fri, 13 Feb 2015 08:30:11 +0000 (09:30 +0100)]
Get rid of Value::fromManaged()
Change-Id: Ifb889e4b270dee8350a9c8f7559c671413995e4b
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Lars Knoll [Fri, 13 Feb 2015 08:02:28 +0000 (09:02 +0100)]
Reduce dependencies
Change-Id: I4190c1a6d8a06a130e50cb727feafa7cf11f21cd
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Lars Knoll [Fri, 13 Feb 2015 07:29:56 +0000 (08:29 +0100)]
Wrap members in Object in a Heap::Pointer
Change-Id: I0d132592487255027c215da21fbec15b23b00624
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Lars Knoll [Thu, 12 Feb 2015 21:17:37 +0000 (22:17 +0100)]
Reduce dependencies
Change-Id: I61ee4d25f8929d6723d2bf371efc122fa317e851
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Lars Knoll [Sat, 14 Feb 2015 21:46:19 +0000 (22:46 +0100)]
Fix assert
Change-Id: I4b75a95bd7c59943d06bce7572bc0636b00fc5a9
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Liang Qi [Wed, 18 Mar 2015 09:55:14 +0000 (09:55 +0000)]
Merge "Merge remote-tracking branch 'origin/5.5' into dev" into refs/staging/dev
J-P Nurmi [Tue, 17 Mar 2015 16:17:51 +0000 (17:17 +0100)]
Move QtQuick validators out of qquicktextinput_p.h
TextField (v2) inherits QQuickTextInput, and therefore has to include
qquicktextinput_p.h. Move the internal Q_AUTOTEST_EXPORT'd classes out
of the header to avoid build problems on Windows due to missing symbols
Change-Id: I6f37cf4e112425ff6c4c0a4ccc5e584f26599d8a
Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
Mikko Harju [Tue, 17 Mar 2015 21:08:18 +0000 (23:08 +0200)]
Restore depth buffer usage when last render node is removed
Adding a QSGRenderNode to the scene permanently disabled opaque batches
by disabling depth buffer usage. Reset the depth buffer usage to the
default value once last QSGRenderNode has been removed from the scene.
Change-Id: I760afde83ae9eaaf1b5571c37fd0081eb23b1f20
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
J-P Nurmi [Thu, 5 Mar 2015 09:12:20 +0000 (10:12 +0100)]
Text: add support for padding
[ChangeLog][QtQuick][Text] Added padding, leftPadding, topPadding,
rightPadding and bottomPadding properties.
Task-number: QTBUG-41559
Change-Id: I5aa3a9eaad86de5e49d8e2da2a9f583e9a17222b
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Alan Alpert [Tue, 17 Mar 2015 01:49:46 +0000 (18:49 -0700)]
Fix use of qml versioning in qml
The bumping of a version number shouldn't "unpublish" any types.
Change-Id: I01ceb70442cb6643478f75bb5729f3db7c989bfa
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Reviewed-by: Alan Alpert (Personal) <416365416c@gmail.com>
Liang Qi [Tue, 17 Mar 2015 15:39:43 +0000 (16:39 +0100)]
Merge remote-tracking branch 'origin/5.5' into dev
Change-Id: I9f4f561a6399b22c5f423dd853b07bffc9deebfc
Frederik Gladhorn [Tue, 17 Mar 2015 12:08:08 +0000 (12:08 +0000)]
Merge "Merge remote-tracking branch 'origin/5.4' into 5.5" into refs/staging/5.5
Simon Hausmann [Tue, 17 Mar 2015 08:38:29 +0000 (09:38 +0100)]
Update Ecmascript testsuite submodule
Changed the url and sha1 to the new repository that lives next to qtdeclarative
Change-Id: I39dd50490c635e1a2858afc913cfcbbf10302fa1
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
Erik Verbruggen [Tue, 17 Mar 2015 08:52:26 +0000 (09:52 +0100)]
Tests: initialize pointer class member field.
'cause valgrind complained.
Change-Id: I9f18b3c8adaab8a893b8f6d685b19b2d042ccef7
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Jørgen Lind [Wed, 11 Mar 2015 13:39:40 +0000 (14:39 +0100)]
Repeater: Don't rely on the createFrom variable
since this breaks for asynchronous models, because item creation order
is not guaranteed. We always have the index
for what item to create, so we do not need it either.
Change-Id: Ib8ce25ac342f5cce4784c56e6a91cf70136566b3
Task-number: QTBUG-38879
Task-number: QTBUG-39001
Task-number: QTBUG-44250
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
Simon Hausmann [Tue, 17 Mar 2015 08:32:34 +0000 (09:32 +0100)]
Merge remote-tracking branch 'origin/5.5' into dev
Change-Id: I6033aba359ac551f450ad517d20a0986bf4655f6
Frederik Gladhorn [Tue, 17 Mar 2015 08:48:35 +0000 (09:48 +0100)]
Merge remote-tracking branch 'origin/5.4' into 5.5
Change-Id: I4c338a44c1d64c2d8e637971ab3ec6982c40a685
Kevin Ottens [Thu, 5 Mar 2015 10:46:46 +0000 (11:46 +0100)]
Don't limit to files ending with .qml
Especially useful when the program is invoked indirectly by a shell
running the QML file like an executable.
Such script executable often don't have an extension to make their
invocation look like that of binary executables.
[ChangeLog][QtQml] Make it possible to make script without .qml suffix
Change-Id: I5a569bdea185cfa60ce68afa27ae03278b1acdb8
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Aleix Pol [Fri, 27 Feb 2015 15:39:21 +0000 (16:39 +0100)]
Fix warning
If the arguments of console.timeEnd are wrong, say it's timeEnd instead of
time.
Change-Id: Ida8a76cd452cf3aecc03e5064bbf213333d93a03
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Simon Hausmann [Mon, 9 Mar 2015 15:39:32 +0000 (16:39 +0100)]
Fix usage of QtQmlDevTools private headers on OSX with framework builds
Previously this module borrowed its private headers from QtQml, so that
when writing QT += qmldevtools-private, you'd get the private headers from
QtQml. This doesn't work when QtQml is built as a framework.
A cleaner solution is to give this module its headers proper by letting
syncqt create the forwarding headers correctly (and consequently also
include them in make install). In order for this to work, the included
headers themselves cannot include any headers from QtQml, which this
patch also takes care of, through a centralized inclusion of qv4global_p.h.
Change-Id: I9bb8337956a2774cfaca6b338369face6c6ee785
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
Simon Hausmann [Fri, 13 Mar 2015 11:47:16 +0000 (12:47 +0100)]
Remove QQmlDirParser from QtQmlDevTools
This class is not needed in the library.
Change-Id: Ie880086a849b62a2856d1f388a64d363b040cb56
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Shawn Rutledge [Wed, 11 Mar 2015 15:02:33 +0000 (16:02 +0100)]
PathView: use qt.quick.itemview.lifecycle logging category
It is the same for debugging delegate cycling in ListView.
Task-number: QTBUG-42716
Change-Id: I54b83a25a5d8473c643cd326fe114317103bb24e
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Gabriel de Dietrich [Thu, 12 Mar 2015 17:45:54 +0000 (18:45 +0100)]
Acknowledge QPersistentModelIndex is a built-in meta-type
We remove the now unnecessary meta-type registration and
conversions for QPersistenModelIndex.
This reverts and amends commit
7b29a983fa794291ff8ec.
Change-Id: I4e8346bb7ab03766e1dd5c2c23bb6cf47ab1f455
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Kai Koehne [Thu, 12 Mar 2015 08:41:08 +0000 (09:41 +0100)]
Remove bogus autotests for invalid ports
Qt itself doesn't prevent opening a socket in the reserved port range.
So what these tests actually check is the system configuration, not Qt.
Task-number: QTBUG-44952
Change-Id: Iee6d6d1a5a7a0f4d2039300ccbbbe8bf55a519b9
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Kai Koehne [Thu, 12 Mar 2015 09:45:33 +0000 (10:45 +0100)]
Fix qqmldebuggingenabler autotest
The test calls itself as a qml debug server. This requires
the debugging functionality to be enabled.
Task-number: QTBUG-44952
Change-Id: I462d035ff7ed722008f3710c6db90e5640546be2
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
Laszlo Agocs [Tue, 10 Mar 2015 15:59:08 +0000 (16:59 +0100)]
Handle context loss in the threaded render loop
Change-Id: I3f9219dd2fed15094c2f7d670a981406e601959b
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Friedemann Kleint [Thu, 26 Feb 2015 15:20:43 +0000 (16:20 +0100)]
tst_QQuickPathView::mouseDrag(): Skip on Windows if drag fails to start.
The test can be thrown off by external mouse move events which
influence the calculation of the drag distances. It is not clear where
they originate from on the CI.
FAIL! : tst_QQuickPathView::mouseDrag() 'pathview->isMoving()' returned FALSE. ()
tst_qquickpathview.cpp(1506) : failure location
Change-Id: I398304b5597579033df81e1d0d32b2a3ab5516d6
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Lars Knoll [Mon, 9 Mar 2015 09:13:25 +0000 (10:13 +0100)]
Don't evaluate the expression in switch() multiple times
The old code would evaluate the expression in the switch
statement once for every case label. This is not only slower
than it should be, but can also lead to unexpected results in
case the expression doesn't always evaluate to the same value
or has side effects.
Task-number: QTBUG-41630
Change-Id: Id93baca7e3aa09ce884967ef6524d4c4f055bcd6
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Andrew den Exter [Mon, 9 Mar 2015 06:47:16 +0000 (16:47 +1000)]
Fix flickable stealing gestures when height >= contentHeight.
Or width >= contentWidth.
If newY is equal to both maxY and minY then the second assignment to
rejectY can clobber the first. Changing the second assignment to an
|= means rejectY is true if either is true.
Secondly maxY became positive when height was greater than contentHeight
instead of having a maximum of 0, which ensured rejectY evaluated to false
in the case newY <= maxY and the mouse was stolen.
Change-Id: I6416d0e23c3ef898887a7b3e3fcdc1dc12853548
Reviewed-by: Martin Jones <martin.jones@qinetic.com.au>
Thiago Macieira [Sat, 7 Mar 2015 22:42:59 +0000 (14:42 -0800)]
qt quick particles: Fix const correctness in old style casts
Found with GCC's -Wcast-qual.
Change-Id: Ia0aac2f09e9245339951ffff13c958e1d7c929c0
Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
Gunnar Sletta [Tue, 10 Mar 2015 06:25:35 +0000 (07:25 +0100)]
Export QQuickImage, we need it in QtGraphicalEffects.
Change-Id: I91bf90b41cdcab4beb7dbf6bf770bd251561a258
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Andrew Knight [Mon, 9 Mar 2015 20:55:23 +0000 (22:55 +0200)]
Fix clang warning
Removes "warning: first declaration of static data member specialization
of 'static_vtbl' outside namespace 'QV4' is a C++11 extension" by
placing the declarations inside the QV4 namespace.
Change-Id: I9a31874430900a200e83c42ff6c1afc36f0431e1
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Valery Kotov [Wed, 4 Mar 2015 19:57:14 +0000 (21:57 +0200)]
QML Engine: ArrayBuffer XHR response type support
Support for "arraybuffer" response type for QQmlXMLHttpRequest was
added.
[ChangeLog][QtQml][QQmlXMLHttpRequest] QQmlXMLHttpRequest now
supports "arraybuffer" binary response type.
Change-Id: I866e543cc7bc6ab037ffff1ef6628057b73daf90
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Caroline Chao [Wed, 4 Mar 2015 09:51:28 +0000 (10:51 +0100)]
testlib: Fix qml objects not deleted between data tests
Call wait(0) after the cleanup() function and not only at
the end of the test run (wait(0) is used to call processEvents()).
Otherwise, eventual destroy() calls in test function are not executed
between data tests.
Task-number: QTBUG-30523
Task-number: QTBUG-42185
Change-Id: I1d588ee28c61cda835e25307bc1c565d68b741fe
Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
Venugopal Shivashankar [Fri, 6 Mar 2015 13:18:03 +0000 (14:18 +0100)]
Doc: Removed the release notes for Qt Quick and Qt Qml
These pages were not maintained and were duplicating
info. provided in the what's new page provided for
each release.
Change-Id: I2ee4010de22ef3fb394e3bcdb6adb15db59a2cc9
Task-number: QTBUG-43235
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: Sami Makkonen <sami.makkonen@digia.com>
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
Laszlo Agocs [Mon, 9 Mar 2015 10:46:25 +0000 (11:46 +0100)]
Re-enable readback test in tst_qquickwidget
This seems to work now.
Task-number: QTBUG-39917
Change-Id: I01bbc9b7ddfbb003265479eaa2282e39eebf35c5
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Laszlo Agocs [Mon, 9 Mar 2015 10:51:31 +0000 (11:51 +0100)]
Add missing flush for multisampled QQuickWidget
Otherwise we might be using a half-ready texture when performing compositing.
The issue was very visible on OS X at least.
Task-number: QTBUG-39917
Change-Id: I71326cb99567f458a6ca7a2cad322a315ee6674f
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Eskil Abrahamsen Blomfeldt [Mon, 2 Mar 2015 08:51:44 +0000 (09:51 +0100)]
Reduce number of allocations when constructing text nodes
In cases where you have a huge number of text elements that
can be merged, we would do a lot of reallocations (one per
node that would be merged into another). As the number of
merges grew, this seemed to converge at about 50% of the time
spent in updatePaintNode() in the text classes.
We can almost eliminate this cost by only doing one realloc
per node that will actually end up in the scene graph.
This patch does a first pass where it simply bundles together
nodes that can be merged. Then it does a second pass where it
actually merges the nodes. In this second pass it can easily
precount the required size of the arrays and we can limit
it to a single realloc.
Task-number: QTBUG-37365
Change-Id: I4e44c01cd83df39304cbbce34f3b8f773763e091
Reviewed-by: Michael Brasser <michael.brasser@live.com>
Sergio Ahumada [Thu, 12 Feb 2015 10:47:53 +0000 (11:47 +0100)]
Add test data for tst_GuiAppLauncher
Change-Id: I6a93f19850325379598eb57f2a9ea304cebe558f
Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
Reviewed-by: Sergio Ahumada <sahumada@texla.cl>
Daiwei Li [Sat, 28 Feb 2015 07:56:12 +0000 (23:56 -0800)]
Implement cache property for QQuickAnimatedImage
Some longer and larger .gifs can consume a lot of memory
if every decoded frame is cached. Just as the backing QMovie
provides the ability to not cache frame, so should AnimatedImage.
This also allows a workaround for some animated image types
that can contain loops that aren't handled correctly (QTBUG-24869)
to not leak memory.
Change-Id: I0639461d75bb2c758917893e7a6ae5c215fffa9d
Task-number: QTBUG-44447
Task-number: QTBUG-24869
Task-number: QTBUG-28844
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Frederik Gladhorn [Fri, 6 Mar 2015 12:54:39 +0000 (12:54 +0000)]
Merge "Merge remote-tracking branch 'origin/5.4' into 5.5" into refs/staging/5.5
Gabriel de Dietrich [Fri, 6 Mar 2015 12:48:10 +0000 (13:48 +0100)]
QV4::Primitive: Help clang disambiguate symbols
Change-Id: Ie20e6081b80e8f177991ac8aafda054c11b1620c
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Gabriel de Dietrich [Fri, 6 Mar 2015 11:16:18 +0000 (11:16 +0000)]
Merge "Merge remote-tracking branch 'origin/5.5' into dev" into refs/staging/dev
Gunnar Sletta [Fri, 6 Mar 2015 10:39:49 +0000 (11:39 +0100)]
Make sure we deref an item from its window.
We should compare against our own window, not our parent's.
The ref/deref logic for items is there to aid us with having "property
var foo: Image { }" in ShaderEffects, where the property is a
parentless member of a given window. The shader effect would ref
all member properties which are used as samplers, giving these items
the same d->window as itself.
As a consequence, it is wrong to check the old parent's window when it
is the item itself that knows which window it is attached to.
Change-Id: Ic34354fd86b52a7334f9757bf408bef0e25ecfd5
Task-number: QTBUG-43376
Reviewed-by: Andrew den Exter <andrew.den.exter@qinetic.com.au>
Gabriel de Dietrich [Fri, 6 Mar 2015 10:03:27 +0000 (11:03 +0100)]
Merge remote-tracking branch 'origin/5.5' into dev
Conflicts:
src/quick/items/qquicktextedit.cpp
Change-Id: I354093ceb996aae40254f2143dec2bb74cf5eb17
Kevin Ottens [Thu, 5 Mar 2015 10:46:38 +0000 (11:46 +0100)]
qml tool: don't process the command name
The first argument is the command name. There's no need to
compare it against possible arguments.
Change-Id: I776f10b6872286f89f07582b81d4990260ef9ddc
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
J-P Nurmi [Wed, 4 Feb 2015 17:00:53 +0000 (18:00 +0100)]
TextEdit: add support for padding
This makes it possible for TextArea to inherit TextEdit, reserve
space for the decoration, and set the desired property defaults
without having to create dozens of property aliases.
[ChangeLog][QtQuick][TextEdit] Added padding, leftPadding, topPadding,
rightPadding and bottomPadding properties.
Task-number: QTBUG-41559
Change-Id: I4fa22f86e6151524a63b2b862f17bc9d6a713142
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
J-P Nurmi [Mon, 2 Feb 2015 16:51:16 +0000 (17:51 +0100)]
TextInput: add support for padding
This makes it possible for TextField to inherit TextInput, reserve
space for the decoration, and set the desired property defaults
without having to create dozens of property aliases.
[ChangeLog][QtQuick][TextInput] Added padding, leftPadding, topPadding,
rightPadding and bottomPadding properties.
Task-number: QTBUG-41559
Change-Id: Iaa7697a10a6f66685c7cae454edf4c1984d411bc
Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Thiago Macieira [Mon, 16 Feb 2015 19:37:55 +0000 (11:37 -0800)]
Fix build: QString needs to be fully-defined for QString()
qqmldebug.h:46:71: error: invalid use of incomplete type ‘class QString’
qglobal.h:651:7: error: forward declaration of ‘class QString’
Change-Id: I1a800c709d3543699131ffff13c3797acbc19956
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
Gabriel de Dietrich [Thu, 5 Mar 2015 20:32:43 +0000 (21:32 +0100)]
tst_qqmlitemmodels: Remove pointless QVariant::type() checks
Change-Id: If817b30aad08fa32697feab7ba4035d66309ed10
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Ruslan Nigmatullin [Thu, 26 Feb 2015 22:52:11 +0000 (14:52 -0800)]
TextEdit: Block's update should update paint node
QQuickTextEdit::invalidateBlock method marks nodes as dirty but doesn't
call QQuickItem::update(). Because of that it's impossible to
rehighlight text by QSyntaxHighlighter.
Task-number: QTBUG-44765
Change-Id: Ibfd973430cf00927dbec027d129c6d722634575e
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Maurice Kalinowski [Thu, 5 Mar 2015 07:31:50 +0000 (08:31 +0100)]
WinRT: Set alignment boundary to page size
This is a hard requirement from the QQmlEngine internals since 5.5 and
otherwise causes crashes inside the engine.
Change-Id: Id25f465576a0095f5b34da469abe761d3f3bd866
Reviewed-by: Andrew Knight <andrew.knight@intopalo.com>
Nico Vertriest [Fri, 27 Feb 2015 14:26:49 +0000 (15:26 +0100)]
Doc: Changed title GridView example
Changed title to avoid conflict
between GridView QML type and example
Task-number: QTBUG-44640
Change-Id: I59c83489e4029c1586ec462f6643fff0ef80155d
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
Gabriel de Dietrich [Thu, 5 Mar 2015 11:30:58 +0000 (12:30 +0100)]
Work around QPersistentModelIndex being a built-in meta-type
This is a temporary work-around and will be removed once
I63d733d1eb66aa61691e7afce27fe7372a83ac00 is merged in qtbase.
Change-Id: I6cfcf1ddc2c9d408c26c171be865d40141de7fa0
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Friedemann Kleint [Wed, 4 Mar 2015 10:27:27 +0000 (11:27 +0100)]
Fix invocations of static methods of QGuiApplication/QCoreApplication.
Change-Id: I7bcc209b0c6e77cf6d974af85a19487345a48975
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
Sergio Ahumada [Wed, 4 Mar 2015 22:00:59 +0000 (23:00 +0100)]
Doc: Replace qt-project.org/doc with doc.qt.io
Change-Id: Ib693ac8d48ab943a3c26a49ab4fca91f0c5f0b0e
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Thiago Macieira [Tue, 17 Feb 2015 00:17:21 +0000 (16:17 -0800)]
Fix thread-safety: _POSIX_THREAD_SAFE_FUNCTIONS is in <unistd.h>
If you don't include it, it isn't defined...
Change-Id: I1a800c709d3543699131ffff13c388ba652761fc
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Dmitry Shachnev [Sat, 28 Feb 2015 11:29:52 +0000 (14:29 +0300)]
Disable JIT on x32 ABI
Linux x32 interface has a different ABI, and our JIT does not work there,
so it should be disabled.
See <http://en.wikipedia.org/wiki/X32_ABI>.
Done-with: Adam Borowski <kilobyte@angband.pl>
Change-Id: I0771e48a51f999a97b49abc01ee72621a5aaa6c3
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Frederik Gladhorn [Tue, 3 Mar 2015 17:22:51 +0000 (17:22 +0000)]
Merge "Merge remote-tracking branch 'origin/5.5' into dev" into refs/staging/dev
Frederik Gladhorn [Tue, 3 Mar 2015 17:21:56 +0000 (18:21 +0100)]
Merge remote-tracking branch 'origin/5.4' into 5.5
Conflicts:
src/qml/jsruntime/qv4numberobject.cpp
Change-Id: I4e66a03ef4d99cec192c9da30c028fd8c1f4ac0d
Frederik Gladhorn [Tue, 3 Mar 2015 17:13:37 +0000 (18:13 +0100)]
Merge remote-tracking branch 'origin/5.5' into dev
Change-Id: I94f8ae93d76bd5c120de25d9c238701afe8bfbd0
Liang Qi [Mon, 2 Mar 2015 14:27:38 +0000 (15:27 +0100)]
TextEdit: add editingFinished signal
Autotest is included.
[ChangeLog][TextEdit] add editingFinished signal
Task-number: QTBUG-44734
Change-Id: Ib632e589419758bea09442e6efcf4d977b9a13e8
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Michael Brasser [Mon, 2 Mar 2015 22:32:50 +0000 (16:32 -0600)]
Use of fullsize distance field textures should be font-dependent.
This shouldn't be a static decision as the glyph count depends on the
font.
Change-Id: I67ea98595505df4a3a30b16e867e76f89b28c1ef
Task-number: QTBUG-29264
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
J-P Nurmi [Sun, 8 Feb 2015 22:29:59 +0000 (23:29 +0100)]
Export QQuickItemViewTransitioner & friends privately
This allows the future C++ version of QtQuick.Controls.StackView to run
proper QtQuick Transitions instead of having to run Animations by hand.
Change-Id: I259e940ed496d3449bccb2b8cca607742a703777
Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Erik Verbruggen [Wed, 28 Jan 2015 08:34:10 +0000 (09:34 +0100)]
V4: fix ToFixed rounding for 0 fraction digits.
(12.5).toFixed() should return 13, not 12.
Task-number: QTBUG-43885
Task-number: QTBUG-44039
Change-Id: Id2b19641e8c12dd5755d8447508b74567e4a2b9b
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Erik Verbruggen [Mon, 2 Mar 2015 13:35:28 +0000 (14:35 +0100)]
V4: fix regalloc for loops with many life&changing vars.
When all registers are in use, and one needs to be spilled, the register
whose use is the furthest in the future will be chosen. What needs to be
taken into account is that any use that can also work from the stack can
be skipped, because it does not require the value to be in a register.
Task-number: QTBUG-44687
Change-Id: Ide624b190603d9a22f992d4ae5daa3ce8d94472c
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@theqtcompany.com>
Erik Verbruggen [Mon, 2 Mar 2015 13:22:24 +0000 (14:22 +0100)]
V4: fix phi node use position calculation.
As phi-nodes get transformed into moves, and the moves end up right
before the terminator of the basic block of the incoming edge, the
use by that phi-node is the position of that terminator minus one.
However, when checking if uses need a register, this was not taken into
account, resulting in an invalid life-time interval split position
calculation.
Task-number: QTBUG-44687
Change-Id: I0edd416f7ee5c8ea16bf7133870be45d0e6efea9
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@theqtcompany.com>
Sergio Ahumada [Wed, 11 Feb 2015 18:44:35 +0000 (19:44 +0100)]
bic: Add 5.{3,4}.0 bic data for QtQuickWidgets
this is a new module since Qt 5.3
Change-Id: I9d33ba8f046190f649643302ddc343cbe6e649ed
Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
Reviewed-by: Sergio Ahumada <sahumada@texla.cl>
Lars Knoll [Thu, 12 Feb 2015 20:16:42 +0000 (21:16 +0100)]
Move memory management related functionality into it's own folder
Start moving the memory related functionality into it's own folder.
This will simplify refactoring of the GC related functionality later
on.
Change-Id: I70ec6f512af7a7897625afb84d914c17572b0ccd
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Lars Knoll [Thu, 12 Feb 2015 20:03:53 +0000 (21:03 +0100)]
Introduce a Heap::Pointer class
This is required to properly mark pointers to other heap
objects, as well as to have a single point where to implement
a write barrier later on.
Change-Id: I7d57044f1a306ca8da8183793635ed49a3637146
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Eskil Abrahamsen Blomfeldt [Mon, 2 Mar 2015 12:17:04 +0000 (13:17 +0100)]
Avoid assert in rich text when img width is invalid
If you set the width or height of an <img> tag to something
invalid, this will be registered as -2 by the HTML parser.
We should treat this case the same as if there is no width/height
specified and use the implicit size instead.
[ChangeLog][Text] Fixed assert when setting an invalid width or
height on an <img> tag in a text element.
Change-Id: Iae8c33fa184316632f72318e71f26ab005645a21
Task-number: QTBUG-44743
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Caroline Chao [Fri, 27 Feb 2015 11:11:58 +0000 (12:11 +0100)]
testlib: Introduce MouseDoubleClickSequence() method
The existing method MouseDoubleClick() emulates the mouse
double click event only.
The added method MouseDoubleClickSequence() emulates the full
sequence of mouse events a physical double-click would generate:
Press-Release-Press-DoubleClick-Release
Introducing a new method in order to provide convenience when a
test requires to simulate a complete double-click action without
changing the behavior of MouseDoubleClick() and risking to break
existing tests.
Add autotest.
Task-number: QTBUG-42185
Change-Id: I1cdddd9e21d3b1d8a818f6d4e3717b06b7d70e08
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Shawn Rutledge [Fri, 27 Feb 2015 07:14:49 +0000 (08:14 +0100)]
QQuickWindow: rename deliverGestureEvent to deliverNativeGestureEvent
Native gestures are distinct from QGestureEvent, and we might need
another deliver method for those eventually.
Change-Id: I969c9b830d1dc7a91ffbc6cae2bdb68552a58344
Reviewed-by: Andrew Knight <qt@panimo.net>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
Shawn Rutledge [Fri, 27 Feb 2015 07:11:20 +0000 (08:11 +0100)]
QQuickWindow: move deliverGestureEvent outside QT_NO_WHEELEVENT section
Turning off support for wheel events does not affect gesture support.
Change-Id: I64a110327179d62a69864979396b92472c53285e
Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
Reviewed-by: Andrew Knight <qt@panimo.net>
Friedemann Kleint [Mon, 23 Feb 2015 12:45:44 +0000 (13:45 +0100)]
QtQuick: Micro-optimize iterator loops.
Avoid repeated instantiation of end() in loops, use variable instead.
Change-Id: I6ab1fe2b82406d5ee91710a0333587ffb82c04d4
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
Friedemann Kleint [Mon, 23 Feb 2015 12:44:12 +0000 (13:44 +0100)]
QtQml: Micro-optimize iterator loops.
Avoid repeated instantiation of end() in loops, use variable instead.
Change-Id: I3bb1c6918cfd16a5dcefbcc03c442e99fe9bf76b
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
Michael Brasser [Fri, 20 Feb 2015 13:50:45 +0000 (07:50 -0600)]
Optimize distance field construction.
Reduce the number of times we construct a painter path from a glyph.
Change-Id: Ic1f32c78ab5dfd3b75d5442da163cda1dedab3ee
Task-number: QTBUG-42853
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Ulf Hermann [Fri, 20 Feb 2015 12:37:09 +0000 (13:37 +0100)]
Include <limits> in qqmlprofilerservice_p.h
As we use std::numeric_limits in that file we should do this.
Change-Id: Idd8da16ce062b2ef24f926bcf33de95559464bb9
Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@theqtcompany.com>
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Michael Brasser [Tue, 24 Feb 2015 15:29:15 +0000 (09:29 -0600)]
Allow glyph cache textures to be created at full size.
On embedded hardware, texture resizes can be quite slow. The glyph
cache currently often needs to resize when new glyphs are added, and
glyph additions are very frequent when using a language with a large
set of glyphs (such as Chinese).
The current glyph cache design minimizes the amount of memory used.
When QSG_PREFER_FULLSIZE_GLYPHCACHE_TEXTURES is set, and we are using
a font with a large number of glyphs, we can instead allocate max-sized
textures. This leads to significantly less time when inserting glyphs
into the cache (often incurred over a span of time), at the cost of
higher initial memory and creation times (often incurred at
application startup).
Change-Id: Id1021b9d213e5f8635c4197b624474f28c6f44ff
Task-number: QTBUG-29264
Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
Daiwei Li [Tue, 3 Feb 2015 00:34:27 +0000 (16:34 -0800)]
Fix crash in overdraw and change visualizers
It appears to be possible for node->element()->batch to be NULL
Task-number: QTBUG-43129
Change-Id: If6e4e265a02ee305bf3aa9cad387b7a73648367a
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
jian liang [Sun, 22 Feb 2015 04:27:05 +0000 (12:27 +0800)]
Fix memory leak of QSGContext object in QSGThreadedRenderLoop
Add destructor for QSGThreadedRenderLoop to destory QSGContext object.
Change-Id: I479947eb35a5d7888d45655a9b8e2ece5e30bc33
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Frederik Gladhorn [Tue, 24 Feb 2015 16:36:04 +0000 (17:36 +0100)]
Merge remote-tracking branch 'origin/5.4' into 5.5
Conflicts:
.qmake.conf
LICENSE.GPLv2
examples/qml/networkaccessmanagerfactory/view.qml
src/qml/jsruntime/qv4runtime.cpp
src/qml/jsruntime/qv4stringobject.cpp
Change-Id: I5d12f436d60995e51d5c2f59d364e9cbc24f8e32
Oswald Buddenhagen [Tue, 24 Feb 2015 15:22:42 +0000 (16:22 +0100)]
Bump version
Change-Id: I5b5e234edb901e7f38cdd21ac1148867b6f307f9
Aaron Kennedy [Thu, 29 Jan 2015 13:56:00 +0000 (14:56 +0100)]
Only heap allocate binding bits storage if needed.
For samegame, this has the following change on the total bytes allocated:
Startup (main page):
Before: 1636
After: 1072
Difference: 564 bytes (-34%)
Actual game (single player):
Before: 14120
After: 10432
Difference: 3688 bytes (-26%)
Done-with: Robin Burchell <robin.burchell@viroteck.net>
Change-Id: I29b7a79400090180f405693093f266c151260fcc
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Aaron McCarthy [Wed, 18 Feb 2015 05:53:09 +0000 (15:53 +1000)]
Handle TouchCancel events in QQuickPinchArea
QQuickPinchArea did not handle TouchCancel events and would recursively
call QQuickItem::event(). Cancel the pinch gesture by restoring the
pinch state to the start state. Don't recursively call
QQuickItem::event(), instead call QQuickItem::touchEvent() for
unhandled touch events.
[ChangeLog][QtQuick][PinchArea] Fix infinite recursion when TouchCancel
events are received.
Change-Id: Ifce4af91aec4285873cb701069e007bcee180851
Reviewed-by: Martin Jones <martin.jones@qinetic.com.au>
Friedemann Kleint [Mon, 16 Feb 2015 12:08:40 +0000 (13:08 +0100)]
Fix deprecation warnings about constructing QString from const char*.
types/qqmlmodelindexvaluetype.cpp: In static member function 'static QString QQmlModelIndexValueType::propertiesString(const QModelIndex&)':
types/qqmlmodelindexvaluetype.cpp:47:56: warning: 'QString::QString(const char*)' is deprecated (declared at qstring.h:649) [-Wdeprecated-declarations]
items/qquickimagebase.cpp: In member function 'virtual void QQuickImageBase::load()':
items/qquickimagebase.cpp:213:49: warning: 'QString::QString(const char*)' is deprecated (declared at qstring.h:649) [-Wdeprecated-declarations]
items/qquickimagebase.cpp:213:88: warning: 'QString::QString(const char*)' is deprecated (declared at qstring.h:649) [-Wdeprecated-declarations]
Change-Id: I03266aba589ade8228bc286cd3f3f237cd06a780
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
Friedemann Kleint [Wed, 18 Feb 2015 09:08:24 +0000 (10:08 +0100)]
Fix MSVC 64 bit warnings about loss of data when converting from 'size_t' to 'int'.
jsruntime\qv4arraybuffer.cpp(94) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
jsruntime\qv4persistent.cpp(53) : warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
Change-Id: I6ccef9a64ecfb53b18204b35e17421c0a5ac955b
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Robin Burchell [Sun, 8 Feb 2015 14:21:55 +0000 (15:21 +0100)]
QQuickView/QQuickWidget: Improve diagnostics message for non-QQuickItem root fallback case.
We don't want to recommend qmlscene, and QtQuick1 is being deprecated, so
there's no need to spell it out anymore either.
Change-Id: Ia4b87d1a4b3afdae9ea9c13a89ac5cb78c85f06d
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Robin Burchell [Mon, 2 Feb 2015 21:24:12 +0000 (22:24 +0100)]
QQuickView/QQuickWidget: Improve diagnostics for using a QWindow as a base item in a scene.
The current message is rather confusing, as it was aimed at users porting from
QtQuick 1 -- but it is perfectly possible to get a non-QQuickItem root in a
QQuickView scene right now with QtQuick 2 only.
Change-Id: Ibd800f8a817c874af5eaa1746567ee289988fd01
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Robin Burchell [Mon, 2 Feb 2015 21:17:41 +0000 (22:17 +0100)]
QQuickView/QQuickWidget: Report an error if rootObject ends up null.
This can happen when trying to use a non-QQuickItem item as the root item in a
QQuickView, for instance, a Window or ApplicationWindow item.
This generates a warning (correctly), but does not set an error state on the
view, so automated tooling and the like does not know that the scene was not
successfully loaded.
Change-Id: I1dc4191ef07187e9b1929995aedb01c155b0957c
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Friedemann Kleint [Fri, 20 Feb 2015 13:48:46 +0000 (14:48 +0100)]
Fix some qdoc-warnings.
qtdeclarative/src/quick/scenegraph/coreapi/qsgmaterial.cpp:384: warning: Class RenderState has no \inmodule command; using project name by default: QtQuick
qtdeclarative/src/quick/scenegraph/util/qsgsimplerectnode.cpp:39: warning: Class QSGSimpleRectNode has no \inmodule command; using project name by default: QtQuick
qtdeclarative/src/quick/scenegraph/util/qsgtextureprovider.cpp:38: warning: Class QSGTextureProvider has no \inmodule command; using project name by default: QtQuick
qtdeclarative/src/quick/items/qquickwindow.cpp:3156: warning: Cannot find 'closing(...)' in '\fn' void QQuickWindow::closing()
qtdeclarative/src/quick/items/qquickwindow.h:160: warning: No documentation for 'QQuickWindow::closing()'
qtdeclarative/src/quick/items/qquickwindow.cpp:3134: warning: Can't link to 'Window.closing()'
qtdeclarative/src/qml/qml/qqmlfileselector.cpp:90: warning: Undocumented parameter 'parent' in QQmlFileSelector::QQmlFileSelector()
Change-Id: I42cf1e06c9e7a63327acc470bd33a726acc69bfc
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Eskil Abrahamsen Blomfeldt [Wed, 18 Feb 2015 09:35:00 +0000 (10:35 +0100)]
Account for leading when drawing text decoration
When the text line is offset by the leading distance, the
text decoration needs to be offset by the same value, otherwise
it will be drawn in the wrong location.
[ChangeLog][TextEdit] Fixed positioning of text decoration with some
fonts.
Change-Id: Ic15134326b878255a9b424c14762c3817dfd3123
Task-number: QTBUG-44492
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Andrew Knight <qt@panimo.net>
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Jani Heikkinen [Tue, 7 Oct 2014 07:50:57 +0000 (10:50 +0300)]
remove unnecessary LICENSE.GPLv2
Change-Id: Iea5465791b2ac3b0303ffbae5378c43d8ae2f130
Reviewed-by: Iikka Eklund <iikka.eklund@theqtcompany.com>
Allan Sandfeld Jensen [Fri, 13 Feb 2015 11:02:19 +0000 (12:02 +0100)]
Cleanup math function includes and usage
Use std::math on floats and doubles, and qMath on qreals, and only
include the math headers actually needed.
Change-Id: I1d511d7b1bac0050eaa947c7baee760b736858bf
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Sean Harmer [Sun, 15 Feb 2015 10:51:51 +0000 (10:51 +0000)]
Add Qt.hsva() function
This is more convenient than the alternative hsla() function in many
cases as color pickers in other applications default to the HSV color
space e.g. GIMP, kcolorchooser.
[ChangeLog][QtQml] Added Qt.hsva() function
Change-Id: Id5c1a78173757bf9842b164d90b31682e9a41749
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Holger Hans Peter Freyther [Sun, 8 Feb 2015 08:03:08 +0000 (09:03 +0100)]
NamedNodeMap: Remove logically dead code
The code has been changed by Lars in the git commit
47fbcb47771a36ab9fd0a4d5ede7b7504ab1410d. Now "r->engine()"
is called before the "if (!r)" check is being executed.
We can assume that "m->as<NamedNodeMap>()" will always
return a non nullptr and this allows us to remove the
extra null check.
Fixes CID: 86703
Change-Id: Ib4f1103e38c7e1e8e5175d91e795d2621e3a79c4
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Sérgio Martins [Sun, 15 Feb 2015 12:13:03 +0000 (12:13 +0000)]
docs: Add a link to Drag and DropArea in MouseArea's drag section
They are related subjects so deserve a mention.
Change-Id: I52f338402c8568f54dfd4b91845f9fafa762ca4d
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Jani Heikkinen [Fri, 13 Feb 2015 11:35:35 +0000 (13:35 +0200)]
Fixed license headers
Change-Id: I4d5640ff95e1361ec7e65fb3e87d7726d8185ff5
Reviewed-by: Sergio Ahumada <sahumada@texla.cl>
Sergio Ahumada [Thu, 12 Feb 2015 13:17:03 +0000 (14:17 +0100)]
Update url location for missing Qt logo
Change-Id: I21084651044f1db0c7863f2121431dffec8526e3
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
Shawn Rutledge [Tue, 27 Jan 2015 11:58:42 +0000 (12:58 +0100)]
Flickable: use wheel event pixel deltas when available
Flickable can now handle wheel events which come from touchpads,
providing pixel deltas instead of angle deltas. It will interpret
them as distance to flick, rather than using an average-velocity
physics model as it does when handling events from a physical mouse
wheel. This enables much finer control and limits the tendency
to "zing" way out of bounds accidentally. It is achieved by
refactoring the direct-drag code which is needed for mouse dragging
and for touchpad gesture dragging (and eventually touchscreen dragging)
into a new internal drag() method.
[ChangeLog][QtQuick][Flickable] Flickable handles pixel deltas from
trackpad gestures as drags, for a more native feel
Task-number: QTBUG-22407
Change-Id: Ia613ddb25f46d452603f7cb567b74e80c95a346c
Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>