Commit Graph

67787 Commits

Author SHA1 Message Date
Leena Miettinen
3dfb866bab Doc: Fix broken links
By hiding them if the link target is not part of the manual
or by fixing the link target if the section heading changed.

Change-Id: Ib72c71852ea3f8dacbfedb71a94d64d3eb5378fb
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-02-23 11:53:12 +00:00
Miikka Heikkinen
8b8fc8458a QmlDesigner: Allow partially overwriting 3D imports
When importing a 3D scene, if an existing import with the same name is
found, allow partially overwriting an existing import by selecting
the files to overwrite.

Task-number: QDS-3738
Change-Id: I8969da9bd03ef47ede4768cc2c7eb033bee3cb66
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-02-23 11:15:15 +00:00
Alessandro Portale
670616c6f9 Android: Use qAsConst with non-const Qt containers in range-loops
Change-Id: I1242a5c62a27b7b8f30bb7b43ff406eceb4135f7
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2021-02-23 10:51:37 +00:00
Leena Miettinen
beebf9389b Doc: Describe "Text codec for tools" Environment option
Task-number: QTCREATORBUG-25162
Change-Id: I5a5e18cec9f2a1f5479b997c705517b07b794458
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-02-23 09:41:24 +00:00
Mahmoud Badri
80dfaf3be3 QmlDesigner: Expand collapsed component categories when searching
- Expand collapsed categories in the following 2 cases:
  - When searching.
  - When choosing "Expand all" from the context menu.
- Update only changed data when expand state changes rather than
resetting the whole model.
- Update search after adding a new QML import and switching to
the components view.

Task-number: QDS-3781
Task-number: QDS-3784
Task-number: QDS-3789
Change-Id: I09e6f1f97171cd9172cadf4202dd8d02cbb78513
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2021-02-23 09:17:06 +00:00
David Schulz
01caf29221 LanguageClient: assign document to correct client
If a server is setup to start per project we want to open files of a
project in the matching server by default.

Change-Id: Ie266fd858420acd75b7a1fd45be7bee2b06460aa
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-02-23 08:52:56 +00:00
David Schulz
9cc234fbdf LanguageClient: Add the project display name to the client name
If the client was opened for a specific project.

Change-Id: Iafc9f5d46d06e2e656702260f297d6b2b998a431
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-02-23 08:52:46 +00:00
David Schulz
65d977ed93 Android: generate .project and .classpath
These files are needed by the java language server to operate properly.

Change-Id: Ie96a1fe32fefeea7333c7fa752557f79796a1478
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-02-23 08:52:04 +00:00
David Schulz
605df0c4b6 Java: use a temporary directory for the workspace
Change-Id: Ie8fc01f680393f141f099f57b98eb16a10b37d7e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-02-23 08:48:49 +00:00
Leena Miettinen
1dafabdb87 Doc: Describe filtering search results for symbol usage
- Use the current name for the menu item in change log:
  Find References to Symbol Under Cursor
- Update screenshots

Task-number: QTCREATORBUG-25162
Change-Id: I3c46561c91c01f2d33039cb4431cd6b88d163e68
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-02-23 08:48:04 +00:00
David Schulz
3f773cb1e5 LanguageClient: avoid sending message to server shutting down
Send the workspace change method before the server gets shut down.
Prevents an assert in Client::sendContent.

Change-Id: Iaedc9829379d987aa6f91a87e26d35b64a9f0f55
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-02-23 08:45:52 +00:00
Leena Miettinen
870e495479 Doc: Describe "Generate Constructor" refactoring action
Fix entry in the change log to use the correct action name.
Also fix the entry above to use the action name.

Task-number: QTCREATORBUG-25162
Change-Id: Iebc2c6634c7bdc51ab97bb48ecce081e4000eccb
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-02-23 08:44:01 +00:00
Eike Ziller
d8a35381cf Update 4.14.1 change log
Change-Id: I988aebbd52c4c6ce8b09c49ee3cd63dc63ec9513
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
v4.14.1
2021-02-23 08:27:22 +00:00
Ivan Komissarov
13f466c05d cmake build: Explicitly turn on project file updates on the QtC side
We want to have flags consistent with the Qbs build and project file
updates are disabled by default (for standalone qbs builds in Brew or
choco) to avoid dependency on QtGui

