Commit Graph

72385 Commits

Author SHA1 Message Date
Vikas Pachdha
5052c2e415 Docs: Add instructions to run Qt-Bridge plugin on Apple silicon
Task-number: QDS-5684
Change-Id: I5be5b3c7fd9d1c2490b5b4adf3f6d587860ba8c5
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-12-07 09:07:42 +00:00
Miikka Heikkinen
9c15b5b16d QmlDesigner: Update _pickTarget of Repeater3D created objects
The objects Repeater3D creates are created after handleInstanceHidden
is called for the repeater instance, so the _pickTarget of the created
children doesn't get properly updated. Added signal handler to
make sure handleInstanceHidden is called again after all objects have
been created.

Fixes: QDS-5643
Change-Id: I8b63614fca0be3956b6896028e3f3a0f49bfe397
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-12-07 09:00:25 +00:00
Jarek Kobus
b6a996a8d5 DiffEditor: Assert that we are operating on non-null documents
Task-number: QTCREATORBUG-26594
Change-Id: I4331c457a6360682229dbbbfd8ac3d50b44b8ead
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-12-07 08:36:56 +00:00
Miikka Heikkinen
eba2a0520b QmlDesigner: Fix picking issues
We now check also the parent chain for pickability, because
a node is not pickable if one of the ancestors is not pickable,
as all properties picking depends on (visibility, locked state)
are implicitly inherited by descendants.

Rotate gizmo rings default to regular View3D picking when the angle
is so steep that the plane intersection is not reliable. With new
global picking enabled handling we need to check all hits instead
of just the first one.

Change-Id: Ib1aa604b06f7db1041f5d4c3019cc2badf29a20f
Fixes: QDS-5679
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-12-07 08:18:35 +00:00
Leena Miettinen
9b4e68dd84 Doc: Describe creating GUI apps and app bundles using CMake
The default behavior is opposite from when using qmake.

Task-number: QTCREATORBUG-26616
Change-Id: I9ec0f1a961e8d0cb25957dddcceec79cffbf292b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-12-07 08:13:55 +00:00
Christian Stenger
e158bfe618 FakeVim: Improve handling of content changes
..when indenter or auto completer may interfere.

Task-number: QTCREATORBUG-26195
Change-Id: Iaf0eefd74344423409fa0c22f8e3ea618b4c9930
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2021-12-07 07:10:46 +00:00
hjk
104ea4accc Make some qHash and comparison operators overloads hidden friends
Restricts lookup scope more to necessary bits.

Change-Id: Ia42c95aaa70534843b7f6a90bfc56d2a1202c612
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-12-06 17:10:49 +00:00
hjk
8cb5c3cfdd Ssh: Use base QtcProcess' useTerminal for SshRemoteProcess
Still trying to ramp down non-QtcProcess interfaces.

Change-Id: I6b4ae6788f5021959ff3eb35bbade2157a6d67fa
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2021-12-06 15:30:00 +00:00
Christian Kandeler
02f93f68d6 QbsProjectManager: Consider "c++23" for cpp.cxxLanguageVersion
Fixes: QTCREATORBUG-26663
Change-Id: Ie22ce49cb724c434121c3d4b62b4580139a4706b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-12-06 14:44:35 +00:00
Christian Stenger
db1c6f5b08 TextEditor: Fix compile with Qt 5
Amends 8d08196a21.

Change-Id: I8f67ee0549c621d168bacb57cd4ce0ad226cf852
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-12-06 13:44:28 +00:00
hjk
e64ce914f9 Utils/Ssh: Move SshRemoteProces::isRunning() to QtcProcess base
... and use it on a few places.

Change-Id: Id2cea709e355a46821a720e593740ac032888ced
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2021-12-06 13:44:23 +00:00
Thomas Hartmann
1ee33048a8 QmlDesigner: Fix crash
Task-number: QDS-5535
Change-Id: I7e568efb39637faf8cd17255440e06d98b768f1e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2021-12-06 13:20:38 +00:00
hjk
9c0bc16e94 TextEditor: Simplify BehaviorSettingsPage implementation a bit
ICore::settings() lives longer than anything in TextEditor.

