Commit Graph

74059 Commits

Author SHA1 Message Date
Artem Sokolovskii
27fddc8dc7 Debugger: Remove foreach / Q_FOREACH usage
Task-number: QTCREATORBUG-27464
Change-Id: Ib49afb4d0283aeeffead6b31e1a3d0bcb9a7ae14
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2022-05-03 09:32:04 +00:00
David Schulz
fbefd45b94 Python: add pyside build configuration
Task-number: QTCREATORBUG-27219
Change-Id: I19340c57789933c7104ec5d6fec628ed810c5f3e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-05-03 08:55:11 +00:00
Christian Kandeler
c97f0af531 ClangCodeModel: Don't ignore changes to clangd doc update threshold
Changing the document update threshold value had no effect in the per-
project settings.

Change-Id: Ibd6e47bba3e0a77ed18b97486eda17718c46c59d
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>
2022-05-03 08:49:59 +00:00
Jarek Kobus
b0afd728d1 QnxDevice: Don't use SshDeviceProcess
Use QtcProcess with a path on qnx device instead.
Fix QtcProcess::runBlocking() for remotes.

Change-Id: Ic9364037835b247479f4b4329e40a314e09d5492
Reviewed-by: Rafael Roquetto <rafael.roquetto@qt.io>
2022-05-03 08:45:48 +00:00
Jarek Kobus
2d3c3dc2b5 Slog2InfoRunner: Don't use QnxDeviceProcess
Use QtcProcess with a path on qnx device instead.

Change-Id: I5dcf0f2180b40031c6f0f88b44ee2ad100ba7b5d
Reviewed-by: Rafael Roquetto <rafael.roquetto@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-05-03 08:45:35 +00:00
Marcus Tillmanns
c8024046f9 Docker: implement process interface
Change-Id: I57dd9e060ee35280b663611ebb5ddef20b7d0eb7
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-05-03 08:26:13 +00:00
Eike Ziller
1b5b4cb6f4 Mimetypes v3: Fix that octet-stream was wrongly considered parent
The fallback mimetype of application/octet-stream is supposed to only be
a fallback if the mimetype doesn't specify another parent.

Amends 98b1e82d2b

Fixes: QTCREATORBUG-27398
Change-Id: I4ac92dd4817fae37de4499fe9e08aa2e5dd50a51
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-05-03 07:28:29 +00:00
Jarek Kobus
1a3cb067b8 SshProcessInterface: Give a parent to subobject
This is needed when moving ProcessInterface beweeen threads.

Change-Id: I26158c68bdc8e77ecb3e3d4535ba767ef3d0b63c
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-05-03 06:59:36 +00:00
Sergey Morozov
11544df48b Cppcheck: Escape error message format string
Some shells try to expand {} otherwise.

Fixes: QTCREATORBUG-27284
Change-Id: Ifd2bd7bc58f005339eebd150b98ced59395d24bc
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-05-02 18:53:55 +00:00
Jarek Kobus
cc2146f591 Compile fix
Amends 176dbff127

Change-Id: I86fb87b9dc1848124f7f04995407ba78e4040b15
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-05-02 14:41:20 +00:00
The Qt Project
22b70edda2 Merge "Merge remote-tracking branch 'origin/7.0'" 2022-05-02 13:12:14 +00:00
hjk
ac488e0529 CMake: Pass BuildSystem instead of BuildConfig to BuildDirParams
Less indirections.

Change-Id: I33ae36aa32aa8fab7223822fd9ec80c64d6d4651
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-05-02 13:10:33 +00:00
Jarek Kobus
778ed83149 ApplicationLauncher: Use QtcProcess instead of IDevice::createProcess()
And pass a device path to command instead. The QtcProcess
should automatically select the device's process implementation
when the process is running.

Change-Id: I9f6896260a3f5627975331caa31382f4dc6ff7b0
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-05-02 13:09:31 +00:00
Eike Ziller
1b7295514c Merge remote-tracking branch 'origin/7.0'
Conflicts:
	cmake/QtCreatorIDEBranding.cmake
	qbs/modules/qtc/qtc.qbs
	qtcreator_ide_branding.pri
	src/plugins/languageclient/languageclientoutline.cpp

