Commit Graph

80400 Commits

Author SHA1 Message Date
Christian Stenger
ca030b5a9a Squish: Fix windows toolchain for VS15
Similar to what has been done for fixing VS2017. But VS2015 also needs
to add a matching Windows Kit tools path.
This magically happens if the kit is set up manually, but as we
provide a stripped version of toolchains and kits we need to adjust the
kit environment manually.

Change-Id: I9a88e7424acf2768774f5ef580ef6d1fa73bcb5a
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-01 12:08:33 +00:00
Jarek Kobus
00938bd7bf TaskTree manual test: Use QPromise for async calls
Change-Id: I532520af644b431441d74c0e06eff4d06d0b3924
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-01 12:01:04 +00:00
David Schulz
f3cbd506dd Debugger: Avoid looking up qt symbols globally to get the qt namespace
This can get very expensive for targets that have a lot or big modules,
but are not linked against Qt. On the downside we might not be able to
identify Qt namespaces in static builds.

Task-number: QTCREATORBUG-18287
Change-Id: I90e0c4afcde17fd81d49017e828ce59f0abe9b5c
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-01 11:43:19 +00:00
Marco Bubke
6ccef0cc29 QmlDesigner: Fix path
Task-number: QDS-9048
Change-Id: I3ecceb041514e50fdc30accd2e82c6aed24166c5
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-03-01 11:23:08 +00:00
Orgad Shaneh
f9d0c1a067 GDB: Adapt to message change on 13.1
Sample message:
>&"Error while mapping shared library sections:\n"
>&"`C:\\WINDOWS\\System32\\wow64cpu.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386.\n"
>=library-loaded,id="C:\\WINDOWS\\System32\\wow64cpu.dll",target-name="C:\\WINDOWS\\System32\\wow64cpu.dll",host-name="C:\\WINDOWS\\System32\\wow64cpu.dll",symbols-loaded="0",thread-group="i1",ranges=[{}]
 Library C:\WINDOWS\System32\wow64cpu.dll loaded.

Change-Id: Icb4243b129faac581f37d3fdd1211448656abefe
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-01 10:06:28 +00:00
David Schulz
fb8182ca7c Debugger: fix QJSValue dumper for Qt >= 6.5
and disable the QV4::Value dumper for that version.

Change-Id: I31a0ddba2bdab3b196e4fc5298fd8e7c10f9dc92
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-01 09:51:07 +00:00
David Schulz
8288a4c563 Debugger: fix dumper for QVariant containing a QList<int>
...for Qt 6.5.
Found by dumper tests.

Change-Id: Ibb9ccf72a5f18e203e37123f1fc5458142bd4efc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-01 09:32:27 +00:00
hjk
3e7d93c788 ProjectExplorer: Move some not-fully-session related bits
... out of SessionManager.

The idea is to later move SessionManager into the Core plugin,
which both is sensible conceptually and also prerequisite to
merge the Bookmark plugin into TextEditor plugin.

Currently, only the interface is split, as the load/save
implemetations are non-mechanical to disentangle.

Change-Id: I31631db3094ea192825a2ccaa6add6188662940b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-01 09:26:50 +00:00
Friedemann Kleint
03e1c18f78 Qt Designer Custom Widget wizard: Generate XML as raw string literal
It makes it easier to customize it later on.

Change-Id: Ie4ac7830a5544746d621b5ba34d174b3f8e3676a
Reviewed-by: hjk <hjk@qt.io>
2023-03-01 09:16:24 +00:00
Friedemann Kleint
745de1b34d Qt Designer Custom Widget wizard: Update code templates
- Introduce nullptr, member initialization, override.

Change-Id: I1088e124bf554050f71f002e6af31a2432479f99
Reviewed-by: hjk <hjk@qt.io>
2023-03-01 09:16:16 +00:00
Friedemann Kleint
e538e8f2e7 Qt Designer Custom Widget wizard: Remove remains of Qt 4
Clean the .pro files and use Qt 5 plugin metadata instead of old
exports.