Change-Id: I67df38f291f43763bdd236ea611db614ac515c97
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-12-06 12:31:43 +00:00
Christian Stenger
41b8e302ef CppEditor: Fix compile with Qt5.14
Amends ef30831213.

Change-Id: I3c8a962c558114bd64e8e07d7212e4f14ecffa90
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2021-12-06 11:47:46 +00:00
Orgad Shaneh
6cf6f1c230 CppEditor: Save Clangd settings in human-readable form
in the global settings.

Change-Id: I2f90388c138c92f03f78044e225574ded640d4b9
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-12-06 11:42:18 +00:00
Christian Kandeler
180200be66 ProjectExplorer: Handle "requested here" in GccParser
See also 4dd0537d4b.

Change-Id: If6fae31716ca8ec5e23e0159d6dd7ddfdb042bb3
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>
2021-12-06 10:34:00 +00:00
Cristian Adam
5e8fd8d0f8 GitHub Actions: Limit the number of cores to 75% for testing
Hopefully this will help with the macOS host which tends to fail
at running tests with:

 The hosted runner: GitHub Actions X lost communication with the server.
 Anything in your workflow that terminates the runner process, starves
 it for CPU/Memory, or blocks its network access can cause this error.

Change-Id: I2ead1efd1526332cc2045fee7db4a76831f2e333
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-12-06 10:32:36 +00:00
Christian Kandeler
366c6fde89 CppEditor: Run the built-in "local uses" code even with clangd enabled
The built-in code model treats the "local uses" result state as an
indicator of whether to provide quickfix operations. It's unclear what
kind of side effects would result from removing this condition, so we
always run the built-in variant of the "local uses" code, and only
refrain from actually updating the selections in the clangd case.
Amends 0c53c2daef.

Fixes: QTCREATORBUG-26649
Change-Id: I9e1a3e3ad08bf13bcb35efe996a61aa34302b166
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-12-06 10:31:52 +00:00
Eike Ziller
7d948b0c5d Do not link packages against libGLX and libOpenGL
Work around QTBUG-89754

Fixes: QTCREATORBUG-26652
Change-Id: I9fb7ba2127a93460184154a9eb2d4c053f8fc22d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2021-12-06 10:31:35 +00:00
Eike Ziller
8d08196a21 Fix crash when removing built-in snippets
Snippets collection managed the snippets with persistent iterators to
the "end" of the active snippets. Qt 5's QList was nicely updating
iterators even on non-const operations, but that has changed in Qt 6.

Don't use iterators, simply work with the count of active items.

Fixes: QTCREATORBUG-26648
Task-number: QTCREATORBUG-24098
Change-Id: Icc13274daf0e87d0562d80d7bc763c863d5da075
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-12-06 10:30:47 +00:00
Orgad Shaneh
ef30831213 Utils: Simplify from/toSettings API
Change-Id: I591b6f833342ba9bd1a282332de5bb620d7f8c76
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2021-12-06 10:02:20 +00:00
hjk
64ac719ff8 Utils: Slim down private ProcessReaper interface
Change-Id: Idd5669b9ed525148426b85bbbc9a2818877f2707
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2021-12-06 09:26:19 +00:00
Fawzi Mohamed
ce82c058df add .mjs as extension for javascript files in defaultLanguageMapping
Change-Id: I40d43193ba9b7dac38d7a474aad2d739e6c39dc6
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2021-12-06 09:16:22 +00:00
Leena Miettinen
4a37833803 Doc: Improve FAQ answer about QML imports
Even though CMake was mentioned, the text could be made more
general.

Task-number: QTCREATORBUG-26616
Change-Id: I6ff59e96559579c773d8ae1313f96800597e0ccc
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-12-06 08:31:50 +00:00
Alessandro Portale
4aea270790 Debugger: Set Python env also for ndk-lldbs outside the SDK
When using an NDK installation which was not installed via an Android
SDK manager, we cannot presume that the included lldb binary has a path
containing "ndk" or "ndk-bundle".

Looking for "/toolchains/llvm/prebuilt/" in the path should detect any
ndk-provided lldb.