Task-number: QTCREATORBUG-25232
Change-Id: I217057f45519e0c92201d1b76d5b04924804aed0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-02-23 08:06:55 +00:00
Leena Miettinen
1ca2affa74 Doc: Add docs for Design mode toolbar icons and fields
Task-number: QDS-3771
Change-Id: I23ed3586090c47494831e156d04f8a40ebd586ca
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-02-23 08:04:34 +00:00
Leena Miettinen
e34bdf8c4d Doc: Rename and restructure Editing QML Files in Design Mode topic
Add a table that lists the views and links to their documentation
and to the documentation for the tasks that users can perform in
the views.

Change-Id: I96748b62163613aff1bb5f71782af007299b02ce
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-02-23 08:04:26 +00:00
Thomas Hartmann
c22ed5528d Add support for powershell Expand-Archive for archives
This will work with any Windows 10 installation.

Change-Id: Ia7ca25a5ba4e199ccfc37138e228c4d56f0f8a6a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-02-23 08:03:52 +00:00
Leena Miettinen
08e1893f0b Doc: Create a separate topic for Properties view
And place it under Design Views.

Restructure the Specifying Component Properties topic to start with
common component properties through setting colors to developer
properties.

Task-number: QDS-3771
Change-Id: I5cdfa12217fd61efac8eedad3efdd4486ef9593e
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-02-22 17:18:10 +00:00
Leena Miettinen
04612e7736 Doc: Add a summary of Navigator icons and the actions they apply
Change the topic name to Navigator and move the topic under
Design views in the TOC.

Replace occurrences of "item" and "QML type" with "component".

Task-number: QDS-3771
Change-Id: I7dbe9803d88a409c8ba0a0ef074e2bc8a6866dec
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-02-22 16:57:21 +00:00
Leena Miettinen
048a826943 Doc: Rename Form Editor view topic using the view name
...and move it to the topic that describes Design views.

Change-Id: Ifb0c70936cb1059b8c7e4b86a23a4035b8047411
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-02-22 16:18:16 +00:00
Mahmoud Badri
abc0559316 Fix property editor expand not working regression
Regression caused by 43eaa09b11

Change-Id: Ia749672464790b235f292efe09b6cc48e1df6b6e
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-02-22 16:13:45 +00:00
Cristian Adam
bc3b5bf1f3 Core: Better description of codec for locale label
"Text codec for locale" has been replaced with
"Text codec for tools".

Ammends 1d27f894bb

Change-Id: I022d67aabccd9485b6c629af352b66289a29be55
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-02-22 13:57:53 +00:00
hjk
c4b7da9ab2 ProjectExplorer/Debugger: Add a 'Run as root' option for Unix hosts
For local run and GDB debug, with or without terminal.

Task-number: QTCREATORBUG-2831
Task-number: QTCREATORBUG-25330
Change-Id: I9b5d2156bcffea4f358474ecdbcad580a4419917
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-02-22 13:38:25 +00:00
Henning Gruendl
9bc9a4d376 QmlDesigner: Fix regression in template generation
Fix property editor template generation for alias properties.

Task-number: QDS-3740
Change-Id: I082e213a5f05a5ba35bb94d41924dcac81404c61
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-02-22 13:37:36 +00:00
David Schulz
4a8443ff81 LanguageClient: remove unused function declarations
The formatting functionality moved into the LanguageClientFormatter.

Change-Id: I2fb941485b1407d8bf148b2868a9c7593b6dd61e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-02-22 13:04:30 +00:00
hjk
c8829ff5b3 Utils: Use value/setValue instead of settings also for TriStateAspects
Change-Id: I3d0a58917cd6682e14894e4320d166a1c8de6a9a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-02-22 12:06:11 +00:00
hjk
f8a946ce96 ProjectExplorer: Silence recently introduced warning
The checked path is actually used in the context of the debugger.

