Commit Graph

62024 Commits

Author SHA1 Message Date
Alessandro Portale
61c19d78ff Debugger: Move "beetle" overlay on the mode bar action down by 1 pixel
Change-Id: I5b41e4a58069f4aef67a6c46c18a7a3f725b2e7c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-31 10:43:22 +00:00
Eike Ziller
762c701e55 EditorManager: Remove unused return value
Change-Id: I13348a14c560251eac019c6f7c230191af4367ed
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-31 10:37:18 +00:00
hjk
7145dde235 ProjectExplorer: More private and final for AppOutputPane
Q_OBJECT is also not needed.

Change-Id: Ic79232b5097b6619ecc356b02f31671120596103
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-31 10:35:24 +00:00
Mahmoud Badri
9a85110f91 QmlDesigner: Add icons for lights and cameras when added to content lib
Also small relevant tweaks.

Fixes: QDS-12903
Change-Id: If9d4c9c34005ca0853ec8bda52ebb0234a2223e8
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Shrief Gabr <shrief.gabr@qt.io>
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
2024-07-31 09:51:50 +00:00
hjk
84c42a7fea ProjectExplorer: Move some AppOutputPane related stuff
... closer to AppOutputPane.

Change-Id: I6b6d6d8d7522e380b7c69efd6ec5d816ae0fb324
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-31 08:49:26 +00:00
hjk
bf0041919b Debugger: Replace QVector with QList
The QContainer Naming War is over. QList won.

Change-Id: I8193b1b51619502533b74d6e965ec9b664f8dbce
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-31 07:47:02 +00:00
Christian Stenger
35deb730cb Lua: Fix include
Amends 61bb8d8e51.

Change-Id: I044243a3efa6ad5963cee088535dac0db5bf2d30
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-31 07:41:46 +00:00
Marcus Tillmanns
61bb8d8e51 Lua: Macro support
Allows users to use "%{Lua: ...}" to execute Lua code in their macros.
Adds "Macro" module with expand() and value() functions.

Change-Id: I6315b0646fbb503a77fd0cc631aed204abf3b699
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-07-31 06:53:46 +00:00
Christian Stenger
aed3eee06a Debugger: Add action do debugger tool bar
The action for disabling or enabling all breakpoints
is quite hidden inside the context menu.
Make it more obvious by adding something similar to
the debugger tool bar.

Change-Id: Iedd1a03912eeca635ebc41b067ec785bb55d3474
Reviewed-by: hjk <hjk@qt.io>
2024-07-31 04:48:19 +00:00
Cristian Adam
04b9c08153 CMakePM: Mark CMake modules from prefix path as generated
This will result in "Project View" the "CMake Modules" folder to be
hidden if it only contains CMake files from CMAKE_PREFIX_PATH or
CMAKE_FIND_ROOT_PATH.

Users of QtQuick or Qt Widgets applications will no longer have to see
the "CMake Modules" with "<Other Locations>" and the paths to the Qt
CMake files.

This way the CMake projects will resmble the QMake projects.

Change-Id: Icde9a556be5bceccdb4abb11072fbd17b59dce4d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-30 16:39:44 +00:00
Cristian Adam
59ce9dc04b CMakePM: Fix saving "Initial Configuration" values
Amends 6c5717844d

The CMakeBuildSystem::clearCMakeCache() would call
BuildSystem::emitParsingFinished which would clear the configuration in
the widget, effectively removing any "Initial Configuration" changes when
clicking on the "Re-configure with Initial Parameters" button.

This commit makes sure that the updateInitialCMakeArguments() function
is called before CMakeBuildSystem::clearCMakeCache(), and that only the
"Build > Clear CMake Configuration" action would
"disableCMakeBuildMenuActions" which is what an user would expect.

Fixes: QTCREATORBUG-31320
Change-Id: Ie7810c9bed000ca19a31a6ab8e7a281ae9f5e6f0
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-30 16:39:16 +00:00
Cristian Adam
5dccb8072c CMakePM: Allow slashes for CMake "FOLDER" separators
Previously only backslashes were taken into consideration. Now also
slashes, since CMake supports them for Xcode and Visual Studio
generators.

Fixes: QTCREATORBUG-31305
Change-Id: I096540769ee53ce7c30c0543d1bd250f098ac19c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-30 16:38:49 +00:00
hjk
f0c2239fa3 Core: Merge actionmanager/commandsfile pair into their only user
Also, de-QObject-ify and inline the Context wrapper structure
for the key strings.

Change-Id: I21f3afec61ef9ecfcc4c3d89afb9fb3a1548afae
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-30 14:28:21 +00:00
Marcus Tillmanns
8974d844ff Lua: Introduce LuaCompatibleVersion
The new field "LuaCompatibleVersion" is required when a lua plugin depends on a C++ plugin. A dependency will be fulfilled if:

"LuaCompatibleVersion <= dependency.version <= Version"

