Commit Graph

84931 Commits

Author SHA1 Message Date
Tim Jenssen
9f1d23df00 Merge remote-tracking branch 'origin/qds/dev'
Change-Id: Ic852bc9977d0292fb6cd93a319f4bfdebb22a1b0
2023-11-16 17:17:46 +01:00
Alessandro Portale
3a5e0299c0 ScreenRecorder: Enable the plugin being SoftLoadable
The plugin depends only on Core, and only registers one action.
Sofloading works out of the box.

Change-Id: I9e13a1c920452f942fa11365e8976e4ecc054f86
Reviewed-by: hjk <hjk@qt.io>
2023-11-16 15:38:43 +00:00
Karim Abdelrahman
eb45df8349 McuSupport: disable run button while flashing in progress
Mcus run configuration will build and flash the binary
into the target board. The flash process could go wrong
if the user accidentally restarted the flashing process
by clicking the run button again while flashing is already
in progress.

Task-number: QTMCU-104
Change-Id: I1387bfd1dd299d427af13de5904f5ad3a8a1d347
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-11-16 15:37:00 +00:00
hjk
3c5520efaa ProjectExplorer: Let ProjectPanelFactories auto-register
Change-Id: Iaca1438f1199c2dd112b61a8ff74f4707867e7c5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-16 15:08:11 +00:00
The Qt Project
245bd90a6e Merge "Merge remote-tracking branch 'origin/12.0' into qds/dev" into qds/dev 2023-11-16 15:03:44 +00:00
hjk
2b39aa22fc LanguageClient: Use new construction pattern for project panel
Change-Id: If3fa41d33a5d9b39d2596d619251bff3cfdf4b5d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-16 14:57:48 +00:00
hjk
e7b140fbfb Todo: Use new construction pattern for project panel factory
Unusual extra parameter for now due to the unusual extra connect.

Can be avoided later by making the TodoItemsProvider a (on-demand
created) singleton.

Change-Id: I5269e8c5b7faa63653484dfa7098723a4e152e7d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-16 14:57:35 +00:00
Tim Jenssen
39d1dae0d3 Merge remote-tracking branch 'origin/12.0' into qds/dev
Change-Id: Ic6e557806a3209e2c6d983d3c3fcfad66f6e3066
2023-11-16 15:56:06 +01:00
Thomas Hartmann
be757e49f4 QmlDesigner: Add back empty entry to ordered properties
The empty entry defines where default properties and signals
end up.

Change-Id: I9a17dbbe80374e45e78318608c67a213441aef4f
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-11-16 14:54:07 +00:00
hjk
4dc3730a30 ProjectExplorer: Use new construction pattern for env panel
Change-Id: I79edce493377d78a8f2a941a739cf898bef40dfd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-16 14:51:49 +00:00
hjk
0de9d31e84 ProjectExplorer: Use new construction pattern for dependencies panel
Change-Id: Ic73e426150fa8479a62fc0b50b743e707efaad41
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-16 14:51:40 +00:00
hjk
9ae6b3524a ProjectExplorer: Use new construction pattern for comments panel
Change-Id: I3140acc661e649bcec2e24808bd594c5bc6521d0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-16 14:51:23 +00:00
Knud Dollereder
171bb13aec QmlDesigner: Fix Formeditors override size behavior
- Set override size only if it differs from the actual size.
- Remove override size auxiliary data when the model gets detached.
- Remember the size when the user sets it explicitly and use that
  as default size from now on.
- Make sure that the rootItemRect is correctly set when the override
  size auxiliary data changes.

Fixes: QDS-11078
Change-Id: Iaedf076a5c21658478fe257e9f6caca78d6d1461
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-11-16 14:48:17 +00:00
hjk
9ef557e7ac FakeVim: Simplify completion support setup
That's the "word based" completion triggered by Ctrl-N.

