Commit Graph

88162 Commits

Author SHA1 Message Date
Mahmoud Badri
2a8de8ab8e QmlDesigner: Handle abort reason in PreviewTooltipBackend::showTooltip()
Change-Id: Ib71d4e7e2e74d7c8fbcc74188a155a08d610be00
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-24 07:59:00 +00:00
Christian Kandeler
5cc44b8cab CppEditor: Make more use of CppQuickFixInterface::currentFile()
A CppRefactoringFile is created for us when quickfixes are collected, so
make use of it instead of creating a new one.

Change-Id: I133b43f92d1fbea82aa25df025cfc257691de2a6
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-24 07:58:48 +00:00
Christian Kandeler
8577ab8bcb ClangCodeModel: Bump minimum clangd version
... and throw away old workarounds.
The current clangd version, to be shipped with Qt Creator 14, is 18.1, so
we can safely bump the minimum version to 17.

Change-Id: I74fd5997196d774b6c47dcb522284953ef82ad9c
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-24 07:58:22 +00:00
hjk
01568f5d75 Warn about deprecated Qt functionality (only) for Qt <= 6.4
These are the once that we could actually handle.

Change-Id: I3c49779e9aabee76d357285a9210062d580f01ca
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-24 07:29:53 +00:00
Leena Miettinen
07b5c96194 Doc: Fix more QDoc warnings
Change-Id: Ic7f4170276aa40a32c9394c9fad0d920971bf873
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-24 07:19:27 +00:00
hjk
917523d7e3 Fix a few {QByteArray,QList}::count related deprecation warnings
Change-Id: I493e557a2ec976560c9e37312d8ae860490a2831
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-24 07:06:47 +00:00
hjk
1e9c11c3b3 Utils: Make injected default dialog parent better re-usable
... and use it for CheckableMessageBox. This enables using
the proper parent e.g. in upcoming changes to ExtensionSystem.

Change-Id: Ib0e52cbd3e73dc628955918e3f443ff65cccb189
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-24 07:06:41 +00:00
Eike Ziller
a87ed65dbb Editors/Help: Open navigation history menu on right-click
Change-Id: I216dde672d84485511c3ac277eb5ab091095d4e1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-24 06:55:54 +00:00
Teea Poldsam
b21fe3c7b1 Doc: Add info about live previewing in different sizes
Fixes: QDS-12821
Change-Id: I4753d48ea47f92870594633a45672921ca3da031
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-05-24 06:52:43 +00:00
Teea Poldsam
d2e4a980bf Doc: Document fly mode speed shortcuts
Fixes: QDS-12664
Change-Id: I4cf001ec3f98c364323b1389e024df5f06055c59
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2024-05-24 06:44:03 +00:00
David Schulz
cc190fc71b ProjectExplorer: filepathify recursive scan for files
This allows using the scanner on remote paths and avoids some unneeded
FilePath::fromString and FilePath::toString calls.

Change-Id: I4871613a9d36daf78607b196f4dfb6e165be8305
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-24 02:39:53 +00:00
Jarek Kobus
2e7da60b6c Android: Use more AndroidConfig specifiers for static method calls
There is no need to operate on AndroidConfig instance.

Change-Id: Ie58f8e5aca8214efe0bb857b3d62a137f42a918c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-23 14:23:31 +00:00
Jarek Kobus
22435ba7fb Android: Hide displayNameFromInfo() in cpp
Change-Id: Iaec548c4b2b56c7515ccf945234f4f59367b006b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-23 14:11:33 +00:00
Jarek Kobus
c6174e8f1c Android: Hide getDeviceProperty() in cpp
Use a new CommandLine's c'tor.

Change-Id: I7e0809e97ae265cc83bd05a335beb4fa815e2a4e
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-23 14:11:23 +00:00
Jarek Kobus
5edbbbcb67 Android: Hide getAvdName() in cpp
Simplify it a bit.

Change-Id: I862eea2a388be3b83b73667a872f9cf9854c5c8a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-23 14:11:16 +00:00
Jarek Kobus
b5ec6c4855 Android: Make parseDeployError() static
Rename DeployErrorCode into DeployErrorFlag and make
it a flag type.