Change-Id: I106fbde6467818368a8358d612d793313cad27e6
2022-05-02 15:06:08 +02:00
Jarek Kobus
aba39aee5f QbsSession: Remove state() from public API
This was used internally only.

Change-Id: I2678d3084ec941b78aa165a94e3d7ba4d3c6a2b7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-05-02 13:02:24 +00:00
Jarek Kobus
b21ed19903 QbsSession: Simplify the logic
QbsSession::quit() is called only from QbsSession d'tor.
Move this method into private section.

Since QbsSession::quit() body was the only place in code where
we potentially set the m_state into State::ShuttingDown, there is no
need to check whether the m_state is set to State::ShuttingDown,
as that's impossible, since quit() can only be called once
during the lifetime of QbsSession.

Replace a call to quit() in d'tor with quit() body.

Since the ShuttingDown state was set only in d'tor, after
disconnecting from qbsProcess signals, it's not possible that
any signal handler would be called when being in ShuttingDown state.
That's why the SettingDown state is removed in this patch as
being no-op.

Change-Id: Iff77f4119d7122a9723de4a5cd0bb98f4dce8506
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-05-02 13:02:13 +00:00
Christian Stenger
07195cea8b Fix cmake build
Amends 88781a003f.

Change-Id: I37aa5c3fbf6490a186deacae257858d3ceb817d1
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-05-02 12:41:45 +00:00
David Schulz
7826012443 clangd: update current document filter after initialize
This makes sure that the lsp filter gets enabled if a document is opened
before the corresponding clangd server was initialized. This happens
when loading a session with an open document.

Change-Id: I7987ea60c6fca8b5c070af3a7bcd5325667ed0c5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-05-02 12:23:12 +00:00
Vikas Pachdha
9159bdaed2 Doc: Document merging while importing from Qt-Bridge
Task-number: QDS-3812
Change-Id: Ia1ce3e16393d414cab9d4500514313d35bed7426
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-05-02 11:54:28 +00:00
Mats Honkamaa
95195b416c Doc: Add creating state transition animations tutorial
Add a tutorial on how to create state transition animations
with the transition editor

Task-number: QDS-6560
Change-Id: I1bd63bc86b9d651e16fe71fbf46c8c3e934b8c77
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-05-02 11:39:13 +00:00
Christian Kandeler
b09e2b77c4 ClangCodeModel: Remove backend communication facilities
Change-Id: I3d10b33cb641a49e8b79272d754fbeece23fb249
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-05-02 11:29:05 +00:00
Christian Kandeler
4ab0edb4b5 ClangCodeModel: Remove ClangEditorDocumentParser
Not needed (anymore?).

Change-Id: Id4bcbb47962d92f6fffb4538dcca14b49e8104db
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>
2022-05-02 11:28:50 +00:00
hjk
557957a59f Core: Remove compatibility code path for 4.13 settings
Change-Id: If4449a0de502ad2791befb117c8b3a9c95c2d2d5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-05-02 11:28:47 +00:00
Leena Miettinen
5e6c7089d8 Doc: Describe how to declare files in projects
Including using OTHER_FILES for qmake projects.

Fixes: QTCREATORBUG-27157
Change-Id: I802000c90472464430d1335b9e962c6691cc567a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-05-02 11:27:26 +00:00
Jarek Kobus
bd6e75c171 PdbEngine: Connect to QtcProcess::done() signal
Instead of connecting to errorOccurred() and finished() signals.

