- 17 Nov, 2021 1 commit
-
-
Eirik Aavitsland authored
In contrast to the binary decoder code, the ascii decoder would not abort and fail on premature end of file. Change-Id: If27bce0afa8d1de6c4dbeb2bc0e623c1dcc2f1e0 Reviewed-by:
Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 997c052d ) Reviewed-by:
Eirik Aavitsland <eirik.aavitsland@qt.io>
-
- 01 Nov, 2021 1 commit
-
-
The check for styleMask == NSWindowStyleMaskBorderless to decide whether to clear the NSWindow background was broken, as NSWindowStyleMaskBorderless has the value 0, but is only supposed to be compared to its companion NSWindowStyleMaskTitled (with value 1). A window can perfectly well be NSWindowStyleMaskBorderless and NSWindowStyleMaskMiniaturizable e.g., so by comparing directly to NSWindowStyleMaskBorderless instead of masking to the first bit first we ended up making miniaturizable windows non-translucent. We now check the Qt::FramelessWindowHint directly, and also whether the window is opaque. Ideally we'd have QWindow flags that could plumb WA_NoSystemBackground from Qt Widgets, as well as a background color property on QWindow to control the system background, but in the meantime we'll have to use the FramelessWindowHint heuristic. The QWidget docs have been updated to reflect this. Task-number: QTBUG-95042 Change-Id: I0d40eecace60883c205ebb8c76cef1092cdf1144 (cherry picked from commit 2f6d572d ) Reviewed-by:
Volker Hilsheimer <volker.hilsheimer@qt.io>
-
- 22 Oct, 2021 4 commits
-
-
Liang Qi authored
Task-number: QTBUG-96399 Change-Id: I33909940b501cb13f78981c43f3aef9fc9d1d52d Reviewed-by:
Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit e0938223 ) Reviewed-by:
Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-
Eirik Aavitsland authored
Previous fix hit too widely so some valid horizontal and vertical lines were affected; the root problem being that such lines have an empty control point rect (width or height is 0). Fix by caculating in the pen width. Change-Id: I7a436e873f6d485028f6759d0e2c6456f07eebdc Reviewed-by:
Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 84aba809 ) Reviewed-by:
Eirik Aavitsland <eirik.aavitsland@qt.io>
-
Eirik Aavitsland authored
Some pathological cases were not caught by the previous fix. Fixes: QTBUG-95239 Change-Id: I0337ee3923ff93ccb36c4d7b810a9c0667354cc5 Reviewed-by:
Robert Löhning <robert.loehning@qt.io> (cherry picked from commit 6b400e31 ) Reviewed-by:
Eirik Aavitsland <eirik.aavitsland@qt.io>
-
Eirik Aavitsland authored
When stroking a dashed path, an unnecessary amount of processing would be spent if there is a huge number of dashes visible, e.g. because of scaling. Since the dashes are too small to be indivdually visible anyway, just replace with a semi-transparent solid line for such cases. Change-Id: I9e9f7861257ad5bce46a0cf113d1a9d7824911e6 Reviewed-by:
Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit f4d791b3 ) Reviewed-by:
Eirik Aavitsland <eirik.aavitsland@qt.io>
-
- 04 Oct, 2021 1 commit
-
-
Jani Heikkinen authored
Change-Id: Ia05e0d77e8998cae8c0149b9e112b646d4f6ae57
-
- 30 Sep, 2021 2 commits
-
-
Samuel Thibault authored
Currently in QSpiApplicationAdaptor::eventFilter, the ATSPI_MODIFIER_SHIFTLOCK flag (actually capslock modifier) only set when the capslock key is kept pressed, not when the capslock modifier is enabled. Orca however really needs to know the capslock modifier state, to be able to properly determine whether to enable/disable capslock when the user presses double-capslock. Task-number: QTBUG-84225 Change-Id: I98ab8b7261c5560ebad49410b1358b2279080ec8 Reviewed-by:
Liang Qi <liang.qi@qt.io> Reviewed-by:
Jan Arve Sæther <jan-arve.saether@qt.io> (cherry picked from commit 6802065d)
-
Andy Shaw authored
[ChangeLog][QtSQL][SQLite] Updated SQLite to v3.36.0 Change-Id: I05cde47b757455dfd438405bfba1818c7f6eec00 Reviewed-by:
Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit b919fc8f ) Reviewed-by:
Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-
- 29 Sep, 2021 2 commits
-
-
Thiago Macieira authored
The MariaDB-connector-c version 3.2 and MariaDB server version 10.6 cooperate to avoid re-transferring the query metadata, so the fact that we were modifying it was causing it to improperly decode the DATETIME data types into string, as we had asked. We ended up with a 7-byte string that was actually the date binary-encoded. References: - https://jira.mariadb.org/browse/MDEV-26271 - https://github.com/MythTV/mythtv/issues/373 - https://bugs.kde.org/show_bug.cgi?id=440296 Fixes: QTBUG-95639 Change-Id: I4a40ccbd3321467a8429fffd169afdbb26cf29f6 Reviewed-by:
Andy Shaw <andy.shaw@qt.io> (cherry picked from commit 549ee216 ) Reviewed-by:
Thiago Macieira <thiago.macieira@intel.com>
-
Thiago Macieira authored
Android 11's SELinux rules block the RTM_GETLINK requests that qnetworkinterface_linux.cpp needs to make. So disable this completely and fall back on the older rimplementation. Bionic has some workarounds in their getifaddrs() implementation to make this work. Fixes: QTBUG-86394 Change-Id: I87447a0ecdee4dc7b506fffd163180c2b1db7835 Reviewed-by:
Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by:
Alex Blasche <alexander.blasche@qt.io> (cherry picked from commit e33d40a8 ) Reviewed-by:
Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit c07eff7d)
-
- 28 Sep, 2021 2 commits
-
-
Eirik Aavitsland authored
With the contents from src/jversion.h Change-Id: I3d4d2b40b3ed6576655b97b1709ee42c9c81ebe7 Reviewed-by:
Kai Koehne <kai.koehne@qt.io> (cherry picked from commit fbd3b00e ) Reviewed-by:
Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-
Eirik Aavitsland authored
[ChangeLog][Third-Party Code] libjpeg-turbo was updated to version 2.1.1 Change-Id: I22a273018229aa35a175f9e903fa605a3eb55c32 Reviewed-by:
Eirik Aavitsland <eirik.aavitsland@qt.io> Reviewed-by:
Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit a6a3b1e7)
-
- 27 Sep, 2021 1 commit
-
-
Kai Koehne authored
Fix the license metadata in that libjpeg contains parts under three different bsd-like licenses. Also, do include the IJG, zlib license texts in the metadata. [ChangeLog][Third-Party Code] Clarified that libjpeg-turbo is actually covered by three licenses, not only IJG. Change-Id: I6c4e3e8577bdf83e7e73474b34b0553cbe1d9b6d Reviewed-by:
Eirik Aavitsland <eirik.aavitsland@qt.io> (cherry picked from commit 467b39d5 ) Reviewed-by:
Kai Koehne <kai.koehne@qt.io>
-
- 23 Sep, 2021 2 commits
-
-
Edward Welbourne authored
If the local time for which we want data is after the last known transition, the two transitions we get to bracket it are the last known and an invalid one. The code checked the former was valid, but neglected to check the latter, leading to nonsense arithmetic later in the function. In this situation we unequivocally want the last known transition, so the problem is easily solved. Fixes: QTBUG-96152 Change-Id: I6fc830ce538e8a572093cd8dfe832e10689bf904 Reviewed-by:
Andrei Golubev <andrei.golubev@qt.io> Reviewed-by:
Mårten Nordheim <marten.nordheim@qt.io> (cherry picked from commit b656cea5)
-
Edward Welbourne authored
This reverts commit 904617df and makes clear to future readers why that wouldn't be a sensible change. Update the test's data, eliminating a case of duplicate counting that was caused by the reverted commit. Task-number: QTBUG-95661 Change-Id: Ice6d3ab06ca171e0d6eb0fac757f1ab774e229f0 Reviewed-by:
Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by:
Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit 7af79ba0)
-
- 10 Aug, 2021 1 commit
-
-
Liang Qi authored
For the first call of QXcbClipboard::clipboardReadProperty() inside of clipboardReadIncrementalProperty() in getSelection(), it will get a XCB_NONE reply before the contents arrived via property change. Then we give a chance to read more. Manually tested with following setups: * examples/widgets/mainwindows/application with gvim(gtk3) * examples/widgets/widgets/imageviewer with GIMP 2.10.18(based on gtk2) and GIMP 2.99.6(based on gtk3 via flatpak) Fixes: QTBUG-56595 Done-With: JiDe Zhang <zhangjide@uniontech.com> Change-Id: Ib45f08464d39ad79137b1da99808c89b7dca2d08 Reviewed-by:
JiDe Zhang <zhangjide@uniontech.com> Reviewed-by:
Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit 02248eea ) Reviewed-by:
Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-
- 06 Aug, 2021 2 commits
-
-
Marc Mutz authored
The following code assumed, and all comments indicated, that the cpp variable was limited to a max of 4. Yet, as coded, cpp could be five, in which case the XPM would be corrupt, as the header suggested five characters-per-pixel while the data was formatted in only four. Add a warning and error out when we encounter this situation. [ChangeLog][QtGui][QImage] Instead of writing a corrupt file, rejects to write XPM files with more than 64^4 colors (more than four characters per pixel) now. Change-Id: I458873cf7d179ab2e2dacd4c17dc837d640591a9 Reviewed-by:
Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by:
Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by:
Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 71334c32)
-
Timur Pocheptsov authored
And re-generate certificates. Fixes: QTBUG-95429 Change-Id: Id970a0a9315d146d6dd1e66c9cff9b7d75657e2d Reviewed-by:
Mårten Nordheim <marten.nordheim@qt.io> (cherry picked from commit e7ab17ad)
-
- 05 Aug, 2021 3 commits
-
-
Mike Achtelik authored
Android 12 introduced a notification which is shown to the user each time the app accesses the clipboard via getPrimaryClip. Currently this notification is triggered, even if we just want to check, if some clipboard data exists. So lets not get the actual data and instead use getPrimaryClipDescription to check for the existence of the correct mime type in the clipboard. Change-Id: I4800f5545ab46b7f6cade0ce9d78c04b50ae96cf Reviewed-by:
Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit 5a7f4c1f)
-
Marc Mutz authored
The xpm_color_name() function returned a pointer to a function-static buffer. This is infamously non-reentrant, and an actual problem, because we explicitly allow QImage operations (incl. saving to an .xpm) from non-GUI-threads. Fix by using the CSS pattern (Caller-Supplied Storage; also used in the QAnyStringView(char32_t) and QAnyStringView(QStringBuilder) ctors) to force the caller to allocate storage in its own stack frame. As a consequence, we re-gain re-entrancy, but the returned pointer is now only valid until the end of the full-expression, which isn't a problem, as all callers immediately pass the result to a consumer (asprintf() or QByteArray). [ChangeLog][QtGui][QImage] Fixed a race condition when concurrently writing .xpm files. Change-Id: I36d7173d53839a52f5cdf58324474c1b32c71f33 Reviewed-by:
Mårten Nordheim <marten.nordheim@qt.io> (cherry picked from commit 73fabadc)
-
Timur Pocheptsov authored
as a temporary fix for suddenly expired certificates situation (to be regenerated). Task-number: QTBUG-95429 Change-Id: I00ad11cfd8824eeeffa2991dfcda6a7899726953 Reviewed-by:
Mårten Nordheim <marten.nordheim@qt.io> (cherry picked from commit 8d0e4a2e ) Reviewed-by:
Timur Pocheptsov <timur.pocheptsov@qt.io>
-
- 12 Jul, 2021 1 commit
-
-
Tor Arne Vestbø authored
QSettings encodes QVariants as @Type(data) strings. If that data contains a null-byte, we write the string as UTF-8 encoded CFData. When reading it back we look for a @ prefix, and then pass it as UTF-8 through stringToVariant. The problem arises then the user writes raw QByteArrays with a @ prefix. We can detect this situation by checking the result of stringToVariant, and if it's just a simple conversion of the string into a QVariant, we know that stringToVariant hit its fallback path due to not finding any embedded variants. If that's the case, we return the raw bytes as a QByteArray. Change-Id: I4ac5c35d0a6890ebea983b9aca0a3a36b0143de2 Reviewed-by:
Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 3eac6079 ) Reviewed-by:
Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-
- 06 Jul, 2021 1 commit
-
-
Liang Qi authored
Fixes: QTBUG-95005 Change-Id: I88ab9b757a5cfee520e07ac6280e31f9211342f0 Reviewed-by:
Laszlo Agocs <laszlo.agocs@qt.io> (cherry picked from commit 85831bcf ) Reviewed-by:
Shawn Rutledge <shawn.rutledge@qt.io>
-
- 29 Jun, 2021 1 commit
-
-
Marc Mutz authored
Taking the copy after the resize is completely pointless: the copy is there to ensure that `t`, being a reference potentially aliasing an element in [begin(), end()[ before the resize(), isn't invalidated by the resize(), so it must be taken before resize(). Add a comment so the next rewrite doesn't cause this to be mixed up again. [ChangeLog][QtCore][QVarLengthArray] Fixed an aliasing bug affecting insertions of objects aliasing existing elements. Change-Id: I26bc449fa99bf8d09a19147a12a69ac4314cc61d Reviewed-by:
Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> (cherry picked from commit 6e57e41f ) Reviewed-by:
Qt CI Bot <qt_ci_bot@qt-project.org>
-
- 19 Jun, 2021 1 commit
-
-
Tor Arne Vestbø authored
Without the workaround, and when using a Core GL profile, we hit a code path in QSGOpenGLDistanceFieldGlyphCache::resizeTexture() that produced corrupt glyphs on M1 hardware. We fix this by enabling the workaround, so that the user doesn't have to set QT_ENABLE_GLYPH_CACHE_WORKAROUND themselves. None-Core contexts do not have this problem, but the logic in QOpenGLContext does not account for recreated contexts with different formats, so we can't limit the workaround to Core formats only. With the unified memory architecture of the M1 hardware, the workaround should have limited negative effects. In Qt 6 this is not a problem, since Qt Declarative effectively always uses the workaround code-path, but it's worth recording the fact that we need the workaround. Fixes: QTBUG-89379 Change-Id: Icfd8b8b23c0dcda3fea8663d81d0e225134eec5e Reviewed-by:
Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> Reviewed-by:
Laszlo Agocs <laszlo.agocs@qt.io> (cherry picked from commit aeeaa7d2 ) Reviewed-by:
Tor Arne Vestbø <tor.arne.vestbo@qt.io>
-
- 09 Jun, 2021 1 commit
-
-
Morten Johan Sørvig authored
NSWindowStyleMaskMiniaturizable also controls programatic minimize, in addition to the window decoration button. Fixes: QTBUG-65637 Change-Id: Iac5fb483433441173d770f4fcfb9e93440b9fe6a Reviewed-by:
Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit 556fbbea ) Reviewed-by:
Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-
- 08 Jun, 2021 1 commit
-
-
Tor Arne Vestbø authored
Now that inputs (81152194) and outputs (3f0858ed ) are explicitly set for the preprocess stage we can enable the new build system. Using the legacy build system will produce a build error in Xcode 13, but the build will succeed: error: The Legacy Build System will be removed in a future release. You can configure the selected build system and this deprecation message in File > Project Settings. Fixes: QTBUG-71035 Change-Id: I108d2103872255d10de2ff5161eef892065da1c4 Reviewed-by:
Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 3d7bdf0d ) Reviewed-by:
Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-
- 01 Jun, 2021 1 commit
-
-
Giuseppe D'Angelo authored
Passing SQLITE_STATIC to sqlite3_bind_*() means that ownership of the data stays in the caller, i.e. SQLite itself doesn't make a copy; such data must be therefore be kept valid until sqlite3_step() is called. The code in the SQLite driver uses that option to avoid copying byte array or string data. But, unlike what the comments in the code say, we do NOT keep the QByteArray/QString alive long enough: they're contained by a temporary QVariant object which gets destroyed at the end of the loop that binds each argument. Luckily the fix is simple: since that QVariant is just a copy of the QVariants used as bound parameters, and these are held in a container (which lives long enough), simply create a reference to the container's elements rather than a copy. This ensures that the data is alive by the time sqlite3_step() is called. This problem doesn't normally appear because of implicit sharing of QByteArray/QString. When the QVariant is copied, the inner element is just a shallow copy. Getting the pointer to the data, and destroying the QVariant, does not destroy the data (it's kept alive by the QByteArray/QString inside the *copied-from* QVariant). Of course there's a catch: if the *copied-from* QVariant contains a QString created via fromRawData, then everything blows up. In this case, 1. the copied QVariant is created (which bumps the QString refcount)¹ 2. the QString inside of it is accessed directly (via QVariant::constData) 3. utf16() is called on that string, which detaches it (!) 4. the result of utf16() is passed to SQLite, with SQLITE_STATIC 5. the copied QVariant is destroyed; this destroys the inner QString, which, being detached, deallocates the data too early. 6. sqlite3_step() is called, kaboom. (The copied-from QVariant still has the string created by fromRawData.) ¹ Note that QString uses the Small QVariant Optimization, so the QString object itself into the QVariant is copied, it's not just a *QVariant* refcount increase. Change-Id: Idcdb192809f1f8f79b4a901e1247f933eb06e854 Fixes: QTBUG-94070 Reviewed-by:
Andy Shaw <andy.shaw@qt.io> (cherry picked from commit 0f38259c ) Reviewed-by:
Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-
- 18 May, 2021 1 commit
-
-
Allan Sandfeld Jensen authored
Fix build w/ non-GCC-compatible Un*x/Arm compilers Fixes: QTBUG-93779 Change-Id: Ib52e9ded6e2814c7998d6cd798e945da0f87f7a1 Reviewed-by:
Eirik Aavitsland <eirik.aavitsland@qt.io> (cherry picked from commit 4341f676 ) Reviewed-by:
Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-
- 14 May, 2021 2 commits
-
-
Andy Shaw authored
Since the correct accessibility traits for EditableText are not available as a direct enum value, then we depend on the defaults for a UITextField to give us this information. Done-with: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Fixes: QTBUG-93494 Change-Id: If428414aec5ce571f0f8c0ecccffdbaf1c908120 Reviewed-by:
Morten Johan Sørvig <morten.sorvig@qt.io> (cherry picked from commit 08cd5580 ) Reviewed-by:
Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-
Andy Shaw authored
[ChangeLog][QtSQL][SQLite] Updated SQLite to v3.35.5 Change-Id: I7e1f5a4b6eb48d9f6105d7f08b35a2c62fc79660 Reviewed-by:
Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by:
Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 75d86237)
-
- 10 May, 2021 5 commits
-
-
Eirik Aavitsland authored
Fixes: QTBUG-89172 Change-Id: Icb78c8eeb1dbe4c5d4c6476beebafc0115a91e8c Reviewed-by:
Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> (cherry picked from commit 36ccbee3 ) Reviewed-by:
Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-
Eirik Aavitsland authored
Avoid overflows. Fixes: QTBUG-89899 Change-Id: Ic1a83c1704fe20be3d032358dc91ee8e751f2281 Reviewed-by:
Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> (cherry picked from commit 67975068 ) Reviewed-by:
Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-
Eirik Aavitsland authored
[ChangeLog][Third-Party Code] libjpeg-turbo was updated to version 2.1.0 Change-Id: I82a58609120923c18f6031fec7d597138ec473ee Reviewed-by:
Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by:
Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 127f6173 ) Reviewed-by:
Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-
Eirik Aavitsland authored
Avoid potential oob memory access. Fixes: QTBUG-91770 Change-Id: I34fff1cf8dec5275572a027288b0e8310359d9f8 Reviewed-by:
Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by:
Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit c494c1e8 ) Reviewed-by:
Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-
Eirik Aavitsland authored
Move the config headers of the bundled libjpeg back into its source directory, where they originally live, to avoid having to trick with the include path to find them. The goal is unification across maintained Qt branches, making version updates simpler. Change-Id: I5b574446bbd264b0a1cb3efceb4c1cb7203cac7d Reviewed-by:
Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 5df88b85)
-
- 07 May, 2021 1 commit
-
-
Andy Shaw authored
The second parameter is the position of the first character not to be returned when calling text(). So it needs to be passed the length of the text, otherwise the last character is cut off. Task-number: QTBUG-93494 Change-Id: I7dd8324b3939220de125ba819b7b77588b21bd4b Reviewed-by:
Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit 5c29f981 ) Reviewed-by:
Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-
- 12 Apr, 2021 1 commit
-
-
Christoph Keller authored
This fixes build errors with Xcode 10. Xcode 10 build system (a.k.a "New Build System") needs to know the input files in order to build a correct dependency graph. Especially when a build is not run for the first time and files changed in-between. Task-number: QTBUG-71035 Change-Id: If8fbad3a1915add9b35c79131b03cdbe6b7ac06d Reviewed-by:
Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit 81152194 ) Reviewed-by:
Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-
- 08 Apr, 2021 1 commit
-
-
Christoph Keller authored
Xcode's new build system checks duplicated entries when building. Qmake wants to embed the launch screen for all types of configurations (static libraries etc.) which makes Xcode bail out with "Multiple commands produce LaunchScreen.storyboard". Task-number: QTBUG-71035 Change-Id: I5c028e687f16e046b12156c1a8a89540deba4d3b Reviewed-by:
Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit 9c24ad3b)
-