Commit Graph

84931 Commits

Author SHA1 Message Date
Andreas Loth
5639a3424c Axivion: Use signal/slot to start reading the network response
Prevent use-after-free when QtCreator is closed while a network request is still
on the way.
The previous future approach will try to use reply despite reply being destroyed
by networkAccessManager's destructor.
Now, the connection gets automatically disconnected when reply gets destroyed.

Change-Id: I7a00006a2f38d3a774eb2769e6faeb339d18025a
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-11-15 12:46:21 +00:00
Alessandro Portale
aabf03ec06 Core: Add "Copy and Close" button to About dialog
For the quick way to copy "I use this version" information.

Fixes: QTCREATORBUG-29886
Change-Id: I0431c969a48b80438e07388d223477b5b3f56069
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-11-15 12:24:29 +00:00
Alessandro Portale
1f5f76cdf9 Core: Move generation of "about" text to ICore
This introduces ICore::aboutInformationCompact() and
ICore::aboutInformationHtml() and moves the existing code there. The
former is used in the "System Information" dialog, the latter in
"About".

aboutInformationCompact() will be used for the "Copy and Close" feature
in an follow-up patch.

Task-number: QTCREATORBUG-29886
Change-Id: Iec818e376b3f02f52da00428285ad69b94d8adea
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-11-15 12:24:17 +00:00
Alessandro Portale
ac121149b1 Core: Make strings in ICore::versionString() non-translated
Change-Id: I462bab0160cb4b574da5a5ae6147915706a9f43e
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-11-15 12:07:48 +00:00
Christian Stenger
4f7865eb4d Python: Limit detection to unique python
In case we are having symbolic links on python or its parent
path(s) we added an interpreter for each of these.
Resolve the python path explicitly and only add them if they
are unique.

Change-Id: I21b9d7d85e82c5ec3a18e182dfcde2b98936a8af
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-15 12:02:40 +00:00
Christian Stenger
737c9ce41e LanguageClient: Fix missing default context menu
Change-Id: I7a3ae4f0af01cf05efd31082e3ac888a4613bb25
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-15 11:29:25 +00:00
Christian Stenger
cf6b6b5a8a QmakePM: Improve performance of import
Shuffle order of parse and add short cuts in case we can
stop parsing early.

Change-Id: If03a5cbc0e51dc77f4b03b1cf1d07243f5b2a70b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-11-15 11:29:05 +00:00
Jarek Kobus
5a2df08ae0 TaskTree: Add a new example showing input / output data exchange
This example shows how to separate the business logic of the recipe
from the GUI and how to write a reusable recipe.

It shows how to feed the recipe with the initial data and how to
retrieve the final result from the recipe using onStorageSetup()
and onStorageDone() handlers.

Change-Id: I04c0c0c9bd6cf25ac4e91317e527ad12832e9143
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-11-15 10:54:05 +00:00
Aleksei German
5b90cbc29a QmlDesigner: Disable State Groups for Qt for MCUs
Task-number: QDS-10355
Change-Id: I1b26b8e5b9ef3ed3176b7d6cd34bc1e27879ce1c
Reviewed-by: Henning Gründl <henning.gruendl@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 10:40:45 +00:00
Jarek Kobus
a53dfaf623 Process: Switch the default implementation into QProcess
Task-number: QTCREATORBUG-28811
Change-Id: I5647b760998a80f59583b478a65de6d615e1ca55
Reviewed-by: hjk <hjk@qt.io>
2023-11-15 10:26:09 +00:00
Thomas Hartmann
f199755cfe QmlDesigner: Adjust display strings for jump to code
Change-Id: Ia1f976491be0834ce936092429ebceee360be2df
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Pranta Ghosh Dastider <pranta.dastider@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2023-11-15 10:11:20 +00:00
Jarek Kobus
e5b7f474b3 TaskTree: Get rid of unused data
Change-Id: I60f38e7a0efeb02615d81181a9884963a66be39b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-11-15 09:54:24 +00:00
The Qt Project
1a44647d1e Merge "Merge remote-tracking branch 'gerrit/12.0'" 2023-11-15 09:45:00 +00:00
Jarek Kobus
6da404fa2c TaskTree: Keep list of unique_ptr for owned children
Change-Id: Ib6bc1efa647b4e48b1a4188de480f06bc4e7699e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-11-15 09:36:22 +00:00
Jarek Kobus
2a1abb4143 TaskTree: Create more data on stack
Use std::optional instead of std::unique_ptr.

