Commit Graph

88532 Commits

Author SHA1 Message Date
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
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
hjk
f64232f77b Fix some random deprecation warning
if QT_DEPRECATED_SINCE(6, 0)
    QT_DEPRECATED_VERSION_X_6_0("Use position().toPoint()")
    inline QPoint pos() const { return position().toPoint(); }
    ...

Change-Id: If885b26c8e5f4d68ca1c5c7e4ffc495b0701b210
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-06 07:17:26 +00:00
hjk
a05b0a7829 LayoutBuilder: Potentially save a few cycles
... by not actually creating the unused instances of the Id types.

Change-Id: Id6123d359d8b8af41794e41a61fc00b05a2291ed
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-06 07:10:36 +00:00
hjk
25f8934b39 TextEditor: Inline SnippetSettings class
It's effectively just one string and wasn't aspectified.

Change-Id: Ifdfabddbd3d9e089487eefd1591db267685a582b
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-06 07:10:24 +00:00
Eike Ziller
c935f69827 Merge remote-tracking branch 'origin/13.0' into 14.0
Change-Id: I7ca7fc0d963b30257fd735eca8b00aedef1443ae
2024-06-06 09:01:03 +02:00
Christian Stenger
15056578eb Shared: Add json file to qbs build as well
Amends 32322801f5.

Change-Id: I1078f532598e98ce4f12f28cad1ef512f27be52b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-06 06:14:14 +00:00
Eike Ziller
42eb44f622 ProjectExplorer: Workspace projects were missing from recent projects
When we checked for validity of recent projects, we used `isFile`, but
the path that is used for opening a workspace project is a directory.

Change-Id: Ie22c13c06c22d4584d1e198d5ab133025ea536c8
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2024-06-06 05:53:08 +00:00
Eike Ziller
b0e1ea7da7 Fix recent projects menu directly after startup
We missed to initialize the recent projects menu when initializing.

Amends 77d7106b3a

Change-Id: Icd394d8500c5853a6195ab1868e20caed3f5f323
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2024-06-06 05:48:30 +00:00
Eike Ziller
7996c5afac Editors: Improve the highlight of the current view
Make the overlay widget as small as possible, paint it opaque, and paint
only on the editor tool bar.

Change-Id: If48f8f7c4dd221cb605548449f5bbb1a30c25a76
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-06 05:47:36 +00:00
hjk
355b8e4d1a Fix QIcon::pixmap() related deprecation warnings
QPixmap pixmap(const QSize &size, qreal devicePixelRatio, Mode mode = Normal, State state = Off) const;
    QT_DEPRECATED_VERSION_X_6_0("Use pixmap(size, devicePixelRatio) instead")
    QPixmap pixmap(QWindow *window, const QSize &size, Mode mode = Normal, State state = Off) const;

Change-Id: I8b08bec86014809887c1915b72c2776bae4a87fb
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-05 16:40:02 +00:00
Jarek Kobus
c40dceced7 Android: Introduce devicesCommandOutput() helper and reuse it
Change-Id: I098aa17328efcf66a3fb80416e65a2f82d190edc
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-05 15:42:59 +00:00
Jarek Kobus
f450610a6f Android: Transform AndroidDeviceManager into namespace
Change-Id: I92f5ea325dfcb2a11b0fde14b797c5d40bf47d0b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-05 15:38:37 +00:00
Jarek Kobus
ccd6872608 Android: Hide AndroidDeviceManager methods in cpp
Change-Id: I871b1126d36367b3716ed988f581a8b5bca68693
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-05 15:38:28 +00:00
Jarek Kobus
5a12b3618f Android: Get rid of connectedDevices()
Change-Id: Ib803c2f7cfb6db71a9b35716aca1663a7ce0176a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-05 15:38:17 +00:00
Jarek Kobus
4ca1edc080 Android: Avoid using connectedDevices() in getRunningAvdsSerialNumber()
The connectedDevices() constructs the full list of
AndroidDeviceInfo with details not needed by
getRunningAvdsSerialNumber(). These details were generated by
using 2 excessive process runs. Get rid of them, and deliver
result as soon as the matching device if found.

Change-Id: Idc3d9d3321e471f8eaa0d69287f5e748813fc427
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-05 15:38:08 +00:00
hjk
05d942d488 Modeling: Fix some Qt 6.6 deprecation warnings
Change-Id: I850bff960601595d3273f3a8dedd3f7e6830e9ba
Reviewed-by: Jochen Becher <jochen_becher@gmx.de>
Reviewed-by: hjk <hjk@qt.io>
2024-06-05 15:05:18 +00:00
hjk
5f0b9cd5ff QmlPuppet: Fix some deprecation warnings
Crc/tools/qml2puppet/instances/nodeinstanceclientproxy.cpp

Change-Id: I83342da2a9015ac1a8ba15d2fa10626ef00f5e0c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-06-05 14:31:10 +00:00
Alessandro Portale
74e4e1053a ExtensionManager: Update ExtensionManager list items design
This updates the list delegate for ExtensionManager items to match the
latest Figma design.

Change-Id: I769026caa1e08feea4f71d901d1bda01d74ab0a2
Reviewed-by: hjk <hjk@qt.io>
2024-06-05 14:30:16 +00:00