Commit Graph

69918 Commits

Author SHA1 Message Date
Eike Ziller 680daaadb7 Add changes file for 5.0.1
Change-Id: Ic3d4eaee8abf88ddb4435e0a026ae411d92857ba
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-09-09 09:56:10 +00:00
Christian Stenger 4ed03777d3 Docker: Fix condition
Change-Id: I28c845ebd5a04e13cb109af03f6094306da64394
Reviewed-by: hjk <hjk@qt.io>
2021-09-09 09:52:13 +00:00
Miikka Heikkinen 6c224f1341 QmlPuppet: Make sure root instance is in dirty list after size change
Fixes: QDS-4474
Change-Id: If9c861e9c9e39c044e059742bbf7cad0d41c4e5b
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
2021-09-09 07:40:27 +00:00
Assam Boudjelthia 96364a4b4d Fix handling of aab checkbox in apk build step
Loosen the condition for enabling the aab builds and make it available
for any Qt version from 5.14 and above, since Google now require apps
to be packaged as aab to submit to the store, and Qt 6 always has an aab
target anyways. The multi-abi is coming for Qt 6.3 though, but aab
builds could still be allowed now.

Change-Id: If7c7b40c2d01cfe9c2887dc5aa17af48a37af43a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-09-09 07:28:54 +00:00
Cristian Adam 1a030fb911 CMakePM: Fix build type for multi-configuration generators
Fixes: QTCREATORBUG-26079
Change-Id: Ia849cfcea6f3fb10d791ad32c32413d95aa31569
Reviewed-by: Alp Öz <aoz@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-09-09 07:06:10 +00:00
Orgad Shaneh 7e362326fe GDB: Ignore initial SIGTRAP when debugging mingw32 with gdb64
Task-number: QTCREATORBUG-26208
Change-Id: I97e37b6aaca19f20081750de003b012c9853a80c
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-09-09 06:38:21 +00:00
Orgad Shaneh 9032c7741a Debugger: Fix debugging 32-bit mingw console app with 64-bit gdb
For some reason, the executable is no determined correctly.

Feed it to gdb so it will have correct debugging symbols.

Fixes: QTCREATORBUG-26208
Change-Id: Id7da405e5ec9f9331399eb049fa383099981cb94
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-09-09 06:38:03 +00:00
Alp Öz 4c35c9e057 Change sorting in Class View to case insensitive
Change-Id: Ia9ee6726d1d423a127c1e3e57c02ebef8a6f28dd
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2021-09-08 16:27:07 +00:00
Assam Boudjelthia 41528390b8 Revert "Move sdkmanager's sdk level parsing to AndroidConfig"
This reverts commit 2d77922856.

Reason for revert: This causes a build error in Android tests, reverting until the a fix is ready for that to not block the repo.

Change-Id: I74961df660ebaf69caf092d53172821815f21268
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-09-08 12:52:16 +00:00
Henning Gruendl 3639d6faa7 QmlDesigner: Fix color names missing alpha
Fix QColor name() returning colors without alpha by changing the format
from default (QColor::HexRgb) to QColor::HexArgb.

Change-Id: I98fbf2dbfffa4a3593601df3c301f15d9e39604c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-09-08 11:22:44 +00:00
Christian Kandeler 3d64cf0d82 ClangTools: Fix clazy documentation URL
There is no patch version in the URL.
Amends 1b1e18a869.

Change-Id: I8d17b6aea3283e9a78744a28ad9a98e1c7c087e8
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-09-08 11:18:53 +00:00
Christian Kandeler bf275331dd ClangTools: Cache information about the clazy executable
Fixes: QTCREATORBUG-26237
Change-Id: I43203d58b8ed278664427e3b4112a7c7848354b9
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-09-08 11:17:37 +00:00
Assam Boudjelthia 2d77922856 Move sdkmanager's sdk level parsing to AndroidConfig
Both the sdkmanger and avdmanager (maybe more) need to parse the sdk
level for packages and devices which may contain letters, make them
use the same logic.

Change-Id: Iff7fef3a66e00fac11b833f73f2f334a4cf1a766
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-09-08 08:09:20 +00:00
Assam Boudjelthia 62c33f909d CMake: Don't build apk by default with CMake's ALL target
From Qt 6.1, Qt 6.1 builds the apk directly with ALL step if it's
not a Qt build.

