Commit Graph

74059 Commits

Author SHA1 Message Date
Robert Löhning
5ba3eb7fcf Squish: Update for running tst_generic_highlighter
Change-Id: I262fb7a7223e235708cbc7e8e382a2448a2f8c84
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-10-29 13:20:00 +00:00
Andre Hartmann
78a1beb06e Debugger: Improve handling of stdint types
* Make (u)intX_t known as integral type
* Handle uint8_t[] the same way as char[] and unsigned char[]

Task-number: QTCREATORBUG-26501
Change-Id: I1eac21be198f8107f088e56daf435b5bb3217120
Reviewed-by: hjk <hjk@qt.io>
2021-10-29 13:12:02 +00:00
Eike Ziller
d1b78efaf6 Add "Show in File System View" to more menus
And add a shortcut for editor manager for that, similar to "Show in
Finder/Explorer" and "Open Terminal Here".

Change-Id: Iddc287106e194c856501bf38e53b3c738a2aed1a
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-10-29 12:57:47 +00:00
Eike Ziller
03bcdc9186 Fix RPATH of Qbs binaries when built with Qt 6
The build system for Qt Creator ensures that we have the right
relative RPATH to Qt for the packages.
We still check if we need to fix the RPATHs when deploying Qt, and
the Qbs build relies on that.

That part was broken for Qt 6 since it looked for libQt5* to decide
if the relative RPATH to Qt must be added. Remove the Qt version
number from the check.

Change-Id: Ib9d0408943d61364bfe9c8813a55bf60145b7972
Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
2021-10-29 12:54:26 +00:00
Christian Stenger
39d04fa886 Utils: Clean path when transforming into QFileInfo
Fixes icons for relative paths inside locator.

Fixes: QTCREATORBUG-26411
Change-Id: Ia34d3b4af791ef79be4f349bd416df1190678557
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2021-10-29 12:38:04 +00:00
BogDan Vatra
fd0291df92 Make TextDocument::cleanWhitespace super fast
On documents with a lot of lines of code (e.g. ~30k) saving the
documents takes ages (+6 seconds).
With this change the time is reduced to less than 150ms.

Change-Id: I8a40253a91ae40a6681d5acf1f09711c9b63bd6f
Reviewed-by: hjk <hjk@qt.io>
2021-10-29 12:17:53 +00:00
Eike Ziller
a8bc9774f9 Qt 6 build: Fix Restart button for Link to Qt
Qt 6 ignores the call to close() for the main window, if the options
dialog is still open, so explicitly close it if the user chooses
"Restart Now" from the "Link to Qt" button in the Qt options.

Fixes: QTCREATORBUG-26279
Task-number: QTCREATORBUG-24098
Change-Id: Iaa1c4774dde5e20a7f40b03e0b8768fc9c22dd6c
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-10-29 12:08:42 +00:00
hjk
84f6b8891b Core: ExternalTool: Use FilePath also for executables
Change-Id: I6ec914b68ae41f9ee5eb28416c29d0431c5ab880
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-10-29 11:54:29 +00:00
Knud Dollereder
6d32550459 Improve 2d view navigation
- Get rid of lag when two-finger-swiping
- Enable one finger swipe and scroll gestures for the magic mouse
- Fixed a bug where the toolbar zoom slider from the transition.-
and timeline editor where not updated when zooming with a gesture.
- When scrolling the curve editor, its toolbar was scrolling together
with the rest of the view. This is now fixed in order to be
consistent with the timeline view and transition editor.

Change-Id: I611015af134976588fbcada0bc5ccfdcf8039c27
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-10-29 11:35:40 +00:00
Robert Löhning
73405cc089 Squish: Update for running tst_APTW01
Change-Id: I95ac2d2209dbc47e316b746313e4545a1b80ab55
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-10-29 11:23:37 +00:00
David Schulz
d5467917d0 Editor: Collect keyboard selections to the clipboard
Fixes: QTCREATORBUG-26492
Change-Id: I36c3ae73d8d5b2ea92cee3fd7c568b958c3235ae
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-10-29 10:57:53 +00:00
hjk
17a545115b QmlJS: Proliferate FilePath use, part 3
Change-Id: I3c293a9974414b669a1af8b98afb76a4eb4fbd11
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-10-29 08:55:29 +00:00
hjk
45a716bd0c Debugger: Use FilePath in DebuggerEngine::gotoLocation()
Change-Id: Ic3a278de7f70af677547f00bc6de4d7bd15502bd
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-10-29 08:40:34 +00:00
Christian Kandeler
c3a1193969 TextEditor: Add highlighting category for namespaces
... and make use of it in the built-in code model and with clangd.

