Commit Graph

80400 Commits

Author SHA1 Message Date
hjk
1fbc707b3f Fossil: Convert to SPDX-style copyright headers
Change-Id: I14d5fe8f3b8be809276779be95475e620db01789
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-02-01 07:45:37 +00:00
David Schulz
0dab651ccd Merge remote-tracking branch 'origin/9.0' into 10.0
Change-Id: I7e171601cd7317b48d5074bbc0ead127813d596c
2023-02-01 08:16:30 +01:00
David Schulz
e39a79845a Merge remote-tracking branch 'origin/10.0' into HEAD
Change-Id: I55ff1d27695d6d7715538695e442bf097a1f3a1f
2023-02-01 06:54:49 +01:00
David Schulz
739d4942e2 Merge remote-tracking branch 'origin/master' into 10.0
Change-Id: I9f6090e2a9f62fd3a9823f5a7342ea423dfbb2ac
2023-02-01 05:24:33 +00:00
Orgad Shaneh
4bfdfc2fbc ProjectExplorer: Fix potential division by zero
Reported by Coverity.

Change-Id: Ie11625afc862bd7918d5b9bffd73e6726adaac0f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-31 18:05:35 +00:00
Ali Kianian
5368330534 QmlDesigner: Make context menu grouping a single action
- Grouping actions has been merged into one checkable item.
- range and view namespaces are available for Utils.

Task-number: QDS-8662
Change-Id: I17b2190caf425d0d8271dd68af494dbc2b332f09
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-31 15:37:42 +00:00
Leena Miettinen
c5ea756027 Doc: Integrate Fossil docs to the manual
Now that the plugin has been moved to the qtcreator repository.

Change-Id: Iacf6c58765a10f5ad574688dc7ad917f6a705a14
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-01-31 15:33:03 +00:00
Marco Bubke
7bccb8d714 QmlDesigner: Deactivate only the project storage
Fixes: QDS-8951
Change-Id: I96ee9a97ee425b053aa1ba549536a9429e16dd8c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-31 15:27:35 +00:00
Marco Bubke
2fdec88196 QmlDesigner: Add default image for ItemLibraryIconImageProvider
Task-number: QDS-8918
Change-Id: I938f86b12ba2d60670b96312dd7f82d82ef32042
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-31 15:27:28 +00:00
hjk
6c8afcde88 Core: Make access to remote terminal easier in code
By re-routing through device hooks. Now basically a FilePath
is sufficient as a handle.

Change-Id: I0ee43c35096ada12114d50476d5156a6c1de1e70
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-31 14:45:38 +00:00
Miikka Heikkinen
c14ec1b4c1 QmlDesigner: Don't create material library node in in-file component
While there are some valid use cases for having a material library
inside in-file component, having duplicate material library nodes
in a single file causes some issues that are not trivial to solve,
so for now we just prevent this from happening.

Fixes: QDS-8656
Change-Id: I4495ea4d972eab76ca444d18ab4c45b403805ad7
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-01-31 14:40:49 +00:00
Thomas Hartmann
770463877c QmlDesigner: Fix designer theme
Change-Id: I2585acd1105390287eac1b0a0729c08321cce298
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-31 14:36:32 +00:00
Orgad Shaneh
128b21c959 Fossil: Import from super repo
git-subtree-dir: src
git-subtree-mainline: e20bdfae4d
git-subtree-split: c8b9e4504e

Change-Id: Id0c0ed8c57739cba2b0a7431f40f8c07fcab493d
2023-01-31 16:26:09 +02:00
Thomas Hartmann
080c8af850 Add DStoolbarBackground
Change-Id: Ied42d086af2aba2ce54b2ad9ed411feea7817416
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-01-31 14:05:20 +00:00
Yasser Grimes
862f484af5 McuSupport: Extend CMake targets tree for QtMCUs QmlProject projects
CMake project relies on the CMake's file-api to fill the Project View,