Change-Id: I9fff11875a680240e63db1663299680f885dbdfc
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2022-05-02 11:17:42 +00:00
Christian Kandeler
356b43e9aa ClangCodeModel: Stop communicating with clangbackend
Change-Id: I9a5f4e7f0f94d33de9816cb643e6ec88cbf9ca15
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>
2022-05-02 10:36:58 +00:00
Christian Kandeler
6da7babc4a ClangCodeModel: Remove libclang-based completion and function hints
Change-Id: I742fb14b1aba3ba1f35a5c80bf553d2a735cac48
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-05-02 10:31:05 +00:00
Eike Ziller
f8a04666d5 Editors: Fix that actions were applied to wrong editor
We delayed switching the "current editor" by the double-click interval
to fix opening editors in extra editor windows from the project tree
etc. This leads to the weird effect that after switching the focus
between editors even within the same window was only applied after a
delay.

Instead just delay setting the current editor by "two events". When
clicking into a window, Qt sets the focus in two phases.

1. First the focus ends up in the focusWidget() in the new window, which
possibly is the editor that was active before in _that_ window
2. Only during the next event processing does Qt set the focus to the widget
that the user clicked into, which could be a non-editor widget, like the
Projects tree

We may only change the current editor if the focus didn't move away from
any editor in (2). So we need to delay setting the current editor until
after the next event processing.

Amends 22c67db406

Fixes: QTCREATORBUG-27479
Change-Id: I3d9197176a2d7ce50e5f29a1ce1b2efef52232d0
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-05-02 09:47:38 +00:00
Artem Sokolovskii
efd25fb43f Utils: Remove foreach / Q_FOREACH usage
Task-number: QTCREATORBUG-27464
Change-Id: Ic72d173d95376276df8d1f08abdaec8370aff2ba
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-05-02 08:54:36 +00:00
Eike Ziller
5dcfe401a3 ExtensionSystem: Add support for static plugins
Loads all plugins that are known via Q_IMPORT_PLUGIN()

Change-Id: I3c1fe223ce6e4dcdb7729f5ab3e782e78bca5afc
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-05-02 08:48:57 +00:00
Thomas Hartmann
c3d04642e1 QmlDesigner: Properly parse variant type
If a property actually is a variant we have to properly parse
the string and convert it to the correct type.
Booleans and numbers were not probably converted.
This did not create many issues, since the conversion happened
later, but it broke copy and paste and merging.
In Qt 5 this conversion seemed to happen mostly automatically.

Boolean literals have to be handled explcitly, since e.g. "10"
is technically true and can be interpreted as boolean.

Task-numbner: QDS-5944
Change-Id: I35c7cae7041667c7eac81e36a285a394263b35a4
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2022-05-02 08:35:30 +00:00
hjk
b425273ea8 Pass BuildConfiguration to Qml related build aspects constructors
Less weird then before.

Change-Id: Ia36663721085132e6a2876783749d96d9a3983a3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-05-02 08:27:28 +00:00
hjk
a579fa52ee ProjectExplorer: Rename some RunControl functions
Change-Id: Ia86a50100ddfd465d548863ae8d58033a5dbafc0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-05-02 08:10:28 +00:00
Christian Kandeler
b86c0a13e6 ClangCodeModel: Remove libclang-based references support
Change-Id: I53d10c37eac1ec5a46b904a2e2eb959311f852fa
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>
2022-05-02 07:52:43 +00:00
Christian Kandeler
998a8d7369 ClangCodeModel: Remove some dead code
Left over from recent libclang removals.

Change-Id: I24eff39615d9e2701bc42dccc5f096a89b7fa783
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-05-02 07:52:12 +00:00
Christian Kandeler
b52fac7148 ClangCodeModel: Remove libclang-based diagnostics and highlighting
Change-Id: Ib7c423884b76c27a6350ddea611919d3352fb80e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-05-02 07:51:51 +00:00
Eike Ziller
15f3b46133 Fix mime type parsing with Qt 5
The behavior of QStringView::mid is slightly different between Qt 5 and
Qt 6, so use Utils::midView which was created exactly to cover that.

Change-Id: Ia084e93c36fb152ac725f1b8eaa38a07dfb939e1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-05-02 06:29:52 +00:00
Jarek Kobus
317452ee8c PerforceChecker: Connect to QtcProcess::done() signal
Instead of connecting to errorOccurred() and finished() signals.