Task-number: QTCREATORBUG-16580
Change-Id: I8c331f56aa1bbf91c9f768be82a779a72f40c4c7
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-10-29 08:36:20 +00:00
Miikka Heikkinen
dc9dc6b002 QmlDesigner: Adjust ComponentTextModifier offsets on doc text change
ComponentTextModifier offsets were set at modifier creation time, and
were not adjusted for changes on the document before the subcomponent
code. Added rudimentary change detection logic for code additions and
removals before subcomponent code and adjust offsets accordingly.

Fixes: QDS-5305
Change-Id: I816adc1fc867b7135b992fb50a5d96e2cfd3f0d2
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-29 07:39:15 +00:00
Thomas Hartmann
4ad8890b88 QmlDesigner: Use AuxiliaryData as cache for NodeHints
Evaluating the NodeHints can become a bottle-neck in large scenes.
The columnCount depends on the filter and is called many times
during painting.

For large scenes with many nodes this becomes a real bottle-neck
turning QDS unusable.

Task-number: QDS-5277
Change-Id: Ifbd9ec8024e30541bfaafba4c44db47f5c426bfc
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2021-10-28 19:00:23 +00:00
hjk
761ce1feb1 QmlJS: Proliferate FilePath use, part 2
Change-Id: I631df6ba5e782e2db9e03de4e5df843d15c19f37
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-10-28 14:08:13 +00:00
David Schulz
b59c374217 Utils: sort the cursor before copying or inserting text
The user shouldn't care about the order of the individual cursors inside
the MultiTextCursor, so the order of selected texts should always be the
same as in the document.

Fixes: QTCREATORBUG-26494
Change-Id: I0d5199bda4e48f8482e20018b8f05020e16da3f6
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2021-10-28 13:26:27 +00:00
Cristian Adam
e51ee5e0ee GitHub Actions: Update Qt version to 6.2.1
Change-Id: I0b1bda8880620a17c51e43e5278dda5ced6be145
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-10-28 12:30:50 +00:00
David Schulz
a442d275fc Editor: hide old proposal if new proposal is empty
amends 28447355ba

Change-Id: Ica1b95e205be4328e675714dbf81f813a76ec9a3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-10-28 12:18:02 +00:00
Henning Gruendl
a9bb006442 QmlDesigner: Fix CharacterSection
* Add enabled state to Weight and Emphasis label
* Rearrange controls in character section

Change-Id: Ie90935a09e1644f642abb232c7e44db7f3a6c8d8
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-10-28 11:35:23 +00:00
Christian Kandeler
1311244832 ClangCodeModel: Do not always consult clangd for the symbol name
... when doing "find usages".
The symbol info request follows typedefs, which will result in confusing
search window contents. So do the symbol info request only if the cursor
is not on a normal identifier.

Change-Id: I0d3bd8bfd47879c59e6656a4da73344406c97a21
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-10-28 11:27:12 +00:00
Mahmoud Badri
5d3bc6a0c3 QmlDesigner: Execute assets adding in 1 transaction
When dropping external assets, create the items in 1 transaction so
that 1 undo press undos all assets creation.

Change-Id: I45b38542f41964a18fd6095eea9bf61b9dca4392
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-10-28 11:23:37 +00:00
Miikka Heikkinen
1f7ada8066 QmlDesigner: Remove default properties removed from model also from QML
If default property has actual value, binding, or inline node set,
it should be removed also from the QML doc when removed from the model.

Fixes: QDS-5239
Change-Id: Iffc27685321f96af46148ab877566c2026cc47d5
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-10-28 11:23:13 +00:00
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