Commit Graph

72811 Commits

Author SHA1 Message Date
Cristian Adam
cc05c16377 CMakePM: Ask for a build configuration name for new configurations
Amends f866b03b19

This would do what the QMake build system does on new build types, it
asks for a name and uses that name in the build directory.

Fixes: QTCREATORBUG-26066
Change-Id: Iec5b4ace1e203affad718b42ec2bcbbc87aef51f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2024-06-25 15:30:46 +00:00
Alessandro Portale
c8e1af0292 ExtensionManager: Remove "Install..." button
Change-Id: I0b7a79a1182eca26d0dc97750db2fa84eb444cea
Reviewed-by: hjk <hjk@qt.io>
2024-06-25 15:16:43 +00:00
Alessandro Portale
5be68d7256 ExtensionManager: Enable/disable dependencies, inform users accordingly
This instantiates PluginView in order to use setPluginsEnabled. It
enables dependencies of a plugin that is being enabled. Likewise, it
disables dependent plugins when users disable a plugin.

In both cases, the user sees the familiar info dialog.

On confirmation, a "Restart now" button is shown.

Change-Id: Ie74ed377bfdd1ce3cb06289c2aae78377475bc53
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-06-25 15:09:32 +00:00
Alessandro Portale
bb32b44671 ExtensionManager: Enable opening of external links
Amends: 81163b431e

Change-Id: I512279d86590bc35d7816ff69bb618aea58b4fcb
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-06-25 14:57:51 +00:00
Jarek Kobus
1e0fc74739 CppModelManager: Simplify future template parameter
Since we don't use the future interface for result
reporting, simplify it to be QFutureInterface<void>.

Change-Id: I4d3a2e7f87721c54996894d744e5c43cc6223d47
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-06-25 14:55:01 +00:00
hjk
828c50d33d ExtensionSystem: Split PluginView in PluginData and view
Change-Id: I7337b83eafe391b4fc46ef9c2e2617a76adf0f5f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-25 14:21:26 +00:00
Miikka Heikkinen
ad8c3ba52a QmlDesigner: Fix composed effect reparenting and removal issues
Reparenting or removing composed effect nodes requires recursive update
of the old parent to ensure all children of the old parent are rendered
correctly without the effect.

If the new parent of composed effect node has Image children, they can
in some situations randomly lose their textures in 2D view.
It seems that the only way to fix this issue is to toggle the
visibility of the affected node or its ancestor off and on, so we do
that to the new parent item when reparenting composed effects.

Fixes: QDS-11688
Change-Id: I003d3976d619f24164938846d9b4a15201bf7b59
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-06-25 14:02:53 +00:00
Eike Ziller
44e36686c8 Fix lupdate issues
Change-Id: Ie71649f38e29c2fd6f644e023772f15865d6e6aa
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-06-25 13:51:50 +00:00
hjk
9eaa9b1f66 ExtensionManager: Switch on by default
But keep experimental.

It is currently less functional than the old plugin dialog, it
misses e.g. dependency tracking when disabling plugins and the
design misses a way to restart Creator in the common case where
this is necessary.

Change-Id: Ib6c5aba762426510fc174c99ddc486d31d240484
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
(cherry picked from commit c57d70e242)
Reviewed-by: hjk <hjk@qt.io>
2024-06-25 13:51:18 +00:00
Alessandro Portale
2cb03eccc8 ExtensionSystem: Make PluginView::setPluginsEnabled public
Change-Id: I0468e200b0fec76e699f9e5a64924b437557aab9
Reviewed-by: hjk <hjk@qt.io>
2024-06-25 13:25:35 +00:00
hjk
c57d70e242 ExtensionManager: Switch on by default
But keep experimental.

It is currently less functional than the old plugin dialog, it
misses e.g. dependency tracking when disabling plugins and the
design misses a way to restart Creator in the common case where
this is necessary.

Change-Id: Ib6c5aba762426510fc174c99ddc486d31d240484
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-25 13:14:34 +00:00
Tim Jenssen
2dcee5a89a QmlDesginer: catch none critical busy exception
walCheckpointFull() is writing back the log which is not
critical and should not crash the application

