Commit Graph

84931 Commits

Author SHA1 Message Date
Marcus Tillmanns
f98934ef73 Core: Simplify ActionManager::setOnTriggered
Allows the same functionality as QObject::connect

Change-Id: I4416d991dc8bcdf24893435c30b530a6b4d3fda4
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-11-27 14:27:53 +00:00
hjk
3bbda8f9da ProjectExplorer: Rename Tool{C,c}hainKitAspect
Change-Id: I74460b6402ab00f972c208023f03fac617982a11
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-11-27 13:35:28 +00:00
Christian Kandeler
ba249a3514 QbsProjectManager: Add a language client
... and use it to follow symbols that QmlJSEditor does not know about.
For now, the only implemented case on the server side is getting to a
product or module via a Depends item.
More functionality will follow.

Change-Id: I597c7ab10f4bf6962684ed26357dfc0eef3a6c15
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-27 13:00:36 +00:00
The Qt Project
32ed2cb9c7 Merge "Merge remote-tracking branch 'origin/12.0'" 2023-11-27 11:48:19 +00:00
Marcus Tillmanns
2da12ddc60 Terminal: Add select all action
Fixes: QTCREATORBUG-29922
Change-Id: I565f2f9f570610e1bb7f528cd874a0dd9c47dbe8
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-11-27 11:32:01 +00:00
Cristian Adam
cdee6e263d README: Fix markdown rendering in Qt Creator
The <> break the rendering and looks weird.

Change-Id: Ib3ce7763127623d1ac0bbd0c133b71b7ef41fd29
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-11-27 11:24:22 +00:00
Eike Ziller
f9fb628ee3 Merge remote-tracking branch 'origin/12.0'
Conflicts:
	cmake/QtCreatorIDEBranding.cmake
	qbs/modules/qtc/qtc.qbs
	src/plugins/cppeditor/cppeditorwidget.cpp

Change-Id: I618826eaea8acfa65148bd191a0263454bf50e43
2023-11-27 11:47:53 +01:00
Tor Arne Vestbø
d7545f9bf5 Prevent lldb from enabling os_log mirroring to stderr
lldb will normally set OS_ACTIVITY_DT_MODE, so that NSLog is mirrored
to stderr, but this also affects os_log, which we use in the Apple
unified logging backend.

When we detect this situation in the unified logging backend, we disable
Qt's own stderr logging, to avoid duplicate messages.

As the Qt stderr logging is preferable to the stderr logging that os_log
gives, we override lldb's choice, using the same environment variable
opt out that Xcode uses: IDE_DISABLED_OS_ACTIVITY_DT_MODE.

This makes console output in Qt Creator the same, regardless of whether
the user is debugging the app or not.

Change-Id: I5544bde803671258cede918705388c9283885e30
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-11-27 09:58:56 +00:00
Christian Kandeler
61e9a7fe16 CppEditor: Fix comment conversion for indented comments
Due to accidentally overlapping removal/replace operations, it could
happen that we lost actual content when trying to remove whitespace.
Amends f93836b25d.

Change-Id: I7a624e78cf0986ee9818d47ea0812c6632426a24
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-11-27 09:57:52 +00:00
Eike Ziller
c3907bf781 Bump version to 12.0.1
Change-Id: Iac214602e3bfef975c8e4083ba251a652ed1ebc7
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-27 09:05:16 +00:00
Eike Ziller
b76c054961 Widget Designer: Hide the toggle action for the central widget
It doesn't really make sense to toggle the central widget (= form
editor) for widget designer

Change-Id: I6ebcc9e1c2a57f1377c16a791b27b44f081042c3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-11-27 08:33:28 +00:00
Eike Ziller
7c72952967 FancyMainWindow: Improve positioning of docks when (un)collapsing
This is not foolproof, but we try to find the dock widgets that are
vertically arranged with the one that is (un)collapsed, and try to set
the sizes such that the title widget does not move.

Change-Id: I14fd799396a41420b041a89d43fd65d47672a831
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-11-27 08:33:20 +00:00
Eike Ziller
22f5ec4c87 Widget Designer: Adapt after dock widget redesign
Before the redesign, the dock widgets didn't have a "tool bar" at the
top, so we had the designer tool bar with the document dropdown and form
related tool buttons spanning the whole design mode width (to have a
continuous styled bar at the top of the window).

Now the dock widgets' title widget is a styled bar, so we would have the
designer tool bar, and below that the styled bar from the dock widgets,
which unnecessarily creates a big blog of styled bars.

Instead, move the designer tool bar inside the central form widget. The
title bars from the dock widgets complete the top styled bar now. This
is also more consistent with Edit mode.

Change-Id: I7d322a75a8a34120763b4dd85c44ddf674930e36
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-11-27 08:32:26 +00:00
Cristian Adam
73ddecd723 Scripts: Update compression algorithm for makedmg
bzip2 has been marked as deprecated by hdutil.