Change-Id: I5b182a10ebbd47c02de113c8d317ad531d603661
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-11-15 09:36:14 +00:00
Jarek Kobus
be1c072157 TaskTree: Delete runtime data earlier
Delete the runtime node just after the task / container is finished,
instead of when all other tasks in parent container are finished.

Change-Id: I5fa3bc92324e8274b023fbc20e4bbede9824f47a
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-11-15 09:36:06 +00:00
Jarek Kobus
3ae0185817 TaskTree: Split completely const and runtime trees
Separate completely const tree (data taken from recipe)
from runtime tree. Build runtime tree incrementally, on demand.

The const tree is created on TaskTree::setRecipe() and
the runtime tree is created on TaskTree::start().
The const tree serves as a kind of template for creating
the runtime task tree later, dynamically.

Prepare for the implementation of the loop functionality
(3rd point on the master task below).

Task-number: QTCREATORBUG-28741
Change-Id: I80382e5ef43d53b36ca3c70472b193c5949f5ab9
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-11-15 09:35:59 +00:00
Eike Ziller
056168beca Merge remote-tracking branch 'gerrit/12.0'
Conflicts:
	src/plugins/texteditor/texteditor.cpp

Change-Id: I76620975760a8f9e64f6d381c948d457e949a87c
2023-11-15 10:32:59 +01:00
Eike Ziller
0269626a17 Make LineColumnButton re-usable
Change-Id: I34e755018eef41e7e7cf254ccba72a1ec5a1c5ff
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-15 09:30:17 +00:00
hjk
a252ea0205 CMakeProjectManager: Use Core::ActionBuilder in a few places
Change-Id: If2e852e744a070805a542ad62291ad791b1bddf5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-15 09:13:19 +00:00
hjk
879b9b8803 Core: Let ActionBuilder build a ParameterAction
Simpler overall interface with only slight overhead when not used.

Change-Id: I4846df70df0d442a264d81ac5f351407b2d5e40f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-11-15 07:17:50 +00:00
Eike Ziller
90e6fb54b6 COIN: Update to Qt 6.6 provisioning
That Qt version is used for building as well

Change-Id: Idae06324532b0dc2f453b802ca3d817fe3d41593
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-11-15 07:10:35 +00:00
Thomas Hartmann
c1edcc5d9f QmlDesigner: Do not allow invalid imports
For example: import QtQuick '-1.-1'

Change-Id: Ia63be5471f4fa69b7f798876239fb57db7806f91
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-11-14 20:16:51 +00:00
Tasuku Suzuki
b19a26b135 ProjectExplorer: Not create Manage Kits button if Kit options are hidden
Project window doesn't use the button anywhere else.

Change-Id: I97537524b615b9fd523828bc540b5412578c69c9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-11-14 18:19:59 +00:00
Alessandro Portale
f25702ec0d Core: Use LayoutBuilder in the About dialog
The GridLayout code was hard to read. Let's use LayoutBuilder.