Change-Id: Ie01cc9be35de30dc9b89bcb00e9cd4358887c3b2
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-06-25 12:36:23 +00:00
Leena Miettinen
9cc4c6a93e Boot2Qt: Edit UI text
- Replace "Boot2Qt" with "Boot to Qt"
- Add dots to ends of messages

Change-Id: I0c4a795199bf6dee41cc69c5eea34bf28246f0b6
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2024-06-25 11:34:54 +00:00
Marcus Tillmanns
454c505184 Terminal: Remove object registration
Its unnecessary to register the object in the plugin system.

Change-Id: I0a356b9a040879503e38090939008277e4eea4f0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-25 11:31:44 +00:00
Shrief Gabr
b76826d674 QmlDesigner: Add 3D component from Navigator view context menu
Fixes: QDS-12911
Change-Id: Icd6d32d4a09a6f3e7b925037e73a75fdbf472f28
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-06-25 11:10:27 +00:00
Christian Stenger
b4a886d0ae Vcpkg: Fix qbs build
Amends e001f4535b.

Change-Id: Ie8db65b64de188d23d177ad2b232f90b4288093b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-25 10:55:42 +00:00
Marcus Tillmanns
81ad004a52 Lua: Improve REPL Pane
* Replaced item editor with label to allow copy&paste
* Fixed removing global object
* Removed printing of readline prompt
* Removed keypress handler as it was unstable

Change-Id: I8091252400a3532ecc818404ad5a8edfa9451327
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-25 10:55:21 +00:00
Alessandro Portale
e001f4535b Vcpkg: Asynchronously parse repo vcpkg.json manifest files
Finding all vcpkg.json files in the repository recursively and parsing
them takes a second or two. This change makes this asynchronous and
shows a spinner instead of blocking the UI.

Change-Id: Ib25daa8883d27764091de700f2977b8b10ba2e27
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-25 09:17:54 +00:00
Leena Miettinen
a9a611e21e UI text: Add dots to ends of messages
Use consistent wording for things that failed.

Change-Id: If8593077352b48418ca739d6933beef588057ac1
Reviewed-by: Sivert Krøvel <sivert.krovel@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-06-25 09:15:54 +00:00
David Schulz
6ca917c123 Core: remove unneeded template of mimeTypeFactoryLookup
Change-Id: I2ca6defe1054b0ac06aa134c099a77f253d61a02
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-25 08:30:49 +00:00
Christian Stenger
10e10f2190 Lua: Add scripts rcc to qbs build
Amends 0214cac51d.

Change-Id: I1670e485b009d920d736b1f168e3d0e059b75680
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-25 08:13:16 +00:00
Christian Kandeler
600fba3de8 Update qbs submodule to HEAD of 2.4 branch
Change-Id: I27e7076a1cab41f5df816e27a1b76c1baf3ab4ad
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-25 08:03:33 +00:00
Leena Miettinen
2f76130a49 Doc: Update info about QML Language Server
- Rename topic as "Configure QML Language Server", as QMLLS
  is now turned on by default
- Describe new preferences
- Remove "QML Language Server" from checkbox labels
- Add a link to the docs to the change log

Task-number: QTCREATORBUG-30604
Change-Id: I397b1747a3d23d728c78dc2eae000839655c4f32
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-25 07:44:24 +00:00
Christian Stenger
79f7115cde Lua: Fix missing include
Amends 0214cac51d.

Change-Id: I873e9dcbe687ea579bc71ba0a687e5f2b4955817
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-25 05:58:28 +00:00
Marcus Tillmanns
96815bb95e LuaLanguageClient: Fix crash on exit
Change-Id: I2f70d0b1586bc2bfbb27ea1513313e5c6ca32754
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-25 05:58:16 +00:00
David Schulz
8910356ffc LanguageClient: avoid crash on collecting clients for a null setting
And assert in that case.

Change-Id: I7b74589e6f08eb57e1b08bf509729bef32d0a9ff
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-25 05:54:15 +00:00
Orgad Shaneh
da957a5b1a Utils: Fix MSVC warning
icon.cpp(214): warning C5030: attribute [[__maybe_unused__]] is not recognized
icon.cpp(214): warning C5222: '__maybe_unused__': all unscoped attribute names are reserved for future standardization