Change-Id: Ib35d7e6d2fa0fc144cd92d09d22c279d50aa2fdc
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-16 13:55:28 +00:00
David Schulz
5e0c97a38e LanguageClient: fix restarting language servers
A timer is used to ensure a server shuts down after a certain amount of
time. This timer needs to be reset after restarting the client
otherwise the client gets forcefully deleted after the timeout.

Change-Id: I804678ec9491328e3da11fd0f9faa59f6e5f7d92
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-11-16 13:54:48 +00:00
Miikka Heikkinen
458d44fdc5 EffectMaker: Fix image path in generated effect qml
Fixes: QDS-11293
Change-Id: I687e3038aa9a92c61955eda4532c2b672c2d6c4d
Reviewed-by: Amr Elsayed <amr.elsayed@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-11-16 13:20:55 +00:00
Christian Kandeler
4dc0cf076b TextEditor: Remove unused member functions from RefactoringChanges
Change-Id: I7e301fcf7be7690e88d9b31e60cf900660336a07
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-16 13:09:22 +00:00
hjk
20bc29face CppEditor: Use new construction pattern for project panels
Change-Id: I60dffd8fb7c00671054b5e229ba8c0a0cb622b1d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-16 12:15:59 +00:00
hjk
d739a14950 TextEditor: Delay-construct ClipboardAssistProvider
Change-Id: I34d1e2e8f99e55e574e148bef700811fb33d9449
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-16 12:15:45 +00:00
David Schulz
b960fb4481 Editor: centrally emit filesChangedInternally after refactorings
...instead of relying on the surrounding code of the refactoring to emit the signal.
This also ensures that the signal is only emitted for files that are not opened inside
a TextEditor.

Change-Id: I6223362864014c691962d895b864f9f44c36e035
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-11-16 12:05:13 +00:00
hjk
4773f89f8c ProjectExplorer: Use new construction pattern for some project panels
Change-Id: I0c7cd43a2fcd9480cab06270a4fee295cf5a5fc1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-16 11:33:14 +00:00
David Schulz
8c337722d0 LLDB: check for msvc/windows target in lldbbridge
Change-Id: I404630592e021688628d02ec71ea00cb2db8358e
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-11-16 11:27:29 +00:00
Ali Kianian
95dfd52712 QmlDesigner: Fix the delete dialog size problem for CollectionEditor
Task-number: QDS-11284
Change-Id: Iba60a27b0037c7db4270603f22855fac4a9c1d05
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-11-16 11:09:22 +00:00
Mahmoud Badri
68be6228db QmlDesigner: Icon font updates
Added:
- deletepermanently_medium.svg
- alphabetical_medium.svg
- assignTo_medium.svg
- comboBox_medium.svg
- createObject_medium.svg
- recent_medium.svg

Modified:
- addcolumnleft_medium.svg
- addcolumnright_medium.svg
- addrowabove_medium.svg
- addrowbelow_medium.svg
- deletecolumn_medium.svg
- deleterow_medium.svg
- export_medium.svg
- import_medium.svg
- tableView_medium.svg

Removed:
- downloadcsv_large.svg
- downloadcsv_medium.svg
- downloadjson_large.svg
- downloadjson_medium.svg
- uploadcsv_large.svg
- uploadcsv_medium.svg
- uploadjson_large.svg
- uploadjson_medium.svg

