Commit Graph

62024 Commits

Author SHA1 Message Date
Marcus Tillmanns
a1da3afdc9 Lua: Add AspectContainer::onApplied
Change-Id: I2f53479b2b81b86fb90778dd495d8733bde2118e
Reviewed-by: hjk <hjk@qt.io>
2024-07-19 12:49:11 +00:00
hjk
e230acbb23 Autotools: Use new setup scheme for build steps
Change-Id: I4c228a1324e5d426ea2c288f105df2c097a972c7
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-19 12:32:57 +00:00
Jarek Kobus
715240257d Android: Detect preNougat inside AndroidRunnerWorker
Remove setIsPreNougat() setter.
Remove m_isPreNougat field and provide isPreNougat() getter
instead.

Change-Id: Ie906024840be78a0b17fbd3d4df00667b4812cfb
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-19 12:18:11 +00:00
Marcus Tillmanns
2b1001eb24 Lua: Add TextEditor::currentEditor
Change-Id: I4a2e4703bca2b557aac4240d7bc2519f7b50217b
Reviewed-by: hjk <hjk@qt.io>
2024-07-19 11:25:55 +00:00
Christian Stenger
e6dc3fb008 QmlJS: Fix default command for qmlformat on Windows
Fixes: QTCREATORBUG-31257
Change-Id: I72797f3e67e0b71dac434fcd90777b0aa7334995
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2024-07-19 11:10:20 +00:00
Christian Kandeler
af353119c0 Core: Allow users to open output window contents in scratch buffer
Task-number: QTCREATORBUG-31144
Change-Id: I474e60392281c5e3bd769d64719c3c6a31c57d2f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-19 10:02:30 +00:00
Eike Ziller
8a060b285a Fix in-wizard translation support
We in principle support a map of locale->string for keys starting with
"tr" like "trDisplayName". This didn't work everywhere.

We may not cast the value for these keys to QString before passing it to
`localizedString`, since that would result in an empty string if the
value is such a map.

Also fix the documentation since we remove all parts from '_' (to also
get rid of encoding parts).

Fixes: QTCREATORBUG-23575
Change-Id: I2be795053e645c8bf81417d0db69cd7e63eff022
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-19 09:36:52 +00:00
Jarek Kobus
90d3a41e6e Android: Remove remaining unused functions from AndroidAvdManager
Hide some recipes in cpp, as they are used only locally.

Change-Id: I8d6855c93e4a1264b217b9fb55219ab4f5cf56f1
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-19 09:13:09 +00:00
Jarek Kobus
2b0b5d8824 Android: Refactor AndroidRunner
Refactor the case when running without deployment.

Reuse existing avd recipes and run a task tree instead.

Change-Id: If0b12d2779e64e218c8da6cd07c355d85afd2ec2
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-19 08:06:17 +00:00
Henning Gruendl
50421642e3 QmlDesigner: Allow underscore in dynamic property
* Add PropertyNameValidator
* Add missing qml js keywords to model utils
* UI tweaks in the dynamic property popup
* Fix clipping issue in StudioControls TextField

Task-number: QDS-10451
Change-Id: I763fab5533b8d949fe3e4b967dcb62581fa02ff9
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-07-19 07:38:00 +00:00
Thomas Hartmann
e77b5d91bc QmlDesigner: Signal declarations are always dynamic
Change-Id: I5caf85462c13488c1d775563727c5ccaf9750e97
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-07-19 07:37:54 +00:00
Jarek Kobus
3fb7008ac6 Android: Get rid of unused functions
They got replaced by the corresponding recipes.

Change-Id: I1b42a9fb230869fde3daf03feb33ca2d1e89bb01
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-19 06:33:09 +00:00
Jarek Kobus
1525f64b9a Android: Fix asserts triggered on app startup
The QVariant values of Store map are apparently of QStringList
type, not QString.

This fixes the following asserts triggered on every startup:
"sd.first().typeId() == QMetaType::QString".

Change-Id: I84eb6a942503632d047939b138727c75e9e7037e
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-19 06:05:51 +00:00
hjk
6ce086fcf0 BinEditor: Clean up a bit
Change-Id: Idc27f20ea8de5ac58b6e78efa6525a33e07e5e4f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-19 06:00:23 +00:00
hjk
605aace7d7 BinEditor: Remove BinEditor::modificationChanged() signal
Was only used to trigger IEditor::changed(). Do that directly instead.

Change-Id: I6cc659ac9be9496dbf8b463660754dd8779db94c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-19 06:00:13 +00:00
hjk
a1eaaadbe9 RemoteLinux: Prevent step factory sharing by inheritance
This was the preferred way for a while, but has been superseded by
creating the steps by ID.

Not exposing the factory classes in a header prevents following
the old approach in downstream plugins.