Change-Id: Ib8573399a1ed509852a973e84405353191e80f86
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-09-08 08:09:00 +00:00
Eike Ziller d734fc5cc8 Spotlight filter/macOS: Interpret space as *
Flows more natural, and is what we do on the other platforms by default
too.

Change-Id: Ia9510235167a014fa7bdafd023e05c8fe40dd338
Reviewed-by: Alp Öz <aoz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-09-08 07:00:53 +00:00
Eike Ziller 6528bd6a27 Add branding option for application icon and logo
Change-Id: I23ee91ab47d06aab370b2083d4f96f7833bf16ff
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-09-08 06:29:51 +00:00
Leena Miettinen 9ecbb3e4ee Doc: Fix the sidebar TOC in the online version
...to match the new structure.

Change-Id: I7b4ffe8f6ae7993906bb79bf470fc1883ca0a122
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2021-09-07 14:01:23 +00:00
Johanna Vanhatapio f67974e1d5 Doc: Fix a link
Change-Id: Ie1c3996fb50ba5d357697adb2fe53ad46e20d75f
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-09-07 13:48:34 +00:00
Thomas Hartmann e543cb0d05 QmlProject: Open connect to ParsingFinished() only once
Task-number: QDS-5018
Change-Id: I2782641c8494c44c71c680e145be7744c98afabc
Reviewed-by: Aleksei German <aleksei.german@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-09-07 13:47:12 +00:00
Thomas Hartmann 97d6b487ff StudioWelcome: Add C++ example
This downloadable example shows how to setup the C++ project
using .qrc files. We open the .qmlproject in QDS.

Change-Id: I759095d9c6a4026f3eab49d7e5e6543f5e57b71d
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-09-07 12:46:58 +00:00
Thomas Hartmann 95f2198e97 StudioWelcome: Allow opening a specific project file
Change-Id: Ie00a48ff777952e2366d691c1a928c162d1dd187
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-09-07 12:46:52 +00:00
Thomas Hartmann 97a65f9ea2 QmlProject: Do not open .qml.ui file if a file from that project is open
The wizards and example browser already open a .ui.qml file.
In this case we do not want to open the first one.

Change-Id: I8278ca28cd02dfde2b4ab0ffd1b551073d85859f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2021-09-07 12:46:43 +00:00
Alessandro Portale 3a26271660 Android: Fix build
Amends: e92418edca

Change-Id: I40615c2fa6e9b9cd98976c9ebfc56a9bdf1dd612
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2021-09-07 11:44:48 +00:00
Thomas Hartmann cc12ee1729 StudioWelcome: Fix visual glitch with download icon
Change-Id: I1858112654d3ab01fc2c5e4b05d45797485b669a
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2021-09-07 11:42:46 +00:00
Assam Boudjelthia e92418edca Fix minSdkVersion in deploy step
Deploy step uses AndroidManager::minimumSDK() which looks for the
version in the AndroidManifest.xml file which used to contain the
minimum and target sdk, but if the manifest doesn't contain that
value, this logic returns 0. So, return the defaultMinimumSDK()
in case the first way fails.

Change-Id: Id10e552d7c8de4d3544b7fa8f26ae5dd9e974df5
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-09-07 11:11:45 +00:00
David Schulz c1dff744a0 LanguageClient: Increment document version on every content change
Prevents applying results from outdated documents. Specifically
notifications and codeactions for documents that have been cleared on
the contents change handler but get a result before sending the actual
did change notification.

Change-Id: I640088d7cb2464dd4edd832319314bb04eab1df3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-09-07 10:24:43 +00:00
Christian Kandeler 4504570447 ClangCodeModel: Fix access type categorization with clangd
... in "Find References".
This was broken in d6acd21fc0.

Change-Id: I0a185a8440bd5260b7cc18a87cefb450be71e77f
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-09-07 10:06:06 +00:00
Leena Miettinen 9168110572 Doc: Fix link to next page
Change-Id: I991c80f6e282061aa05a8a456a6d995b124276b7
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2021-09-07 09:45:12 +00:00
Cristian Adam 05c3f965e3 auto-setup.cmake: warn if conan or vpkg executables are missing
Warn the user if the package manager auto-setup doesn't find conan
or vcpkg executables and does nothing.

