Commit Graph

72385 Commits

Author SHA1 Message Date
hjk
d70bc79809 Qnx: Merge qnxbaseqtconfigwidget.{cpp,h} into qnxqtversion
Not worth a file pair of its own.

Change-Id: I5a7e64d142e38a075f726ca6d6a8cb2e4a39e57b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-10-28 11:20:43 +00:00
Eike Ziller
ab86842ac5 Bump version to 6.0-rc1
Change-Id: I08fc4a48ad6089e4477230824317ae0f1bd408e5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-10-28 11:11:27 +00:00
David Schulz
399a5cb713 Debugger: make inappropriate debugger warning silenceable
Task-number: QTCREATORBUG-14539
Change-Id: Idb119736816c933509fac5748beb547696a991c0
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-10-28 11:02:47 +00:00
Christian Kandeler
a437539096 CppEditor: Fix doxygen comment magic before templates
Fixes: QTCREATORBUG-9620
Change-Id: I65a434d72adbe72d449783a917444c2ee216fc5e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-10-28 10:05:43 +00:00
Christian Kandeler
d8d4739bc4 TextEditor: Allow special highlighting for static members
Task-number: QTCREATORBUG-9659
Change-Id: Idae529fd876ba5f555c76e4d282efc9263263d6c
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-10-28 10:04:57 +00:00
Eike Ziller
1a00bb50d4 Android: Fix lupdate issues
Change-Id: I08bdc81eabb082a091f27d2dea44369573946c49
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2021-10-28 09:41:08 +00:00
David Schulz
204a2daac0 Debugger: show info when installed qt misses debug symbols
Pointing the user to the relevant package that has to be installed in
order to get the full dumper functionality.

Task-number: QTCREATORBUG-26456
Change-Id: I0e80f06e1cadcaa9ad2f8a734ca4dda026fc95db
Reviewed-by: hjk <hjk@qt.io>
2021-10-28 08:38:32 +00:00
Eike Ziller
e6130c9446 Merge remote-tracking branch 'origin/6.0'
Change-Id: Ie46e0028f0dca9f3ddc45ed8794ba6cddd97df26
2021-10-28 10:31:51 +02:00
hjk
fdfc558946 ProjectExplorer: Use FilePath for CustomExecutableRC::executable
... and clean up #includes.

Change-Id: Ia9c4c1d366b633e1cd017eabd07244891ab7ca57
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-10-28 07:56:33 +00:00
hjk
c6bc5583d6 Utils: Don't expose FilePath::mapToGlobalPath anymore
The indirection is triggered via scheme and host. And if it already is in
that form we do not need to add these information.

Change-Id: I13c2bd0864a956c5cdaa5e2e6b324bb7f67c93e3
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-10-28 07:53:37 +00:00
Miikka Heikkinen
982f23be38 QmlDesigner: Allow invalid property value for QVariant type properties
Invalid QVariant is a valid value for properties of type QVariant, so
propagate the value change from puppet to creator in that case.

Also change the property editor to notify controls of value change in
case of invalid value set, and clear LineEdit when invalid value is
set.

Fixes: QDS-5304
Change-Id: I02c7daaf3cde06317690a32e7ac8a82da754bd58
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-10-28 07:50:20 +00:00
Miikka Heikkinen
41f96fe05b QmlDesigner: Reset puppet on repeater model change when necessary
This is a workaround for Qt bugs QTBUG-97583 and QTBUG-97586.

Fixes: QDS-5235
Change-Id: I37de4829fea63b0c488815975ae2dd58ceb36b71
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
2021-10-28 07:50:14 +00:00
Eike Ziller
53714b2b1d UpdateInfo: Use new MaintenanceTool semantics
It's been available since a while, and is the preferred way to use it
nowadays.