QtMCUs 2.4 will be using a different method to read input files (Qml,
Fonts, Images, Headers...) using qmlprojectexporter process, that
process is still called from CMake thus a CMakeProject is still used in
QtMCUs kits, but unlike previous versions add_sources is not called on
QtMCUs target making the list of input files read by the file-api empty
and as a result an empty Project Tree.

This commit extend uses the SessionManager to listen to when the the
projects are loaded and then use input.json file to populate QtMCUs
projects trees for projects using qmlprojectexporter the same tool
generating input.json .

Task-number: QTCREATORBUG-28516
Change-Id: I30a9daf1032e727692b8d71d01ab65634d0ae2a6
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-01-31 13:25:07 +00:00
Tasuku Suzuki
3d79244dd5 SessionNameInputDialog: change default button to "... and Open"
When one create/rename/clone a sesion, they will likely use the session.

Change-Id: I41d4e3c24833009a42385146fd2bb5a719465eba
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-31 13:19:07 +00:00
Tasuku Suzuki
53696ee71e SessionNameInputDialog: disable accept buttons when name is empty
Change-Id: I2a12d7b6e130adaed5bf724a27828feca72f0512
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-31 13:18:41 +00:00
Christian Stenger
e20bdfae4d ClangFormat: Adapt to changes in LLVM 16
Change-Id: Ia4a2cf21e351095609d8858f1f9355c6607470f3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-31 13:17:58 +00:00
Thomas Hartmann
724eb54387 Add QDSTheme to theming and use it in ManhattanStyle
Change-Id: If3f634cd96665150b27605eaf7a2a5d4ea7078b6
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-01-31 12:41:07 +00:00
Miikka Heikkinen
0078b47c8d QmlDesigner: Update SpatialAudio module component library icons
Also updated metainfo version 6.4->6.0, since adding SpatialAudio
module adds it as version 6.0.

Fixes: QDS-8854
Change-Id: I524ad371849c3bed3e3ce96400638348882c5110
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-01-31 11:09:35 +00:00
Thomas Hartmann
7fb5526752 QmlDesigner: Use latest icons for toolbar
Change-Id: Ia52c0bc4e9d74bf72cc0b368a5ec295bf53b5d73
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-01-31 10:58:50 +00:00
Thomas Hartmann
397126a0db QmlDesigner: Add iconFromName to Theme
Change-Id: I4d7a18a9e2e6a8e4acb3c2d9940c5624cf0f6f96
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-01-31 10:58:38 +00:00
Thomas Hartmann
051cff8222 QmlDesigner: Set contents margins of curve editor to 0, 0, 0, 0
Change-Id: I3f87f60ae07c3ae6619b345fb6e4ab356344d066
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-01-31 10:47:10 +00:00
hjk
50ee70fcee RemoteLinux: Remove AbstractRemoteLinuxDeployService::setDevice
Unused now.

Change-Id: I53ec97026e49435d1ca84b4f925e82c233853a8f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-31 09:58:28 +00:00
Amr Essam
179d7e2e9a QmlDesigner: Fix delete effect asset crashes the puppet
Current solution is to keep the effect qml not deleted, and delete only
the qep asset, because it's not possible for performance reasons to
scrape the ui qml files for the effect usages and remove effect imports
and elements using it.

Task-number: QDS-8880
Change-Id: I82d21cdd2f2569eda50d2eeeb6302a6258c57e0e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-01-31 09:20:39 +00:00
Alessandro Portale
97002f934f QmlProjectManager: Fix the "Qt Quick UI Prototype" wizard
The wizard uses the the same main.qml.tpl template as the "Qt Quick
Application" wizard. That file was renamed to Main.qml.tpl.