Change-Id: I90a2113e12541061fbf699f36328bb326bd1ebd9
Reviewed-by: hjk <hjk@qt.io>
2023-11-14 16:58:46 +00:00
Henning Gruendl
6239b079f8 QmlDesigner: Fix insight view sections
Task-number: QDS-11220
Change-Id: I97471ccc3362617b7f1613c77e5cc86ae81d7e15
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-11-14 14:54:41 +00:00
Alessandro Portale
f96feadad0 Fix missing overrides and redundant virtual
Change-Id: Id2a247b6032602c2295d928067c2462d3f9b5221
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-11-14 14:27:45 +00:00
hjk
6491e378e4 Core: Use ActionBuilder to set up find menu entries
Change-Id: I93784d6c571988be5476f0f8e9cce7411ae392be
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-11-14 13:56:42 +00:00
hjk
00f76a3c2c Boot2Qt: Move Plugin class definition to .cpp
Change-Id: I9c3952e5ea1993888ccbd54a243392e2004d0b60
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-14 13:56:31 +00:00
Eike Ziller
206000a3d6 Fix state of LineColumButton after clicking
When using the `pressed` signal, the button stays in the "pressed" state
forever afterwards. Using the `clicked` signal behaves correctly, so use
that instead.

Change-Id: I646c93f1db3b1176630f1cfa718aba01d0aaf252
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-14 13:38:04 +00:00
Eike Ziller
4c1044981f Plugin wizard: Add missing license templates
Change-Id: I3b43ebdb9823a5a7430946ca789188628a910b9d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-11-14 13:28:46 +00:00
David Schulz
3ef343bbf8 Core: Improve readability of searchresult error messages
Task-number: QTCREATORBUG-29824
Change-Id: Ic26a6671b886d74ab2aac1d8e1baa66bd9fe7f8d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-11-14 13:18:58 +00:00
Henning Gruendl
4da241f26f QmlDesigner: Make recent project removable
Add functionality to remove individual recent projects and the complete
list of recent projects.

Task-number: QDS-6606
Task-number: QDS-8761
Change-Id: I8ff4de918ebb2f7a6ffb06e6d3ba04e38eb7f386
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-11-14 13:16:52 +00:00
Christian Kandeler
74a089f3ea CppEditor: Fix the lookUpDefinition() function
... that tells us whether we need to offer the "add #include" quickfix.
If we encounter a forward declaration, we cannot return yet, as a proper
declaration might still show up.

Fixes: QTCREATORBUG-29883
Change-Id: Ie1b831b9414043c3fc0d5d1e914b6096957757e6
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-14 13:07:43 +00:00
Sivert Krøvel
b080a3772c Handle nodes and properties required by MCUs in JSON conversion
Qt for MCUs uses several features in the qmlproject files which
are unknown to QDS. It is important that this information does
not get lost when converting to and from the internal JSON
project format, to avoid breaking MCU projects.

The following changes were made:
- Files nodes keep the type (ImageFiles, QmlFiles...)
- Added support for more Files node types used by MCU projects
  (ModuleFiles, InterfaceFiles, FontFiles...)
- Files nodes can have child properties
- Added a JSON object to store properties unknown to QDS.
  They may be used by Qt for MCUs, and new properties may
  be added between versions
- Added support for the MCU.Config and MCU.Module nodes
- Added a test project for MCU. This project is also tested
  with Qt for MCUs. Both the original and the converted
  project build correctly
- Added instructions for notifying the MCU team before
  modifying the MCU test cases to avoid breaking changes.

Fixes: QDS-10774
Task-number: QDS-10969
Change-Id: I0dfd7f3b150a8661fc0398a8a3d575c7e8777ef3
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-11-14 12:22:36 +00:00
Mahmoud Badri
820b1ce2d0 QmlDesigner: Remove collection editor's id role
It is not needed, and implemented wrongly anyway.

Change-Id: I17a1565912c1d3f68f273e314b58b1998aced03d
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Shrief Gabr <shrief.gabr@qt.io>
2023-11-14 12:16:48 +00:00
hjk
8290a7636e ProjectExplorer: Really don't create replacment kits for Design Studio
Amends b5dec80d6b.

