Commit Graph

88653 Commits

Author SHA1 Message Date
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
Jarek Kobus
aac42d6292 Android: Hide some methods of AndroidRunnerWorker
Change-Id: I018e311dce4e3ddd9f61e6c6734e325b2eb15889
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-23 05:46:45 +00:00
Jarek Kobus
f0eeb67975 Android: Employ TaskTree for running avdList command
Run the command from the caller thread.

Change-Id: I710c41c6da93e27d79c351e1dc5e7f9f01d6cc51
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-23 05:46:36 +00:00
Tim Jenssen
0433b8c479 Qml2Puppet: fix stand alone puppet builds
Change-Id: I24f5ca625429c636052d0c92c495a20a6942c92f
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-05-22 12:59:20 +00:00
Ali Kianian
b5db9f8fb3 QmlDesigner: Remove Model Editor
Task-number: QDS-12808
Change-Id: I9d1a716cda8d4a972b335270961ee7b489ed07c3
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-22 11:50:12 +00:00
Eike Ziller
f7120daa2e FancyLineEdit: Make sure to not leave any threads hanging around
Add them to the global future synchronizer, so they are canceled and
waited for before deleting any plugin instances.

Change-Id: Iec78b7566905815c4d2b4cc7410d10b2da16c7b7
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-22 11:45:59 +00:00
Jarek Kobus
982ad24243 CommandLine: Reuse new c'tor
Change-Id: Id154881b4f5d8c488e5c1f5e0f843d36bf838759
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-22 09:13:41 +00:00
Jarek Kobus
d857af4cec Python: Add missing include
Otherwise getting:
invalid application of ‘sizeof’ to incomplete type
‘ProjectExplorer::BuildSystem’

Amends 85cb3f7651

Change-Id: Ie423bfb05dd852735fb5fa64a19cc1c4f9780e0b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-22 07:56:58 +00:00
Mats Honkamaa
d9f4987d71 Doc: Add link to Design Effects
Change-Id: Ia62f86bc586a6ccb5b60b95fdfef97068decb408
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2024-05-22 07:51:42 +00:00
Leena Miettinen
ae9a307184 Doc: Fix QDoc warning in PluginSpec docs
The variable name "version" had changed to "pluginVersion".

Change-Id: I8299593a4888191e931fed74dc9a4052503fe682
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-22 07:02:39 +00:00