Change-Id: I24c96d90f5dc45ecd20064159eb175e0e0475a34
Reviewed-by: hjk <hjk@qt.io>
2023-03-01 09:16:05 +00:00
Marcus Tillmanns
d14834ad45 Utils: Fix handling of multi slash in fsengine
Change-Id: Iaf525423f5ea0933b202f23042173c51edb3d4b0
Reviewed-by: hjk <hjk@qt.io>
2023-03-01 08:26:08 +00:00
Cristian Adam
205a900f9f qtcreatorcdbext: python deployment for arm64
Use dumpbin to extract the symbols from the host dll.

Use lib to create an arm64 library to link the qtcreatorcdbext.dll arm64
shared library.

Use the PythonTargetArchDll CMake or environment variable to install the
target arm64 python.dll

If PythonTargetArchDll is not configured the script will download the
python-embed-arm64.zip, extract and set PythonTargetArchDll

Task-number: QTCREATORBUG-25859
Change-Id: I09320bb758fded546f203c905b75485d7de3b94e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-01 08:21:05 +00:00
Leena Miettinen
3425a2b3d1 Doc: Describe building on remote Linux and Docker devices
Task-number: QTCREATORBUG-28721
Change-Id: I6e6bcea61b04cebfb16a462ebd99a7a97926b7a5
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-01 08:16:35 +00:00
Orgad Shaneh
d7c5f1c6b8 VCS: Fix bad wrapping on Linux
Workaround QTBUG-111466.

Fixes: QTCREATORBUG-25491
Change-Id: I6576f918f141b03c5dbb2926ea1123299493c195
Reviewed-by: hjk <hjk@qt.io>
2023-03-01 08:14:03 +00:00
Marcus Tillmanns
f19eff5dcb Copilot: Add explanatory text to settings
Change-Id: Ie45d20d77b064e99fbd4cf26f0794a336b02c51a
Reviewed-by: hjk <hjk@qt.io>
2023-03-01 08:10:28 +00:00
Tim Jenssen
b35f14752a qml2puppet: add application icon
Task-number: QDS-694
Change-Id: Id8f75d34d81645e9d4ceccff25e57afb658f8777
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-28 17:24:05 +00:00
hjk
824ae57fd9 Qnx: Further delay configuration restoring
For toolchains-on-device scenarios we need the devices.

Change-Id: I83547b8c342c87c1c83ed432432f8d151d7e3f1d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
v10.0.0-beta2
2023-02-28 16:43:00 +00:00
Eike Ziller
cace5a57f2 Plugins: Add documentation about testing
Add information about how to write plugin tests and how to integrate
unit tests.

Change-Id: I13721f03c4c55a265a93f71a7c4d892f3e53a6bb
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-02-28 15:42:48 +00:00
Alessandro Portale
a69ff75357 Copilot: Settings/options icon
Exclusive placeholder. While we figure out the legalities around the original Copilot icon.

Change-Id: Iaacebbd8e8a46614659368a4ec7a98b03297e204
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-02-28 15:33:17 +00:00
Martin Delille
43bc61a148 [conan plugin] Add conan install step as first step
Change-Id: Ic3d1f9f312aab78135cff5f14655fcfedc8dad7a
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-02-28 14:15:13 +00:00
Eike Ziller
5e866bbf2f Translations: Fix duplicate messages
Amends 6bb756ba1c

Change-Id: I6e5c3e7d2846ab8a49409b242a3474547380252e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-28 14:02:13 +00:00
Marco Bubke
130453fe15 QmlDesigner: Add image for broken preview
Task-number: QDS-9048
Change-Id: Ic2ce8bf4d51f72c3ddae588709820728fc7c76b5
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-28 14:01:03 +00:00
Marco Bubke
c2915c6963 QmlDesigner: Fix test for project updater
Some tests got broken by the directory support.

Change-Id: I2a0de46a7f7f84328440ee785329d915049cb7f3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-28 14:00:50 +00:00
Miikka Heikkinen
08992261af QmlDesigner: Add a separate placeholder icon for ktx textures
Fixes: QDS-9140
Change-Id: Ife2d3067860be2ae19e3c8431f1b756544b16975
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-28 14:00:19 +00:00
Miikka Heikkinen
a194782774 QmlDesigner: Make PrincipledMaterial the default when adding material
PrincipledMaterial is created instead of DefaultMaterial whenever a
new material is created.