Change-Id: I34b263626c66dfec2676ff311d1f5e460333b924
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-11-14 11:06:05 +00:00
David Schulz
f6e403b219 Python: split buildsystem and project into separate files
Change-Id: Ic226ff6685cb6657a5e83258aab151754d80b3bf
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-14 11:03:24 +00:00
hjk
5acce4bd7f Core: Don't leak ActionBuilderPrivate
Change-Id: If98ac5c30ea376b8f9a62b63dae13c1c803b32c5
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-11-14 10:59:47 +00:00
hjk
5922227642 Boot2Qt: Use ActionBuilder to create flash action
Clearer code.

Change-Id: I9fc8f7f8ddc704689fed6e40d92f827067d19e40
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-14 10:59:38 +00:00
Miikka Heikkinen
6276658e52 EffectMaker: Update QSB tool parameters
With updated parameters, same shader versions will be generated as
with the standalone effect maker tool.

Task-number: QDS-11194
Change-Id: Id7c0b36e7526a8e285d02b9102a65aac954b3d98
Reviewed-by: Amr Elsayed <amr.elsayed@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-11-14 10:52:27 +00:00
Eike Ziller
031b2162ee Use Tr::tr in HelloWorld plugin
The header was already there

Change-Id: I767bcc671cb05579de83f3d8e753f887230745ec
Reviewed-by: hjk <hjk@qt.io>
2023-11-14 10:36:10 +00:00
Eike Ziller
e3856289fe ClangCodeModel: Fix capitalization of menu item
Amends d0203a39fa

Change-Id: Ie7d63927907027dfddc579f66e6e9b1c51a10bd9
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-11-14 10:35:36 +00:00
Karim Abdelrahman
2dae80de93 McuSupport: detect if a project is QtForMcu
Update the way we used to check for mcus
project in McuSupport plugin. The old way
relied on the deployment step which is only
available when the user has already added a
valid QtForMcus package to "Devices->MCU".

The addition of "isQtForMcusProject" in
externaldependenciesinterface.h will be
used in a follow-up patch in
qt-creator/tqtc-plugin-qtquickdesigner
which adds a warning when using .qtbridge
for Mcu project.

Task-number: QDS-10599
Change-Id: Ibf46477a4f0cb4a82a10ac848acec75458bf6c03
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Aleksei German <aleksei.german@qt.io>
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
2023-11-14 10:27:59 +00:00
Miikka Heikkinen
d581c80fe6 Use OpenGL core profile for macOS
Some of the shader features we use in Effect Maker plugin require newer
OpenGL than the macOS default.

Task-number: QDS-11194
Change-Id: Iad166a9f99b2a8fc37b0f9912947cf63ef4b3328
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-11-14 10:16:14 +00:00
Eike Ziller
bb27b3b02a ExtensionSystem: Use dependency order when loading plugins at runtime
And also run IPlugin::delayedInitialize when loading plugins at runtime

Amends 32914fe66b

Change-Id: Ib2a6c4c6122dd1ac915f7755b0d7ea232fa635e8
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-11-14 08:19:00 +00:00
Eike Ziller
9e00e1d6a0 Plugin wizard: Use Tr::tr
Create plugins that use the Tr::tr pattern for translations.

Change-Id: I9b6e6222951936c614c5ac45248e3d0bb58104ec
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-11-14 08:07:12 +00:00
Christian Stenger
45858f739a McuSupport: Fix building tests
Change-Id: I9473805663ea2d33ddf600ae06c455b139bac89b
Reviewed-by: hjk <hjk@qt.io>
2023-11-14 07:52:42 +00:00
Thomas Hartmann
dd2a290963 QmlDesigner: Adjust display strings for connections in context menu
Change-Id: I2f89413cfe86aad2f365acf9aaba378047e54cca
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Pranta Ghosh Dastider <pranta.dastider@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-11-14 07:49:25 +00:00
Shrief Gabr
0bcd0b915e QmlDesigner: Detect data types for CSV models
Task-number: QDS-11081
Change-Id: I88418e31f0fd033d7d5ec3c03fea26ae1e4e2362
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-11-14 07:25:56 +00:00