Task-number: QTIFW-2349
Change-Id: Ic55f209ab7068d1d093cf92cb21e33794c0b04f1
Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Reviewed-by: Katja Marttila <katja.marttila@qt.io>
2021-10-28 07:31:06 +00:00
Artem Sokolovskii
691e340b81 QtcWizard: Fix build empty project
Added TargetName parameter for executable file name
in order to avoid names conflict between qml resource folder and
executable file name.

Fixes: QTCREATORBUG-26375
Change-Id: I7f59b8001246d175a87309a9b31ff7110d76b148
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2021-10-28 07:26:20 +00:00
hjk
5d190fcfaa Utils: Make FilePath::mapToDevicePath() private
User code is supposed to use .onDevice(...).

Change-Id: Ia14198bbd472db05f5177f06f832dfc468415ba1
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-10-28 05:23:57 +00:00
Robert Löhning
c4ba0c2021 Squish: Update for running suite_CSUP
Change-Id: I2773f98af0a6656fcf1362b4dcd2d853cc2aea81
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-10-27 18:47:04 +00:00
Jarek Kobus
2ac65f863b Refactor the lifetime of future watcher inside QmakeProFile
Create future watcher only prior to starting an async task.
After the task is done, clean the watcher in order to release
the resources kept inside its QFuture's result.

Make setupFutureWatcher() a private member. Provide
a corresponding cleanupFutureWatcher().

Change-Id: I9d2b058250a3f749a2c9ad51323d2d38f66ee98d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-10-27 14:42:42 +00:00
hjk
13807ff021 CMake: Drop use of FilePath::mapToDevicePath()
That's implicit in .onDevice() since c82e3cf6a8, doing it twice
is not good.

Change-Id: I8c1d5d31d155d3a7c4af8bd874fbba5ab3e8cf72
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-10-27 14:24:32 +00:00
hjk
6ae36127bf ProjectExplorer: Search netstat in PATH on Windows
As well as all other commands called via DesktopDeviceProcess.

Fixes: QTCREATORBUG-26485
Change-Id: Icfd3ab69de771bf58d5e9202fe1879e4063d5204
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-10-27 13:52:15 +00:00
Leena Miettinen
2654f74c3b Doc: Remove obsolete image files
Task-number: QTCREATORBUG-26483
Change-Id: I48ead2908f8f3b6555f2d91a2906c5bf65976d95
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-10-27 13:40:08 +00:00
Leena Miettinen
60b9a4aa39 Doc: Move a file back from doc\qtdesignstudio\images
...to doc\qtcreator\images.

The image was accidentally moved.

Change-Id: I8929b70225e524bbe50b1f1359cf4f9c1956057f
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2021-10-27 13:39:51 +00:00
Leena Miettinen
1a84cdab84 Doc: Hide ADS (workspaces) information from Qt Creator Manual
ADS is used only in Qt Design Studio, even though the Debug mode
also has "workspaces".

Move the topic source file and image files to doc\qtdesignstudio\.

Task-number: QTCREATORBUG-26321
Change-Id: I72b0011a6c8258df8a5e938f3f33d44c39ccfa4c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2021-10-27 13:30:24 +00:00
Christian Kandeler
0814af1503 CPlusPlus: Fix build
Amends 05e698a478.

Change-Id: Ie33c233b89cad40f7e6a29a26582990ba9029f44
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-10-27 13:28:25 +00:00
Christian Stenger
44c8116597 Qmake: Fix stripping of std c++ flags
Change-Id: Ie2f0dbd63e7ecd53b7d034ab2930e5d05f0e01ea
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-10-27 12:35:06 +00:00
hjk
b153aa5459 RemoteLinux: Use more FilePath in AbstractPackagingStep
Change-Id: I66533efd39f58f9bcc4a57334d427aa225bc73d8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-10-27 11:57:13 +00:00
Leena Miettinen
14a81406e3 Doc: Update the Qt Quick Application tutorial
- Remove references to Qt Quick Designer plugin
- Remove obsolete screenshots
- Promote code completion and Qt Quick Toolbars
- Describe using wizards to create custom QML types
- Describe adding resources to CMakeLists.txt files

