Commit Graph

68765 Commits

Author SHA1 Message Date
Jarek Kobus
f9fb3f4872 ClangTool: Transform ClangToolRunWorker into runRecipe
Task-number: QTCREATORBUG-29168
Change-Id: I1b42de2d148c84393b44c84730c8535a1d2a389c
Reviewed-by: hjk <hjk@qt.io>
2023-07-06 15:24:52 +00:00
Marco Bubke
635e0d6969 Utils: Make ssize and usize more generic
It now works for all container which implement std::size like C arrays.

Change-Id: I9ccf2c50b4e7518e44890b52686d5561358bcf8d
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-07-06 14:29:32 +00:00
hjk
552b325072 Vcpkg: Compile fix
Amends 573f3e7185 which went in too early.

Change-Id: Ied93fd585aa26cb931f3acf13b55fbf7dbe0c163
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-06 14:29:22 +00:00
Marcus Tillmanns
77edffe3cf Debugger: Support linux remote debugging with LLDB
Adds support for Linux remote debugging with lldb-server

Change-Id: I3ee08704a3116030111df75273a46a2e4888f98e
Reviewed-by: hjk <hjk@qt.io>
2023-07-06 14:22:50 +00:00
Cristian Adam
e33b8137df CMakePM: Handle qml debugging for CMake presets
Fixes: QTCREATORBUG-29311
Change-Id: I437d008a3625156e6a42f2ecaee71744bd9098f6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-06 14:08:14 +00:00
Thomas Hartmann
b85eb8aa04 QmlDesigner: Keep context as background
When drilling into components we keep the context as an image
in the background.

Change-Id: I12c291ab1cff02d30f53f92ccd9a551a9dd63704
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-07-06 14:08:06 +00:00
hjk
fd83aa0bf7 CMake: Don't guess at build config when not needed
Change-Id: I0d7fb0a25103d2cf5bfb9b2d54bae18a91010c49
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-07-06 13:53:38 +00:00
Eike Ziller
3befa60970 Fix permanently disabled menus
after switching to QmlDesigner and back.

Do not fiddle with the enabled state of the menus, they are managed
automatically by ActionContainer, depending on enabled state of the
actions they contain. Only enabling them in Design mode is the wrong
thing to do.

Amends 4642c5fd7d

Fixes: QTCREATORBUG-29268
Change-Id: I3c5704edf787f424f9a9e5e9cb363bbd410db3f2
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-07-06 13:52:11 +00:00
Eike Ziller
b5086172cc Fix button states at startup
When opening Qt Creator with clean settings, the run, debug and build
actions build be in the wrong state (enabled instead of disabled, no
debug icon).

This happened because a ProjectExplorer::updateActions call was removed
from the end of restoring the session at startup when moving the session
handling to Core plugin.

That updateActions call shouldn't be necesseray, and isn't if a session
is loaded, even if it is the "implicit default", because then
sessionLoaded(...) is emitted which results in the updateActions() call.

The sessionLoaded(...) signal was not sent if the file for the default
session does not exist. Fix that by also sending the signal even if no
file was actually loaded.

Amends cbeac777a6

Change-Id: Idb625253f29611e777d85f0feb6c196fae567ed0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-07-06 13:21:18 +00:00
Alessandro Portale
a255ec3c84 Core: Cleanup OutputPaneManager class declaration a bit
Some members were only accessed locally.

Change-Id: I217da1028d7365b8ed5c188136eea1b56175d715
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-06 13:13:02 +00:00
Alessandro Portale
bff07c9ef6 Core: Use LayoutBuilder for OutputPaneManager
Change-Id: I071491c69bc4aad9b629d9b275f256521205c8cf
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-06 13:12:51 +00:00
hjk
b1f001dbd4 Vcpgk: Consolidate plugin setup code
Change-Id: If698d9e28ba86f536416fda6090b297c16159a72
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-06 13:02:42 +00:00
hjk
573f3e7185 Vcpkg: Delay VcpkgSettings creation until first use
Task-number: QTCREATORBUG-29167
Change-Id: I249aed1661a6435d9c4bf1e1be1f7750cca4fce8
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-06 13:02:02 +00:00
David Schulz
e7e3da0893 Python: Fix updating the python venv chooser state label
Change-Id: I45aa1495388dc58b541814430d1b4dfbd80ec677
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-07-06 13:00:42 +00:00
David Schulz
09c3413cf3 Utils: emit validChanged for the delayed valid check
of FancyLineEdit and PathChooser

Change-Id: I9719d32928d8166dfae7844af4eefc94ca143eb1
Reviewed-by: hjk <hjk@qt.io>
2023-07-06 13:00:36 +00:00
hjk
b196f5f032 ProjectExplorer: Add a some convenience *Aspect::operator()()
Similar to TypedAspect::operator()().

