Commit Graph

80529 Commits

Author SHA1 Message Date
Jarek Kobus
8b09ad8898 QtcProcess: Introduce PtyData
That's going to be used by PtyProcessImpl.

Change-Id: Ifc1a7886ceed73272c9e415414db49452175a334
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-02 14:10:06 +00:00
Xu Shitong
0e3089314b Chinese translation update for 9.0 (BareMetal / Bazaar / Beautifier)
Change-Id: I17f65523667b03ca50f20b8352004b61c9a8120e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Liang Qi <liang.qi@qt.io>
2023-03-02 14:08:55 +00:00
hjk
81748fa00b Docker: Avoid explicit environment iteration
Task-number: QTCREATORBUG-28357
Change-Id: I0addc68309ab532d5a710916c7d017eccee1f348
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-02 13:43:58 +00:00
hjk
4b93f47565 Utils: Iterate environment via callback
Iterators expose the underlying datastructure and get
in the way of moving towards "env as stack of changes"

Task-number: QTCREATORBUG-28357
Change-Id: I69e3b53e62ed4c9ab394779e97afbc6fd1986838
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-02 13:28:46 +00:00
Leena Miettinen
90a8496cdc Doc: Update docs about creating Qt Quick Application projects
You now have the option to create projects that you can open in QDS.

Task-number: QTCREATORBUG-28721
Change-Id: Ia8f36fd65f2356b9987b027d7b37ac6848ff7e03
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-02 13:10:54 +00:00
Thomas Hartmann
6e9c9e584d QmlDesigner: Do not clear component cache
We share the engine now with other views.

Change-Id: Icfb1b5bc11e3f2c05f7813ef487348478352f387
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-03-02 12:56:15 +00:00
Thomas Hartmann
b2ba31f996 QmlDesigner: Add registerPropertyMap to StudioWelcome
This allows to easily register a singleton similar to
context properties.

Change-Id: I0c391165473a949e7fd09d907e3a0752c23ba62d
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-03-02 12:50:19 +00:00
David Schulz
fef8bc4bc4 ClangCodeModel: request symbol update in clangd locator filter
Change-Id: I60dfb4cfe8af9abf3bd40c2359c4414ac729cd65
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-02 12:49:51 +00:00
Henning Gruendl
af3c97ea7d QmlDesigner: Fix ButtonRow border overlap on hover
Change-Id: Iccbb35f40538c21dfbc2560d905cb21cb5b0948d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-02 12:49:07 +00:00
Thomas Hartmann
e042b7ca59 QmlDesigner: Remove DirectoryFontLoader from MCU template
Change-Id: Ida0f6fa699b2b8d755f13ac0beb7b03d862470e7
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2023-03-02 12:44:05 +00:00
Miikka Heikkinen
67e5246be2 ProjectExplorer: Hide Manage Kits button if Kit options are hidden
Fixes: QDS-9231
Change-Id: I185a3f038ebd67fdc9aff60b860980d3c0f3cadb
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-02 12:43:25 +00:00
Tim Jenssen
cc6c9e4b5e FilePath: fix documentation
Change-Id: Icd2ea0842279ac5ca9225b760aa7634b8db3e06d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-02 11:28:26 +00:00
David Schulz
18364db94a Editor: ensure block is layouted when painting it
The painting of an editor assumes the block is layouted properly. This
was done implicitly when calculating the block bounding rect previously.
With the option to replace the block layout with another document this
is not the case anymore, so we need to explicitly make sure that a block
was layouted before painting.