Some projects will fail, or in the case of Qt modules, will continue
working by using the system cmake packages.

Change-Id: If3b07e619c27a4b637a894690bd248ad98d6dda2
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-09-07 09:35:29 +00:00
Johanna Vanhatapio 43c5558653 Doc: Describe the Morph Target Component
Task-number: QDS-4888
Change-Id: I091490e2649e4aae34cd9c5f929b38b8b9e10792
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-09-07 09:19:10 +00:00
Leena Miettinen f3d6f7542c Doc: Fix the QDS Manual front page
- Create missing top level topics for Inplementing Applications and
  Developer Topics
- Update Advanced Designer Topics and Help topics
- Fix links to next and previous pages
- Fix TOC and front page (hide missing topics and remove NEW markers)

Fixes: QDS-4503
Change-Id: If4ab683bf4628de73c0b37e2c0c69859e1e99f13
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2021-09-07 09:12:05 +00:00
Christian Kandeler 03c8db5513 Core: Fix warnings about unsused parameters
Amends e203581956.

Change-Id: Ia1ca257f43849bc0e96200c2980f23587ef73734
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-09-07 09:11:49 +00:00
Cristian Adam e08928e4f7 auto-setup.cmake: Better handling of conan edgecases
Do not try to run the conan executable if conan executable is
not found.

If the conan auto-setup fails warn about it and provide the message
how to skip the auto-setup configuration and do not fail due to the
missing conan_paths.cmake file.

Also print a status message that informs the user that the package
manager auto-setup is performed, with the information how to skip
the step.

Task-number: QTCREATORBUG-25680
Fixes: QTCREATORBUG-25891
Fixes: QTCREATORBUG-25818
Change-Id: I0969ba9b417448f89efd22d7c361e3a54e552ed1
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Reviewed-by: Alp Öz <aoz@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-09-07 08:52:36 +00:00
Eike Ziller 95de5c93b1 QmlJS: Fix issues with getting modulePaths
This patch

- improves performance by removing the usage of QRegularExpression for
trivial string operations (this is called 3000 times after configuring
Qt Creator)

- fixes handling of version number like "2.-1" which are the result of
imports with only a major version number like "import QtQuick 2"

Task-number: QTCREATORBUG-25899
Fixes: QTCREATORBUG-26178
Fixes: QTCREATORBUG-26216
Change-Id: Ic792909513f4fe25ac72043645f297ee41890375
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2021-09-07 08:16:48 +00:00
Christian Stenger 481070d808 AutoTest: Fix test tools handling for project settings
Fixes restoring project settings with enabled test tools but
having globally disabled these.
We need to take the real active state for test tools into
account not only the global one.
Kind of enhances b99d7623f3.

Change-Id: I29c8cc4fff7c82140da41d3c85823d5980c96d9f
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-09-07 08:06:03 +00:00
Christian Stenger 87784a2e01 WebAssembly: Fix test expectation
Amends cd2e164b7d.

Change-Id: I41d2e68aea45c1b4f18f93d5103a6fd560b06c68
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-09-07 08:05:54 +00:00
Leena Miettinen 93857c279c Doc: Update example docs
- Update screenshots to show the new Properties view
- Update UI text
- Add links to term definitions and topics the describe views
- Add notes about limited support for 2D effects on Qt 6

Task-number: QDS-4561
Change-Id: I0e4a94cafd968f31aae6e540cd636e03dc300cc6
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-09-07 06:26:46 +00:00
Eike Ziller af9408d9ae macOS: Fix creation of disk image with universal builds
Our universal Qt Creator build can be larger than 1 GB.
Increase maximum size of disk image.

Change-Id: I055e891f7da8e3c9db99a7b4b2d703cca594c22a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-09-07 06:25:45 +00:00
Thomas Hartmann 442907bc13 QmlDesigner: Use Qt::Key_Backspace instaed of QKeySequence::Backspace
Task-number: QDS-5011
Change-Id: If3e0719389e47110b8885ab709568a8daaf0ec1d
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-09-06 18:37:42 +00:00
Leena Miettinen 35d1acf457 Doc: Fix changed UI text in docs
- Settings is now Actions
- Origin and Rotation were moved to Geometry - 2D

