Commit Graph

88653 Commits

Author SHA1 Message Date
Amr Essam
901b356ea5 EffectMaker: Fix incorrect QML parsed values
Task-number: QDS-11296
Change-Id: I97d725271e61d4e14db23382ff7398353ced845d
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-11-17 10:45:25 +00:00
Alessandro Portale
1da84754db Utils: Align enum StyleHelper::UiElement with upcoming design system #3
The Qt Creator Design System defines display headings H1 and H2 with a
"Titillium  Web" font face.

This change introduces the "Titillium Web" based as new H1 and H2 and
lets the WelcomeScreen code obtain them via StyleHelper::UiFont(). It is
supposed to not change the visual appearance.

Change-Id: Ia2c5ac14858e574c4ffd31af1ed80ac1781cd970
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-11-17 10:43:06 +00:00
Alessandro Portale
b3acdae338 Utils: Align enum StyleHelper::UiElement with upcoming design system #2
This change "PanelTitle" to "Caption". It is supposed to not change the
visual appearance.

Change-Id: I3342e6c80d8ce11b7ab1ac40b4395c265e1e07ec
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-11-17 10:43:00 +00:00
Alessandro Portale
7f60ce0666 Utils: Align enum StyleHelper::UiElement with upcoming design system #1
This change demotes the existing H1 and H2 to H3 and H4. It is supposed
to not change the visual appearance.

Change-Id: Idc3056307f0286a2d4d276ba79125ba93d5ac428
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-11-17 10:42:53 +00:00
Alessandro Portale
aa83b0ce65 ProjectExplorer: Make CodeStyleSettingsWidget expanding
This encourages the code style project settings panel to take the
abundant vertical space.

Change-Id: Ia14c4e3246a0ab4099850b3013e4ea915a7e1433
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-17 10:21:42 +00:00
Christian Kandeler
5baf4d83c6 TextEditor: Remove now-unused RefactoringChangesData
Change-Id: Idf82ce013f19422d2b5931669e1aaa4a3aa64b16
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-17 10:02:01 +00:00
Christian Kandeler
246a878a34 TextEditor: Remove RefactoringChanges::m_data
There is no use for a data member in the base class.

Change-Id: I126d8713d2a7bf4061ecbd60b4c144d39c08d550
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-17 10:01:48 +00:00
Christian Kandeler
5d6fc1fc3b TextEditor: Remove RefactoringFile::m_data
There is no use for a generic data member.

Change-Id: Iabfbc0587db2cffcc1c19baed832aa866f696ffe
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-17 10:01:34 +00:00
Jarek Kobus
1c8ac2e7d3 TaskTree docs: Update docs about TaskInterface::done()'s arg
Now it's DoneResult, instead of bool.

Change-Id: Ia6eab42b08774d6b51f2bf4435ac083946f5d53d
Reviewed-by: hjk <hjk@qt.io>
2023-11-17 09:44:31 +00:00
Jarek Kobus
659f0f000c TaskTree: Unify TaskInterface::done(DoneResult) signal
Change the argument of TaskInterface::done() signal
from bool into DoneResult. Make it consistent with
other TaskTree API.

Introduce toDoneResult(bool success) helper.

Change-Id: I7b3041d7c1ed0317c76adbc1fd37448231e85f82
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-11-17 09:44:20 +00:00
Christian Kandeler
6f3bc431fc TextEditor: Move more code into RefactoringFile
We want to get rid of RefactoringChangesData.

Change-Id: Ia428563a0ff70ec9660761beac3eb7168b8e9eca
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-17 09:43:02 +00:00
hjk
4c0abb6d2c ExtensionSystem: Make IPlugin::addTest* public
This allows somewhat easier test setup by defining test classes
nearer to the tested code.

Change-Id: I7c300a442c9433355d97742b17b394a6d2352270
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-11-17 09:02:56 +00:00
Christian Kandeler
413a6a6fde TextEditor: Make RefactoringChanges::file() virtual
More preparation for de-virtualization of RefactoringChangesData.

Change-Id: Ib5f7782a8dcaa2ae093b62aebedbd7bae9d4c3f1
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-11-17 08:37:14 +00:00
Christian Kandeler
156569fcc7 TextEditor: Move code from RefactoringChanges to RefactoringFile
Preparation for de-polymorphisation of RefactoringChangesData.

Change-Id: Ia2a8f8e2a3a403f809e67c907d3474e7c1a52417
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-11-17 08:31:45 +00:00
Eike Ziller
d652d7bfbd Change log: Switch documentation links to stable documentation
Change-Id: Ifd1c17808787182668ef0c1d35f33b89860aa8d9
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-11-17 08:22:56 +00:00
Eike Ziller
583a9dcea1 Add Line/Column indicator to Markdown editor
And make the LineColumnButton independent of IEditor for that (since the
IEditor for the Markdown editor is not a TextEditor.

Change-Id: I52d378ec46d86b1c7928d18f7d39f9726bb6ad23
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-11-17 08:15:43 +00:00
David Schulz
fbf8b4d3c3 Copilot: fix applying copilot suggestions word by word
via the ctrl+right shortcut

Change-Id: I1a9460a456833c7ddd35a42a63eaf75b8e2930b3
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2023-11-17 06:48:39 +00:00
David Schulz
cff26d813a Clangd: Avoid client restart after modifying open documents
Change-Id: I116eed1b047159e3d1ce64f18f44da6a0ad7b231
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-11-17 05:38:13 +00:00
Alessandro Portale
a810995aae Vcpkg: Enable soft loading of the plugin
Change-Id: Iddca570d1f29e51221a3958d6fa246beb00d8168
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-11-16 18:03:05 +00:00
Henning Gruendl
c3f9d43aca QmlDesigner: Fix PopupDialog popup location
* Restrict popup location to single screen given by global position
* Reintroduce PopupDialog title bar drag
* Fix global popup show on linux

Change-Id: If1923151cb9d0ec4286f27aeae2baa292e017eb5
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-11-16 17:57:28 +00:00
hjk
43e4c7913f ClangCodeModel: Use ActionBuilder
Change-Id: I40cd7fc9eb346b0b70ea24f980846d175cfde3d4
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-11-16 17:04:45 +00:00
Cristian Adam
7affb80fc3 CMakePM: Do not show source/group/path twice
For the cases of:
  source_group(TREE ${CMAKE_SOURCE_DIR} FILES my/subdir/file.cpp)

Treat the "my\\subdir" part in the project view as part of the source
group name.

Fixes: QTCREATORBUG-29799
Change-Id: I92bf581be25d085783bcdadd8a418b849a29c708
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-11-16 16:39:38 +00:00
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