Fixes: QDS-9268
Change-Id: Iae97c5ac8c2be4a5ffdc26f9454344e1ae042290
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-28 14:00:12 +00:00
Christian Stenger
cf71aed9a8 Terminal: Fix qbs build
Amends d4ac8aeaa6.

Change-Id: I91e96faefc81de365f6b170aaccb266019b6c25b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-02-28 13:45:48 +00:00
Miikka Heikkinen
47cabc308e QmlDesigner: Allow drag from assets to 3D model in navigator and 3D view
Fixes: QDS-8784
Fixes: QDS-8785
Change-Id: Ib33fe615137c3c29d9071cab01ba26f6b4f751af
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-28 12:22:27 +00:00
Leena Miettinen
81da84ad0b Doc: Describe Build > Run Generator action
That generates build files for other build systems, such as
Microsoft Visual Studio and Eclipse.

Task-number: QTCREATORBUG-28721
Change-Id: I980ee851293b41a9320b90458132ba035dc1f3f4
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-28 12:18:53 +00:00
Cristian Adam
cdee94d641 CMakePM: Ensure Initial Parameters values on build config Clone
Fixes: QTCREATORBUG-28759
Change-Id: I8d7fa476ff487cf4bf5005f1ccfec65ffc59ed1c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-28 11:47:48 +00:00
Miikka Heikkinen
8aa9fae33a QmlDesigner: Use real texture path for bundle texture drag
Icon path was set to MIME_TYPE_BUNDLE_TEXTURE data, leading to the
icon getting imported instead of actual texture when dragging to a
3D model in the navigator.

Change-Id: I9c44933135100b732d5a8c79b51830b938e0137a
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-28 11:12:22 +00:00
Marcus Tillmanns
b6f2ff8705 Utils: Fix handling of "/somedir/.." in FSEngine
The change 249d613a60aa6a1347ebc1c29902049247b93324 in qtbase
makes it so that QFileInfo::fileName() actually calls the
underlying FSEngine now.

Paths which resolve to "Root" like "/somedir/.." would
return "" as their filename since they were immediately cleaned
and therefore converted to "/" which does not have a filename.

The same issue did exists for paths such as "/__qtc_devices__/ssh/.."
and "/__qtc_devices__/ssh/devicename/.."

This patch makes it so that the incoming filename is kept "unclean"
until it is actually used.

Change-Id: Id5b7d1105e2d59d776aa1df5bbf6273a9fcb5d27
Reviewed-by: hjk <hjk@qt.io>
2023-02-28 11:06:01 +00:00
Orgad Shaneh
87c00b86db Debugger: Fix write error on terminated GDB process
Stopping/Aborting the debugger popped an error message saying "An error
occurred when attempting to write to the process."

Change-Id: Iceb41ea6144cb4d5a6384862da5bf5638f78f519
Reviewed-by: hjk <hjk@qt.io>
2023-02-28 10:39:19 +00:00
Mahmoud Badri
7bfe5bf323 QmlDesigner: Rename bundles download folder
Change-Id: Ie7c0fb42ad1b62f842d27c4656e34a627a603a7b
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-02-28 10:32:12 +00:00
Marco Bubke
921157f646 QmlDesigner: Don't inline what method
This works around the type_info::hash_code macOS bug and leads to
smaller code size because the RTTI will be not anymore injected in all
TUs.

Task-number: QDS-9266
Change-Id: I3defe3dc11b4b76f5c60b08c103a3a39ee92f367
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-28 10:10:10 +00:00
Jarek Kobus
29f634a8ca TaskTree: Introduce WaitFor, Condition and ConditionActivator
WaitFor(condition) Group element enables postponing Group's
children execution until the condition is met. Use
ConditionActivator::activate() method to signal that the condition
is met. A call to ConditionActivator::activate() schedules a request
to the TaskTree instructing it to resume execution of awaiting
condition.

The Group containing the WaitFor element is started itself,
and its setup handler is being called. If setup handler
returned TaskAction::Continue, the children execution is being
postponed. Otherwise, when StopWithDone or StopWithError is
returned, the Group finishes and WaitFor element is no-op in
this context.