Task-number: QTCREATORBUG-29168
Change-Id: If8d5ad90e30e66309c4a4a06d9f96011efd00066
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-06 12:18:59 +00:00
Christian Stenger
7439fe2bd1 Debugger: Silence soft assert
Change-Id: I4966a29ecd09d7ecdc049588ec2747218d45f349
Reviewed-by: hjk <hjk@qt.io>
2023-07-06 12:13:41 +00:00
Christian Stenger
f1637f53ec QtcJson: Fix warning for Qbs build
Change-Id: I8ca6c0494317e7ffd2f64b51380b2dceaf204189
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-07-06 12:13:35 +00:00
Jarek Kobus
a5ecc6207b RunControl: Integrate alternative task tree mode
Task-number: QTCREATORBUG-29168
Change-Id: Ida6d84b83b0f66b6f22701912b0d2c2d0cfb25d4
Reviewed-by: hjk <hjk@qt.io>
2023-07-06 11:57:17 +00:00
David Schulz
c58bf7f5b8 Editor: avoid accessing the widget from the FontSettingsPage
Change-Id: I51dbf4d1c7384f460b84da9602c10667addabebb
Reviewed-by: hjk <hjk@qt.io>
2023-07-06 11:49:00 +00:00
David Schulz
86191221b8 Copilot: fix crash on explicitly completion request
Change-Id: I6bdbc25063818399f1d2c81b9e8f7508f57a4b72
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-06 10:26:17 +00:00
Jarek Kobus
596a687b41 RunControl: Add postMessage()
Get rid of RunWorker::appendMessageChunk().
Reuse postMessage() in RunWorker::appendMessage().
Reuse it also in ClangTool and RunControlPrivate::showError().

Change-Id: I719a97385e675e7ee3075fcd5343dbcaab68bef7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-07-06 08:52:34 +00:00
hjk
3fab8be4b1 QmakeProjectManager: Delay settings creation until first use
The guinea pig.

Task-number: QTCREATORBUG-29167
Change-Id: Id0cbe77a5d7fcebbec71cd85cd017a71a0cba8ee
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-06 08:50:18 +00:00
hjk
c4294bea23 Core: Add the IOptionsPage::setSettingsProvider
This allows creating the options page without having the
settings object already present, potentially delaying
its creation until its first truly necessary use.

Task-number: QTCREATORBUG-29167
Change-Id: I004fb19f0ea2b7e500747b3905283d74f749cd78
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-06 08:49:34 +00:00
hjk
890cc2ba76 Autotools: Streamline plugin setup
Change-Id: I1a2ac742a3ac055c313d3af0a7173e380ca6070a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-06 08:34:23 +00:00
Jarek Kobus
10d96d8e22 AppOutputPane: Make appendMessage() private
Change-Id: Ib9ac2a62a1ea64fcbc61b8a425c5c1061247a8ba
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-07-06 08:33:00 +00:00
Eike Ziller
609510c323 Merge remote-tracking branch 'origin/11.0'
Conflicts:
	doc/qtdesignstudio/src/views/qtquick-designer.qdoc

Change-Id: I5d7ea23e356add0cbb2ad01ceb5e433377dc51c2
2023-07-06 09:49:11 +02:00
Christian Kandeler
0dde633887 Meson: Fix tool argument UI setup
The line edit needs to be initialized with the stored arguments.

Fixes: QTCREATORBUG-29351
Change-Id: I9c4e0eed05a5c00520aebf1c6c4ea3cf17ef17df
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-06 07:49:08 +00:00
hjk
29aba31741 Meson: Use Aspects more directly in MesonRunConfiguration
Change-Id: I6553d5651ba7006e683bd74c8e48fa3acd8d5246
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-06 07:19:42 +00:00
hjk
135a7682f5 ProjectExplorer: Make more aspects directly usable in AspectContainers
Change-Id: I6634c27c8d516411ad84e6cb7c361262ead53124
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-06 05:23:04 +00:00
Marcus Tillmanns
f02d0354c4 Terminal: Dont show process exit code
Show it as a "flashing" message instead

Fixes: QTCREATORBUG-29373
Change-Id: Ib9e7280a1b80cc52835aecb954f80e9daa80f7ca
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-07-05 15:39:29 +00:00
Cristian Adam
fe8c276d11 CMakePM: Auto detect generator when not specified in presets
Qt Creator would do a compiler probe for CMake presets when the compiler
was not set.

But the same needs to be done when the generator is not set. Otherwise
Qt Creator would set a different generator by default. On Windows is
"Ninja".

This is different from what CMake does from command line.

Task-number: QTCREATORBUG-28693
Change-Id: I96e917b11561a042f9476bad302f3f153e37bafd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-07-05 14:02:48 +00:00
Alessandro Portale
f373297af2 Vcpkg: Polish search/add package dialog strings
...as suggested after UX review.