Change-Id: I03dc91a202ef5c90e03011b8983abbe6b3d919a9
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-09-06 13:35:39 +00:00
Henning Gruendl 6d3248e669 QmlDesigner: Fix color dialog removing property
Fix color dialog removing color property after rejecting the dialog when
color is binding.

Task-number: QDS-4826
Change-Id: I4cae3b70b18a0131ac555d5b8502d05de5409070
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-09-06 12:46:29 +00:00
Thomas Hartmann 1393aa8505 QmlProject: Open the first .ui.qml file in QDS
Open the first .ui.qml file of a .qmlproject to not
confuse users.

Task-number: QDS-4986
Change-Id: I56c77c2101fd549cb7b96ea7d273bb4f5234693a
Reviewed-by: Aleksei German <aleksei.german@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-09-06 11:57:53 +00:00
Johanna Vanhatapio 1a3da3a06d Doc: Describe Instancing Components
New components in the QtQuick3D module:
- Instancing (FileInstancing QML Type)
- Instancing List
- Instancing List Entry

Task-number: QDS-4888
Change-Id: Iadf3bd75aee8fad3444681bd07eb1c26ddb7b554
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2021-09-06 11:09:51 +00:00
Eike Ziller f3418d8661 QMake: Fix that qmake was run on every build on macOS
The commit a71d725e46 which fixed issues
on ARM Macs also removed logic for CONFIG+=<arch> arguments to qmake,
which was removed from qmake in Qt 5.6 (since PPC and 32bit Macs are no
longer supported or relevant, qbase f58e95f098c8d78a5f2db7729606126fe093cbdf).

The commit only removed part of the logic though, leading to the
Makefile parser and the qmake step disagreeing on the architecture of
the last qmake run, leading to the qmake step being executed again.

Remove the whole architecture detection and matching logic from
everywhere, which only did anything meaningful on macOS, and is not
needed there anymore either.

Fixes: QTCREATORBUG-26212
Change-Id: Ib60ebca1143296194454a63992ab90a97fdb56b6
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-09-06 10:10:32 +00:00
Miikka Heikkinen 8004909f79 QmlDesigner: Fix crash on asset library refresh
Asset library refresh will crash if done while there is a modal dialog
open, so postpone it a bit in that case. The timer used for this
will also reduce unnecessary refreshes, improving overall performance.

Change-Id: Ib2ff29f5f79428c6543a20f611c708ba80e88ded
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-09-06 08:12:43 +00:00
Assam Boudjelthia c7061af61f Android: don't throw error on adb's "All files should be loaded." log
When installing a signed apk, adb might throw the following log
"All files should be loaded. Notifying the device." which is being
treated as an error and will stop the deployment from going forward
until user input is given. The current condition is not catching it
probably because it has a \n at the end, but let's treat it as a
warning.

Change-Id: If071730b39871b4e60f8755d14ba352b86e7c244
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-09-06 07:04:27 +00:00
Assam Boudjelthia bf3dae64a2 Android: fix toolchain path retrieval for NDK r10
Although, recent Qt versions (Qt 5.12+) don't really need r10, this
can be useful if an older version is used, or if the user wants to
explicitly use Ndk r10.

Change-Id: Ic88929a747bcea89384a7bae9d8f8b26135fae65
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-09-03 17:06:02 +00:00
Henning Gruendl 7b688bfd12 QmlDesigner: Fix binding loop issue in UrlChooser
Task-number: QDS-4886
Change-Id: I3c57fc94d22bfb326409eeaf90b6e62d20b91418
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-09-03 15:45:50 +00:00
Henning Gruendl 30765917ea QmlDesigner: Fix CheckBox global hover
Change-Id: I69bf92c189002bc507693cb388822c322ae94d3c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-09-03 15:45:29 +00:00
Cristian Adam e203581956 Core: Remove 'dllimport' attribute warning
By having the function body in the class we automatically get the
same inline functionality and get rid of the warnings below on LLVM
Clang 13.

src/plugins\coreplugin/find/ifindsupport.h:71:27: warning:
 'Core::IFindSupport::highlightAll' redeclared inline; 'dllimport'
 attribute ignored [-Wignored-attributes]

Change-Id: I0daa6412678090f45bdfb6401157cb68bcb0241f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-09-03 12:34:55 +00:00