Change-Id: I459a72a3a0a1dcddc275cd649a7f55c15369359d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-23 14:11:09 +00:00
Jarek Kobus
df01213641 Android: Remove unused stuff from AndroidManager
Change-Id: I394da4690c6acf8ae904cd23fbc2fd2527decdba
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-23 14:11:00 +00:00
Jarek Kobus
7b0a3aa0dc Android: Simplify reading manifest files
Change-Id: I8be86a26fd1f37ce59af7e5cdbdaf12519937da0
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-23 14:10:53 +00:00
Jarek Kobus
3380c3f968 Android: Make enum parsing readable
Fix tr() messages so that they don't contain newlines.

Change-Id: I705e56796393501da1a2917adb6673a24c1cbcf6
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-23 13:28:37 +00:00
Alessandro Portale
0db878c2f8 Docs: Reencode number overlay images as full rgb+alpha
By default, optipng reduces pngs with very few colors to using a
palette. That happens also for images with alpha channel. Some tools do
not support palette+alpha well, though.

The images in this change were re-saved as 24-bit version and then
optimized via optipng using the "-nx" option, which prevents color
reductions.

Change-Id: Ib6f04c64724913ea02fcaa442a914b6b79b92a55
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-05-23 13:14:26 +00:00
hjk
f30d369b99 Fix QMetaType::type() related deprecation warnings
Not in sdktool, which still builds with Qt 5.15

Change-Id: I6e6f4331127b821e471e2840e7959cd65e6419e9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-23 13:04:22 +00:00
Jarek Kobus
af3ab760ad Android: Transform AndroidAvdManager class into namespace
Hide waitForBooted() in cpp.
Move avdManagerCommand() into avddialog.cpp, as it's the only
one usage of this method.

Change-Id: Id88ecbb5532a7d2594c65dddc8245573efd41018
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-23 12:52:54 +00:00
Cristian Adam
6eaa9f099a Help: Allow open online documentation for CMake
Qt Creator opens by default the offline documentation of CMake.
But the user can click on the "Globe" to go to the online version
of the documentation.

Change-Id: I0b3a6bceb13784b232b539f1c04bd09aa3a11034
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-23 12:50:27 +00:00
Marcus Tillmanns
44afba5254 Lua: Add missing documentation
Change-Id: If171bc8725e4d3f5bcb9db6ca8e6b42324f7b764
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-05-23 12:21:41 +00:00
Marcus Tillmanns
969f3845c1 Lua: Add HostOsInfo.architecture
Change-Id: I6acbb9d960cc070335454d0d87674a782a7c930e
Reviewed-by: hjk <hjk@qt.io>
2024-05-23 12:21:28 +00:00
hjk
a8c80cada6 Sol2: Work around a compiler warning
Qt and std container like different size types

creator/src/libs/3rdparty/sol2/include/sol/sol.hpp:13844:15: warning: comparison of integers of different signs: 'std::size_t' (aka 'unsigned long') and 'qsizetype' (aka 'long long') [-Wsign-compare]
 13844 |                         return idx >= cont.max_size();
       |                                ~~~ ^  ~~~~~~~~~~~~~~~
