Commit Graph

82976 Commits

Author SHA1 Message Date
Eike Ziller
4e000b8731 Change log: add some documentation links
Change-Id: If0cb436f459559ff03510185332506d2c42006d3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-06-08 06:00:30 +00:00
Christian Stenger
38cc6e533d SquishTests: Fix expected clone output
The working directory is quoted nowadays.

Change-Id: I8b4abc5d21a3adb4b07b7582c2e5f74f11da51d0
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-06-08 05:06:45 +00:00
Tim Jenssen
f09598de43 QmlProjectManager: fix import FilePath
Deployment was not working for subdirectories.
Path was not correct in projectInfo.importPaths.maybeInsert.

Change-Id: I4fd8a08ef6182c52963d6d76a700f4687abd9730
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-06-07 18:03:05 +00:00
Alessandro Portale
7620c01b3a QmlDesigner: Make QmlDesignerCore depend on QmlDesignerBase
Change-Id: I8a91da52f9bd59d36964714418a9dc56096761cd
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-06-07 16:09:54 +00:00
Alessandro Portale
5d0aab9eb3 Tasking: Fix linker error on Windows
Change-Id: Id95fa55c2dd3d42c335b2c6c5269e18653268e64
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-06-07 16:08:45 +00:00
Marco Bubke
eaf4391660 UnitTests: Make test names more readable
A majority prefers snake case for long names and because test names are
describtive they have to be long.

Change-Id: I898beb5c9f1b9ab7f7c285b6278454068744f5da
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-06-07 15:49:27 +00:00
hjk
097ed66cc5 Qml2Puppet: Replace a few deprecated QVariant::type() calls
... by typeId().

Change-Id: Ib617db774cec2c23ac58bcd39d99a59f9820f443
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-06-07 15:30:53 +00:00
Jarek Kobus
6cc325f845 AndroidSdkDownloader: Move private static methods into cpp
Adapt their API, when needed.

Change-Id: I2fd0a5673f5b0e83442cb800299980dc0f28832e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-06-07 14:39:53 +00:00
Alexey Edelev
d06df3b547 Remove '-flto' from clangd compiler command line by default
Linker-time-optimization flag should not have any effect on clangd,
so we may remove it from the compiler command line by default when
feeding clangd with the source files. gcc supports the
optimization level that should be applied for the relative binaries.
The level can be specified as the number N following by the -flto=[N]
argument. clangd meanwhile doesn't know about this option and throws
the 'Unsupported argument '1' to option '-flto=' error.

Task-number: QTMCU-163
Change-Id: I540438d8f4d006261e4cfda2bbba91984352db9d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-06-07 14:39:06 +00:00
hjk
49e17591ea ProjectExplorer: Use aspects as direct members in MakeStep
Less indirection.

Change-Id: Ie0086f7f2365512694fb3de77d3efc838e6e95ed
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-07 14:17:40 +00:00
Christian Kandeler
24df1f1183 ClangCodeModel: Support new clangd semantic token for labels
See https://reviews.llvm.org/D143260.

Task-number: QTCREATORBUG-27338
Change-Id: I26eb3688f311d93c966901a6639931fec944dd49
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-06-07 14:00:37 +00:00
Christian Stenger
d0bf83f86a Axivion: Change dashboard icon
We are not opening a webbrowser, so the old icon
might be misleading.

Change-Id: Ib782c80474b8d669684695a86913dfb4fbb84b49
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-07 13:54:24 +00:00
Burak Hancerli
8af0c065ac QmlProject: Reorganize unittests
Task-number: QDS-9946
Change-Id: Ib165340d13e40c6e8fba08a828ceecb312dd5dde
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-06-07 13:14:27 +00:00
Alessandro Portale
365d6bce5c QtSupport: Use LayoutBuilder for "Link to Qt" dialog
Change-Id: I0e497ad7eca680ff6ea913bd6a8c6224273f3809
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-07 12:13:43 +00:00
Marcus Tillmanns
f003234510 Utils: Convert openTerminal.py to Terminal.app
Qt Creator 10.0 may have saved "openTerminal.py" in its settings.
We don't used that anymore, so we convert it to Terminal.app.

Fixes: QTCREATORBUG-29246
Change-Id: Ifc67e6e7bbc7af5dfaf6703b3bd34ded847c5013
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-07 12:11:28 +00:00
Marco Bubke
ff2a14917f QmlDesigner: Only enable error on warnings as you compile with tests or in debug
There is no advantage for an enduser to get errors on warnings because
he cannot do much about it. It is still nudging the developers to fix
the warnings.

Task-number: QTCREATORBUG-29238
Change-Id: If9f73f2766d686b119cd264ee7b3c3c9afa2c70d
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-06-07 11:32:02 +00:00
Marco Bubke
898a7cbc88 QmlDesigner: Make more classes final
Because the interface is for dependency injection only the
implementation should be always final.