Change-Id: I9f96d919a46c9e1a33e3396aca878bb520464f33
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-07-05 13:41:56 +00:00
Cristian Adam
6235d9b8cc CMakePM: use string form for architecture / toolset preset fields
Documentation mentions:

"Each may be either a string or an object" and "If no strategy field is
given, or if the field uses the string form rather than the object form,
the behavior is the same as 'set'"

Task-number: QTCREATORBUG-28693
Change-Id: Idd8cdffb94e9a943e0b133a63c628d9d8d54eb20
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-07-05 13:28:28 +00:00
hjk
739f835ef1 ProjectExplorer: Remove unusual {Arguments,WorkingDir}Aspect
Follows suite to 2cc4967 to have the user side code more uniform.
Most of the extra verbosity (setMacroExpander) can go away again
when distributing the expander via the "owning" AspectContainer.

Change-Id: I9e80cb235f0a4a9ebee601dd638aefbaa41efc1b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-05 12:55:31 +00:00
Alessandro Portale
b4dd53f9fe Vcpkg: Fix the plugin string translation context
It is supposed to start with "QtC::"

Change-Id: I9cb0b34bc7c42b4cfb58753ceb36db532e2236db
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-05 12:53:25 +00:00
Jarek Kobus
7e0534c301 ClangToolRunWorker: Remove unused fields
Change-Id: I599196e436d1648dff386555ec5537a21de9fc35
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-07-05 11:18:03 +00:00
hjk
79bf7873bd RemoteLinux: More direct aspect use in RsyncDeployStep
Change-Id: Iaa34dba82189f78e88dd09585ada9b36ec3f2852
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-07-05 11:15:48 +00:00
Marco Bubke
ef8dcbdfa8 StudioWelcome: fix signedness warning
Change-Id: Iffa90513ce0cbb0df5480a59bdf371c1d6da5a00
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-07-05 11:05:01 +00:00
Henning Gruendl
13c0fd2a0c QmlDesigner: Add title bar icons to icon font
Change-Id: If4b094723f0638f4e09f9b42312e0d14400e6067
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-07-05 09:31:51 +00:00
hjk
ada4429bcb RemoteLinux: Simplify GenericDirectUploadStep
The IncrementalDeployment::NotSupported was alwasy overridden with
Enabled or Disabled before actual action started, so it was not more
than a bool.

Change-Id: Ia4e986d08cdd10e20a741868ecb43e0c7ed4bf33
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-07-05 09:24:19 +00:00
hjk
886ef1e262 RemoteLinux: Use aspects more directly in GenericDirectUploadStep
Change-Id: I3e9070eaf0ec0eef6a706e06a87083bd214d652e
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-07-05 09:23:54 +00:00
David Schulz
1dbeb17841 Editor: Fix painting overlay selection
The border around the selection overlaps the line rect, so in order to
correctly repaint the selection when scrolling we need to widen the
prefiltering of painted selection.

Change-Id: I953749571e3e9ae412bf05f47ab3c4c3bfb8861e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-05 09:22:11 +00:00
Christian Kandeler
ae7b6b8ecf CppEditor: Fix test
Amends 3f61223c0f.

Change-Id: If5b0ed3c1c93914ebdd684f75e2900653ecaf7d7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-07-05 08:59:06 +00:00
Christian Kandeler
c732667838 QmakeProjectManager: Prevent infinite loop on ABI change
Fixes: QTCREATORBUG-29204
Change-Id: I6f4e4fa96f6c48dc83f0e5baf2205421b9ff67ca
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-05 08:58:38 +00:00
Orgad Shaneh
2f6f9d2d33 Terminal: Add icons to tabs
Change-Id: Id219366de16944daf83c3eb154d6b087c79b7fd9
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-05 08:45:12 +00:00
Marcus Tillmanns
f23103467a Terminal: Remove unnecessary echo
Fixes: QTCREATORBUG-29354
Change-Id: Ie6ddd127fecef3f48e56ca17335b21afaab31365
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-05 08:28:17 +00:00
Orgad Shaneh
9a7f45cc46 Terminal: Allow the underlying application to set title
Change-Id: I3530d645f16047df2546902d900e5e2fee8d071c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-05 08:26:39 +00:00
hjk
1bd2e84f9a Meson: Filepathify some parsers
Change-Id: I403a78e6a05a531b7ab8b5779fe9f87b0e01fc1d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-07-05 07:01:36 +00:00
Artem Sokolovskii
1fc0ca5277 DAP: Add CMake support to DAP engine
Added CMake support to the DAP engine in Qt Creator.
This feature can be enabled by setting the environment
variable QTC_USE_CMAKE_DEBUGGER. CMake debug session can
be started by clicking "Run CMake" or "Run".

Note:
Doesn't work with "Run debugging" in this patch.
Works only with cmake 3.27.0 and newer.

Change-Id: I756ea57f507aa4a6621ad62a8c0ef52c44a5185d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-07-05 06:59:49 +00:00