Commit Graph

88532 Commits

Author SHA1 Message Date
Jarek Kobus
353ddc87a4 DockManager: Introduce read/writeAttribute() helpers
They are going to be reused in reading / writing
display name and mcus enabled.

Change-Id: I679de8858c37fb8629774d0166a7dbc56e5dab76
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-20 17:40:24 +00:00
Thomas Hartmann
98d1339637 QmlDesigner: Add default root id to templates
Task-number: QDS-12248
Change-Id: I105ada4f4b3a2eb5b3f422de7426dfaf8dc0a34a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-20 17:27:59 +00:00
Thomas Hartmann
2f728e6d59 QmlDesigner: Use 'Qt Design Studio' in option
Task-number: QDS-12149
Change-Id: I27ffd717ef73ff788e8b5cfdb9a116162cee8015
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-03-20 16:39:02 +00:00
Thomas Hartmann
81681897a3 QmlDesigner: Register ContextObject only once
Change-Id: Id92fa1a5ccf556dcc653b0422369df35414719ed
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-03-20 16:32:35 +00:00
Marco Bubke
e1a4967b03 QmlDesigner: Fix compiler warning
Change-Id: Ie0f81c735b5351e8a12a62ced4e86c5083bf24cf
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-20 16:26:53 +00:00
Leena Miettinen
d644632382 Doc: Remove references to CMake from a qmake-specific topic
Fixes: QTCREATORBUG-30580
Change-Id: Ic722ca8c6cfcf570aec48eb957ebfdc2ec929011
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-03-20 15:59:21 +00:00
Jarek Kobus
1be9f9cdc7 Doc: Add docs for ExecutableItem::withLog()
Change-Id: I105a106139f1a658e5feed022e224e4e933dbcc1
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-03-20 15:03:20 +00:00
Jarek Kobus
ab9f394138 Doc: Describe shortly ExecutableItem class
Change-Id: Ib146d1c99e51c56ca46172d293d00392f05ddd46
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-03-20 15:03:12 +00:00
Christian Kandeler
2cacb1444c doc: Update tutorial for creating mobile app
Change the wording so it no longer suggests we are shipping an outdated
CMake.

Change-Id: Ifa1d44017eb66fffd7b3dff17b2d5af2e247cca5
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-03-20 14:35:42 +00:00
Eike Ziller
f3426d9319 German translation: Axivion
Change-Id: Iee3c7e363eae13ce1db2004e84b371dbc773c75a
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-20 14:28:11 +00:00
The Qt Project
a38b1db252 Merge "Merge remote-tracking branch 'origin/13.0'" 2024-03-20 14:06:27 +00:00
Eike Ziller
90e1d96019 Merge remote-tracking branch 'origin/13.0'
Conflicts:
	cmake/QtCreatorIDEBranding.cmake
	doc/qtcreator/src/overview/creator-only/creator-keyboard-shortcuts.qdoc
	qbs/modules/qtc/qtc.qbs
	src/plugins/remotelinux/linuxdevicetester.cpp

Change-Id: I8434e41dcfbb50f6ed032a3e0af1591eb19b79eb
2024-03-20 15:05:58 +01:00
Marcus Tillmanns
9ed9d6fc8a Doc: Reword beginning of creator-keyboard-shortcuts.html
Change-Id: Id1f736c7855002d3ecd8c600d9897ae81c83947c
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-03-20 13:56:49 +00:00
Marcus Tillmanns
dd2942d157 Doc: Improve "Manage files in CMake projects"
Change-Id: I2fa40b005f534bc71789d4fd834307c7dca1b867
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-03-20 13:53:00 +00:00
Christian Kandeler
7e0b7b8eb1 Update qbs submodule to HEAD of 2.3 branch
Change-Id: Ib87697ebccf92f38c1ea30a1e56282b029840aae
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-20 13:49:25 +00:00
Teea Poldsam
5319fae46e Doc: Fix QDS docs warnings
Fixed some formatting issues and updated some links.

Fixes: QDS-12247
Change-Id: Ibca5791f8c2f6cbda50f604892d131787910804c
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-03-20 13:39:47 +00:00
Jarek Kobus
c8b66ebc77 Doc: Adapt withTimeout() to the recent changes
Change-Id: I6abd9515735c8197411081f04618eb09c7b28069
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-03-20 13:24:00 +00:00
Marco Bubke
3722710c42 QmlDesigner: fix icon generation
One missed #ifdef for the project cache.

Task-number: QDS-12253
Change-Id: Ib9fe2ef085d1208c3676fb184cb15899fa89bbde
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-20 13:14:19 +00:00
Marco Bubke
7de2ae2ff4 QmlDesigner: Add more tracing to project storage
Change-Id: Iee113981ffa49b4f03b7641e7030a2f19f917fc6
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-20 13:14:08 +00:00
Christian Kandeler
230bfa88a0 CppEditor: Fix soft assert when serializing clangd setting
This was probably introduced by a merge commit.