Change-Id: I61466055a56e20abbb1fa5f73a5735a0e3a4c471
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-30 13:11:01 +00:00
Christian Stenger
671365b0a0 CppEditor: Avoid nullptr access
Fixes: QTCREATORBUG-31318
Change-Id: I1728902346ce2f4d7346b71305e2e9d87abf62db
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-30 13:07:49 +00:00
Marcus Tillmanns
8c91d12ca1 Copilot: Fix crash when closing settings while checking state
Change-Id: I06a9df91690fcdea8f30e9f9f6b5a38dfe19c8ea
Reviewed-by: hjk <hjk@qt.io>
2024-07-30 12:03:33 +00:00
Christian Kandeler
e75b9f32a9 ProjectExplorer: Make custom toolchains C/C++ only
That's what they were intended for. There appears to be no use case for
them to represent e.g. a nim compiler.

Change-Id: I8070fb837fe411c3e2b6e5a335e642497437896d
Reviewed-by: hjk <hjk@qt.io>
2024-07-30 11:42:12 +00:00
Christian Kandeler
5baead5eda Android: Properly specify the supported toolchain languages
As one can easily see in the toolchain settings page, there are Android
C compilers, so don't claim the factory supports only C++ toolchains.

Change-Id: Ib84b7a70ef3359a7143e3f320fdb2cc913bfb24b
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-30 11:41:52 +00:00
Marco Bubke
d079385d81 QmlDesigner: Fix build
Seems the CI don't catched it.

Change-Id: I0a68080162740cabc7c2ee63927abd185e02ce5a
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-07-30 11:39:30 +00:00
hjk
fd4fb01a23 Android: Merge splashscreenwidget related file pairs
Change-Id: I8b21fff7954aa279cbf852ab07f837187ac9ce77
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-30 11:34:19 +00:00
hjk
4137b6fc19 Android: De-QOBJECT-ify androidmanifesteditor.cpp
Change-Id: I90d7704d9a6d45bd26caa0649b0b78acb04bfd4d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-30 11:34:13 +00:00
hjk
23959208c2 Android: Make AndroidManifestEditor have a AndroidManifestEditorWidget
As the IEditor interface suggests, not the other way round.

This way the widget doesn't have to know about the editor.

Change-Id: I49e69047544dc89efdbcff51f2550ca827072c91
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-30 11:34:06 +00:00
hjk
0811754fb9 Android: Hide AndroidManifestEditorWidget definition in .cpp
Smaller visible interface.

Change-Id: I3baae92bbc13f6ad4231b21b074d030877a701a6
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-30 11:33:59 +00:00
hjk
23ff4e838a Android: Merge androidmanifestdocument.* into androidmanifesteditor.cpp
Change-Id: I09ef23d740cefbc49d9c24f0d32cb185029abef0
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-30 11:33:53 +00:00
hjk
d79c9fe044 Android: Merge manifesteditorwidget.* into manifesteditor.* (2/2)
Rename the merged content in manifesteditorwidget.* to
manifesteditor.*

Change-Id: I417b427ea7ecbe1f76364a08981a45cfef2ca562
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-30 11:33:02 +00:00
hjk
e9fa336491 Android: Merge manifesteditorwidget.* into manifesteditor.* (1/2)
This is the first part, actually merging the opposite direction.
Second part will rename the result. This are, also in total, much
smaller patches then doing it directly.

Change-Id: I76cf3e3b5d71390c746aeff6b412d535ea7f520f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-30 11:32:40 +00:00
Marco Bubke
ab7225c6d2 Vcpkg: Prefer environment variable over executable path
The executable can be in a different directory.

Change-Id: Ie630d464734d1ef9d0a9e1adfb8da8e56c67b5dd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-30 10:43:25 +00:00
hjk
4fa0a2d3ca QmlDesigner: Fix navigation factory name display
Amends 79612417e3.

Translating the id() does not work this way, lupdate only handles string
literals within tr(...).

As the factories already have a string meant for display, use that.

Change-Id: I335ac1d4b8984d0db7f7a6bea8a906bd39ca4864
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-07-30 08:35:29 +00:00
Marcus Tillmanns
e37796d1c6 ProjectExplorer: Fix uses of "FilePath::toString"
Change-Id: I7199dec620b7e09765c44b571b93575eda5c5a74
Reviewed-by: hjk <hjk@qt.io>
2024-07-30 08:26:09 +00:00
Marcus Tillmanns
b4250871ec DocumentManager: Use FilePath::watch() instead of QFileSystemWatcher
Change-Id: I9fcbbc62366f3191bfca3ecce937ad11109e885c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-07-30 08:05:41 +00:00
Marcus Tillmanns
efa20f528f ProjectExplorer: Escape summaries
When the arguments contained html-tag like parts (e.g. "<br>") they would disappear from the summmary.

Change-Id: I7e286ef439af2883152a147aad55f2b9bea6e2d3
Reviewed-by: hjk <hjk@qt.io>
2024-07-30 08:03:01 +00:00
Jarek Kobus
54d3742fc0 Android: Move intent and package names creation into worker
Remove packageName arg from AndroidRunnerWorker c'tor.
Remove setIntentName method.
Remove m_packageName field from AndroidRunner.

