Commit Graph

81484 Commits

Author SHA1 Message Date
hjk
369ade4c1c CPaster: Use PagedSettings for settings
Change-Id: I99ee3f548d98bc4f9e2fadcccd835d5d7f680934
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-05-30 08:20:32 +00:00
Leena Miettinen
c04a4a1ae0 Doc: Fix qdoc warnings
- Mark undocumented but existing functions with \c (instead of \l or \sa)
- Remove reference to functions I could no longer find
- Fix other broken links
- Fix reference to an image whose file format changed to WEBP
- Use {} instead of "" to mark alt text for images
- Add missing \a commands
- Add class name to a function name so that it can be found

Change-Id: I10655bb0356c7417ab0e14a3ce620930f4ee8349
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-30 08:13:53 +00:00
Leena Miettinen
4ecb016196 Doc: Add missing \a commands to MacroExpander docs
Change-Id: I153e4a4e7c687d6f524bbbff42c758282bb5deaf
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-05-30 08:13:38 +00:00
Jarek Kobus
fa86a9dff0 TaskTree tests: Make test enums printable
In this way we see the name of the enum value instead
of an int on test fail.

Change-Id: I5eeae785c0bf1a85d7e5430b4b6b3aca8dd409ee
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-05-30 07:59:17 +00:00
hjk
326e20e8b9 Core: Use FilePath::searchInPath to look for explorer
Not expecting remote windows anytime soon, but moving towards
FilePath as main/only entrypoint to filesystem functionality.

Change-Id: I1701471394900049084fc7258fc56f7f912402ea
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-30 07:52:47 +00:00
Eike Ziller
4f1560666a Don't use uppercase ALT for shortcut strings
It works, but we otherwise consistently use "Alt"

Change-Id: I539a481aae1fb3d7da0a05d732122f3b81abfccb
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-05-30 07:50:24 +00:00
Eike Ziller
14fe48dff7 Tr/Python: Simplify UI text for translation
Parametrize link target, and use markdown for simpler link syntax.

Change-Id: I6d1bae0431aa4e5bd7c7ad39b1219289eda40391
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-05-30 07:28:24 +00:00
Eike Ziller
ba21749832 Tr/Clang: Use markdown for easier translations
It was weird that the </a> was floating around without a corresponding
opening tag, and the markdown "[text](%1)" is simpler than
"<a %1>text</a>"

Change-Id: Ic0bdc155b1bfef07845a36935dd5fbbb70692b45
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-05-30 07:28:09 +00:00
hjk
d338e089fb ProjectExplorer: Remove build directory compatibility code
This was scheduled in bd05e01e3d
(Oct 8 2020) for removal in 4.16.

Change-Id: I1016c85fee9fe024636d619db27eabaf676bef8b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-05-30 06:01:04 +00:00
hjk
426a9a7037 Vcs: Register settings aspects more directly
Change-Id: I8049f71456b8e8573a2dcfce68a14fb12545865b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-05-30 06:00:35 +00:00
Andre Hartmann
419f5416c5 Git: Avoid main loop blocking in instant blame
Query the author and encoding information asynchronous
after the current repository is changed.

Set the default codec to UTF-8, which should cover most
configurations (i.e. almost never be different).

In case requesting the information takes longer, the blame
mark is already created with the cached information.

In case the author or encoding changed, the blame mark
has to be recreated.

The call to refreshWorkingDirectory() is moved after the
widget checks in setupInstantBlame() to avoid requesting
these information in VCS editors.

Fixes: QTCREATORBUG-29151
Change-Id: I6feccbbed67c877f1015295f630dd63cf3ccf4a0
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-05-29 06:06:54 +00:00
Leena Miettinen
d15da2c0f9 Doc: Fix qdoc warnings in Core plugin docs
Change-Id: Id7b7c1c66e75ad5bce2ea9801493eb7872121e52
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-26 14:32:07 +00:00
Christian Kandeler
380dc1cbed ProjectExplorer: Fix warning about unnecessary std::move()
Apparently, the original warning about an allegedly missing move does
not appear anymore with current apple clang.

Change-Id: If3704b62e72765156fd3264267c98ea91b4d04c3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-26 14:17:23 +00:00
Leena Miettinen
08b5f64c1a Doc: Mark destructors as \internal instead of \reimp in Aspects docs
Document BoolAspect::value().

Change-Id: Ia7f359e9302d371e3ea79fc3fce04e3c3c9a22a0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-26 13:58:10 +00:00
Christian Kandeler
fb59c70dcb CppEditor: Revert changes to parseExpressionStatement()
Amends c8f29b9e01.
It turns out that there are contexts where we want to parse an
expression statement even with the semicolon missing (e.g. completion on
incomplete code).
So leave the existing functions unchanged and do the thorough check
afterwards in parseIfStatement().

