Commit Graph

72811 Commits

Author SHA1 Message Date
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
Ali Kianian
08dcd7d47c QmlDesigner: Add indicator button as an item of the 3d toolbar
Task-number: QDS-12953
Change-Id: I00fd84000d2d61b296c91c52f47c140711dd0219
Reviewed-by: Shrief Gabr <shrief.gabr@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-06-07 09:47:19 +00:00
Ali Kianian
1e3f8afdce QmlDesigner: Get the material image based on request id
A request id is used for comparing requests instead of image sizes
Returned image sizes was not always the same as requested ones because
of pixelRateRatio.

Fixes: QDS-12961
Change-Id: I2f0ed7ea00047f296872a02958322f3448984f09
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-06-07 09:23:29 +00:00
Henning Gruendl
79e6c6809b QmlDesigner: Fix color property expression binding
Fix setting an expression on a color property via the binding editor by
using the actual expression instead of a quote stripped version of it.

Task-number: QDS-12919
Change-Id: I877b9f622158a5a88b4fe6add968ded4e691cb20
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-06-07 08:16:09 +00:00
Mahmoud Badri
aed83c869d QmlDesigner: Implement importing qdsbundles that has 3d items
Fixes: QDS-12964
Change-Id: I655a28bd8beb7c93d72e60b7951b11c33fab28aa
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-06-07 08:01:53 +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
Mahmoud Badri
ddbb9937a1 QmlDesigner: Implement exporting an imported 3D component
Fixes: QDS-12904
Change-Id: If8c597f00864a08a4ce47d7c09239a5c70a5026a
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-06-06 14:59:30 +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
Mahmoud Badri
f4cbeef185 QmlDesigner: Capitalize export/import components in 3D context menu
Change-Id: Ie16e0c6db6d4bfdbf04c314f9ab3526602acd93c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-06-06 09:58:31 +00:00
Mahmoud Badri
623cf628d6 QmlDesigner: Implement exporting a material
ContentLibraryView::exportLib3DItem() updated to work with materials.

Fixes: QDS-12905
Change-Id: If09b361851db366ef4ce4f1597d272fe5006e599
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-06-06 09:58:13 +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
Miikka Heikkinen
3ed7cac33f QmlDesigner: Add light probe to 3D import preview scene
Many materials require hdr light probe in the scene to show up nicely
in the preview, so added a default light probe to the 3D import
preview scene.

Fixes: QDS-12901
Change-Id: I53cce8fc1951fa928c47b9b65cdfba57467621de
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-06-06 08:16:35 +00:00
Mahmoud Badri
9879022138 QmlDesigner: Implement exporting a local 3D component
Also some relevant plumbing.

Fixes: QDS-12394
Change-Id: Ifead81f54cc4137f42a590ef05f1965791242bfc
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-06-06 08:16:09 +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
Miikka Heikkinen
01501e00dc QmlDesigner: Show more information on import 3D dialog list
Preview image and some additional info are now shown on 3D import
dialog's list of imported objects. Individual items can be removed
from the list by clicking "x" button on the list or pressing delete
key.

Fixes: QDS-12900
Change-Id: Iad366ea308203a25bc3379b47c1d9c4f75f13fa7
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-06-06 07:46:50 +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
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
Alessandro Portale
bbfb7542a7 ExtensionManager: Read more fields from service response
This adds reading of "download_count", "id" and "is_internal".

Change-Id: I45382d7c70bbc5f44f9391bf3a87ee354d1809e4
Reviewed-by: hjk <hjk@qt.io>
2024-06-05 14:30:07 +00:00
Alessandro Portale
0650fe14e5 Utils: Update Figma text tokens
This adds UiElementLabelMedium and UiElementLabelSmall.

Change-Id: I592f2bdf7a4d0a98e38ea69c33cf1b27040f7eea
Reviewed-by: hjk <hjk@qt.io>
2024-06-05 14:30:00 +00:00
Alessandro Portale
152307a758 Themes: Update Figma color tokens
This adds color tokens for gradients 01 and 02.

Change-Id: I05ae55ff4fd9f496ff1e465e6905398825078b52
Reviewed-by: hjk <hjk@qt.io>
2024-06-05 14:29:53 +00:00
Christian Kandeler
5221d53a6d BareMetal: Use runnable() to get executable and arguments
... rather than accessing the aspects directly.

Task-number: QTCREATORBUG-30925
Change-Id: Id39b6226f6bbee75b93905747373513294deb29e
Reviewed-by: hjk <hjk@qt.io>
2024-06-05 14:23:33 +00:00
Christian Kandeler
345ae8e4d4 ProjectExplorer: Merge CustomExecutableRunConfiguration::runnable()
... into parent class implementation.
This way, the executable expansion will be done for all sub-classes, the
remote custom run configurations being the most relevant ones.

Task-number: QTCREATORBUG-30925
Change-Id: Id7715d9f60338767c0623fa33749ef18338ae479
Reviewed-by: hjk <hjk@qt.io>
2024-06-05 14:21:48 +00:00
Cristian Adam
0fa8047f12 CMakePM: Transform a few raw C strings into constant literals
This way you can have code completion for the constant literals and not
do any accidental typos.

Change-Id: I1f9dc36327052fcda9575dddec909db93c4b225c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-05 13:14:02 +00:00
Cristian Adam
e04c727043 CMakePM: Don't remove QML debugging flag with the preset value
If a CMake preset has the CMAKE_CXX_FLAGS_INIT parameter defined, it
would override the QML debugging flag set before.

This patchset makes sure that both are present.

Change-Id: I2012567af04c2fa0b0097331c05d96770dd86503
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-05 13:13:14 +00:00
Jarek Kobus
ffc3c9b7f3 Android: Avoid using connectedDevices() in findAvd()
The connectedDevices() constructs the full list of
AndroidDeviceInfo with details not needed by findAvd().
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.

Make getAvdName() public.

Change-Id: Ic58e2ee55f275e230c07631853225ca3fdefd730
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-05 12:38:40 +00:00