Commit Graph

88653 Commits

Author SHA1 Message Date
Christian Kandeler
ce16d58214 CppEditor: Add quickfixes/ subdirectory
We'd like to split up the monster files cppquickfixes.cpp and
cppquickfix_test.cpp by moving non-trivial quickfixes into dedicated files.
Since there will be many of them, we want to have them in a separate
directory. This patch prepares that.

Change-Id: I1e78fab5cce25151662297482582c8043618332e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-15 10:59:01 +00:00
Artem Sokolovskii
de18097cb4 Appstatisticsmonitor: Add statistics monitor plugin
The plugin adds a new tab to Navigation Widget. The tab contains
two charts CPU consumption and Memory consumption for started
applications in QtC. There is a combobox by which a monitored
application can be chosen.

Change-Id: I0747c90e73a289d65aabd31672f3accf74f00749
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-05-15 10:24:16 +00:00
Leena Miettinen
19355ccfe3 Doc: Make finding settings about resetting them
Combine "Find settings files" with the FAQ question about
resetting settings and add the related CLI commands.

Change-Id: I544e863407c6eb925772f00527b1ebb9edee47ed
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-15 09:54:22 +00:00
Eike Ziller
ea9f7f27fe AutoTest: Fix capitalization on project settings page
Group boxes are book style and don't have colon

Change-Id: I8e5f1dcc1ac451a3324dc37240cc589431c7057b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-05-15 09:49:21 +00:00
Christian Stenger
06268fe85f Axivion: Fix displaying tags
Change-Id: I5071630c3f62a4c3bb2b01495ec37f45ef7fa0c2
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-15 04:13:06 +00:00
Tim Jenssen
310abd3b70 TextEditor: use modern approach to delete TextEditorWidgetPrivate
Try to tackle the crash at destruction:

https://the-qt-company-00.sentry.io/issues/5315538277
https://the-qt-company-00.sentry.io/issues/5312380342
https://the-qt-company-00.sentry.io/issues/5237253338

Pick-to: qds/4.5
Change-Id: Id4436bf5adc0c725f9b5538480619ed99428413f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-05-14 19:15:37 +00:00
Thiago Macieira
0c6e1fab95 Tracing: fix build: theme.h: No such file or directory
tracing_qmltyperegistrations.cpp:11:10: fatal error: theme.h: No such file or directory