Change-Id: Iaa89458a87602006f1a05fa142a34cc1f9d63c64
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-19 05:59:49 +00:00
hjk
60206de94f BinEditor: Simplify address field updates
Change-Id: Ia57348b25a28164061bca4f7cf336a9e9a555abb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-19 05:56:42 +00:00
Christian Kandeler
484d63ffad Lua: Fix qbs build
Change-Id: Ia05a814838e98d5305dc6ddbffad2abc12aa75ad
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-19 04:30:14 +00:00
Jarek Kobus
0051d273d3 Various plugins: Remove unused variables
Found by Axivion plugin.

Change-Id: I628b00e4525b004c702dd8753af31cb3fedf1739
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-18 15:08:48 +00:00
Marco Bubke
a29ff454a6 QmlDesigner: Adding missing property error notifier
Alias properties are quite often broken. So we have to handle that
broken aliases.

Task-number: QDS-12761
Change-Id: Id9b53b98080733e5939de6b3761c923fa35e1dcf
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-07-18 14:56:10 +00:00
Jarek Kobus
4249bb56a3 ProjectExplorer: Remove redundant signals
The enabledChanged() signal is already a member of BaseAspect,
so no need to repeat this signal in subclasses.

Found by Axivion plugin.

Change-Id: Ifc12dc97e134ff1f873df2e5fa5830be55777b81
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-18 14:53:39 +00:00
Marco Bubke
6daee01869 QmlDesigner: Sort keys
Instead to trust programmers to add the entries sorted, we us an
constexpr to sort them.

Change-Id: I9129d3771d0451def726b230f8cd58e556c6b4be
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-07-18 13:08:24 +00:00
Ali Kianian
77ac3392bb QmlDesigner: Add texture name on creation
Fixes: QDS-13140
Change-Id: Icb5ef4a5f3d82ec9e21231c1cacebcf0f04d234e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Shrief Gabr <shrief.gabr@qt.io>
2024-07-18 12:24:22 +00:00
Marcus Tillmanns
42e57d60ae Lua: Change TextDocument to TextEditor
Since there may be many editors editing a single TextDocument
it is more useful to start at the TextEditor level.

Change-Id: Ic1c4ea76f22ab0d0741edd6f6ecc24d6befa17e6
Reviewed-by: hjk <hjk@qt.io>
2024-07-18 12:06:34 +00:00
Marcus Tillmanns
2bcc21d598 Lua: Guard Hook connections
Change-Id: Id30c75093879b92321af864273c6d4ef390cf71a
Reviewed-by: hjk <hjk@qt.io>
2024-07-18 12:06:28 +00:00
Marcus Tillmanns
080713e872 Lua: Add change information to textdocument hook
Change-Id: Idc3eeae6881f8d8eb8a1547807489e86c201404c
Reviewed-by: hjk <hjk@qt.io>
2024-07-18 12:06:15 +00:00
hjk
07df45cdeb ProjectExplorer: Remove id/buildkey mangling support for runconfig
This was used for qmake and cmake up to Creator 4.11 (Dec 2019).
Projects created or touched afterwards are unharmed.

Projects created before that and not touched since then will lose
runconfigurations.

Change-Id: I745aa3641749462a0420df6f658055a78fd52c8e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-18 11:50:01 +00:00
Jarek Kobus
6b31ff2960 Android: Make installQASIPackage() asynchronous
Reuse existing avd recipes and run a task tree instead.

Change-Id: Ieaeb84eee299d7f75101a3076027d4185533b897
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-18 11:47:18 +00:00
Jarek Kobus
cd7b635910 Debugger: Introduce createRegisterDelegate() helper
Merge RegisterDelegate with PeripheralRegisterDelegate
and use it in RegisterHandler and PeripheralRegisterHandler.

Change-Id: I55088bafa5701ef828095c9889d333d282848ab4
Reviewed-by: hjk <hjk@qt.io>
2024-07-18 11:39:40 +00:00
Eike Ziller
43a2974baa Sort language setting options
It was arbitrary from the file system.

Fixes: QTCREATORBUG-31262
Change-Id: I3b5a0940a59be85a61468b7fe7336ca481ffcc7a
Reviewed-by: hjk <hjk@qt.io>
2024-07-18 11:38:46 +00:00
hjk
d0cad6fff3 Debugger: Attach Context(CC::C_EDITORMANAGER) in main widget constructor
... when it is created, but don't force widget creation to be
able to attach the context.

Change-Id: I62a7610241e68d658f2b31fb98666d94fe6061d7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-18 11:33:29 +00:00
Christian Kandeler
56e239988d Lua: Fix qbs build
Change-Id: I6f71619a067806a86c71f94fa61e76d08fcec7cf
Reviewed-by: hjk <hjk@qt.io>
2024-07-18 11:30:48 +00:00
Leena Miettinen
b160b367d1 Doc: Fix QDoc warnings in Extending Qt Creator Manual
Change-Id: I278ae2338427a7d65253d579d0a1ff7d53245c45
Reviewed-by: hjk <hjk@qt.io>
2024-07-18 10:56:40 +00:00
hjk
35bc86d1a7 DiffEditor: Hide DiffEditor definition in .cpp
And use the new factory setup scheme.