Change-Id: I99e484a508965ef256b20286b3c3795220c4f748
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-25 05:32:39 +00:00
Jarek Kobus
460a5bbb56 TaskTree: Qt-ify the code (part 4)
13. Make s_activeStorageWarning a QLatin1StringView, otherwise
    having "qstring.h:1007:5: note: declared private here"
    on ubuntu-24.04-x64.

Amends e331329e4f

Change-Id: I6f5784f00b2894daa48128edd50bf57b54686acf
Reviewed-by: hjk <hjk@qt.io>
2024-06-24 15:03:23 +00:00
Cristian Adam
660e579760 CMakePM: Code readability fix
Amends b240bfb3db

Having the assignement sepparate makes the code easier to understand.

Change-Id: I10112224c9752788e157012d53f638406b79793b
Reviewed-by: hjk <hjk@qt.io>
2024-06-24 14:48:17 +00:00
Ali Kianian
7caf81117d QmlDesigner: Unify invalid ids
Fixes: QDS-13056
Change-Id: I8d99e0e9eba148fe4d31c3c9a2d28f46d91b377a
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-06-24 14:43:47 +00:00
Artem Sokolovskii
6db4c7af32 AppStatisticMonitor: Change background color to current theming
Change-Id: Ib12305cfda1d6ed4404c606314fa73451ed4afe7
Reviewed-by: hjk <hjk@qt.io>
2024-06-24 14:42:23 +00:00
Cristian Adam
3babe8c73c App: Set "windowsvista" style on Windows
This will set the pre Qt 6.7 default style.

Task-number: QTBUG-126515
Task-number: QTBUG-126548
Task-number: QTBUG-126549
Change-Id: I947bcbe859c91906f2a273a04f3142d8d42b7af1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-24 14:31:27 +00:00
Marcus Tillmanns
0214cac51d Lua: Interactive Shell
Change-Id: Iedd620abcb62b9dd3e640bcb80ae011016386484
Reviewed-by: hjk <hjk@qt.io>
2024-06-24 14:29:31 +00:00
Jarek Kobus
7ffcbe541b TreeScanner: Inline scanForFiles() method
Make scanForFiles() a non-template method and hide it
in treescanner.cpp. Inline scanForFilesRecursively().

Change-Id: I10e07f190e1a4a65cd7045c625a364350964afb9
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-24 13:23:27 +00:00
David Schulz
4f1cc1ff31 Core: fix direction of Ctrl+N/P/Up/Down
Additionally accept the shortcut override events in order to block other
potential shortcuts from interfering with the selection of the open
document.

amends e6299f510d
amends 03e35aac14

Task-number: QTCREATORBUG-31072
Change-Id: Idfd65b92a84f5be39f9a01da68e8046ae5304733
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-24 12:46:54 +00:00
Mahmoud Badri
e574ba97f1 QmlDesigner: Fix bundle material json file donwload path
Also small renames to add clarity.

Fixes: QDS-12998
Change-Id: I1b38fa501bcc606f13675a98c5543709d15ac615
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-06-24 12:19:46 +00:00
Orgad Shaneh
2b094ddb21 TextEditor: Fix context for editor actions
Amends 411100b037.

Fixes: QTCREATORBUG-30748
Change-Id: I6b54e7283df2523e26a6dd186de973a8378a9b2f
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-24 11:58:57 +00:00
Alessandro Portale
81163b431e ExtensionManager: Implement Extension details design
This implements the design for the "right side" of the extension
manager.

The introduced "header" shows the extension icon in a slightly bigger
variant. The "Install..." button that starts downloading and installing
of a plugin moved to the newly desigend "header".

The previous HTML based prototype has been split up into separate items
in order to achieve specialized sections like the images and tags.

Images are loaded via TaskTree and displayed as static image or as
animation.

Change-Id: Ifaf4a46c0a4789e77e76f9a44c8a15ee74c5e8df
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-06-24 11:47:30 +00:00
Cristian Adam
a41c4de3df CMakePM: Do not hang on renaming files in parent directories
This fixes renaming of "my/class.cpp my/class.h" via "../class.h" and
resulting into "class.cpp class.h".