Change-Id: Id6209ef1abfe9d155c5b9381e6ae655cc721feb2
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-05-26 13:52:36 +00:00
Christian Kandeler
809f7c6cfd TaskFile: Prevent creating invalid tasks
Task-number: QTCREATORBUG-29209
Change-Id: I00c8152b598483c35ebb16c4ab5c58949c273065
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-05-26 13:52:07 +00:00
Eike Ziller
6e7bb28f09 Tr: Add missing full stops
Change-Id: I2debc56d0740eaa30c7d597eae18910f319c1d98
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-05-26 13:50:18 +00:00
Eike Ziller
f2c1455025 Tr: Wrap file paths with ""
Change-Id: Iee0e941ff503ff485e8e9c0d9fe3e52eea9042d5
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-05-26 13:50:07 +00:00
Eike Ziller
b7f8143728 Tr: Various small fixes
Change-Id: Ic86d6b6a4aae7b301557eaa4296beb9a31399e03
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-05-26 13:30:36 +00:00
Robert Löhning
db70923c6f SquishTests: Don't guess ABIs, use 64bit
Change-Id: I9c9ff40ff6064cc203d11cc273950d65ab4f983f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-05-26 13:09:10 +00:00
Robert Löhning
31da736e46 SquishTests: Remove outdated code
We don't have 32 bit packages anymore so the OS must be 64 bit.

Change-Id: If1ce6a502dd9c6b14d416915caf1d30bd5d01ddc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-05-26 13:08:34 +00:00
Marcus Tillmanns
bdb31d4348 Copilot: Allow user to disable Copilot
Fixes: QTCREATORBUG-29179
Change-Id: I274de1f13f773fb61b376643b61056b6f14dabaf
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-05-26 12:55:57 +00:00
David Schulz
f385324bc8 TextEditor: fix highlighting after removing line
We cannot reconstruct the correct initial state for highlighting when
deleting a line if we generally save the after highlight state to the
next line.

Change-Id: I7d5f727f6b7c8340ac7f5436046cd0f1ad17ebd2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-05-26 12:15:43 +00:00
Robert Löhning
e2a4f0d701 SquishTests: Remove function for creating task file on error
Change-Id: I80b327da89f6c89a6b72a1df0f6ace0e5cf6b100
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-05-26 11:39:46 +00:00
Jarek Kobus
97bb416452 PerfProfiler: Get rid of duplicated PerfSettings::changed() signal
This signal is already defined is base AspectContainer class.

Change-Id: I195f4758a8baa746ee7f214cbdb12e494c4824ef
Reviewed-by: hjk <hjk@qt.io>
2023-05-26 11:14:20 +00:00
Jarek Kobus
a7ab1ba987 TaskTree: Doc corrections
Make docs more consistent.
Add some more precision when something is not clear.
Do some adaptations for behavioral changes.

Change-Id: I95c76fedf2c9d611702097842452186ea4cdf8b0
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-05-26 09:34:27 +00:00
hjk
b0b80c539b CppCheck: Register settingsaspect more directly
Change-Id: I325c7329618b4dbdd36bb1464627806e5f116bc0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-05-26 09:19:25 +00:00
hjk
60da3a024a Perfprofiler: Register settings aspects more directly
Change-Id: I19be173e4244add2d37eaab933293a6f30236c96
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-05-26 09:14:57 +00:00
hjk
a69489cd1e CMakeProjectManager: Register settings aspects more directly
Change-Id: I7bfbe3ad625b0902561975968221e90ce6af06d6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-05-26 09:14:48 +00:00
hjk
4e60203132 Beautifier: Register aspects more directly
Change-Id: I406f34901a6488aa843bd2045286c008aff29e3e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-05-26 09:11:37 +00:00
hjk
b47df2a304 Copilot: Register settings aspects more directly
Also simplify a search.

Change-Id: I2ba511ca3250c624fb7dbc2b44f845a5757e72ce
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-05-26 09:00:48 +00:00
hjk
0e60643430 AutoTest: Register more aspects directly
Change-Id: I4dbf9cebb12fecc765aeac8e082061c29496f81a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-05-26 08:59:24 +00:00
Eike Ziller
d2ed96a055 VariableChooser: Use same type name for declaration & definition
Fixes documentation issue.