Change-Id: If6947a3a5c13a03310e0cab0f6fcbd4ff8078b1b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-02 11:08:01 +00:00
Cristian Adam
007c47a2d4 Terminal: Use QWinEventNotifier for shell process termination
Change-Id: I59ddcaa76714a0b15987b9e0912f4701a2951648
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-02 09:40:19 +00:00
Marcus Tillmanns
3287e14dd1 Utils: Add QTC_USE_WINPTY environment variable
Change-Id: I769bfe8bd92529f672694da38d04914e0a51ed1b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-02 09:39:59 +00:00
Eike Ziller
87ede95b5c Merge remote-tracking branch 'origin/10.0'
Change-Id: I7bd186df0bfae7906e980e9c2c811f8dcf29750d
2023-03-02 10:17:58 +01:00
Eike Ziller
00c79cc1b7 Build: Simplify documentation target creation
We don't have to rely on qdoc being located alongside qmake anymore,
because nowadays Qt defines a Qt::doc target with IMPORTED_LOCATION set,
so we can use that directly.

Change-Id: I450578e711e0835e00320251dcadc78c1f02ab7d
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-02 09:16:56 +00:00
David Schulz
6dc4160a40 Debugger: Add warning if cdb prevents loading of cdbext
This happens from time to time, but I do not have a way to reproduce it
safely. In order to present the user a somewhat usable state after this
error cancel the debug run and show a message box with potential fixes.

Fixes: QTCREATORBUG-24323
Change-Id: I7e557001bd5dfb3b0abb19fa635bf2d20bb3b16c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-02 08:49:44 +00:00
Miikka Heikkinen
b8d0828d37 QmlDesigner: Add caption property to ColorEditor for legacy support
Old Qt5 specifics sheets specify caption property for ColorEditor,
and fail to load if the property doesn't exist, so define the property
for compatibility purposes.

Fixes: QDS-9256
Change-Id: I6b56d98fd711d21272e914f6e167aa1cf8e07070
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-02 08:43:56 +00:00
Tasuku Suzuki
0020129afe PluginDialog: set initial focus to filter
Qt Creator provides numbers of plugins.
Setting focus to the filter control helps to find a plugin.

Change-Id: Iac34ff04b97311a8c7890a3cbafdde22b2242dcd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-02 08:14:11 +00:00
Christian Stenger
5a5776400a AutoTest: Fix missing includes
Change-Id: Ieb34092c8c78068ae1630cfaa0f18a45f7d43c0c
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-03-02 07:51:28 +00:00
hjk
bcfaddb473 Debugger: Remove 'UndefinedStaticMember' test
Compilers are getting increasingly better in optimizing this stuff
out, it's difficult and rather unnecessary to keep track of all
variations.

Change-Id: I9e05d5afadc4d875dc3b61e61364cf085a825239
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-02 07:08:44 +00:00
Ali Kianian
003ae4db87 QmlDesigner: Show the material name in the property editor
The material name for the property editor's material field
is presented in the following format:
MaterialName [MaterialId]

Task-number: QDS-8663
Change-Id: I59fdfcb52ecb2ce9a1079ae20b7e2d748bbc1d61
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-03-01 16:50:04 +00:00
Cristian Adam
00502c4630 Core: Use "patch" from git on Windows
On my system where I have strawberry perl installed, the "patch.exe"
from strawberry perl is picked.

This patch.exe has issues while reverting chunks, where as git's
patch.exe works perfectly.

Change-Id: I7e8c8f91f0f841c128ff8538dba68bee161a5f7b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-01 15:01:39 +00:00
Eike Ziller
c8567312f6 Plugin wizard: Fix missing include, add some test infrastructure
Just basic CMake setup that is needed for actually adding tests.

Change-Id: Ief778c28f27ff122c82a190a334b7a932bead658
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-01 14:06:24 +00:00
Christian Kandeler
628babb5cb CppEditor: Adapt to new LLVM directory layout
Since https://reviews.llvm.org/D125860, the path contains only the major
version. We try both variants anyway, as we cannot be sure all Linux
distributions will adopt this scheme.