Change-Id: I069126d8767b0e1072c1e938acb42086abed4a1e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
2023-06-07 11:31:36 +00:00
Marco Bubke
278d69df4f QmlDesigner: Fix deprecated function calls
count() -> size()
userType() -> typeId()
type() -> typeId()

Fixes: QTCREATORBUG-29237
Change-Id: Ic63b79f6fab1f6ed5227d97aa12dcbfdebb4f05f
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-06-07 11:31:25 +00:00
Marcus Tillmanns
b2364923e6 Terminal: Fix compile with Qt < 6.5.0
Change-Id: I23a95eb598e5bcba43621b2beb5a82b056bf5e83
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-07 10:59:14 +00:00
Marco Bubke
63f366efdd QmlDesigner: Don't initialize a default model node with an internal ode
I think we introduced that because we had no valid checks in the methods
but exceptions. But after we check for every method for validity we
don't need it anymore. It would fix
093a842650 in a more optimal way. Needs
good testing!

Change-Id: I99b712c6526711836a760f3bb4031d4a9d51b935
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2023-06-07 10:55:08 +00:00
Marco Bubke
dd7027e30e QmlDesigner: Improve internal property
Remove useless lookups and make the code more clear. An enumeration
instead of virtual functions defines now the property type.

Change-Id: I5dc8704bdb24553e7b9c818562ea1c8de8ae2153
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2023-06-07 10:55:00 +00:00
Marcus Tillmanns
dd99b83e62 Terminal: Fix tooltip
Fixes: QTCREATORBUG-29260
Change-Id: I6bde92e0caaa62598f25d1af7f7a69548b8fa4d3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-07 10:51:28 +00:00
Jarek Kobus
34ef7d4150 AndroidSdkDownloader: Use Utils::NetworkAccessManager
Change-Id: Idd245f578ead0f22e457f9571441a4d9c9a1ce40
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-06-07 10:36:47 +00:00
Jarek Kobus
abb85b073a QScopeGuard: Make all usages of QScopeGuard consistent
Change-Id: Icfc35ecbdbdee8dadbb1b17789694093427c3ed9
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-06-07 10:35:01 +00:00
Jarek Kobus
aefd4d759e Utils: Get rid of ExecuteOnDestruction
Change-Id: I6c93e665268df16d10d899743052e698a421e0f5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-06-07 10:34:54 +00:00
Jarek Kobus
f1c04035a6 CPlusPlus: Reuse QScopeGuard instead of ExecuteOnDestruction
Change-Id: Ifb2cf839777c18b4f66a88b7f5106f05148b0c20
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-06-07 10:34:48 +00:00
Jarek Kobus
deb74751fb Various plugins: Reuse QScopeGuard instead of ExecuteOnDestruction
Change-Id: I3341342bc763fade5ad9dcb854928e5499287472
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-07 10:34:41 +00:00
Christian Stenger
585eb1c3e4 QmlJS: Switch default enabled state for analyzer message
This message was mainly added for the QmlDesigner and DesignStudio.
It might be a valid warning under circumstances, but it may also
prevent valid use cases.
Turn it off by default and enable it for the QmlDesigner parts.

Fixes: QTCREATORBUG-29088
Change-Id: Id2c76efdf3fa419cfce71ad89360927241d41ac8
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2023-06-07 10:32:06 +00:00
Marcus Tillmanns
217b03c1ac Terminal: lock/unlock keyboard
We copied QShortCutMap into Qtc to allow us tight control over which shortcuts
are "enabled" while the focus is inside a terminal, and the keyboard is "locked"
to the Terminal. Locked here means that except for a select few, all key presses
are send directly to the terminal and cannot be used to activate other actions.

Change-Id: I96cddf753033c0f4e7d806b20085bb4755853117
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-07 10:29:47 +00:00
Miikka Heikkinen
5d8bbe6f5d QmlDesigner: Cache graphics pipeline in puppet
Caching the graphics pipeline to disk improves puppet reset speed
somewhat when there are complicated 3d scenes.

Task-number: QTBUG-103802
Change-Id: I49b4f1031ab79bb5f660578e3d82806675f468dc
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-07 10:19:35 +00:00
Henning Gruendl
d87e420b39 QmlDesigner: Remove old states editor QML source
Task-number: QDS-10037
Change-Id: I3fac32afa35940bd857df04ad5f1a0ba2695401e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-06-07 10:16:27 +00:00
Tim Jenssen
a6d1b594a4 Merge remote-tracking branch 'origin/11.0' into qds/dev
Change-Id: I79a272471b3400eec0a0fa9fca175d1d4a8c0a13
2023-06-07 12:07:21 +02:00
Tim Jenssen
ad5e8392fe ProjectExplorer: fix warning when there is no buildConfiguration
For example in QML projects.