Change-Id: Id237998b651bdf7887a0be846464265f734001c4
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-05-26 08:48:57 +00:00
Jarek Kobus
7830bb6bc4 FileSearch: Introduce searchInContents()
Change-Id: I314a5205f51d14e8a3205548049f017d93754212
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-26 08:24:19 +00:00
Christian Kandeler
13e9125d1d Update qbs submodule to HEAD of 2.0 branch
Change-Id: I44c759f26b98da440cc75cce4b8da97d4b202054
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-05-26 08:23:54 +00:00
Jarek Kobus
a78720060e FindFlags: Move it into Utils lib
It's going to be reused in filesearch.h API.

Change-Id: I7ef133368536a647e19949ba8623134cf078a87d
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-26 07:59:41 +00:00
Leena Miettinen
48e2c66a4e Doc: Remove docs for Utils::SynchronousProcess
...that has been integrated into QtcProcess.

Change-Id: I39b6e4cb5d713d59345015b2a471cd4e6ef99f57
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-26 07:35:53 +00:00
Leena Miettinen
83b971b238 Doc: Mark docs in Utils \internal if classes or functions not found
Change-Id: I3182534fefc51f573892d6f80f59ce5613f95fdc
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-26 07:24:22 +00:00
hjk
8b29c06372 Terminal: Use PageSettings for settings
The DropSupport is disabled for now, plan is to have a DropArea
LayoutItem later and use that.

Change-Id: I7fd1e55ad0c053f0357bb53a7cc20e9da8a933a7
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-05-26 07:18:18 +00:00
Yasser Grimes
7aec8c0b14 McuSupport: Add dialog for Qt MCUs kit creation status and help
The status of automatically created kits or manually updated ones is
displayed in "General Messages" along with other messages making it
difficult to know if something went wrong with kit creation.

To avoid showing a dialog at QtC startup an InfoBar message was added
with a detail button that will open a dialog listing all the messages
with their platform, package and Os providing an easy button to go to
the MCU Option page to fix the package of a help button pointing to the
prerequisites documentation.

Fixes: QTCREATORBUG-28920
Change-Id: I20c30d968fbd2d4c6d10d16504a51e7201a2db3b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-05-26 07:02:55 +00:00
Leena Miettinen
2ad153f30e Doc: Add \a commands and return values to TextFileFormat docs
To fix qdoc warnings.

Change-Id: I6258223e83517c1206e8bdb4db20db4e8fc60751
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-26 06:55:28 +00:00
Eike Ziller
5ddde5ef08 Merge remote-tracking branch 'origin/11.0'
Change-Id: If22f8cd9a211112eea39cd5d90db0ae0e3d5ccde
2023-05-26 08:51:40 +02:00
Eike Ziller
648cf50d85 Coin/GitHub: Switch to Qt 6.5.1 and LLVM 16.0.2
Change-Id: Ida29b97f937e374935e853eff62b30777a9142aa
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-05-26 06:15:00 +00:00
Marcus Tillmanns
c995795d80 Copilot: Fix spinner if Copilot not configure
Previously the progress indicator would be visible if node.js or the
lsp path was not configured.

Change-Id: Ief235253c6cfcb8f8fb533fe746edc7d0cc5867c
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-05-26 06:10:07 +00:00
hjk
4136b6e795 Meson: Compactify MesonRunConfiguration setup
Change-Id: I10a600b601301283dbdc960d9e07e5587b52c031
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-05-26 05:19:38 +00:00
hjk
6ab66690af Utils: Simplify remaining Environment::searchInPath implementation
Use the parts that have recently been copied/moved to FilePath

Change-Id: I4d5b5941c55052e58ae4b34c4c49432f63a13cde
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-05-26 05:19:20 +00:00
hjk
5689f0c60e Valgrind: Add toolargs to command, not to a string list
Removes arg splitting/re-combination roundtrips.

Change-Id: I4bc19d3b65f4c685140cea0e190191587f5124e6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-05-26 05:19:05 +00:00
hjk
0d22680c7c Incredibuild: Simpler plugin setup
Change-Id: Ie838fb800b0b0f412e1b44989eed47e70c144747
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-05-26 05:18:55 +00:00
Cristian Adam
c777de8fdb QmlDesigner: Fix configure with QTC_STATIC_BUILD
get_target_property fails when Qt5::Designer is not available.

Change-Id: I2d9aa6902e0e03a44ca91068bed5e3f3493a86c8
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-05-25 16:42:46 +00:00
Cristian Adam
eed303450d Sqlite: Fix compilation with QTC_STATIC_BUILD
Change-Id: Ie94439d190245e821c17de73075397695d1af413
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-05-25 16:23:48 +00:00