Task-number: QTCREATORBUG-26483
Change-Id: I804870b962e0d1daa6ba7c988425f14ad87fe888
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-10-27 11:42:48 +00:00
Christian Kandeler
05e698a478 CppEditor: Fix "insert def from decl" for template return types
Fixes: QTCREATORBUG-26397
Change-Id: Ia215f2c2b5da708b0fd7c894987683b305f4ccec
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-10-27 11:23:36 +00:00
Christian Kandeler
a1f088376a ClangCodeModel: Mark output arguments also for lambdas
... with clangd.
This required rewriting getAstPath(), because the previous
implementation did not do the necessary backtracking and could therefore
miss the AST branch containing the node fully matching the input range.

Task-number: QTCREATORBUG-22381
Change-Id: Id5caf2a401b920c0e76f742bec97b5ca6977b4df
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-10-27 11:22:52 +00:00
David Schulz
27ff70fd88 Editor: remove moved file from syntax-highlighting.pro
Change-Id: I30b5bb884274dc2526291826ce5cc823cc5e921d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-10-27 10:20:42 +00:00
Christian Kandeler
2ecbbb126d ClangCodeModel: Do not let clangd insert header files on completion
... by default.
This feature often doesn't do what you'd want it to, so we make it opt-
in.

Change-Id: I631eae9c154ddcb0e8feeac44c5d5c0265706a67
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-10-27 10:17:39 +00:00
Eike Ziller
b5fd63b431 Merge remote-tracking branch 'origin/6.0'
Change-Id: I9b824b8bb7b0b5d76e9e8f28f909b542adf773f0
2021-10-27 12:05:08 +02:00
Eike Ziller
6bf8e5dfce Revert "Update Qbs submodule to the top of 1.21 branch"
This reverts commit 9edecd1c94.

Reason for revert: Broke the build on Windows: LINK : fatal error LNK1104: cannot open file 'lib\qtcreator\qbsvariant.lib'

Change-Id: I393a8eb90ed21344d6ff6d9e87a5b421b5cb9491
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
v6.0.0-beta2
2021-10-27 09:49:11 +00:00
Christian Kandeler
49a8b021d9 CppEditor: Make pure virtual functions opt-in
... in the "Create implementations for all member functions" quickfix.

Fixes: QTCREATORBUG-26468
Change-Id: I0965290c38cc66cffaf5dd3871eb96b6ff24b4d2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-10-27 09:19:22 +00:00
Christian Kandeler
78d6c0a15e ClangCodeModel: Adapt test to upstream fix in clangd
See https://reviews.llvm.org/D111224.

Change-Id: Id880468976e9036aa0c6212905101050ff43e34b
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-10-27 09:18:58 +00:00
Christian Kandeler
560d16a096 CppEditor: Follow symbols in generated UI headers to .ui file
Fixes: QTCREATORBUG-2374
Change-Id: I784fe39c11c834525cdd37ca719efa65efcb307c
Reviewed-by: hjk <hjk@qt.io>
2021-10-27 09:17:49 +00:00
Eike Ziller
dc5717bd06 Move File System view to Core plugin
So it can be accessed from a wider range of places.

Change-Id: I282883addecf7bb070a65d9f4f7b8e6e2e4b5e47
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-10-27 09:02:23 +00:00
David Schulz
d849643cb0 QmlJS: fix building tests
amends d68bb4687c

Change-Id: I7fc5b260a7748829038b8494e75e4cfc5a56945b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-10-27 08:46:04 +00:00
Leena Miettinen
b67482480e Doc: Update the Qt Quick Mobile application tutorial
Remove references to using visual editors and use the example code
from Qt Sensors module.

Add instructions for using CMake.

Add CMakeLists.txt, AndroidManifest.xml, and Info.plist files.