Change-Id: I7978cd2a09da7aa70a75f9cc5cb6e7b6dcdff058
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-01-31 08:33:17 +00:00
Christian Stenger
ad5460e5f5 Squish: Fix cancel handling
Remove canceling as state as it never had been used for real.
Keep the canceled state instead of overwriting it with finished.
Canceled has internally anyhow the same meaning as finished,
but we need the information whether the process had been canceled
or not to handle secondary runners like the recorder correctly.
Fixes canceling a run or a record.

Change-Id: I20ff6bc1b1d0b969c19940f763411e26149b3d16
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-31 08:12:03 +00:00
Orgad Shaneh
7dc1e2031f MarketPlace: Avoid needless copy
Reported by Coverity.

Change-Id: Ied6f7f6cd8cf295ea39ee813e38cf19585c9dcc2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-31 08:05:19 +00:00
Ali Kianian
6c314747be QmlDesigner: Apply Icon for "Merge with Template" item in context Menu
Task-number: QDS-8912
Change-Id: I2459af64e0d313a56486fbd541000b917d46fea3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-31 07:00:28 +00:00
hjk
ec43a6c005 QmlProjectManager: FilePathify further
Change-Id: I8d83cc93778f8786c30e0aaef459c51005139b19
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-31 06:50:54 +00:00
Fabian Kosmale
fa2ea6fd97 QtQuickApplication template: Support more modern API
(Re)add a way to select the minimum supported Qt version. If it is >=
6.4, connect to QQmlApplicationEngine::objectCreationFailed instead of
objectCreated, getting rid of the status check.
Moreover, if we have Qt >= 6.4, also use qt_standard_project_setup
instead of manually enabling AUTOMOC. That is available since 6.3, but
no need to clutter the version selection list with too many entries.
If only 6.5 or higher is required, put the QML files under
AUTO_RESOURCE_PREFIX, and use loadFromModule instead of load.
Unconditionally rename  main.qml to Main.qml, which is necessary for
loadFromModule to work, and making this conditional on the used Qt
version is more trouble than it is worth.

For qbs, we do not yet put the files under the auto resource prefix, so
do not use loadFromModule there.

Fixes: QTBUG-47996
Change-Id: Ib8ca375c2316b58eecf54009d36fc9f7dac7c1f4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-01-31 06:38:19 +00:00
Andre Hartmann
86ffc29239 Git: Avoid passing strings to resolve text encodings
Therefore, merge the code of codecFor() and encoding()
to avoid further mis-usage.

Change-Id: I086e4ace6c791d16f43f14c423b6529ad199c456
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-01-30 17:51:47 +00:00
Orgad Shaneh
7cd4c295c7 CppEditor: Initialize member in GetterSetterRefactoringHelper
Reported by Coverity.

Change-Id: I0b6a1a36a33fe9b1cd81d2b314c80f42054d3d11
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-30 17:09:23 +00:00
hjk
92b23cb827 Nim: Use simple wrapper classes for project generation
This allows a setup similar to the run and build related items
and a slimmer header file.

Change-Id: I76c722fb2a3022b11ecbc13456be39288fce868b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-30 14:13:55 +00:00
Brook Cronin
9ed9e466f7 QmlDesigner: update icon font
Change-Id: Ib26c9253ff012845e806a68be20d292c22e292ee
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-30 13:59:36 +00:00
Tasuku Suzuki
8cb0858574 Improve console app template
Set QtCore explicitly instead of removing QtGui from default modules.
Update CONFIG with the new feature introduced in QTBUG-27079

Change-Id: Id2b5cc7c9534618b88c4683253af6c2a8fd90816
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-30 13:47:32 +00:00
Tasuku Suzuki
2f94e93334 "New Class" wizard: Add QML_ELEMENT checkbox
Change-Id: I219b539ba5f36c895be1042a74571e54a0c67ec6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-30 13:46:49 +00:00
Christian Stenger
2afe3a6ff2 Squish: Fix object map handling
Always assume UTF8 content. Fixes unicode handling
of object names.
Kind of amend b55c10f189.