Change-Id: Ib5fb5ee5dfb3224ad99ee895d83a8910a5cc18c5
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-11-16 11:02:04 +00:00
hjk
9f0198d8ed Copilot: Use new construction pattern for project panel factory
Change-Id: Id703f377f353390e63535a0c98078c66909cbdd4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-16 10:32:00 +00:00
hjk
9967877b7a ClangTools: : Use new construction pattern for project panel factory
Change-Id: Ib03e50b5925027e791c3416e6f202ab258071a16
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-16 09:58:21 +00:00
hjk
86aa945bd6 Axivion: Use new construction pattern for project panel factory
Change-Id: I49b71d1fec4c174446f758b4b44b374a979f4300
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-16 09:49:38 +00:00
hjk
f1f4df29b5 Autotest: Use new construction pattern for project panel factory
Change-Id: I09abb1d5dbb07a700053077b03e65a3dce4b3f1f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-16 09:49:32 +00:00
hjk
8a727b5948 GitLab: Use new construction pattern for project panel factory
Change-Id: I7a52d1a914daf64cb74214628c7f4728d32dbf5d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-16 09:37:13 +00:00
hjk
6a8d7edd6f ProjectExplorer: Temporarily leak ProjectPanelFactories
The follow-up changes will remove dynamic allocations for
ProjectPanelFactories one-by-one, so the leak will vanish in the end.

For now this prevents double deletion during shutdown in the
transition period.

Change-Id: I24d3ad4a2f300a7af782e1973d9817061af39c18
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-11-16 09:36:58 +00:00
Jarek Kobus
ec722b9132 DeviceShell tests: Use ProcessLauncher for shell process
It looks like after recent switch to QProcess impl for
Utils::Process, the DeviceShell::m_shellProcess blocks
in DeviceShell::installShellScript() on a call to
m_shellProcess->waitForReadyRead(5000). Until it's solved,
bring back the ProcessLauncher impl for the shell process
to unlock the CI tests.

Amends a53dfaf623

Change-Id: I085ea5c1ae4f169c7c77acb8702ed48de0a95bac
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-16 09:06:02 +00:00
Eike Ziller
f0f4780ec0 Merge remote-tracking branch 'origin/12.0'
Change-Id: I22e6a20e5a6fc84f777b6cffbd9fb484c90bc51d
2023-11-16 08:45:30 +01:00
Thomas Hartmann
b7657a8d23 QmlDesigner: Add source property to MediaPlayer
Change-Id: Ie70e6f8c0e8d3ac316b98bc43f3cb7baecbb9d1b
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-11-15 16:57:00 +00:00
Thomas Hartmann
9958987be7 QmlDesigner: Allow QtQuick 6.6 import
Change-Id: I5f16c6dbd96a22fba540a3877c7eb3ebf2b61734
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-11-15 16:32:43 +00:00
Christian Stenger
e38c84d5db Tests: Fix warning and test execution on Windows
Avoids

 warning C4566: character represented by universal-character-name
 '\u23F0' cannot be represented in the current code page (1252)
and the resulting test fail on Windows.

Change-Id: I2bdd43b0648a954faa9e444df79a91027e6e891f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-11-15 16:32:24 +00:00
Jarek Kobus
37ed2ce42f TaskTree: Add tests for ConcurrentCall
Change-Id: I493ab170656a61a841614dff87495fa324336c45
Reviewed-by: hjk <hjk@qt.io>
2023-11-15 16:21:43 +00:00
Alessandro Portale
6c57c51981 Use StyleHelper::UiFont()
Change-Id: I0c09578b76c48ddb255f44bb6117089dd092a72c
Reviewed-by: hjk <hjk@qt.io>
2023-11-15 15:02:13 +00:00
Alessandro Portale
f8671f3e3c Utils: Introduce StyleHelper::UiFont() for centralized font definitions
Custom font sizes of UI texts like titles and subtitles were usually
defined on the spot in code. With the upcoming focus on unified fonts
and colors in Qt Creator, a centralization of font styles in needed.

This adds the font getter function StyleHelper::UiFont() and the enum
UiElement that specifies types as H1..H6 and some custom ones.

Change-Id: Ie0d6e6fb51fe24d8aee6b4242941cbff45fe3853
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2023-11-15 15:02:06 +00:00
hjk
b6569b9333 QmlProjectManager: Allow opening remote .qmlproject
This get rid of two instances of FilePath::toString and allows now
to opens the default wizard-generated "Qt Quick UI Prototype"
.qmlproject.