Change-Id: I0bc7b0cf38d7cb4af61342477a6a1f0679095d30
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-01 14:00:05 +00:00
Marcus Tillmanns
6451538d39 Docker: Don't try to mount existing directories
Change-Id: I1df4e1bf8689edf08c539d71529e4149909502d7
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-03-01 12:55:02 +00:00
David Schulz
1424111734 Debugger: add QPointer Dumper tests for inherited classes
Change-Id: I6a25059d4c3fcd995088f90f7b11cf87a56a9a16
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-01 12:28:42 +00:00
Christian Stenger
369753acbc AutoTest: Redo results filtering
Instead of performing costly computations keep
track of the currently present types in the
respective branch of the subtree.
This also makes the filter invalidation on
newly added items obsolete.

Fixes: QTCREATORBUG-28831
Change-Id: I12cd31dc95b4c310a04ced2c98de3d509032482c
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-01 12:08:59 +00:00
Christian Stenger
ca030b5a9a Squish: Fix windows toolchain for VS15
Similar to what has been done for fixing VS2017. But VS2015 also needs
to add a matching Windows Kit tools path.
This magically happens if the kit is set up manually, but as we
provide a stripped version of toolchains and kits we need to adjust the
kit environment manually.

Change-Id: I9a88e7424acf2768774f5ef580ef6d1fa73bcb5a
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-01 12:08:33 +00:00
Jarek Kobus
00938bd7bf TaskTree manual test: Use QPromise for async calls
Change-Id: I532520af644b431441d74c0e06eff4d06d0b3924
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-03-01 12:01:04 +00:00
David Schulz
f3cbd506dd Debugger: Avoid looking up qt symbols globally to get the qt namespace
This can get very expensive for targets that have a lot or big modules,
but are not linked against Qt. On the downside we might not be able to
identify Qt namespaces in static builds.

Task-number: QTCREATORBUG-18287
Change-Id: I90e0c4afcde17fd81d49017e828ce59f0abe9b5c
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-01 11:43:19 +00:00
Marco Bubke
6ccef0cc29 QmlDesigner: Fix path
Task-number: QDS-9048
Change-Id: I3ecceb041514e50fdc30accd2e82c6aed24166c5
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-03-01 11:23:08 +00:00
Orgad Shaneh
f9d0c1a067 GDB: Adapt to message change on 13.1
Sample message:
>&"Error while mapping shared library sections:\n"
>&"`C:\\WINDOWS\\System32\\wow64cpu.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386.\n"
>=library-loaded,id="C:\\WINDOWS\\System32\\wow64cpu.dll",target-name="C:\\WINDOWS\\System32\\wow64cpu.dll",host-name="C:\\WINDOWS\\System32\\wow64cpu.dll",symbols-loaded="0",thread-group="i1",ranges=[{}]
 Library C:\WINDOWS\System32\wow64cpu.dll loaded.

Change-Id: Icb4243b129faac581f37d3fdd1211448656abefe
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-01 10:06:28 +00:00
David Schulz
fb8182ca7c Debugger: fix QJSValue dumper for Qt >= 6.5
and disable the QV4::Value dumper for that version.

Change-Id: I31a0ddba2bdab3b196e4fc5298fd8e7c10f9dc92
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-01 09:51:07 +00:00
David Schulz
8288a4c563 Debugger: fix dumper for QVariant containing a QList<int>
...for Qt 6.5.
Found by dumper tests.

Change-Id: Ibb9ccf72a5f18e203e37123f1fc5458142bd4efc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-01 09:32:27 +00:00
hjk
3e7d93c788 ProjectExplorer: Move some not-fully-session related bits
... out of SessionManager.

The idea is to later move SessionManager into the Core plugin,
which both is sensible conceptually and also prerequisite to
merge the Bookmark plugin into TextEditor plugin.

Currently, only the interface is split, as the load/save
implemetations are non-mechanical to disentangle.

Change-Id: I31631db3094ea192825a2ccaa6add6188662940b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-01 09:26:50 +00:00
Friedemann Kleint
03e1c18f78 Qt Designer Custom Widget wizard: Generate XML as raw string literal
It makes it easier to customize it later on.

