aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Fix testFileUrl() to correctly convert from a resource pathJan Arve Sæther2019-07-031-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | You cannot call QUrl::fromLocalFile() with a resource path, since the resource is not local. ":/data" ended up having the path "file:://data", which QQmlImportsPrivate::addFileImport() had problems deciphering. Task-number: QTBUG-73512 Change-Id: Iada0788892c1069e512a89b4eb5f9462d1208ed3 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | When setting a QObject as context property reset it when it's destroyedUlf Hermann2019-07-033-0/+34
| | | | | | | | | | | | | | | | | | Fixes: QTBUG-76346 Change-Id: Ie21f831a775489f0f2ac2e296136ed4932f5154f Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* | | use boolean for when propertyFabian Kosmale2019-07-026-14/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QQuickState used to store "when" as a QQmlBinding to reduce state oscillation. It is unclear whether this is still an issue, but it breaks if a user sets "when" to a primitive value like "true" or "1". Fixes: QTBUG-76838 Change-Id: If400e5b1283687838ed252be2dfa52067f44564e Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* | | QQmlApplicationEngine: delete translators through their parentsTasuku Suzuki2019-07-022-18/+7
| | | | | | | | | | | | | | | | | | | | | QQmlApplicationEngine doesn't need to manage it by itself. Change-Id: Ib954a97caf5b36093a032220f349057fcf804090 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* | | Do not fail in initTestCase() when cross-compiling.Jan Arve Sæther2019-07-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're not running the qmlMinify() test when cross-compiling, so there is no reason to produce a failure when preparing to run that test in initTestCase().. For the record, we got this failure on Android: (FAIL! : tst_qmlmin::initTestCase() qmlmin executable not found (looked for /home/qt/work/install/bin/qmlmin) Change-Id: I84c8bb96ff067b818dfb3d3ba23856fe1fd76a7b Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* | | QQmlApplicationEngine: delete unused translator earlierTasuku Suzuki2019-07-021-2/+5
| | | | | | | | | | | | | | | Change-Id: I4161624c663ff87bbf9385991cd65027dd5cfd5f Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* | | QQmlEngine: Hoist some allocating code out of critical sectionsMarc Mutz2019-07-021-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | ... so the lock is held for shorter durations. Add optimistic std::move()s. Change-Id: I9e09e11a6e54b7ac4be3e23f06d65b3b7abc4fc0 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* | | Port from implicit to explicit atomic operationsMarc Mutz2019-07-026-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old code used the implicit conversions from QAtomicPointer<T> to T*, and QAtomicInteger<T> to T, and vice versa. The semantics of these differ from the ones std::atomic uses, so we're going to deprecate these, like we did for load() and store(), too. This patch fixes some users of these APIs before we deprecate them. Change-Id: I892d705c22280f1c6fdc62c1777248b44e9c4329 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* | | Fix some const-correctness issuesMarc Mutz2019-07-022-4/+4
| | | | | | | | | | | | | | | | | | | | | Found by locally making QExplicitlySharedDataPointer propagate const. Change-Id: Ib8fdb28420d0470ca839d0cab15439e23165a3e2 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* | | Port to somewhat stricter implicit conversions to QCharMarc Mutz2019-07-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, QChar can be implicitly converted from nearly any integral type. The goal for the future is to allow only actual character types ((u)char/char16_t) to implicitly convert to QChar. This patch prepares the code for such a change. Change-Id: I6db0a9214c48912e11ce6e90050223fa9dd8d3a2 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* | | Mark the module QLinkedList-free, so it stays that wayMarc Mutz2019-07-011-0/+2
| | | | | | | | | | | | | | | Change-Id: I185ee04460736d496179281d57748f2d80f13740 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* | | Log all errors through testlib if a component has errorsJan Arve Sæther2019-07-012-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QVERIFY(!comp.isError()) gives very little diagnostics: FAIL! : tst_foo::bar() '!comp.isError()' returned FALSE instead we now use QVERIFY2(!comp.isError(), qPrintable(comp.errorString())) which outputs: FAIL! : tst_foo::bar() '!comp.isError()' returned FALSE. (file:///data/cppsignal.qml:42 No such file or directory ) Task-number: QTBUG-75567 Change-Id: If3527cd6cf38284d5a9d24c0ae476210bec53508 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* | | Merge "Merge remote-tracking branch 'origin/5.13' into dev"Qt Forward Merge Bot2019-07-0131-65/+678
|\ \ \
| * | | Merge remote-tracking branch 'origin/5.13' into devQt Forward Merge Bot2019-07-0131-65/+678
|/| | | | |/ / | | | | | | | | | | | | | | | | | | Conflicts: src/imports/imports.pro src/qml/qml/qqmlmetatype.cpp Change-Id: I308436caf55402cb2246cb591c6ac8f83e1febf8
| * | Merge "Merge remote-tracking branch 'origin/5.12' into 5.13"Qt Forward Merge Bot2019-06-2822-43/+504
| |\ \
| | * | Merge remote-tracking branch 'origin/5.12' into 5.13Qt Forward Merge Bot2019-06-2822-43/+504
| |/| | | | |/ | | | | | | Change-Id: I59343fe228ca6b823b61577e5a0907e7381899c2
| | * Fix: ListView footer positioned wrong after last item removedEirik Aavitsland2019-06-283-1/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The refill() method would bail out early on an empty model. Make sure that it at least updates the header and footer in such situations. Fixes: QTBUG-31677 Change-Id: I1f3a1848ff263a8f7f9ccfc3b20f16b61348f57b Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
| | * QQuickItemView: fix crash while doing fast flicking in transitionsYulong Bai2019-06-265-8/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The cause was that fast flicking kicked items in and out of viewport, while in transition, they would abruptly having tracking data structure , i.e. releasePendingTransition of QQuickItemViewPrivate, got iterator invalidated. This also helps to resolve QTBUG-44308. Fixes: QTBUG-76433 Fixes: QTBUG-44308 Change-Id: If14533d3f6b1acd7b6ca0c5c723347c0cb3f54dc Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
| | * Fix thisObject when calling scope and context properties through lookupsUlf Hermann2019-06-263-2/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Just like resolving the lookup initially, we need to set the base also when hitting the cached lookup code path. The base is then used as this object. Fixes: QTBUG-76656 Change-Id: I6f6be05bc9875ddccc6e112e91176a0fa24a8fa1 Reviewed-by: Michael Brasser <michael.brasser@live.com> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
| | * Unregister unit cache hook when destroying the plugin singletonMitch Curtis2019-06-2511-11/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | At the point the plugin is actually unloaded the hook turns into a dangling pointer. Fixes: QTBUG-71387 Change-Id: Ib8ccee3f9a86d4700fbea7e87c666cd8f30f71e4 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
| | * qmlscene: Fix setting of the default surface formatJoni Poikelin2019-06-251-21/+23
| | | | | | | | | | | | | | | | | | Fixes: QTBUG-76603 Change-Id: I2977117dcaf45345c14599e0b38cb4a242ee449b Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
| * | Blacklist tst_qquicklistview::currentIndex() on linuxUlf Hermann2019-06-251-0/+3
| | | | | | | | | | | | | | | | | | Task-number: QTBUG-76652 Change-Id: I46cd17a925f61585c65199f88342ea872a4a371a Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
| * | Doc: Fix \code and \qml usage in 'QML Object Attributes'Topi Reinio2019-06-191-7/+6
| | | | | | | | | | | | | | | | | | | | | Missing \endcode commands caused malformed output and linking issues. Change-Id: Idaf3cf998c2c0f4352a738b21b66abe5e89c197d Reviewed-by: Paul Wicking <paul.wicking@qt.io>
| * | Merge "Merge remote-tracking branch 'origin/5.13.0' into 5.13"Qt Forward Merge Bot2019-06-205-13/+162
| |\ \
| | * | Merge remote-tracking branch 'origin/5.13.0' into 5.13Qt Forward Merge Bot2019-06-205-13/+162
| |/| | | | | | | | | | | | | | Change-Id: I55353d8cee5420e0c9f59c3b3a387b461f1abf99
| | * | Support folderlistmodel for the no-thread configv5.13.0-rc3v5.13.0-rc2v5.13.0-rc1v5.13.0-beta4v5.13.0Morten Johan Sørvig2019-05-093-13/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Scan for files on the main thread instead of using a dedicated thread. Use a zero-timer to preserve the async behavior where initiating a scan is fast. This should work well for use cases like a handful of files stored as resources. Task-number: QTBUG-74537 Change-Id: I7bf1b6c7f9dfba69fe4fc2ea1b2dd2f256d66c2c Reviewed-by: Lorn Potter <lorn.potter@gmail.com> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
| | * | Add changes file for Qt 5.13.0Antti Kokko2019-05-081-0/+98
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I51689758616808c0fad5d3f5c79e12dd59c0bd85 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
| | * | Make QQmlThread work for no-thread debug modeMorten Johan Sørvig2019-05-081-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Disable isThisThread asserts: there is only going to be one thread. Add a no-thread implementation for internalCalMethodInMain(), which calls the message immediately, similar to the current internalCallMethodInThread() implementation. Change-Id: I554cacf572b5f47c9921d247773cc3d9127b8203 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* | | | rtems: Add support cacheFlushMikhail Svetkin2019-06-281-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I004a766778e6ee2e2aef577a175419fb1b2e09e0 Reviewed-by: Timo Aarnipuro <timo.aarnipuro@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* | | | rtems: Reduce MemorySegment::NumChunksMikhail Svetkin2019-06-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce memory allocation on platforms without virtual memory Change-Id: I54114a9fde008ecb67a5cbf0da33962b0d933017 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* | | | Add environment variable for configure maxJSStackSize and maxGCStackSizeMikhail Svetkin2019-06-283-12/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QMLEngine by default allocates 4 MB for javascript stack and garbage collection stack takes 2 MB. It is a lot of memory for platforms without virtual memory. Change-Id: I1575dd9584898dca33df66704f716c7b5a7c01c1 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* | | | rtems: Add platform definitionMikhail Svetkin2019-06-281-0/+5
| | | | | | | | | | | | | | | | | | | | Change-Id: Ifab0b23fbf35bd31061a28500fdfd69de1905b1c Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* | | | QQuickTableView: Add usage of QQuickTableSectionSizeProviderYulong Bai2019-06-281-0/+12
| | | | | | | | | | | | | | | | | | | | Change-Id: Ib8417729d439cf0c638dae7a43025aa315406793 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* | | | unblacklist passing testsDaniel Smith2019-06-274-18/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These tests have not failed on the removed platforms for at least 60 days Task-number: QTBUG-76608 Change-Id: Ifad6dfed42ad5a832f50b705a0e9312413c0eb61 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
* | | | Fix deployment of QtQuick for Android in tst_parserstressJan Arve Sæther2019-06-271-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We rely on the qmlimportscanner to find out what to deploy, but it is limited to scanning .qml files. This test creates the QML code from C++, so qmlimportscanner fails to detect those dependencies. Therefore, we add a dummy_imports.qml file that has the sole purpose of giving qmlimportscanner which additional dependencies the test has. Change-Id: I97d706396f70b30558bb3f0e2303d39c9f321a2d Fixes: QTBUG-73572 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
* | | | Check that animation still existsFabian Kosmale2019-06-273-1/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: QTBUG-76749 Change-Id: Ie5eed240e8190a7297f71f5e40870a007e737d1d Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | | qmlscene: Avoid infinite loopUlf Hermann2019-06-261-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the root document doesn't contain any executable code, we should terminate with an error message rather than loop forever. Change-Id: Ice2ff10ae5dc9d71df2d1c784597393695ab1d98 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* | | | Port away from QAtomicOps::load / storeGiuseppe D'Angelo2019-06-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use loadRelaxed / storeRelaxed instead. load() / store() are about to be removed from our private APIs. Task-number: QTBUG-76611 Change-Id: I3bebbd1cde7e53d7e2451f2373db1232b595a1d0 Reviewed-by: Liang Qi <liang.qi@qt.io>
* | | | Expose QQuickPath::pointAtPercent as Q_INVOKABLEPaolo Angelelli2019-06-255-31/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So it can be used in QML. Useful in combination with ShapePath, in order to add graphics along a Shape. [ChangeLog][QtQuick][Shapes] Exposed QQuickPath::pointAtPercent as invokable in QML. Change-Id: Ia8aeb2b74003410ce16d9d2a0c62d79a021530af Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* | | | Clean up the QT_CONFIG(library) conditionsUlf Hermann2019-06-265-13/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can clear the engine plugins when compiled without library support as those might be static plugins. However, explicitly loading a dynamic plugin is pointless if compiled without library support. We can just disable the whole function. Furthermore, the ability to load dynamic qmldir plugins does not depend on Qt being compiled as shared library but rather on library support being available. Change-Id: I8553706f0f8f5bd4e98cc130bf56c4526f81b85f Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* | | | Inline the rest of qv4compileddata.cppUlf Hermann2019-06-267-181/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This way we get a header-only representation usable for the QmlCommon module. Change-Id: Ia75e445ffbee0c3b2d473a2a3a6309b2f12e8eea Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* | | | Port towards load/storeRelaxed atomicsGiuseppe D'Angelo2019-06-257-25/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Plain load() / store() have been deprecated, so port away to their straight replacements. Task-number: QTBUG-76611 Change-Id: I79935b889cf7b2ba7698f70cc5e33994b034aa09 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
* | | | Discourage having AsyncImageResponse inherit from QRunnableFabian Kosmale2019-06-251-26/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As the AsyncImageResponse is owned by the qml engine, it should ideally live in the same thread. Else, when we call destroyLater() on it in the qml engine, we can run into various race coditions. see also commit c8827b444c23656f67feee2e3ebd4f2868ab3db7 Change-Id: I6e21ca4527281445e5f6df082f60b60838bb2eac Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* | | | Inline CompiledData::unlink() into the only callerUlf Hermann2019-06-243-13/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The compiler never links anything and therefore it doesn't need to unlink, either. Change-Id: I9ccdc012f9333abc5f4b60174b794e490772e1fd Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* | | | Move unit checksum generation into qv4compilerUlf Hermann2019-06-246-24/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only the compiler ever has to do this, and we want the structure definition for the compiled data as a common header. Change-Id: Ie5c6d6c9dcd180dea79f54d0f7d10f3fc50fa20e Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* | | | Add Markdown support to TextEditShawn Rutledge2019-05-296-5/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - textFormat can be set to MarkdownText, and markdown can be loaded into the text property - markdown text can be pulled out of the text property - if there are lists with checkboxes, you can click them to change the checkbox state Change-Id: I450115c732d737446ae71806e4abb18e8cc639f3 Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
* | | | QQmlEngine: keep ImageProvider alive while in useFabian Kosmale2019-06-255-33/+192
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: QTBUG-76527 Change-Id: I4044ae833eff61a3f06c2366597c1623b26794b0 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* | | | Add QQuickPathPolylinePaolo Angelelli2019-05-285-6/+228
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And show our users some love. [ChangeLog][QtQuick][Path] Added QQuickPathPolyline. Change-Id: I0fb78ae3e4e7c65e81e100595dc1eb16f88a68ed Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* | | | QQuickRectangle: do not pass invalid presets onto QGradientGiuseppe D'Angelo2019-06-243-6/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QGradient isn't meant to have a wide contract and filter out garbage. Since we're parsing ints / strings as gradients, do the validation at this level. Change-Id: I271b5ed1b908d698a2d2c871abf5e61d1e565451 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
* | | | Increment private API version and move it into a separate fileUlf Hermann2019-06-244-2/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The API version should be common to Qml and QmlCompiler and therefore cannot live in a header specific to Qml. Change-Id: I033d3925353e02e42886568ea91382a9f2ca2552 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>