Change-Id: I111ea0c0bf7a68a4aa016ae789ee6ee269403808
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-05-02 06:18:49 +00:00
David Schulz
176dbff127 LanguageClient: support sorting outline combo box items
(cherry picked from commit 505358cb82)
Change-Id: I793700e770c830b729d0e8780fc4cbac79c01c0f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-05-02 04:44:35 +00:00
David Schulz
8245ed30ae LanguageClient: support sorting outline widget items
(cherry picked from commit 46a012bc11)
Change-Id: Iead37c07f09c2f961d506caef76562fb1b3dc308
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-05-02 04:43:43 +00:00
David Schulz
4661a4946d LanguageClient: select innermost outline widget item
Reuse the code that selects the innermost item in the outline combobox
also in the widget so the behavior is consistent.

(cherry picked from commit b97204ebb6)
Change-Id: Ie7c32ba4e6c5cbdd608da207e515c737e3bd91e6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-05-02 04:31:40 +00:00
Jarek Kobus
645d71b3db PerfProfiler: Use QtcProcess instead of IDevice::createProcess()
And pass a device path to command instead. The QtcProcess
should automatically select the device's process implementation
when the process is running.

Change-Id: Id3fed8656999af58ce1a5ba0632f94c3dc76ab04
Reviewed-by: hjk <hjk@qt.io>
2022-04-29 15:57:51 +00:00
Jarek Kobus
ddb4ecae32 RemoteLinuxEnvironmentReader: Fix fetching remote env
This can be tested in run settings for the app on remote
device after expanding environment details and pressing the
"Fetch Device Environment" button.

Change-Id: Ic488eaae5a40443380ddfd8b01af3e92f2557e5d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-04-29 15:57:45 +00:00
Jarek Kobus
709492ef11 LinuxDevice: Use LinuxProcessImpl for opening terminal
Don't use SshDeviceProcess anymore for opening linux terminal.
Fix running the empty command so that it opens ssh shell.
Don't leak terminal processes on shutdown.

One issue is that terminals are closed when closing settings,
as settings dialog operate on a copy of device, and in case
of no modifications applied the copy is being deleted.
The current workaround is to press the "Apply" button
before closing the settings dialog. This issue is to be
addressed separately.

Change-Id: I3c48b035daf1d099a1e8fa0762a6d6d0eca9592c
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-04-29 15:57:20 +00:00
Eike Ziller
1eabb6f185 Locator: Save history of execute filter
Fixes: QTCREATORBUG-27381
Change-Id: I2a053e4e2e978034fcbfc15a6ecfff04a057ffaf
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-04-29 12:22:57 +00:00
Christian Kandeler
57fbf9bef9 CppEditor: Consider -include flags from the project again
The fallback for build systems without a dedicated property for this got
lost somehow in 9c3420120e.

Fixes: QTCREATORBUG-27450
Change-Id: I70768220523693b9423a8256cef3d79f4d9dfd58
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-29 12:02:22 +00:00
hjk
62f6c1e1d6 ProjectExplorer: Remove now-unused RunControl::runConfiguration
Change-Id: I312277813763d264dc7904042bbe6005350c3870
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-29 11:44:55 +00:00
Christian Kandeler
c21774f0a7 ClangCodeModel: Remove libclang-based locator filter
Change-Id: I1c588a7bfdee773662d1956e9a998040794b8c9d
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-04-29 11:35:10 +00:00
Christian Stenger
2e725b4869 Fix qbs build
Amends 88781a003f.

Change-Id: I5b44d89cc1b536d0d533cd29fc3a06005a7c80d3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-04-29 10:15:21 +00:00
Brook Cronin
61008bcd47 Rework QtDS Splash Screen to show telemetry options
* clean up Design to a more minimal style
* remove some unused components

Change-Id: I37af39a1cae6b6f14f769383ac73c00570729f4f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-04-29 08:36:25 +00:00