As the QmlBuildSystem is still heavily tied to the local file system
this here is only a baby step towards fully functionial remote
.qmlproject support.

Change-Id: I940f99472d45d9ade4966cf4f15b0692a51f2e7b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-15 15:00:37 +00:00
Jarek Kobus
62ad0014f1 TaskTree test: Simplify subprocess name
Fix the qbs build.

Amends 63bfeba87f

Change-Id: I271e5059ba8becf4aade8ce21ff9f40201f3734b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-15 15:00:26 +00:00
Amr Essam
306ce4ab35 EffectMaker: Open saved compositions
- Also fixing issues related to image paths
- Composition name is shown in save dialog when re-save
- Clear current composition for reset or open a new one

Task-number: QDS-11192
Change-Id: I97aad4b5216e6b116343bb274db0f9abd1275fec
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-11-15 14:29:52 +00:00
Marcus Tillmanns
1049f8d329 Utils: Remove unnecessary flag
Change-Id: Iae99b5fd6d3740015deb0e30d45d480ffb54c4a2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-15 14:18:46 +00:00
Marcus Tillmanns
7819fc5dfb Terminal: Only unlock exit on macOS
Fixes: QTCREATORBUG-29902
Change-Id: Ifbb1f12c874f2f68483a34ac6e117214211e5be4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-11-15 14:13:48 +00:00
Christian Stenger
5fcf404846 TextEditor: Consider angle brackets as braces too
When performing "surround with brackets" allow this feature for
angle brackets as well.

Change-Id: I4192fd832aa3e692d9287b5b873e9ea31ec2b7e3
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-15 14:11:33 +00:00
Christian Stenger
8ae0e3dbf8 Bazaar: Make create repository a global action
Also initialize text of parameter actions when defining the parameter action.
Avoids empty items if the setParameter() call is done too late.

Change-Id: I5e3398e5e537fc65f5c9c43cd62345b322f3143d
Reviewed-by: hjk <hjk@qt.io>
2023-11-15 14:11:25 +00:00
Marcus Tillmanns
35a2d598ab Utils: Add SynchronizedValue<T>
Change-Id: I0af6998f540ba688fa54d9e43e33cb3cb0fc54e8
Reviewed-by: hjk <hjk@qt.io>
2023-11-15 14:00:03 +00:00
Karim Abdelrahman
de4c871655 QmlDesigner: Fix isQtForMcusProject() bad if condition
"if(activeTarget && activeTarget->kit())" will always
return true for both Qml & CMake build systems.

The value of McuSupport.McuTargetKitVersion has to
also be checked as the third condition for Cmake
build system.

Task-number: QDS-10599
Change-Id: I5904e34082d1d81cccc4dd43b6911f9160eb5ea1
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2023-11-15 13:50:35 +00:00
Cristian Adam
3939ba93af qtcreatorcdbext: Deploy lldb on Windows
Starting with LLVM 17.0.1 we include lldb in the list of packages
compiled on Windows.

This commit deploys lldb.exe and its Python required machinery.

Fixes: QTCREATORBUG-14539
Change-Id: I7f44c537cbaf31bf2f065762bdc9a48dd5efc64d
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-11-15 13:47:46 +00:00
Esa Törmänen
031e23edbe Doc: Update QDS version compatibility with Qt for MCUs SDKs
Modified the QDS version compatibility with Qt for MCUs SDKs page
so that it's up to date with the latest/upcoming releases
(Qt for MCUs 2.6 & QDS 4.4).

Task-number: QDS-11228
Change-Id: I21ca6e5e7362c8bab756d1adcd81954deea48784
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: Maija Metso <maija.metso@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-11-15 13:09:26 +00:00
hjk
f9e2942a80 Bazaar: Use Core::ActionBuilder to create menu entries
Change-Id: Ibae72a912dee82ef8a0b7865d69f87fd65ee8f43
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-15 13:05:04 +00:00