Change-Id: I647f1895c6b0d6456806d2ce3768fabcfdcfabc3
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>
2023-11-24 18:07:36 +00:00
hjk
c28fb1fdbe ProjectExplorer: Rename ToolChain to Toolchain
Change-Id: Ibb520f14ff3e2a6147ca5d419b9351c50c141063
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-11-24 15:18:24 +00:00
hjk
2d4867e73f ProjectExplorer: Rename Tool{C,h}ainFactory
Also adapt derived classes.

Change-Id: Iebf654c974730333c42b6994269ad1a4d5f7f428
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-11-24 13:55:25 +00:00
Eike Ziller
39b0989050 Sqlite: Fix missing include file in dev package
sqliteexception.h:6:10: fatal error: sqlite3_fwd.h: No such file or directory

Amends eed303450d

Change-Id: I350246e223bd80129b1fb29e8b2b57953536b5c7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-11-24 13:50:12 +00:00
Christian Kandeler
badc0b4ea5 CPlusPlus: Fix parser crash
The parseCompoundStatement() function can return without setting the
output parameter if the maximum statement depth is exceeded.

Task-number: QTCREATORBUG-29847
Change-Id: Ifd76cd948c30498863246a1b80bd0657950101ca
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-24 13:30:43 +00:00
hjk
2ef1ed9c22 ProjectExplorer: Rename Tool{C,c}hainConfigWidget
That's the trend.

Change-Id: I24a328f1190200b4499c6a11d9d3df074ce5973d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-11-24 13:17:42 +00:00
Christian Kandeler
e2c1d12a05 CppEditor: Fix "SelectBlockUp" for string literals
Literal::size() is the number of chars used internally, not necessarily
the number of logical characters.

Fixes: QTCREATORBUG-29844
Change-Id: I74431a2f3f533482567c3774f09deb44dc83d9f0
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-24 12:57:28 +00:00
Christian Kandeler
78329318f3 Update qbs submodule to HEAD of 2.2 branch
Change-Id: I9a816a352917fd411b0fc07d4090be195790b06f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-24 12:25:06 +00:00
Christian Kandeler
462079f806 CppEditor: Fix renaming virtual functions
Before renaming, we first follow the symbol to see whether it originates
from a generated files. We must not try to list the overrides for virtual
member functions in that context.
Amends 06390f5b53.

Change-Id: Ic17e865a03b884d63875622f54448fef63c24b7e
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>
2023-11-24 12:24:28 +00:00
Eike Ziller
2a331567f6 ExtensionSystem: Check for duplicate plugins
If there are multiple plugins with the same name, do not load any of
them, mark them with error.

Fixes: QTCREATORBUG-26221
Change-Id: Id433a66203294b8302294eb09665043452e45ded
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-11-24 10:54:12 +00:00
hjk
9b2cbe9b71 Android: New setup for AndroidDeviceManager
Also remove the now-unneeded plugin pimpl.

Change-Id: I37eaa91a2756e823d07323b54695e19860cb16ab
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-11-24 10:26:01 +00:00
hjk
353c3cc930 Android: Use new setup for more plugin items
Change-Id: Id5ff09813ab7b4be425d007abd4cc04d9c9472c1
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-11-24 10:25:51 +00:00
hjk
497b9b3c2c Android: Use new setup for a few factories
Change-Id: I4538a2839b995f7bc245ae1a91f1979cc8c0dfdc
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-11-24 10:20:42 +00:00
Jarek Kobus
0d12bbf432 ProjectExplorer: Remove unused member
Change-Id: Ie7096da33d211f55d3ba37a5b685f5fb8ba89f23
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-11-24 09:28:02 +00:00
Eike Ziller
9698ae50c5 Merge remote-tracking branch 'origin/12.0'
Conflicts:
	src/plugins/valgrind/xmlprotocol/parser.cpp

Change-Id: I905a5c4f7334f733e99359fbfccd1572b4007696
2023-11-24 10:07:10 +01:00
hjk
b01b44a6b2 ProjectExplorer: Use new setup pattern for msvc based toolchains
ClangCL and MSVC itself.

Change-Id: I500ffdcdb2ef71d14b112466613cdd9cb57dc89c
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-24 08:25:11 +00:00
Eike Ziller
18c2346305 ExtensionSystem: Add plugin details dialog to error dialog
When a plugin fails to load, we show an error dialog with each of the
failed plugins and their error message. Add a button that opens the
plugin details dialog, and also show that on double click on a plugin in
the list.

Refactors opening a modal dialog with the details into its own function.