Change-Id: I9b220e9995f82edc25e7cc43dbdbbbbcdac3cfd3
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-18 10:33:21 +00:00
hjk
3e1da5b398 Core: Update IMode documentation
Change-Id: I1b663d38e964ecd7bb94c32edf00132385d8db2e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-18 09:54:28 +00:00
hjk
9ca10fadb8 Utils: Add a simple way to make a Utils::TreeView searchable
Call setSearchRole(...) to create a suitable find aggregate.

Use it in a few places.

Change-Id: Iaa663d13bbc7776019e7b18ea720cc2411e0b691
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-18 09:37:53 +00:00
Eike Ziller
dbce96d888 CMake: Fix endless recursion if context help doesn't find anything
Amends baf20b8491

which removed the inheritance from the contextHelp method.
CMakeEditor now registers a context help function, which called
BaseTextEditor::contextHelp if no documentation was found, which was
correct when contextHelp was still virtual. Now
BaseTextEditor::contextHelp is the same as IContext::contextHelp which
calls the function that CMakeEditor registered again, leading to endless
recursion.

Change-Id: I912f69e0d0d3285c9fa77194f84b0819085c99b7
Reviewed-by: hjk <hjk@qt.io>
2024-07-18 08:23:12 +00:00
Marco Bubke
67c7beeffe QmlDesigner: Use Qt 6.7 for project storage
Change-Id: Ibf0df9a05dda2c3bbd2a55935e9471ebf40dcf64
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-07-18 08:03:07 +00:00
Marcus Tillmanns
ed6228fd95 Lua: Fix lsp meta files
Change-Id: If4c9b47164e642f084b4b27820cd867922e28ad1
Reviewed-by: hjk <hjk@qt.io>
2024-07-18 07:19:27 +00:00
Marcus Tillmanns
d2e14ffe86 Lua: Cleanup Hooks
Change-Id: I8e3a1d66ea6125d2cc5ee9c8f8442cca0913fec6
Reviewed-by: <lie@spyro-soft.com>
Reviewed-by: hjk <hjk@qt.io>
2024-07-18 07:19:15 +00:00
Marcus Tillmanns
0e75f3f4f3 Lua: Add LocalSocket
Change-Id: I6601914176667100ad9007fa5e54f6d6c3f445a0
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-07-18 07:04:14 +00:00
Marcus Tillmanns
3dfd1dd1a9 Lua: Add Json module
Change-Id: I533dc63b5147f00ac377e80a338cc4e2e3d0e8d9
Reviewed-by: hjk <hjk@qt.io>
2024-07-18 07:03:59 +00:00
Jarek Kobus
59c10c1274 Android: Make AndroidDeployQtStep::runRecipe() thread safe
Reuse existing avd recipes and run a task tree instead.

Change-Id: I515e15aac8e047b6da72d7604a033824e1b99107
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-17 16:49:38 +00:00
Jarek Kobus
33e548d52b GitGrep: Remove unused field
Change-Id: I362f84401ce0bd64a39fc32e5877b9f642c0f616
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-07-17 16:38:36 +00:00
Jarek Kobus
662e5bce2d DiffEditor: Remove unused methods
Change-Id: I9e0d1fc5d75688a636208774be90a9c0d1ad502f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-07-17 16:23:53 +00:00
Jarek Kobus
eca1fa3b2f Android: Fix a crash on Creator shutdown during app startup
The AndroidRunnerWorker lives in a separate thread created
by AndroidRunner. Thus, we can't delete it directly from
the AndroidRunner's d'tor. Instead, we connect to QThread's
finished() signal and delete the worker later.

Make m_pidRunner a child of AndroidRunnerWorker so that
it's moved together with its parent to the other thread.

Change-Id: I5c3723315ee5183fa8451f0706311b14f173dca1
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-17 16:15:47 +00:00
Jarek Kobus
77fa73c524 Android: Fix potential process leak
Make process a child of Target.

Change-Id: If77a54120044829b6551cd0f6446e3edffa28558
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-17 15:46:25 +00:00
Jarek Kobus
2b620aca7e Android: Fix installQASIPackage() command
Currently the installation always fails with the following
message on std err:
No argument expected after "-r ".

Removing the space after the -r arg seems to fix the issue
and process finishes with success.

Change-Id: I035442da0168580939f9b851554e8ec96713f99e
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-17 15:46:16 +00:00
Jarek Kobus
2db96fcbca Android: Be more verbose on installQASIPackage()
Change-Id: I661b94114e912087b1fd8d15db7cd86088a4749e
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-17 15:46:05 +00:00
Alessandro Portale
3fe4928626 Use QObjectList alias
Change-Id: I11d4071088e2b44c37d4a8ac59945fe49fe68351
Reviewed-by: hjk <hjk@qt.io>
2024-07-17 15:14:33 +00:00