Commit Graph

88653 Commits

Author SHA1 Message Date
hjk
a8ea6c1eac Debugger: Fix action handling of QML Console filter buttons
Amends 93a5803956.

Fixes: QTCREATORBUG-30788
Change-Id: I3699e07e67821098500b5b4f85a15d8b19f57ec5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-11 11:34:12 +00:00
Jarek Kobus
faf6ae04c2 TaskTree: Qt-ify the code (part 3)
11. Replace local lambda with static method, otherwise getting:
    "qarraydatapointer.h:110:17: error: pointer may be used after
     ‘void free(void*)’" on rhel-9.2-gcc12.
12. Use std::optional::reset() instead of "= {}", otherwise getting:
    "error: use of overloaded operator '=' is ambiguous
     (with operand types 'std::optional' and 'void')" on vxworks-imx6.

Amends 88ee3aa908
Amends 6621c68ca9

Change-Id: Ie1631e119cb89d23a6acb3b4c39199e6ebaf1ea1
Reviewed-by: hjk <hjk@qt.io>
2024-06-11 11:11:31 +00:00
Christian Stenger
dbe2e422f7 Axivion: Link from dashboard overview to table
Make issue counts clickable and directly jump to
the respective issue kind.
This approach mimics original dashboard view more
closer and avoids confusion on the user side when
trying to find the issue table.

Change-Id: Ic23368ea6d881b46950ef41c28d4cbf737163cf2
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-06-11 11:07:26 +00:00
Cristian Adam
b66a800045 Revert "CMakePM: Set platform codegen and linker flags for GCC compilers"
This reverts commit 831b93905b.

Reason for revert: breaks Android and it looks like magic. For CMake one
should use a toolchain file. But this revert keeps the CMAKE_C|
XX_FLAGS_INIT parameters update / merging.

Change-Id: I1c3c61e4a9345a29e72db7f5f5a2d6e3fdba52f1
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
v14.0.0-beta1
2024-06-11 09:52:22 +00:00
Christian Kandeler
2d35dd1532 ClangTools: Fix behavior of expand/collapse button
It's a check button, so it should behave like one, i.e. its current
state should be considered when adding new diagnostics, and it should be
enabled regardless of whether any diagnostics are currently visible.

Change-Id: I0e21ad5fdc5cd6a20fda7b40ea7eecd454d1e11f
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-11 09:15:10 +00:00
hjk
4e2d8d0226 Fix more metatype related deprecation warnings
Change-Id: If206b70d263bcdb6d617827fb9cb8fe3214564a1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-06-11 08:51:23 +00:00
Eike Ziller
8bf7967074 Merge remote-tracking branch 'origin/14.0'
Change-Id: Ic38a5b4843f174e51f5ebb97d1636a3283646c34
2024-06-11 10:36:51 +02:00
Eike Ziller
36ec16a34c Add change log for 14.0.0
Change-Id: I5350a15dc342ced4e181338443dfe44b0cf1bd5c
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-06-11 08:33:30 +00:00
Leena Miettinen
4c2c709256 Doc: Add links to related topics from "Configuring Qt Creator"
Edit the style.

Change-Id: I3f0404b7d049cfa0e8f6eb530768d31f459ea1fe
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-11 08:30:38 +00:00
David Schulz
64f9ff8963 Rust: use cached release information
Change-Id: Ibc9b0921e02f4c190986bcf69f75a3347369c68d
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-11 08:24:37 +00:00
Marcus Tillmanns
bb5b8b40ff LanguageClient: Don't store client settings multiple times
Change-Id: Iff6dcfef4d8f1e5cc01b48f2a4cf12f4c5927581
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-11 06:31:06 +00:00
Leena Miettinen
3cf9f64791 Doc: Update info about connecting Linux-based devices
- The device wizard instructions should not mention USB, as
  USB connections are detected automatically
- The descriptions in the Extension Manager should use
  "network" when both wired and wireless connections are
  supported

Change-Id: I29a7279c413b335280fc5f2fa254e8922ecac5a9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-11 06:06:52 +00:00
Christian Stenger
732b503aa2 Lua: Add wizards to qbs build
Amends cb1f1bdd61.

Change-Id: I56a20324a089abc360c94d6eb7d2c2522622a094
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-11 06:00:35 +00:00
hjk
8a6e1d6c06 TextEditor: Avoid some deprecation warnings
Change-Id: I05ceed344086f1cf75926f132422a1e0ae30cf08
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-11 05:47:42 +00:00
Christian Kandeler
f65c54fa3e Wizards: Remove remaining uses of classToHeaderGuard()
Amends 335c552bda.

Change-Id: I4f43e74f74cd42c4139e91b80abe89bf371411ef
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-10 14:08:15 +00:00
David Schulz
0cd5230f6a VCS: Improve performance of isVcsFileOrDirectory implementations
FilePath operations are relative expensive on Windows compared to the
cost of a string comparison, so always first check the file name before
checking any file meta data.