Change-Id: Icbaab0915f5877ca37ee44cbca6cc37360363b5c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-12-06 06:38:16 +00:00
David Schulz
02d6dfdfec TextEditor: fix delete(Start/End)OfWord without camelcase
Fixes: QTCREATORBUG-26646
Change-Id: I0f9a4ad56ef96632fbf5de490f089bf7ff3b12ee
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-12-06 06:30:22 +00:00
David Schulz
7552c9958f TextEditor: move setIfdefedOutBlocks to TextDocument
The location of the blocks to marked ifdefed out are not tied to a
specific editor instance, but just depend on the document content.

Change-Id: I837730dc00e1d6060dd46bbb2cfccbfa5f72e6ce
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-12-06 05:17:51 +00:00
David Schulz
295effd735 ProjectExplorer: raise the timeout for the msvc detection
Calling the msvc vars bat can take a considerable amount of time on a
loaded system. Since we cache the environment modifications from
previous runs it's okay to raise the bar here.

Change-Id: Icda91d6682396e6f73946ccd379b88631590536c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-12-06 05:12:24 +00:00
Dawid Śliwa
d8ccadb3c4 mcusupport: ASM_MASM language added to project in CMakeLists template
After modification of how fontcompiler is linking font binaries into
executale CMake project needs to have Microsoft Assembler language
option added (ASM_MASM).

Fixes: UL-5059
Change-Id: I593ca6230e8fbaf70a4061a12b6606843ab9bd46
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-12-05 19:14:33 +00:00
hjk
76024f6fcc Android: Remove a superfluous #include
Change-Id: If7696c497d5ee2ce9b988c9e488638307e7d376a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2021-12-03 17:04:27 +00:00
Maximilian Goldstein
708e0fc06f qmljsinterpreter: Fix directory imports not being found in selector paths
Previously qml files in selector paths would not properly locate directory imports,
now when an import in a selector path fails we try to go up to the next non-selector
directory and look for the imported directory there.

Fixes: QTCREATORBUG-25127
Change-Id: Ib9b364981b49068637aa97d6f75abf7f1f5878cc
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2021-12-03 14:48:01 +00:00
Mahmoud Badri
3f83fb91d6 QmlDesigner: Animate item library controls' hovering
Added animation behavior for hovering. Also added top padding to the
search field so that the text is correctly aligned vertically.

Change-Id: I51273373aa43ceb3a3faca6a9f76b613fdd0be69
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-12-03 14:31:43 +00:00
Kai Köhne
e09bb8017d Do not talk about Qt Quick Designer in overview
Change-Id: Ia0a4e196ba1ca863f31393c4dea7d23b60852750
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-12-03 14:16:18 +00:00
Cristian Adam
5a6c625c5e CppEditor: Fix codemodel highlighting for QNX
The code model will get the necessary bits so that it can successfully
parse the QNX code.

Fixes: QTCREATORBUG-23483
Change-Id: Id9488f644ace23952edf7a7cb5da7ca138182134
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-12-03 14:15:05 +00:00
Joni Poikelin
41fe7eec65 LanguageClient: fix textDocument/didChange
Fixes: QTCREATORBUG-26651
Change-Id: I640558bc321112f8dd568a4cefc306eb209af7b0
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-12-03 13:07:52 +00:00
Leena Miettinen
ccc5223d94 Doc: Describe adding other projects to CMake projects
Mostly, this is explained in CMake documentation. There is
currently no special support for this in Qt Creator.

Task-number: QTCREATORBUG-26616
Change-Id: I7981324e04be6fc716256754db9f2089eaffee73
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-12-03 12:02:20 +00:00
Mahmoud Badri
0a8ab22f41 QmlDesigner: Fix states context menu not working in certain areas
Fixed 2 issues with the context menu:
- Left clicking the area to the right of the states doesn't close the
context menu. The issues seems to be a bug in the ListView, solved by
limiting the width of the ListView to the states area width.
- Clicking (left or right) below the states area doesn't work. This is
because the height of the states view was fixed to the height needed.
Solved by not restricting the view height and do necessary changes.