Change-Id: I956379fdf7d39161f571893d56250ec2dd2f5ddd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2021-10-27 08:40:52 +00:00
hjk
d68bb4687c QmlJS: Proliferate FilePath and QtcProcess use in QmlJSPluginDumper
Change-Id: Ie483bb2e9b5d812d380470949564a6bc57801fa9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-10-27 07:57:13 +00:00
David Schulz
d6c3a7297d Editor: fix clipboard collecting via mouse selections
Fixes: QTCREATORBUG-26471
Change-Id: I08264204c5ea5753b326417e5ba3a451cc6ef8f6
Reviewed-by: hjk <hjk@qt.io>
2021-10-27 07:56:45 +00:00
Jarek Kobus
0556eec9b7 Use a new enum indicating various start failures
Before the m_startFailure flag was used to detect the case
when the process failed to start because of wrong filename.
As this flag was set on any possible error we have always
detected the wrong filename case. Replace this flag with a
new enum describing various start failures.

Don't report again the crashed message. Check if we have already
reported the stop and we don't report it again. The
processExited() handler is being called twice: directly from
localGuiProcessError() and through the delayed localProcessDone().

Fixes: QTCREATORBUG-26467
Change-Id: I3cc6aa0c0b702256cefd77ba95793cd31e82ae10
Reviewed-by: hjk <hjk@qt.io>
2021-10-27 07:53:53 +00:00
hjk
de2423f514 Docker: Remove DockerRunConfiguration
This was a helper in the initial work on docker support which has
been commented out for a while already.

Using "docker runconfig" would technically work, however, this is
conceptionally the same as the old "matrix problem": We'd need
docker-specific almost-duplicates for every existing non-docker
runconfig. This does not scale.

Change-Id: Idf96abb6487903fdb89e7168a5ed78b9dc9dcecf
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-10-27 07:24:35 +00:00
Jarek Kobus
4b6b9f4dec Don't instantiate QTimer and QEventLoop for every QtcProcess
These two objects are only used when QtcProcess::runBlocking()
with m_processUserEvents option set is called, otherwise
they are unused. Create them only when they are needed.

This also solves the issue that these two QObjects were not
moved together with QtcProcess when it was moved to another
thread.

Change-Id: I7de6a92a51fc249184fc5811dac7a7bbf05d351f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2021-10-27 06:43:01 +00:00
Christian Stenger
0f552a4f28 McuSupport: Fix some warnings
Change-Id: I641a31ed18bb804ffe081852dcfb39499f24c30f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-10-27 06:40:51 +00:00
David Schulz
6cc6e854a6 Debugger: map stack frame paths to the device of the debugger
Change-Id: If20617faf63a6b934455267f5e9512e5c555e144
Reviewed-by: hjk <hjk@qt.io>
2021-10-27 06:40:11 +00:00
David Schulz
673e90b9de Debugger: show destribution debug package message for remote frames
Change-Id: Ie9f7b553357c0f041d266874d284504159708cd9
Reviewed-by: hjk <hjk@qt.io>
2021-10-27 06:29:07 +00:00
David Schulz
bc55c7cc70 Debugger: use FilePath in stack frames
Change-Id: I98b6aa60e1b72be3482916446b87cee89e6cf2a4
Reviewed-by: hjk <hjk@qt.io>
2021-10-27 06:28:56 +00:00
David Schulz
67607e4bc6 Debugger: adjust inferior paths for remote debugger
Change-Id: I251c7a69b6595848c737c2547d22d8e0a4f2076a
Reviewed-by: hjk <hjk@qt.io>
2021-10-27 05:34:28 +00:00
hjk
405daf4f51 QmlDesigner: Compile fix
Amends a393bcec38.

Change-Id: I00868a0de43d86b435f64e97725a0a66bd01266e
Reviewed-by: hjk <hjk@qt.io>
2021-10-27 04:07:29 +00:00
Eike Ziller
296b9b700d Update change log for 6.0
Change-Id: Ifb0aacc979910a9de1ea56d9ed31f856a0dbf376
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-10-26 20:08:25 +00:00