Change-Id: I5360b8fb25aa9cfbf8e6d3563b0219152a144815
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>
2024-03-20 13:13:53 +00:00
Marco Bubke
26870406cd QmlDesigner: Trace project storage exceptions
Change-Id: I58c261bea4cca6c5bede0d2ad504be8bc687ddc6
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-20 13:13:27 +00:00
Marco Bubke
99def2c337 Sqlite: trace exceptions
That makes it easier to see what got wrong in the trace. So less
debugging.

Change-Id: I26ec3d6a6f81cbd20871260a2b32123343a20618
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-20 13:13:18 +00:00
Marco Bubke
1087375b28 Nanotrace: Add instant event
Sometimes we have events without any duration

Change-Id: Iae81585051129b5c6a7983dff5e45161d6b6c389
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-20 13:13:11 +00:00
Marco Bubke
645acc4fc4 QmlDesigner: Speedup fetchTypeId by 5x
We gave now sqlite some hints how to merge the tables. That makes them
much faster. Still it is quite slow but we could introduce a caching
table.

Change-Id: I1f75820a53d648621a82dd719e8d8deb97e8d207
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-20 13:13:03 +00:00
Marco Bubke
ef96d232e5 QmlDesigner: Enable removal of trace points
The value function could stop the optimizer to remove  the trace point.
The convert to string function is only called if there is a enabled
trace point.

Change-Id: I6ead32638438438602ac2116ffd353c6ed70b32d
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-20 13:12:48 +00:00
Marco Bubke
438a208ffb Nanotrace: Use static string for arguments
Adding many small strings to a string can have overhead because there
have been checks. A static string simply cannot grow, so that overhead
is removed. It has the drawback that it can overflow but in that case
simply no arguments are shown.

Change-Id: Ia9106b6c49e396453eeb75b28df5a543a28dc8c9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-20 13:12:38 +00:00
Marco Bubke
14417135a4 Nanotrace: Use char append
Change-Id: I5a37eff39acd787265c5951237a3f17b3ea6eb5f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-20 13:06:58 +00:00
Marco Bubke
cea24ad00b Utils: Add char append to SmallString
Change-Id: I644db7635010da8bc29d87926a64c4e6939d7c83
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-20 13:06:46 +00:00
Teea Poldsam
b163510696 Doc: Update supported platforms
Fixes: QDS-12231
Change-Id: I884e723073e2b922ec594d5cc703ca55a5ebe11f
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-20 12:31:22 +00:00
Christian Kandeler
0a4b0e71d3 doc: Clarify which settings page to switch the theme in
While "Interface" is the first (and therefore default) tab, the user
might have visited a different one before, in which case it will become
the new default and the user will look in vain for the theme setting
there.

Change-Id: I66d3035d16aa75162616d08a021bc43c906a7133
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-03-20 12:26:41 +00:00
Christian Kandeler
c16e15f37b doc: Update information about main build system
Also clarify that the set of supported build systems is not fixed.

Change-Id: Ida2588c599a4fc4deadfd62b10fb47c2bbda5457
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-03-20 11:59:13 +00:00
Christian Kandeler
f75e26005f doc: Specify that the list of pre-configured build configs is not fixed
E.g. cmake has five of them.

Change-Id: I8521c99335b9b31a7ab5f9691de9639394450fd1
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-03-20 11:51:01 +00:00
Thomas Hartmann
d72f55bbd0 QmlDesigner: Fix issues with dynamic vectors
The conversion from Qt.vectorxd was not strict enough
and expressions like Qt.vector2d(7 / Constants.width, 7 / Constants.height)
were read as [7, 7]. Reflection was not handled properly and the [7,7]
was written on selection.

Fixes:

* Avoid reflection
* Improve Qt.vector parsing; Move code to C++
* Handle "real" expression case and show binding indicator
* Fix setting an expression. We allow the binding editor/expression
  indicator only on the first component of the vector

Task-number: QDS-12242
Change-Id: I6707bdac860852d96d416adbe911d43fe9128e8a
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>
2024-03-20 11:25:04 +00:00
David Schulz
a3668827aa Doc: improve create python project tutorials
Use consistent paths in screenshots and instructions. The paths from the
screenshots are preferable since they are not inside a default Qt
installation location.

Change-Id: If9f0bca58a13a66559eae953ccaf19abb2dc7e14
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-03-20 11:14:41 +00:00
Marco Bubke
4fcff3adca Nanotrace: Use number append overload
Change-Id: I9da305ef75dda69ec21d0ef032adea2fa89c1023
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-20 11:14:13 +00:00
Marco Bubke
4fc1ca984f Utils: Add number Smallstring::append
Saves some overhead.