Change-Id: I58af35db65b8fb4ad0af9694714765bdc336a0ef
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-02-22 12:06:02 +00:00
Leena Miettinen
564d27f664 Doc: Update Kits Options screenshot
Task-number: QTCREATORBUG-25162
Change-Id: I6b230ec4905ffaa6055e67112e80a8c372bfdeaf
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-02-22 11:42:06 +00:00
The Qt Project
ec5f7d8a6b Merge "Merge remote-tracking branch 'origin/4.14'" 2021-02-22 11:20:52 +00:00
Eike Ziller
c55e59cb77 Merge remote-tracking branch 'origin/4.14'
Change-Id: Ib9512b4fc5e17b04ca4be79fc315e79a52d06497
2021-02-22 12:19:58 +01:00
Christian Kandeler
b066b3029e CPlusPlus: Improve type name minimization
... for function parameters. These are located in the scope of the
surrounding class or namespace.
This uncovered a bug in the "Insert Virtual Functions of Base Classes"
quickfix, which we also fix here.

Fixes: QTCREATORBUG-8030
Change-Id: I7f11659dc8e252e3819df8178734e8958fa1b496
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-02-22 11:16:49 +00:00
Eike Ziller
f47c7b2e90 Valgrind: Do not save defaults to settings
Task-number: QTCREATORBUG-24762
Change-Id: I10fee50cde9facaa35a67114ac15e8b1daa72ab2
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2021-02-22 10:24:03 +00:00
Michael Weghorn
f4dc3fd5c5 Debugger: Prepend '*'s for autodereferenced pointers
If automatic dereferencing of pointers is enabled, the
"Value" and "Type" columns for pointers hold the values for
the dereferenced pointers.

In order to have a consistent behavior for the "Name" column
as well, prepend '*'s to indicate that the variable/expression
has actually been dereferenced.
Add parantheses around the original expression if it doesn't
match a simple regex for variable names, to avoid that the
leading '*' changes the meaning of the expression
(so e.g. a dereferenced 'somepointer + 1' is displayed
as  '*(somepointer + 1)' rather than '*somepointer + 1').

This introduces a new 'autoderefcount' field to propagate the
information how many levels of dereferencing have taken
place from the Python to the C++ side, which is then
used to add the leading '*'s for the display name.

Fixes: QTCREATORBUG-20907
Change-Id: Ia9a41cb42e25ba72a6d980a765dbe2b454deb8c8
Reviewed-by: hjk <hjk@qt.io>
2021-02-22 09:36:45 +00:00
Leena Miettinen
c6493e170f Doc: Describe the Zoom field in Help Options
Task-number: QTCREATORBUG-25162
Change-Id: I11842989df9bab1c5ba1f3e553b486b6cbe88239
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-02-22 09:15:52 +00:00
Leena Miettinen
adce958d5c Doc: Describe the global setting for system environment
Used when determining the build and run environment and
the environment for running external tools.

Task-number: QTCREATORBUG-25162
Change-Id: I6ddf4952bed5ae9190b65bbac8f0c17404be0538
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-02-22 07:32:18 +00:00
Eike Ziller
7cb81fb5ba CMake build: Add .pri files to development package
This adds at least partial, transitional support for building
3rdparty plugins with qmake against Qt Creator built with CMake.

This might still miss some other .pri files that follow
their own naming conventions.

Fixes: QTCREATORBUG-24055
Fixes: QTCREATORBUG-25334
Change-Id: I83cc547da938976c2ec12a21a17f286b937147f7
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-02-22 07:30:33 +00:00
hjk
fa617b4018 Utils: Fix BaseAspect::fromMap()
The world is not boolean.

Amends a2d6c2b34a.

Change-Id: I4bf901ea6967080964ab1681d2e577fed42a0943
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-02-22 06:51:12 +00:00
Christian Stenger
2f67d75ca4 Debugger: Avoid looking up function signatures
Looking up function signatures ends up in massive
stderr output which blocks the debugger for ages, so omit
them as long we are not sure where they originate.