Change-Id: Ibb4c13d7e11e0c01bdf3706a62362f4c0a27d284
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-06-10 13:58:45 +00:00
hjk
acd3d60fb2 Debugger: Add debugger name to progress bar
... when there is more than one engine.

Mildly-related-to: QTCREATORBUG-30355
Change-Id: Idaf41b97f51c384ccf6a437d9c9c8dec922affc6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-06-10 13:34:30 +00:00
Christian Kandeler
6040fef260 RemoteLinux: Do not try to start a process via a shared connection
... on a disconnected device.

Change-Id: Ide89f38783b96d41c50b7f53d649f213522e8857
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-10 13:26:31 +00:00
Christian Kandeler
37f5501a1f RemoteLinux: Do not try to fetch environment of a disconnected device
Change-Id: Ibe1ca43fa3d9d0ade2fa3db1808c1a5fd2cb7232
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-10 13:20:36 +00:00
Christian Kandeler
6e4fbed511 RemoteLinux: Serialize the "disconnected" state
Otherwise permanently unreachable devices will keep causing annoying
delays after every restart.

Change-Id: I85c6fd0a6964c7f25e4b61b8eb092fc606b146ad
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-10 13:20:16 +00:00
Eike Ziller
64ebf36f15 Fix various outdated information in README
Change-Id: Ib626b611de25bb437266b8a013622a8f34e28324
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-06-10 12:29:04 +00:00
Christian Kandeler
6141aa3f61 Update qbs submodule to HEAD of 2.4 branch
Change-Id: I3c87ea95da4f91f194467249fa8fe55b04d573da
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-10 11:10:58 +00:00
Marco Bubke
e7b4b14126 UnitTests: Fix warnings in UniqueName tests
Change-Id: If41125a2cdc7f7502705f079403338bd0eb397e0
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
(cherry picked from commit 12a0a02563)
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-06-10 09:17:20 +00:00
Jarek Kobus
29121865a8 Session: Add missing include
Otherwise Q_DECLARE_TR_FUNCTIONS is not known.

Change-Id: I685ccedb7c94847b065ca9919368c74ecc5d2376
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-10 08:22:43 +00:00
Artem Sokolovskii
3241818a6a AppStatisticMonitor: Add Windows support
Change-Id: Ib5b53d7802f54d2a8845ddfc7ba86c977d1db4be
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-10 08:05:25 +00:00
Marcus Tillmanns
cb1f1bdd61 Lua: Wizards
Adds a simple lua file wizard, and a lua plugin wizard.

Change-Id: I0ea08cdc5eabe7396cb49abd265fce16f5960416
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-10 07:38:23 +00:00
Eike Ziller
2e9e107191 build.py: Avoid ARM 7z compression filter
Which fails to extract with (older?) p7zip from Linux distributions,
which is used for building online repositories.

Change-Id: Ia9032293841cf192b9b2e0ff820ca4a8b7f47763
Reviewed-by: Patrik Teivonen <patrik.teivonen@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-10 07:28:25 +00:00
hjk
d308b86847 Utils: Centralize aspect macro expansion setup and handling
Let each aspect have a macro expander, and let aspect-owned lineedits
use this for expansion.

Change-Id: Ifa6f5a678cf81c169643e4145f41e69eafedeb93
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-10 06:31:20 +00:00
Marcus Tillmanns
685694c7a9 Copilot: Remove agent.js from the translation
agent.js was renamed to language-server.js. This patch changes the installation note
but requires a change to the translation files.

Change-Id: I02f825260c5a7a3c53fa938c2e074216210493eb
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-10 06:08:54 +00:00
Marcus Tillmanns
13c892f9d3 LuaLSC: Fix crash on exit
Since the client lives longer than the lua context, its destruction would
also cleanup the custom handlers which had captured the lua function.

Calling anything as well as the destructor of a sol object after the lua
context is gone results in a crash, so make sure that we don't keep it
around any longer.

A better solution in the long term would be to allow custom handlers to
be unregistered in the Language Client.

Change-Id: I59ac39d9279dc5faf24d3fd3b29e8c7c00e2b48e
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-10 05:58:14 +00:00
David Schulz
421210e609 Debugger: avoid 32 bit cdb detection
Change-Id: I75c8dd4e764b3d16387fb49271bf0b973e0f45b7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-10 04:54:20 +00:00
hjk
cbd596f608 ProjectExplorer: Add macro expansion for CopyStep
Fixes: QTCREATORBUG-30821
Change-Id: I8cde8d93ca41fa320113d95c25d42f0f277025eb
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-07 12:05:29 +00:00
hjk
80f46e055c Use non-null valies for LB connection guards
Task-number: QTCREATORBUG-31024
Change-Id: I532d2daade968ff4aa2f3dc1ba89d2a3a4e9c2eb
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-07 10:58:42 +00:00
Christian Kandeler
73191bce0c Utils: Allow FilePaths to be compared case-sensitively
... and make use of that when renaming.