Change-Id: I8ff53ce367f2b6f8d0baaf3c7ae1bd03acab84e0
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-07 09:50:48 +00:00
Tim Jenssen
adc901ba2c QmlProjectManager: fix warning when project has no mainScript
happens at start when project is still parsing

Change-Id: I02b1d52b41c4f092fb4f45cf3dcf192e29eda324
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-07 09:50:15 +00:00
Tim Jenssen
2b4fe0aef8 Qml: fix Boot2Qt deployment from Windows host
- fix QmlBuildSystem::target*() to resolve maybe device files
 - Cache lookup of qml path on device

Task-number: QDS-9994
Change-Id: I5675368368f2d1cc513feb98fdcdd75fda1a764a
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-06-07 09:49:30 +00:00
Jarek Kobus
04b86eb3db ImageScaling: Implement the example using TaskTree
Change-Id: Iac54157955d5dffe12a7fdeed904fbcf62a2b667
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-07 09:27:40 +00:00
Ali Kianian
69244a7a3a QmlDesigner: Fix the Crash on hovering bake lights icon
Task-number: QDS-10043
Change-Id: Ic049f55c6fc7aa86e1b3c1ec036df5cd5f25673e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-06-07 09:25:00 +00:00
Jarek Kobus
c276a896b8 AndroidSdkDownloader: Do some reformatting
Use #pragma once.
Use Android::Internal namespace.

Change-Id: Ic5ceef259fb2c333448f2ed48a10645d6945c029
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-06-07 09:22:37 +00:00
Marco Bubke
71e1a77197 QmlDesigner: Add removal for binding properties
If an id is present in a binding expression and the node with that id is
removed we remove the expression is removed too.

Task-number: QDS-10018
Change-Id: I6c33005edcbcafbff7dd82af47977b238068eba1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-06-07 08:09:40 +00:00
Tor Arne Vestbø
27b630c3ab Replace Q_OS_OSX with Q_OS_MACOS
Change-Id: Ibee0c259d7df86a8df58b1ad12549b145f715397
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-07 07:54:04 +00:00
Marcus Tillmanns
2d128e9c70 Debugger: Fix BreakpointItem::needsChange
Change-Id: I75680eddb7a6c2ba23148b66cf8dfcc08b07eca2
Reviewed-by: hjk <hjk@qt.io>
2023-06-07 07:50:25 +00:00
David Schulz
be0a129543 CMake: fix find link at
Change-Id: I1afcd3bd2b4db53ff8284f9acbe2b07102e66205
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-07 07:38:16 +00:00
hjk
0d4a546397 Debugger: Use Utils::Text::Position instead of int line number
The column is currently unused.

Change-Id: Iabc57c8d21e807187783071efe9a82e9c1877181
Reviewed-by: hjk <hjk@qt.io>
2023-06-07 07:36:29 +00:00
Marcus Tillmanns
a3fb6a3a1c Debugger: Fix compile warning
Change-Id: I77399e4f8260a043dbc429649fe33513d19fc91a
Reviewed-by: hjk <hjk@qt.io>
2023-06-07 07:30:13 +00:00
hjk
adcf52e0c4 Fix some more *::count() deprecation warnings
Change-Id: Ib7d1552a6f7b167e15beb7ca1ef26c7d57e090e9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-07 07:29:34 +00:00
Marcus Tillmanns
886ca55b5a Terminal: Fix warnings about re-registered action
Especially on Linux the pointer value of the Terminal might be reused,
leading to warnings about actions being registered for the same context.

Cleaning up the registration fixes this.

Change-Id: Ie1d53bf79581e9f98576e7a4e70420ec63da0f86
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-07 07:25:13 +00:00
Leena Miettinen
cdf7b63218 Doc: Add docs for using the Copilot plugin
Fixes: QTCREATORBUG-29219
Change-Id: I58215bcf2de92e4619ebd0256ec5cbef9bad45bc
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-07 07:23:16 +00:00
Leena Miettinen
e4dad9547f Doc: Describe the Terminal output pane
Fixes: QTCREATORBUG-29220
Change-Id: I407a7de1be7f485da99b445b967c768373c8c7f5
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-06-07 07:22:23 +00:00
Marcus Tillmanns
ce7677a7d7 Kits: Sort kit parts by device
Change-Id: I00e1db4897071ac6baf97c5bb6214c2658a7b9fb
Reviewed-by: hjk <hjk@qt.io>
2023-06-07 07:19:19 +00:00
Leena Miettinen
d58214fc35 Doc: Update info on using the Locator
- You can now locate files on remote file systems and switch
  the device root
- You can now create directories from the locator

Task-number: QTCREATORBUG-28996
Change-Id: I85ca475e76db7f8fa5d97b4e9d9c6b3aa80b4a32
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-07 07:19:04 +00:00