Task-number: QTCREATORBUG-25185
Task-number: QTCREATORBUG-25217
Change-Id: I9b022d2194a6cb61651ee0648be526fc94a02da9
Reviewed-by: hjk <hjk@qt.io>
2021-02-22 06:21:39 +00:00
Tom Praschan
f600386732 Fix dot command for pasting with 'P' being 'p'
Change-Id: Ic491f3a198a03fd08a680e044c4e8f2f5ebe2866
Reviewed-by: hjk <hjk@qt.io>
2021-02-22 06:06:49 +00:00
Cristian Adam
cc0fa86ffd CMakeProjectManager: Add package manager auto-setup
Adds CMAKE_PROJECT_INCLUDE_BEFORE as initial CMake parameters
with a path to a auto-setup.cmake script that will run
conan install if a conanfile.txt is found in the prject.

A project can have a local QtCreatorPackageManager.cmake file
that will be loaded if exists.

The auto setup can be controlled via the following CMake variables:

* QT_CREATOR_SKIP_PACKAGE_MANAGER_SETUP
* QT_CREATOR_SKIP_CONAN_SETUP
* QT_CREATOR_SKIP_VCPKG_SETUP

conan.cmake is taken from https://github.com/conan-io/cmake-conan
which takes care of the conan specific compiler cruft. License
is MIT.

Fixes: QTCREATORBUG-25362
Change-Id: I70a6e1abc5600851d048f1590ca24204ce52a503
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-02-19 17:54:45 +00:00
Eike Ziller
813d020fa5 Update 4.15 changes file
Change-Id: If4a986a9479b04facf87e784c31121b0380cb5e3
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-02-19 16:48:44 +00:00
Christian Kandeler
485bcc4b61 ClangCodeModel: Change default set of warnings
... to "warnings from build system".
It seems appropriate to respect the project settings by default.

Change-Id: I397c252409a012f4663f3752c5c097fa0e658da4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-02-19 16:09:37 +00:00
Eike Ziller
015080878c Update changes file for 4.14.1
Change-Id: I1855a07186e0cbbc51ca475bd525818bcb9e1bc0
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-02-19 14:26:01 +00:00
hjk
6bba37ab16 Analyzers: Re-enable switch between global and project settings
This was apparently always using project settings for a while,
even when "Use Global Settings" were selected in the Run settings.

Change-Id: I1293a617edcbfd6bc47c57102fa53096c717ec4e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-02-19 13:40:28 +00:00
Tapani Mattila
130e05845c QmlDesigner: Easen assert on non-fatal double qml node insert
Change-Id: I3ca0d0c5427f548e249bdc3af2fd1d8281544ba7
Reviewed-by: Michael Winkelmann <michael.winkelmann@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-02-19 13:25:52 +00:00
Jarek Kobus
31d3e3252f Use QMutexLocker for lock/unlock
Change-Id: Ib8c6cdc71a3d82785619260c4ace7362c6847f99
Reviewed-by: hjk <hjk@qt.io>
2021-02-19 12:38:30 +00:00
David Schulz
2fe3ce93ae LanguageClient: Do not handle messages while shutting down
Fixes crash of todays demo...

Change-Id: I0af3edd098b5c05d7d74ff336739f1180a1ec348
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-02-19 11:43:27 +00:00
David Schulz
30e1387130 LanguageClient: clear extra selection when diagnostig gets hidden
Change-Id: I3b10301193e988eacc23eb9e55576eef5f69fb3f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-02-19 11:43:06 +00:00
David Schulz
94ee80b222 JLS: add special java client that can execute jls commands
the java language server uses special "java.apply.workspaceEdit"
commands that already contain the workspace edit that should be applied
when triggering the command.

Change-Id: If7c53b9b097aaeca289e3958a39be37a9725d395
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-02-19 11:42:59 +00:00
Christian Stenger
49ae9b5b30 Utils: Fix initial values for some aspects
Change-Id: I6ca0360587c2af91d267b59efa9d7bc208b806cd
Reviewed-by: hjk <hjk@qt.io>
2021-02-19 11:41:16 +00:00