Change-Id: I7d46e41f29e66cd01f5a11f16e6f78ff7a4d0aa8
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-20 11:13:53 +00:00
Marco Bubke
2520d5ce9c NanoTrace: Remove unused std::string
Change-Id: I7eddcf946b9519f11e61a71861977ad2714df4e5
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-20 11:13:39 +00:00
Marco Bubke
c9527e0341 Sqlite: Improve tracing
Change-Id: Id5d6ee448a7f2cf06cda2e2776f3dbbe7c8f66c4
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-20 11:13:33 +00:00
Marco Bubke
bfaef2cbb7 QmlDesigner: Add tracers for type debugging
It is really hard to debug the project storage because it gets so much
data. With the tracer is should be a little bit easier.

Change-Id: I79d60c6fbc32ba3fd7bdcc78916c1aa48f73e125
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-20 11:13:22 +00:00
Eike Ziller
3ad0f8900b Doc: Improve iOS documentation
- make it clearer that the restrictions are only for iOS 17 devices
- refer to Xcode 15 instead of 7
- remove wrong and not very useful section for checking/changing Xcode
  version
- fix screenshots

Change-Id: I1d574ee775c6e1a9db1df8b60b6e5b8aa9dd057f
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-03-20 10:48:55 +00:00
Christian Kandeler
6e4d5b8583 doc: Adapt qbs build to changes in directory layout
Change-Id: I45f848aa65c978b7d7117b7f990fb5289d921df2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-20 10:23:33 +00:00
Christian Stenger
74a17e4521 Tests: Fix expected values
Amends 87ca7882c1.

Change-Id: I922b1afd3b62584717a913a3fcc5c1c2d2223cc8
Reviewed-by: hjk <hjk@qt.io>
2024-03-20 10:06:33 +00:00
Christian Kandeler
aaf839bcf0 CppEditor: Do not emit a signal when setting "categorize references"
This is not an actual setting and should not result in a signal emission.
Amends faa595e38b.

Change-Id: Ic3816ca80090594659be66f5558ce52b921c0f02
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-03-20 08:54:29 +00:00
hjk
5eca9c5614 Doc: Rename "Export SVG images" to "Create pixmaps from SVG images"
Also switch the order with 'View Images', which is likely the more
common use case.

Change-Id: I2a047141976b7ec7a45cf930be5bf972a766d183
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-03-20 08:35:23 +00:00
Esa Törmänen
8f2349815d Doc: Update QDS version compatibility with Qt for MCUs SDKs
Update the QDS version compatibility with Qt for MCUs SDKs page so
that it includes the latest/upcoming QDS (4.4, 4.5) and Qt for MCUs
(2.7, 2.8) releases.

Task-number: QDS-12270
Change-Id: I0380de777b9440b3bd01a984711833ff3d8d2890
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-03-20 08:17:00 +00:00
Alessandro Portale
1b408947b0 Welcome: Design update round #2
User feedback was gathered and in part implemented in form of a design
update. Smaller fonts, icons and gaps in the projects/sessions screen
and in the examples tiles.

Change-Id: I69d0d9ae21ba855feceeb77d620aa5b556377808
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-03-19 18:33:11 +00:00
Thomas Hartmann
d114074afd QmlDesigner: Workaround issues with QJSValue in Qt 6.7.x
This forks code from Qt to fix an issue with JSValue.
We must skip QJSValues when iterating properties
since copying or constructing the QVariant crashes.

Task-number: QDS-12263
Change-Id: I8db701cee94dccd7fe254c9473dc25b87f8a04f8
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-19 16:37:40 +00:00
hjk
87ca7882c1 Debugger: Fix QPair dumping
Task-number: QTCREATORBUG-30538
Change-Id: Iee17aec458d9ab69cd4349bedb26b1a2270ca41c
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2024-03-19 16:00:23 +00:00
Jarek Kobus
1f516cacf7 DeviceSettingsWidget: Don't leak QLayoutItem
According to docs for QLayout::replaceWidget(), the returned item
should be either deleted or inserted somewhere else.

Change-Id: I02da36dd0d3fe7de7fa04747d26ea01620349421
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-19 13:52:58 +00:00
Jarek Kobus
c2b94568d9 LinuxDeviceTester: Fix a crash on closing dialog when tryToConnect()
Make a call to tryToConnect() a yet another task inside the task tree.
Prolong the lifetime of the linux device until the tryToConnect()
running in a separate thread is finished. This fixes a crash
when canceling the test and closing the preferences dialog while
tryToConnect() is still running.

Amends e8ad29d3af

Change-Id: I5aca6c9c3de0792421b9774faf45cd463854265e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2024-03-19 13:30:23 +00:00