This functionality is going to be used when some part of the
task tree may continue only after some data has been collected,
and data collection took place not from inside start or done
handlers. The example is running debugger for already started
process - the debugger may run after the process already started,
delivered its PID and it's still running. In this way
we may start a debugger process in parallel in right point of time.

This patch implements the 5th point inside QTCREATORBUG-28741.

Task-number: QTCREATORBUG-28741
Change-Id: I4afaedb0b34fe0383c16a6d1f74bf07f74cc088a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-28 10:00:26 +00:00
Marco Bubke
cc507063bc Sqlite: Inject RTTI into TU
We had problems on macOS with the catching of exceptions because the has
type_info::hash_code was different. This is probably a bug because RTTI
code is injected for an inline class.

To work around that problem we implemented the virtual what method for
every exception.

Task-number: QDS-9266
Change-Id: I79052c8b70adead412d1940b17195151fb19ebb9
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2023-02-28 09:48:30 +00:00
Marco Bubke
306f239c20 Sqlite: Move virtual methode into .cpp
Task-number: QDS-9266
Change-Id: Ic1083e088ef27d7c47fa3ae142a103dbcad10a5b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2023-02-28 09:48:22 +00:00
Eike Ziller
53ca84e286 Merge remote-tracking branch 'origin/9.0' into 10.0
Change-Id: Ib55043ed36efe6654930e620967438fd353ed5e0
2023-02-28 10:24:45 +01:00
Christian Kandeler
61de69ea90 CPlusPlus: Handle C++20 concepts in parser
Change-Id: I8c6b8b1ba3f36b83cd1d667bec9830271147b1ac
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-28 08:32:40 +00:00
Alessandro Portale
89a8631784 Terminal: Settings/options icon
Change-Id: I35729d46fc8013e7af8ba262842a32b61936ad63
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-02-28 08:27:06 +00:00
Eike Ziller
463090db03 Update change log for 10.0
Change-Id: I39929f6a5947f6c164e5b2dd3802b54539b1190b
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-02-28 07:57:49 +00:00
Alessandro Portale
11ecf3c86b Nim: Center the settingscategory icon
Was off-by-one towards the left.

Change-Id: Ib17ddf750729fad102065776603c4a12b5d7431f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-28 07:42:44 +00:00
Jarek Kobus
8285c85725 Autotest: Use QPromise for async calls
Change-Id: I57d2feed36eeb1871b2b00cf7720c48f6a0e81b5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-27 14:50:48 +00:00
Jarek Kobus
10a97e1f0e Various Tests: Use typed connections in QSignalSpy
Change-Id: I0965916f5ce302e9bdcb47ae7126262327f63613
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-02-27 14:07:13 +00:00
Eike Ziller
6bb756ba1c Debugger actions: Move <p> out of tr()
This is just there at the front to force word-wrap on the tooltips, it
shouldn't be part of the translated text.

Change-Id: I62157aba303071677ca89929f9e56c03ee1f21e7
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-02-27 13:38:27 +00:00
Eike Ziller
78d17390b8 macOS: Allow Squish to attach itself for RTA
https://kb.froglogic.com/squish/mac/troubleshoot/hardened-runtime/#which-entitlements-squish-needs

Fixes: SQUISH-15904
Change-Id: Ib3a07ce2cb33d8fef63b21b19af3b7aabbab88ea
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-27 13:30:28 +00:00
Marcus Tillmanns
ea64bb9d36 Terminal: Fix scroll behavior
Change-Id: I357a5d04baab881cf89c57fdf3336bd1e0077976
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-02-27 12:46:29 +00:00
David Schulz
a4fb9e20cb Debugger: improve dump time for various msvc std containers
... by caching the info whether we have a debug build. This avoids
expanding members of the container to check for a potential offset of
the actual data.

Change-Id: I4d7ac83003c303185ae51d57f0f0571b627edf22
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-27 12:26:37 +00:00
Jarek Kobus
d249e77f77 DockerDevice: Fix compile warning
Amends 682ef157d8

Change-Id: I2ee639aac5d6b2ba55e96d322a6d5818ca0d6735
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-02-27 11:50:02 +00:00