Change-Id: I5259ebed6e7eb142408ee8645fed4b0ab1460d19
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-30 13:45:55 +00:00
Christian Stenger
3c51f499ac Squish: Fix perspective handling
We always expect a perspective mode when starting the
squishserver.
Fixes writing the server configuration which worked
coincidentally before as it had been still in Query
mode but broke when separating runner and server into
own classes.

Change-Id: Ia2a986fb0f10bd2b3125916d3113f850db7f156a
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-30 13:45:50 +00:00
Alessandro Portale
0a30b8aa26 QmlProjectManager: Fix Qt Quick UI Prototype wizard
Fix the path to the main.qml template. Remove all Qt version quirks,
since "Qt Quick Application" project wizards are for Qt 6 from now on.

Amends: 4e0b4fcc92

Fixes: QTCREATORBUG-28722
Change-Id: I338f52f215afc8591fadb12c2ad3ca58d32ec7c7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-30 13:39:19 +00:00
Samuel Ghinet
8bb6d0936d QmlDesigner: Do not show file size for directories
Task-number: QDS-8877
Change-Id: I4d4e8a76f65f2b8eebf77e391bd0c499ed49f7c8
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-01-30 12:35:44 +00:00
Andre Hartmann
61fab0b736 Git: Fix instant blame text encoding
Fixes: QTCREATORBUG-28728
Change-Id: I875488badc84b664eaa1223b37657dcb417157de
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-01-30 12:32:03 +00:00
Christian Stenger
04f521abcf CompilationDBPM: Adapt to FilePath change
Change-Id: Idc2987e0568d34cf024cb170aa604f47053c9617
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-30 12:20:20 +00:00
Christian Kandeler
803ecca075 ClangCodeModel: Fix soft assert
Amends 0d909c353c.

Change-Id: Icb0c7245825fc7e8c4ce1ac3fae1bc585e857ace
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-30 11:57:39 +00:00
Samuel Ghinet
7ccd8eb295 QmlDesigner: Make the selected style appear selected even when hovered
In the New Project dialog, when browsing thorough the Styles, the
border of each style becomes white on hover, and when selected, the
border is blue. When a Style item was both hovered and selected,
though, the border was shown as white (i.e. highlighted). It should
be blue (selected) instead.

Task-number: QDS-8875
Change-Id: I4573ff57b7b5561f17f1fe6adf3fa214a62d5538
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-01-30 11:26:10 +00:00
Orgad Shaneh
b05ec7dc3c AutoTest: Avoid pass by value
Reported by Coverity.

Change-Id: Ic0ec726ab4ec1ed96b7f4ca95a6e7dc462baeda2
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-30 10:32:40 +00:00
Christian Kandeler
06390f5b53 CppEditor: Warn against renaming in generated files
Task-number: QTCREATORBUG-7044
Change-Id: I3ab2bafb1a7333d8c1a49dcd795696085ac6f666
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-30 09:48:57 +00:00
Mats Honkamaa
afb3ceb430 Doc: Update QQEM effects topic
The way you work with QQEM effects in QDS has changed.

Task-number: QDS-8704
Change-Id: Ib5c4dfc0adedb7174f9bc7df640bfb686e56978d
Reviewed-by: Ville Varanka <ville.varanka@qt.io>
Reviewed-by: Amr Elsayed <amr.elsayed@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-01-30 09:03:36 +00:00
David Schulz
4e8b7eee9d Cpp: support space ship operator in lexer
Fixes: QTCREATORBUG-27503
Change-Id: Idbff5a9b5b2e6e841e298ca6f706ef3c6aa1622b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-30 05:47:41 +00:00
Jussi Witick
c780151aec Add Qt Safe Renderer helper plugin
Initially this plugin will include Qt Creator project wizards
for Qt Safe Renderer

Task-number: QSR-1874
Change-Id: I3831c875469439ae9576aabd51af050b6af959cf
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-01-30 05:15:42 +00:00