Also some cleanups and removing unnecessary stuff.

Fixes: QDS-5324
Change-Id: Ic1e3f5d0776bb4770a3276c93ad1aee7a0049388
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-12-03 11:35:17 +00:00
Christian Kandeler
825c9ea64f ClangCodeModel: Work around clangd cursor issue
If the cursor is right before the "." in a member access expression,
clangd interprets it as belonging to the member instead of the base
expression, which leads to unexpected behavior.
Work around this by sending a cursor position one to the left of the
real one to clangd in such cases.

Change-Id: I429ee9189760ccb02d231acfcb94ab6cfde3cd8d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-12-03 11:17:17 +00:00
Christian Kandeler
0f9aa307a3 ClangCodeModel: Highlight Q_PROPERTY declarations with clangd
We re-use the moc parser for this purpose.

Change-Id: Ib0ef4f727d1f0b862a202a95a3ae9c551cb502a5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-12-03 10:10:10 +00:00
Alessandro Portale
6db5faa2e8 CppEditor: Use ProjectExplorer's file icon overlays
Replace the own three overlays with those from ProjectExplorer.

Change-Id: I9eceef4b7b321a47d2b7bd3e86bd758395043a37
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-12-03 09:41:29 +00:00
Alessandro Portale
44b462be4b ProjectExplorer: Add a "C" file icon overlay
Change-Id: Id73a482fb50f8b937f2a16395fe1b43a656c49f4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-12-03 09:41:24 +00:00
Leena Miettinen
be059ac11a Doc: Fix info about qtc_runnable for CMake and qmake
Combine the sections and fix misleading information.

Task-number: QTCREATORBUG-26616
Change-Id: I6349d7f6d6765b8f76d391a48c232bf68ed124f6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-12-03 09:31:52 +00:00
Kai Köhne
47367a13ba Android: Use native separators in installation step ui
Change-Id: I724f91d8387cfd3138faa847d06674707d4d0f10
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2021-12-03 09:09:48 +00:00
Kaj Grönholm
4a5603b15c Adjust to model bounds calculation API change
Model bounds API changed with 25b757b7b0a286a392b3 so switch to new
API with version checks.

Task-number: QDS-5657
Change-Id: I6d880f179fc277f94ea9ac610ae682e9afbefe39
Reviewed-by: Antti Määttä <antti.maatta@qt.io>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2021-12-03 05:19:42 +00:00
Henning Gruendl
40c2d9a06b QmlDesigner: Remove audio wrapper
Remove the custom audio convenience type which should mimic the QML
Video convenience type only for audio. The custom convenience wrapper is
not working, because MediaPlayer is a QObject and can't have children.

Change-Id: Ic8d06e6397d8b7bb3bc531d47c1cb0b92142a742
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2021-12-02 23:35:17 +00:00
Henning Gruendl
9dd6635970 QmlDesigner: Add VideoOutput
* Add VideoOutput
* Add ComboBoxes to MediaPlayer specifics for selecting audio and video
  output ids

Change-Id: I52ea764b1301492754676a97d8d122275ba6dd81
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2021-12-02 23:34:34 +00:00
Henning Gruendl
73fb01f4b2 QmlDesigner: Add support for video assets
* Add *.mp3 as sound asset
* Add *.mp4 as video asset

Change-Id: If96bab257abf9d0264e374b5f1f92b807b5349a2
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2021-12-02 23:33:28 +00:00
Kai Köhne
16c8f1a9b6 Android: Fix use of keytool on Windows
Fixes: QTCREATORBUG-26647
Change-Id: I34fd2b4304480186d1a05e2c9101b2cfbd1e8e47
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-12-02 17:07:43 +00:00
Christian Kandeler
b2d63bf79e Fix various compiler warnings
Change-Id: Ib64f04f154b2c44dad3248ef038449c2ac628686
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2021-12-02 15:48:52 +00:00
Orgad Shaneh
f02d143a81 Git: Fix wording and availability of actions for commit range
Change-Id: Ic3a038b8246e9e6b69ae18fce519f93a685dc10c
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2021-12-02 12:55:52 +00:00