Change-Id: Id55d0add3682860470ede63b141fbce2e8dab75f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-11-24 08:15:25 +00:00
Christian Stenger
5841e95123 Valgrind: Fix accessing empty optional
Change-Id: I3d4d8ed9b919a6c0eb8d5530c9d8e2723a8cc1ae
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-11-24 07:50:28 +00:00
David Schulz
dca3d516b9 ProjectExplorer: expand BuildInfo
Allow defining whether a widget in target setuppage has a build dir
pathchooser and whether it is enabled by default.

Change-Id: I85e9c602b1475c93d39472f2e68a0e4d5ac6e882
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-11-24 05:35:50 +00:00
Jarek Kobus
712fd89bb9 TaskTree: Fix testInThread(Parallel) test on macOS (second try)
The test was failing on macOS on github.

Change-Id: Ie5fb6aca78b2eac10dc4de988f312065f8ea4a8d
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-11-23 19:08:16 +00:00
Alessandro Portale
d41a99520e Core: Add parameter defaults to constructors
Make Welcome* widgets more standard conformant.

Change-Id: Id098067138e434f99a71add528601c250f78a33d
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-11-23 12:43:54 +00:00
Alessandro Portale
3e2ced7adb Core: Move ResizeSignallingWidget to WelcomePageHelpers
This makes it available to ExtensionManager.

Change-Id: I343c51286215556880838677a87f4df8c65d2308
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-11-23 12:43:48 +00:00
Eike Ziller
c77128e698 Merge remote-tracking branch 'origin/12.0'
Change-Id: I7971dd83798e975d4e10b77a352c9d7ef7b14ec0
2023-11-23 10:43:00 +01:00
Orgad Shaneh
0da6fe6890 CppEditor: Pass function by reference
Coverity-Id: 1572606
Change-Id: Ia25fe956ebace7e77412971d7834ce63f236f729
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-11-23 09:29:40 +00:00
David Schulz
4cc2e60c38 ProjectExplorer: add function to setup a single BuildInfo
Change-Id: I418c7bae6a1519126b75b6ce535379facc332062
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-11-23 09:19:25 +00:00
hjk
459cdf5f32 Squish: Delay-create SquishTestTreeModel
... by a few lines.

Change-Id: Ida09bd25cee700ab167c6546f9cd6a39b863b592
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-23 06:45:25 +00:00
Christian Stenger
d6de193e5e AutoTest: Remove unused variables
Removes after refactorings now unused local or member.

Change-Id: I56f16cb2058c6d15c3906550480ddcb32ef600c8
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-23 05:49:47 +00:00
hjk
6191e24935 Beautifier: Dissolve plugin pimpl
Change-Id: I00a5b92578e57c64da535af908bb661cdd901e8c
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-11-22 17:04:40 +00:00
hjk
8ceaa67ea8 Beautifier: New setup also for ClangFormat and Uncrustify
Change-Id: I338e8947c09219f6a35d1361f2e10f8264b37ad3
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-11-22 17:04:33 +00:00
hjk
27d265137f Beautifier: Move ArtisticStyle to new setup scheme
Change-Id: I186fcbff69976f980c43d8bc887b5f76fb7f4916
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-11-22 17:04:24 +00:00
Jarek Kobus
229c23ce39 TaskTree: Add docs for Storage element
Change-Id: I4faa691a8f6ad7f358a508ba25b60d1ea7476afd
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-11-22 16:27:01 +00:00
hjk
ef717b9f22 Squish: Use ActionBuilder
Change-Id: Ie193b82cffa1e7bd0ddb45d11885212e1f119f65
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-22 15:37:38 +00:00
hjk
5733014ceb Squish: Re-organize wizard page setup
Move things to new setup, inline stuff, code cosmetics.

Change-Id: Ib521d93983d1cce3d8f52d49f1cd4e0fa64a622b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-22 15:37:20 +00:00
Cristian Adam
554bb75ad9 Debugger: Fix assert when starting local debug
When starting a local debugging session and the terminal is not used, no
reason to assert that the remote pid is not valid etc.

Change-Id: I1b62a98721425784ca80ce9261b07475c19f3ba1
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-11-22 14:57:55 +00:00
Christian Kandeler
240748c106 TextEditor: Get rid of extra indent ranges in RefactoringFile
Having extra indent regions complicates the interface, the
implementation and the calling code.
Instead, derive the indent regions from the change set and let callers
opt out for the relatively few cases where indentation is not desired.

Change-Id: I49d2854830a51778534ef260fb5c9f2c7685554a
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-22 13:47:16 +00:00
David Schulz
2bd02671d8 ProjectExplorer: allow defining additional data in BuildTargetInfo
Change-Id: I14987e4d56424628828feeeeadfac2c4b28468c8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-22 13:44:14 +00:00
hjk
d597189902 Revert "PerfProfiler: Use new setup for PerfRunConfigurationAspect"
This reverts commit b49f847576.

The class access is used in perfprofilerruncontrol.cpp.

Change-Id: I1c0d9d1230224f04d39e71706064fd09b4071954
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-11-22 13:29:34 +00:00