"oldRelPathName" was not needed since it was saved in the
"m_filesToBeRenamed" map and it was computed from the new filename. This
was prone to error.

Task-number: QTCREATORBUG-30830
Change-Id: I839fab3bd6a6172f5ebfbaf9a4b6501cd5693fa8
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-24 11:45:30 +00:00
Jarek Kobus
c3de8c7f31 SshParameters: Remove return value from setupSshEnvironment()
Change-Id: I3e58454f23b5828991a5da1a88913f68d0f3ac9b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-06-24 11:34:18 +00:00
Christian Kandeler
c0bfd9bbd6 CppEditor: Clean up cpptoolsreuse.{h,cpp}
A lot of code had a more suitable place to live in, some was even
unused.

Change-Id: I36478ef473aa14395a182c9ac5e3738fc93134b6
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-24 09:14:47 +00:00
Artem Sokolovskii
322679db16 CppEditor: Fix folding after comment
Fixes: QTCREATORBUG-5110
Change-Id: I65e0245d68ed41ab0cfc85cedbee21584b6fa90f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-06-24 08:16:31 +00:00
Mahmoud Badri
8beb6ff299 QmlDesigner: Correct ContentLibraryView::addLibItem()
Properly set bundle id and path based on node type.

Change-Id: I9710b09789ebe33a3dbe9bb2f112fead53486278
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-06-24 08:13:59 +00:00
David Schulz
e6299f510d Core: allow selecting recent documents with Ctrl+N/P
This is more in line with other list popups like the locator or the
completion widgets.

Task-number: QTCREATORBUG-31072
Change-Id: Ic3c8a7de2791473c693bd21c661e3e5b85ff21a7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-24 08:11:09 +00:00
David Schulz
03e35aac14 Core: Fix selecting recent document with arrow keys
The editor actions are defined in the editor since the removal of the
TextEditorActionHandler. So we potentially capture the ctrl+up/down in
the editor. Fix this by overwriting the shortcuts in the event handler
of the open editor widget.

Fixes: QTCREATORBUG-31072
Change-Id: I45217962bcb2ef3ae8ebed7c4a6d0412bcc0216b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-24 08:11:04 +00:00
Semih Yavuz
df2e55d92a Opt out qmlls semantic highlighting
Apperantly, qmlls semantic highlighting is not as powerful as the
embedded code model's highlighter. Disable lsp based highlighting until
qmlls semantic highlighting reaches the feature parity with the QtC
highlighter. This is tracked by QTBUG-126550.

Task-number: QTBUG-126550
Fixes: QTCREATORBUG-31083
Change-Id: I6cab94d4ba1d1cde50b62ce03a6b1cc5b6d7d27b
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-24 07:35:03 +00:00
David Schulz
d8fa27cfbb LanguageClient: Fix and export DynamicCapabilities
This is useful to explicitly disable specific functionality from code in
the case were the server reports capabilities we know are not stable or
not usable.

Change-Id: Iba1701c59258da6f30f32c33b477f3a650387491
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Semih Yavuz <semih.yavuz@qt.io>
2024-06-24 06:31:58 +00:00
hjk
e3d3af81cb QmlJsEditor: Start aspectification of settings
Rename qmljseditingsettingspage.* to qmljseditorsettings.*,
re-arrange some includes, use settings() for the singleton access
etc.

Change-Id: Iff36a99baf0afd238a935386e9111818be5d7987
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-24 06:12:59 +00:00
Jarek Kobus
99acc4440a Android: Provide more info when createAvd failed
Fixes: QTCREATORBUG-30852
Change-Id: I9334a25c6e15a615dbf52736c9369821ba0ff8b9
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-24 05:49:24 +00:00
Cristian Adam
92761ad293 PE: Allow candidate renaming with sub directories
This would allow renaming of:
myclass.h myclass.cpp -> my/class.h my/class.cpp

Fixes: QTCREATORBUG-30830
Change-Id: Ic7f277e52a52dfe6745023f550072a935295bcac
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-06-21 21:46:24 +00:00