Change-Id: Ie4ac7830a5544746d621b5ba34d174b3f8e3676a
Reviewed-by: hjk <hjk@qt.io>
2023-03-01 09:16:24 +00:00
Friedemann Kleint
745de1b34d Qt Designer Custom Widget wizard: Update code templates
- Introduce nullptr, member initialization, override.

Change-Id: I1088e124bf554050f71f002e6af31a2432479f99
Reviewed-by: hjk <hjk@qt.io>
2023-03-01 09:16:16 +00:00
Friedemann Kleint
e538e8f2e7 Qt Designer Custom Widget wizard: Remove remains of Qt 4
Clean the .pro files and use Qt 5 plugin metadata instead of old
exports.

Change-Id: I24c96d90f5dc45ecd20064159eb175e0e0475a34
Reviewed-by: hjk <hjk@qt.io>
2023-03-01 09:16:05 +00:00
Marcus Tillmanns
d14834ad45 Utils: Fix handling of multi slash in fsengine
Change-Id: Iaf525423f5ea0933b202f23042173c51edb3d4b0
Reviewed-by: hjk <hjk@qt.io>
2023-03-01 08:26:08 +00:00
Cristian Adam
205a900f9f qtcreatorcdbext: python deployment for arm64
Use dumpbin to extract the symbols from the host dll.

Use lib to create an arm64 library to link the qtcreatorcdbext.dll arm64
shared library.

Use the PythonTargetArchDll CMake or environment variable to install the
target arm64 python.dll

If PythonTargetArchDll is not configured the script will download the
python-embed-arm64.zip, extract and set PythonTargetArchDll

Task-number: QTCREATORBUG-25859
Change-Id: I09320bb758fded546f203c905b75485d7de3b94e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-01 08:21:05 +00:00
Leena Miettinen
3425a2b3d1 Doc: Describe building on remote Linux and Docker devices
Task-number: QTCREATORBUG-28721
Change-Id: I6e6bcea61b04cebfb16a462ebd99a7a97926b7a5
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-01 08:16:35 +00:00
Orgad Shaneh
d7c5f1c6b8 VCS: Fix bad wrapping on Linux
Workaround QTBUG-111466.

Fixes: QTCREATORBUG-25491
Change-Id: I6576f918f141b03c5dbb2926ea1123299493c195
Reviewed-by: hjk <hjk@qt.io>
2023-03-01 08:14:03 +00:00
Marcus Tillmanns
f19eff5dcb Copilot: Add explanatory text to settings
Change-Id: Ie45d20d77b064e99fbd4cf26f0794a336b02c51a
Reviewed-by: hjk <hjk@qt.io>
2023-03-01 08:10:28 +00:00
Tim Jenssen
b35f14752a qml2puppet: add application icon
Task-number: QDS-694
Change-Id: Id8f75d34d81645e9d4ceccff25e57afb658f8777
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-28 17:24:05 +00:00
hjk
824ae57fd9 Qnx: Further delay configuration restoring
For toolchains-on-device scenarios we need the devices.

Change-Id: I83547b8c342c87c1c83ed432432f8d151d7e3f1d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
v10.0.0-beta2
2023-02-28 16:43:00 +00:00
Eike Ziller
cace5a57f2 Plugins: Add documentation about testing
Add information about how to write plugin tests and how to integrate
unit tests.

Change-Id: I13721f03c4c55a265a93f71a7c4d892f3e53a6bb
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-02-28 15:42:48 +00:00
Alessandro Portale
a69ff75357 Copilot: Settings/options icon
Exclusive placeholder. While we figure out the legalities around the original Copilot icon.

Change-Id: Iaacebbd8e8a46614659368a4ec7a98b03297e204
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-02-28 15:33:17 +00:00
Martin Delille
43bc61a148 [conan plugin] Add conan install step as first step
Change-Id: Ic3d1f9f312aab78135cff5f14655fcfedc8dad7a
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-02-28 14:15:13 +00:00