That comes from src/libs/utils/meta_types/qt6utils_custom_metatypes.json:
    {
        "classes": [
            {
                "className": "Theme",
...
        ],
        "inputFile": "theme.h",
        "outputRevision": 68
    },

That file is probably wrong but I don't know how to fix it.

Change-Id: If05cb740b64f42eba21efffd17cf1c207c139d7e
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2024-05-14 18:13:22 +00:00
Marco Bubke
76ec124698 QmlDesigner: Fix compilation error
Change-Id: Ia49491a7deae085460fe4498cbcc6727cc10db7b
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
2024-05-14 14:58:38 +00:00
Mahmoud Badri
2376e008f7 QmlDesigner: Update 3d user bundle imported state on load
Change-Id: I8df19486523cfd25db832ed78f0792095548dfea
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-14 14:45:43 +00:00
Mahmoud Badri
f462be8e80 QmlDesigner: Prevent adding component materials to the content lib
Also remove the experimental restriction on the content lib user section

Fixes: QDS-12637
Change-Id: Ice2ac3f32a934d7c65ea7f406a2b5f8c4b5fed0c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-14 14:02:28 +00:00
Eike Ziller
18e817ce3c Fix capitalization of refactoring actions
Consistently use book style for refactoring actions (which appear as
items in drop downs and menus).

Change-Id: I31cfd40dfc5d4d14a5949072168682a12cf566ac
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-05-14 13:52:12 +00:00
Marco Bubke
bfbcf88161 QmlDesigner: Fix crash on exit
Change-Id: I26f3c1154d8cdef9cf76b6f608634067b099ea0e
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-14 13:48:53 +00:00
Eike Ziller
902dda5b27 C++ settings: Fix missing full stop
Change-Id: I690ac0fc6d517420db5a0116495fb40167ebedfd
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-05-14 13:43:06 +00:00
Mahmoud Badri
c2778b2301 QmlDesigner: Don't override existing content lib user textures
Better solution to ask for overriding or not is for the future.

Fixes: QDS-12626
Change-Id: Ib147121d3b9cb783f45a79a96fa432d371750a0e
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-14 12:47:29 +00:00
Leena Miettinen
2c41ce2f0a Doc: Describe configuring projects in build/run example tutorial
Update the screenshot also in the "Open a project" topic.

Fixes: QTCREATORBUG-30799
Change-Id: I1967907843f792671a665d15b343669f353d4a9f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-14 11:53:37 +00:00
Thomas Hartmann
22657af3f0 QmlDesigner: Use reverse iterators to support qualified scopes
Change-Id: I88a4dcbff7a50f399b81a948f273e9cf9e36782d
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-05-14 11:30:28 +00:00
Mahmoud Badri
7ffd4805ca QmlDesigner: Handle content library user items empty state
- Make sure search is working
- Hide sections with no items
- Other tweaks

Fixes: QDS-12682
Fixes: QDS-12625
Change-Id: Ia304743323c0459dd314752dba0cf1dc5e4c4889
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-14 10:22:15 +00:00
Burak Hancerli
14a191018a QmlBuildSystem: Fix absolute import paths
Task-number: QDS-12732
Change-Id: Ic299731e1bc9b98bc4da82dbb20f6a75299ce72d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-05-14 09:17:40 +00:00
Mahmoud Badri
5bf8845c42 QmlDesigner: Add UniqueName::getpath()
Also relevant tweaks in the same class

Change-Id: I59ca0839a28478028b8aa36b9df500f29d831b90
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-14 08:24:07 +00:00
Mahmoud Badri
f7a39ed57b QmlDesigner: Use UniqueName util in the assets view
Change-Id: I1e27cb55fd1085f36ba8b6b38829baef49040c29
Reviewed-by: Shrief Gabr <shrief.gabr@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-14 07:43:23 +00:00
Eike Ziller
717a6ce8a0 Bump version to 13.0.2
Change-Id: I69a59c32fbfe699c788c15e64557a9a02b4c186c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-14 06:55:08 +00:00
Mahmoud Badri
54879113f1 QmlDesigner: Ensure unique content lib user item icon names
Also update user materials model to have the improvements
done to the 3D model. Also trying to make the 2 mdoels
as similar as possible to make it easy for further
future refactoring.

Change-Id: I5a32e1dcd7919bdf3cb638b068b0cdb5d4afecd9
Fixes: QDS-12736
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-13 14:48:15 +00:00
Henning Gruendl
e86814c491 QmlDesigner: Fix Connection editor closing
Pick-to: qds/4.5
Task-number: QDS-12013
Change-Id: I8add3418bb43b87e45153c012353646833413664
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-05-13 14:10:33 +00:00
Henning Gruendl
c29f514543 QmlDesigner: Fix ColorEditor closing
Fix ColorEditorPopup closing when opening gradient dialog.

Pick-to: qds/4.5
Change-Id: I438bd41d2efff30b372c04bc17c85210811cd0ff
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-13 14:09:23 +00:00
Ali Kianian
924019e8c2 QmlDesigner: Use GeneratedComponentsUtils in Model Editor
Change-Id: I567c746eb098c0c64d590ea7fed71f17de5adc76
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-13 13:49:22 +00:00
Alessandro Portale
6663f7c9bd ExtensionSystem: Introduce alias PluginSpecs
Change-Id: Ic7b87246cf91328c4291bbce5760a45dfa0b14e5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-13 13:46:53 +00:00
Artem Sokolovskii
465ad7b0fc ProjectExplorer: Introduce "Show All Kits" option to Kits view
By default, the kits view now displays only active kits
relevant to the current project. To access additional kits,
users can now use the "Show All Kits" option.

Change-Id: I41ecd7cbe7e220d564692b3cb16ea176add2b201
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-13 13:34:18 +00:00
Mahmoud Badri
21f00445be QmlDesigner: Add UniqueName class
The class is used for generating a unique name anywhere in QmlDesigner
codebase. The role of this class is generation of next candidate name
when name is not unique. Actual checking of name uniqueness is provided
as a function param.

Also applied the new UniqueName on 1 usecase in
ContentLibraryUserModel::getUniqueLib3DQmlName

Change-Id: I777aeef7c269bed7d999695cf5fcee6a5576222b
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-13 12:32:56 +00:00
Tim Jenssen
cf614eca91 StudioWelcome: silent splashscreen if there is a dialog open
Pick-to: qds/4.5
Task-number: QDS-12713
Change-Id: I206f132f526928fb02ea8d2f117c0ba19c08156e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-13 10:59:27 +00:00
Teea Poldsam
d1c8695974 Doc: Update Designing Application Flows
Fixes: QDS-11403
Change-Id: Iee8d9387244f9f7099119ece5124f976b0ebf00e
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-13 10:44:30 +00:00
Mahmoud Badri
4f23a553d1 QmlDesigner: Enable content lib user 3D context menu
Also some relevant tweaks.

Change-Id: I7bace9ce6bd7b45951cc18f7175b4646251196f0
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-13 09:25:18 +00:00
Eike Ziller
0f9270ed7d Editors: Highlight the view that has focus
If there is more than one editor view, i.e. if the view is split or an
additional editor window open, paint a small line in the highlight color
below the editor tool bar to indicate which view is "current", and
therefore the target for opening files, and keystrokes (if it also has
focus).

Fixes: QTCREATORBUG-23654
Change-Id: I9950c133a6633c6e68943c038669895dce1dd7ef
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-13 08:53:52 +00:00
Eike Ziller
6075904af5 CMake: Fix library build path for MinGW
The code that handled the MinGW case of libFoo.a -> libFoo.dll
broke the case of libFoo.dll.a -> libFoo.dll that is handled
by the code before that.

Amends 0d8a542b4f
Amends 8713919f31

Fixes: QTCREATORBUG-30556
Change-Id: I76f60c5e646bce97169b205860babf6a0d3b08b6
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-05-13 08:53:38 +00:00
Christian Kandeler
67e233fefc Update qbs submodule to HEAD of 2.3 branch
Change-Id: Icdbfaf63f9c8e37c00a735c22f6487ec9dd8975b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-13 08:44:35 +00:00
Thomas Hartmann
e4bdb92d0f QmlDesigner: Fix adding keyframe
Keyframes were always added on the selected model node
instead of the modelnode belonging to the property.

Task-number: QDS-12622
Change-Id: Iae44cfecd862d79b14c062854d5f329da595f729
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2024-05-13 08:02:46 +00:00
Marcus Tillmanns
1c04192c51 Lua: Add waitms test
Change-Id: I281f0a5595140ff450e1a30e189286e1a5d8cf9d
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-13 07:24:19 +00:00
Christian Stenger
6c9cea2f82 SquishTests: Adapt combo box values
Change-Id: I4ca2cf10ff1fe1c6fde2835f04d954527232b658
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-05-13 04:56:07 +00:00
Jochen Becher
76f2b6d5e1 ModelEditor: Use Utils::FilePath
More replacements of QString with Utils::FilePath and removal of
QFileInfo and QDir will follow.

Change-Id: Iceec1c009c562bd9a05f9ab1d1a9f83ad48a4467
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-05-10 18:50:22 +00:00
Jarek Kobus
99acd3247f Android: Simplify create avd command
Simplify the code copied from the original place.

Amends be222eaff4

Change-Id: Ie90da2c2c515b948d0e1321a2c8fb8f7d48b9eb8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-10 16:44:41 +00:00
Alessandro Portale
6fea65f029 Android: Support "android-desktop" device definitions in AvdDialog
Change-Id: Iec80fe8b46302adeb1308d41da77e0a489c9c95e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-10 16:07:01 +00:00
Mahmoud Badri
c1172ced98 QmlDesigner: Allow saving a 3D node to the content library
Fixes: QDS-12393
Change-Id: I3112244bcbe74ea0f8f2eda8ccb6ad7470ca0e1e
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-10 14:35:32 +00:00
Burak Hancerli
99fcb5c14b QmlPuppet: Fix the debug messages
Change-Id: I2b1d969a665863232a8d60a943fce87b6bb4dd3c
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-05-10 13:38:41 +00:00
Christian Kandeler
38153e34f3 RemoteLinux: Fix rsync command-line construction
Fixes: QTCREATORBUG-30795
Change-Id: I1311e9a9cfe9c3f6c5a4c3166a504eb27f652f9f
Reviewed-by: hjk <hjk@qt.io>
2024-05-10 13:13:58 +00:00
Jarek Kobus
be222eaff4 Android: Simplify execution of createAvdCommand()
Don't create a separate thread just to blocking execute it
from the caller thread. Use runBlocking with event loop
enabled instead.

Change-Id: I9930d91d25ef4d1af1062570db1cfe20a1c4ca2b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-10 12:46:46 +00:00
Ali Kianian
18febc9d76 QmlDesigner: Support more json structures in Model Editor
* A visitor is added to detect the property order of the nested json
models.
* A pure json object is defined as a json which does not contain any
array or object as its member.
* All of the json lists which has pure models, will be imported.
* A pure object which is a child of another object, will be imported.

Fixes: QDS-12546
Change-Id: Ib44e1567e3dde0fc5cb433b4f1dc20358e6a3949
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-10 08:36:50 +00:00
Burak Hancerli
542520e31c QmlProjectManager: Fix include paths
Change-Id: I1f5b0089e8d31d96682401a87bfd21eb3f4880f5
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-05-09 09:17:49 +00:00
Cristian Adam
1fb5b54221 PE: Fix ProjectTreeWidget::expandedCount not to use 0 for error cases
This would make ProjectTreeWidget::nodeForFile pick the wrong node due
to nodeExpandCount having a lower count.

In case of qml files there is the source file node and the resource file
node pointing to the same file name, but the resource name has an invalid
index (not visible in the project view) and shouldn't be preffered!

Fixes: QTCREATORBUG-30571
Change-Id: I2aff7da9dd6d83222e341b5cbcb78db5cd6a9224
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-08 15:16:15 +00:00
Burak Hancerli
dd20f54207 QmlProjectManager: Add initial support for multiple qmlproject files
This patch adds read-only support for sub MCU projects.

Task-number: QDS-12575
Change-Id: I0dc3b6ff37731f30875c03a3896bbabc4867c4fc
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-05-08 14:25:59 +00:00
Jarek Kobus
668e824299 Android: Remove SystemInfo from CreateAvdInfo
Replace it with sdkStylePath and apiLevel fields what makes this
structure safe to be used in different threads.

Get rid of isValid() method.

Change-Id: Iafce161457f05698fb3d5ea4a2a7fa15f8d95b38
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-08 13:36:41 +00:00
Marcus Tillmanns
f82a68221f Lua: Add helpful error message if await is called without async
Change-Id: Idc0b381a31ebe81709906e182d9a932e7ec7142f
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-08 11:37:11 +00:00