Fixes: QTCREATORBUG-30846
Change-Id: Id06a6df5db13325d17dcd69270604e754d7dee2a
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-07 10:20:06 +00:00
hjk
dc2317ebb8 LayoutBuilder: Clean up a bit
Change-Id: I584e437f608126b0aceb292e6571ad51fc12fe87
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-07 10:03:47 +00:00
hjk
2b4212bfd6 LayoutBuilder: Use explicitly empty cells for nullptr widgets
And layouts, and empty label texts.

Task-number: QTCREATORBUG-31024
Change-Id: I8435327ddd75d0a218d2a50efe900a7d5ec6490f
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-07 10:03:27 +00:00
Jarek Kobus
88ee3aa908 TaskTree: Qt-ify the code (part 2)
6. Drop #pragma once header guides.
7. Remove trailing semicolons after Q_ENUM_NS.
8. Use QT_CONFIG(process) for QProcessTask.
9. Update copyright headers.
10. Enclose all classes into Qt namespace.

Amends 6621c68ca9

Change-Id: I42df9a04b029a65d025699eb02fd9f3d1c1a333a
Reviewed-by: hjk <hjk@qt.io>
2024-06-07 09:51:08 +00:00
hjk
cb0bedc49d QbsProjectManager: Work around some warnings
Deprecations and unused includes.

Change-Id: I555db9d7894d3942711ae64d1b30edaf96b96ca3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-07 07:00:29 +00:00
Christian Kandeler
2006ab3d23 CompilationDBPM: Prefer kit toolchain
If there was no exact match of the compiler executable in the JSON
database with one of our toolchains, we used to use a random toolchain
that was of the same basic type as the compiler given in the JSON file,
with no regards to target ABI etc.
Instead, we now use the kit toolchain in that case if it has a matching
type, as that one is assumed to be the user's preference.

Fixes: QTCREATORBUG-31001
Change-Id: I2c69a7fb328a034fdf097d306f9673a245bf4772
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-06 12:04:35 +00:00
Eike Ziller
451de5adb8 Fix build on older Apple Clang
Actually not sooo old.

compilationdbparser.cpp:172:34: error: redefinition of 'it'

Amends f3e164af4f

Change-Id: Ib3fc97b39921138d2a27bbe8f95c504c8823d09f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-06 11:56:50 +00:00
Artem Sokolovskii
c49ec17d01 ClangFormat: Allow unknown options in .clang-format file
This commit disables syntax checks for the .clang-format file,
enabling its use even if it contains errors.
Removed pop-up shown when save .clang-format file with
errors but left warning when editing it in Code Style Tab.

Fixes: QTCREATORBUG-30087
Change-Id: I37a0b1e9d602fcbe4fbbc27f7ab190bcd5c1a1fd
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-06-06 10:39:49 +00:00
Artem Sokolovskii
09fdd9ad9e AppStatisticMonitor: Move build as a separate package
Change-Id: I93c9e1e6feb043531f70023ffe6cd74a1d2d95e5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-06 10:35:48 +00:00
hjk
c3bfcc9b86 QmlPuppet: Fix a few more deprecation warnings
Change-Id: I4debdccaf6f6c7fcc228eadea6231b58fa8da9d0
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
2024-06-06 09:53:25 +00:00
hjk
f058e50ddc CppEditor: Work around deprecation in QCryptographicHash
Follows de18b3ff370 in qtbase.

Change-Id: Ie50b609b5fbe00ee93a536b2d64d73d5bdf0e61e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-06-06 09:53:14 +00:00
Christian Stenger
e2b11b0ed6 Lua: Add guidemo to luatests for Qbs as well
Amends 6bfeefbb1b.

Change-Id: If25b3afca6d52e7f17d5436ed77790449def1dca
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-06 09:48:03 +00:00
Christian Stenger
ac86e2328b Marketplace: Fix layout
Only noticeable with network issues.
Broke with 903d01b934.

Change-Id: I85e35c951b4c28b9201362ed17d4dae529ccb041
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-06 09:12:00 +00:00
hjk
21556d992e QmlDesigner: Fix some deprecation warning in FormEditorGraphicsView
Change-Id: Ic7c7df7fd357bcb3b7500f2fc9bb5b7cb9661ff9
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
2024-06-06 09:05:16 +00:00
Christian Kandeler
c8d534cec6 RemoteLinux: Add missing reset of "disconnected" state
I believe this code path can be taken due to connection sharing.

Fixes: QTCREATORBUG-30828
Change-Id: I64a6142574719b85215379e304989f36b6bf46da
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-06 09:02:26 +00:00
Marcus Tillmanns
6bfeefbb1b Lua: Add Gui Demo to lua tests
Change-Id: I4b9af6702d425867c5f1f6904d6b939a1cede8e6
Reviewed-by: hjk <hjk@qt.io>
2024-06-06 08:14:09 +00:00
Marcus Tillmanns
7e9af008fc Lua: Fix Widget size property implementation
Change-Id: Ia5d9d8646815257318ad657480167b7f42b9dca9
Reviewed-by: hjk <hjk@qt.io>
2024-06-06 08:14:04 +00:00