Change-Id: I09f901a0db110e1deeeff5b26aef12caca0467dd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-29 15:05:48 +00:00
Jarek Kobus
bd493d7e5a Android: Get rid of intentName arg
It's always empty string.

Change-Id: Id270e7fb128bfac414929e3eb611eb26beeb3624
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-29 15:05:04 +00:00
Jarek Kobus
73d2249960 Android: Small cleanup in AndroidRunnerWorker
Remove unused constant and forward declaration.
Use nested namespaces.

Change-Id: Iccb7e2a836b38290da38c40532ebafc4b07c25a2
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-29 15:03:38 +00:00
hjk
8e1491f8fa Android: Merge androidmanifesteditorfactory.* into androidmanifesteditor.*
Change-Id: I965d9667e0035f022774078894a9e8a9f3342db7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-29 15:03:03 +00:00
Jarek Kobus
5e46ff6cc3 Android: Refactor part of asyncStartHelper() into recipe
Change-Id: I2bda72784ef5c0512f0a48b02c9f49da57a597df
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-29 14:46:25 +00:00
Jarek Kobus
0067d5a445 Android: Introduce removeForwardPortRecipe()
It's going to be used in couple of places.

Change-Id: I21c7724da03fb1d294d53fbb372ca4b909a3a842
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-29 14:43:59 +00:00
Jarek Kobus
e42c68a3b2 QmlDesinger: Replace some [&] captures with [this]
Change-Id: Idb53feea3c8961c0343a147d8a71bf692af7847a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-07-29 14:40:08 +00:00
hjk
9747564bab Core: Use more layoutbuilder in mime settings dialog
Change-Id: Ia5729cbd5ed578dd2488ec2864722be0e8dae4c0
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-29 13:49:09 +00:00
Christian Kandeler
b7baf5a736 Lua: Fix include
Change-Id: I48cab5517d2f5358b88b1d97a8e3f5d92452ab85
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-29 13:00:03 +00:00
Eike Ziller
789872a0f9 macOS: Support gestures for going back and forward
in the editor and help viewer, when setting macOS Trackpad preferences
to "Swipe between pages: Swipe with Three Fingers".

Fixes: QTCREATORBUG-7387
Change-Id: I1c2684f846d72bb98ba6626c3a04f01fb57b8e24
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2024-07-29 11:42:44 +00:00
Alessandro Portale
6ad569c264 Fix QApplication::fontMetrics() deprecation warning
Change-Id: I9de6ccef8f6178b3344ab862b6f7506a10895722
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-07-29 11:30:07 +00:00
Marcus Tillmanns
be2e5262c7 ExtensionSystem: Move Installation logic into PluginSpecs
Change-Id: I5b6d284179bf62be89d6e5157fd7e14df5e65817
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-29 11:21:56 +00:00
Eike Ziller
2373c4c0a4 iOS: Do not enforce architecture for CMake builds
Do not set CMAKE_OSX_ARCHITECTURES, the defaults are fine.
It builds for x86_64 for Qt/Simulator/x86_64 and for arm64 for Qt/
Device/arm64 automatically, and then also for custom Qt/Simulator/arm64
builds that didn't work before because we enforced x86_64 for Simulator.

Task-number: QTBUG-101276
Change-Id: Ic33eab6d418210ad6384951e0b0f1972a2287a6b
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2024-07-29 10:50:41 +00:00
Eike Ziller
81f7325a0c macOS: Remove code handling Qt Creator running under Rosetta
Remove code that was added to handle the case of Qt Creator running as
an Intel binary on ARM Macs, which required some passing of flags to
qmake/CMake/LLDB.

Nowadays, Qt Creator can be built for the corresponding architecture
(and by default we provide universal binaries).

Partially reverts a71d725e46

Change-Id: I842f85b85a26d09cff72199ae86c602fd8f14e33
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2024-07-29 10:50:28 +00:00
Lukasz Papierkowski
bd731d213d Lua: Add enableToolTipOnSuggestionHover() to TextEditor bindings
Change-Id: I2e7fd6d6b152cb2d5c39d5141b0fee39e78083a7
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-29 10:27:33 +00:00
Vikas Pachdha
2b3d0b9dbe Fix generateId accepting non-latin characters as valid characters
Task-number: QDS-13269
Change-Id: I46a3bc193e35f4a93c8a0fa48de26891dc9d098a
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-07-29 10:04:11 +00:00
Jarek Kobus
a26ed2e12e Android: Move pid recipe into a separate function
The task tree runner is going to run more tasks.

Change-Id: I342d041134968286a2cf1b20cabe2b4c01ce02b0
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-29 09:53:07 +00:00
Alessandro Portale
a0e37a76fa Plugins: Add URLs to manual page to plugin metadata
Fixes: QTCREATORBUG-31199
Change-Id: Ideadc75499f32a8f1d1c95cd38dc4669a3d422c3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-29 07:27:29 +00:00
Alessandro Portale
b24492c6e9 ExtensionSystem: Add field "DocumentationUrl" to PluginSpec
Task-number: QTCREATORBUG-31199
Change-Id: Ieb20d35cc9b4fe976207491bd201750fa4ca0032
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-29 07:27:03 +00:00