creator/src/libs/3rdparty/sol2/include/sol/sol.hpp:13902:9: note: in instantiation of member function 'sol::stack::unqualified_getter<sol::as_table_t<QList<int>>>::max_size_check' requested here
 13902 |                                 if (max_size_check(meta::has_max_size<Tu>(), cont, idx)) {
       |                                     ^
creator/src/libs/3rdparty/sol2/include/sol/sol.hpp:14140:15: note: in instantiation of function template specialization 'sol::stack::unqualified_getter<sol::as_table_t<QList<int>>>::get<sol::nested<int>>' requested here
 14140 |                                         return g.get(types<nested<V>>(), L, index, tracking);
       |                                                  ^
creator/src/libs/3rdparty/sol2/include/sol/sol.hpp:11719:15: note: in instantiation of member function 'sol::stack::unqualified_getter<sol::nested<QList<int>>>::get' requested here
 11719 |                                         return g.get(L, index, tracking);
       |                                                  ^
creator/src/plugins/lua/bindings/settings.cpp:269:55: note: in instantiation of function template specialization 'Lua::Internal::typedAspectCreate<Utils::IntegersAspect>' requested here
  269 |             return createAspectFromTable<T>(options, &typedAspectCreate<T>);
      |                                                       ^
creator/src/plugins/lua/bindings/settings.cpp:314:9: note: in instantiation of function template specialization 'Lua::Internal::addTypedAspect<Utils::IntegersAspect>' requested here
  314 |         addTypedAspect<IntegersAspect>(settings, "IntegersAspect");
      |         ^

Change-Id: If67ca19aa995622ef476386544b02a77b5af5916
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-23 11:52:03 +00:00
Leena Miettinen
6fdcc5a3e5 Doc: Move changing the UI language from FAQ to a how-to
Add instructions for setting the language when running from CLI.

Change-Id: I5c9562e41e665a70154cdbe4f231274006ec98aa
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-23 11:49:03 +00:00
Eike Ziller
8b5f5744dc Rename Qt Designer -> Qt Widgets Designer
Fixes: QTCREATORBUG-30756
Change-Id: Icb4a2513e230b71b5bb5033ead6a09ad3a8963ab
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-05-23 11:37:08 +00:00
Mahmoud Badri
2eb396b83d QmlDesigner: Allow adding imported 3D components to content library
Fixes: QDS-12784
Change-Id: I87edf8f6c14fabb066c85e8536c91b58e439e5d0
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-23 11:20:19 +00:00
Christian Stenger
4d98ffab57 Debugger: Fix displaying LLDB states
Do not update states label with empty strings while
debugging as this overrides real state information
when performing additional actions like fetching
variables, stack, and so on  inside the debugger.

Change-Id: Ic026644931c845b6f3fb5bb422acc6e36e4a4142
Reviewed-by: hjk <hjk@qt.io>
2024-05-23 11:20:15 +00:00
Miikka Heikkinen
8bfe805645 QmlDesigner: Allow rotation of 3D import preview
3D import preview can now be rotated using left mouse button and
dragging the preview image. This causes camera to orbit around the
previewed model, similar to rotation to 3D edit view orbit camera.

Close/Cancel button logic was also improved.

Fixes: QDS-12795
Change-Id: I0c7d1ad28f8fe779b9bedc4bf76be704078d91a6
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-23 10:48:44 +00:00
Eike Ziller
7190c049de Locator settings: Use a real checkbox
We do not use "Label: [ ]", we use normal checkboxes of the form
"[ ] Label"

Amends 2166647682

Change-Id: If77b44fe4d27f9bec749f47b6675189d8e8a070f
Reviewed-by: hjk <hjk@qt.io>
2024-05-23 10:48:16 +00:00
Eike Ziller
3a60ab1c91 Fix capitalization of group box titles
Consistently use book case

Change-Id: Ia0e382255fe2f311a1bd9a380f4bf8af2320c215
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-23 10:47:20 +00:00
Marco Bubke
d345254579 QmlDesigner: Add project storage error mechanism
Task-number: QDS-12761
Change-Id: If782b5d81b53979033e2738292dedac91e1adcbf
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-05-23 10:43:52 +00:00
Marco Bubke
f296f9d77c QmlDesigner: Parse components recursively
Change-Id: I8fa892cce8e34b5e58cbdde04c57e30b9fc74866
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-23 10:42:43 +00:00
Miikka Heikkinen
fd2c7db691 QmlDesigner: Use correct Enumeration type for instance values
Puppet used to return just string for enumeration types.
Now it will use Enumeration type properly.

Change-Id: I602891e34c03cb659ee0a8e4571b39b6e24f9e1c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-23 10:25:11 +00:00
Christian Kandeler
df96d78e68 CppEditor: Add missing initialization
Change-Id: I13d065756ae031d8a359cce80a6e5aba0d359606
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-23 09:02:19 +00:00
Pranta Dastider
5f23a07ba7 QmlDesigner: Update Qt Academy course links in documents
This patch adds some of the Qt Academy course links in
the relevant documents.

Fixes: QDS-12747
Change-Id: I8309681869922be3277e775c312ffa1210d64a29
Reviewed-by: Jaishree Vyas <jaishree.vyas@qt.io>
2024-05-23 08:46:38 +00:00
Mats Honkamaa
1c216f0a38 Doc: Add glow best practices docs
Task-number: QDS-11695
Change-Id: Icf57fe5d94194e5be3d741a19f9f3dea51114048
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2024-05-23 08:38:42 +00:00
Mahmoud Badri
8dfef06aec QmlDesigner: Remove the optional func param from Model::generateNewId()
Not needed anymore after using UniqueName class.

Change-Id: I252659376af7e8aaf5e4642f9b9bfd2c57cc19fb
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2024-05-23 08:17:10 +00:00
Jiajie Chen
24d7370e8e RunControl: Add missing code migration to std::shared_ptr
In `IDevice: Replace QSharedPointer with std::shared_ptr' (#536681), the
type of IDeviceConstPtr has changed to use std::shared_ptr, but the code
in RunControl was not updated, leading to compilation error:

error: no member named 'isNull' in 'IDeviceConstPtr'
  421 |     if (!device.isNull() && device->type() == ...
      |          ~~~~~~ ^
1 error generated.

Change-Id: I812034f37b14c9c62040f09e039a68eb4edfd4d6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-05-23 07:40:14 +00:00
Marcus Tillmanns
afae1d7093 Lua: Add macro expansion of the meta folder
Change-Id: I5c5370665002feee886aa0a7411a485edafb8469
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-23 07:19:38 +00:00
Eike Ziller
30d755ccb4 COIN: Respect the DisableTests feature setting
COIN already skips running tests with this feature, but
also build Qt Creator without test support.

Change-Id: I10e8323466a4baf4cac7128efbdbd54b16bb8e2c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-23 06:47:51 +00:00
Eike Ziller
3a1b18108d COIN: Respect the Sccache feature setting
If the platform configuration doesn't include Sccache in the features list,
we should not use sccache for building.

Change-Id: I3ab459165e77923f59f037f844bd72e89abfd42b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-23 06:45:55 +00:00
Teea Poldsam
93861d6d56 Doc: Reorganize the sidebar
Fixes: QDS-12809
Change-Id: Ic28b94db2752992c4b08fe0c6ac15a159399a486
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-05-23 05:54:46 +00:00
Jarek Kobus
8b7b389fb4 Android: Small cleanup in AndroidQmlPreviewWorker
Change-Id: I56933f1dd327b233082e1f8ac81e0e7f3d19694b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-23 05:48:25 +00:00
Jarek Kobus
28308b016b Android: Run pid watcher in the main thread
Change-Id: Ia320827ed97caa3dff0611a13c52e648c9d8a79a
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-23 05:48:15 +00:00
Jarek Kobus
a7ece15f6e Android: Reuse TaskTree for findProcessPIDAndUser()
Don't run blocking processes in a separate thread.
Run them asynchronously from the main thread.

Change-Id: I5343f05d992d974720e786e2814cba2d6b295cd4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-23 05:47:04 +00:00
David Schulz
1a89bfbe34 TextEditor: explicitly set focus to bookmarks note text
Allows the user to directly start typing in additional information for a
bookmark after triggering the shortcut. This seemed to have happened
automatically before, but since this is desired behavior anyhow it's
okay to call it explicitly.

Fixes: QTCREATORBUG-30829
Change-Id: I77eef2092052e61397f3a73f15c32e909eda01a0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-23 05:47:01 +00:00
Jarek Kobus
5453d13290 Android: Inline AndroidRunnerWorker::adbKill()
Change-Id: I2c4fefac4f18b65fe73619cc70090133eb4dbbf5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-23 05:46:54 +00:00