Commit Graph

88653 Commits

Author SHA1 Message Date
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
hjk
2e86420052 Debugger: Add context menu entries to enable/disable all breakpoints
Fixes: QTCREATORBUG-30564
Change-Id: I8b0458eed859c23f1ef9d40c0ad7cbe6b61ecf90
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-19 13:21:39 +00:00
Leena Miettinen
9884620724 Doc: Remove "Coding", "Finding", and "Configuring the Editor"
- In the QDS Manual, edit the "Code" view docs
- In the QDS Manual, add topics related to coding to the "Code"
  view docs by using \ingroup and \generatelist commands

Task-number: QTCREATORBUG-29361
Change-Id: I0966986a3b01b3551e8b68265e22fe86d1d5933d
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-03-19 12:37:53 +00:00
Leena Miettinen
05b640abc0 Doc: Turn "Checking Code Syntax" into how-to and reference topics
Task-number: QTCREATORBUG-29361
Change-Id: I96c4384dbde04189be3c80c3b21ee09ca33fb90c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-19 12:37:45 +00:00
Leena Miettinen
263d5ff1e6 Doc: Update info about automatically generating navigation links
The \nexpage and \previouspage links in the QDS Manual are now
automatically generated according to the list in the "All Topics"
topic.

Change-Id: If93c605863269056060b1585641feac167d95f25
Reviewed-by: Esa Törmänen <esa.tormanen@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-03-19 12:34:11 +00:00
Alessandro Portale
f94ef9fdb7 Tests: Add *.figmatokens to manual/widgets tests
Change-Id: Ic4be9c65508052f95c07a5466ac397c060524a41
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-03-19 11:00:12 +00:00
Leena Miettinen
fadfb93b8e Doc: Fix broken links
- Add a dependency to qtqmltest (Qt Quick Test)
- Fix an internal link
- Fix capitalization in links to Qt docs, which now
  seems to matter
- Add the "Qt Qml" link as an external resource, so it works
  regardless of the Qt version used

Change-Id: I0550973237b0df7b328ca202a4188d970af3417d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-19 10:58:21 +00:00
Cristian Adam
0a27bc2e78 Clang: Use -isystem for system headers
The project manager was passing correctly the system headers, but the
compileroptionsbuilder was ignoring them by having UseSystemHeader::No.

This change makes the project's view to be reflected in clangd's
compile_commands.json.

Fixes: QTCREATORBUG-30474
Change-Id: Ie3b80642e27ada4c8c8725f21e3cfbb2a4051aa0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-03-19 10:33:49 +00:00
Christian Kandeler
f5ba46ccbd CppEditor: Tell clangd about path to CUDA
At the very least, this fixes an ugly warning message for .cu files. May
or may not improve other things as well.

Task-number: QTCREATORBUG-23113
Change-Id: If389fd67a153f7da13e5d4d465189aaef352c976
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-19 10:20:54 +00:00
Christian Stenger
f56542b39a Tests: Fix environment for test run
Change-Id: I32e491d06d9041b8ba6ad24badd6aa383ba1d163
Reviewed-by: hjk <hjk@qt.io>
2024-03-19 10:05:45 +00:00
Miikka Heikkinen
dd31886649 QmlDesigner: Fix fly mode camera rotation direction
Flip x-rotation direction when camera is upside down to keep camera
rotation natural.

Fixes: QDS-12186
Change-Id: Ia9f166cafa27a09a4dd5a72dbb8ec28f00239564
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-03-19 09:23:43 +00:00
Eike Ziller
1573a92150 macOS: Remove usage of deprecated API
`NSApplicationActivateIgnoringOtherApps` is deprecated and doesn't have
any effect any more. Switch this to `NSApplicationActivateAllWindows`
which we actually want when running an application, and remove an
unneeded cast.

Change-Id: I75849533e4b172db577d5484ef12c8ee4df20d59
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-19 08:11:47 +00:00
Eike Ziller
4f8e81068c German translation: iOS
Change-Id: I793ccaf13a7835e8615d51cf295b2119983b20b8
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-19 08:11:09 +00:00
Eike Ziller
d481d2f760 German translation: TextEditor and related
LanguageClient, VcsBase, Perforce, Git,
Clang*, CppEditor

Change-Id: Ib2f38e9cd37e4e2560491fdad81c5b2bc7e238f6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-03-19 08:10:53 +00:00
Christian Stenger
27ce963481 Utils: Fix build with Qt6.4
Amends ba3f0bc841.

Change-Id: Ib405096a51f4c2583e9e3c281bfea8f6eaa44b48
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-19 06:29:48 +00:00
Jarek Kobus
d5e8f70192 VcsBaseClientImpl: Don't leak VcsCommand instances
The running VcsCommand may leak on shutdown. Make them always
a child of a guard object.

Change-Id: Ie2d07d15cd13f1c08636bb1e9c5face09c6a782d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-03-18 21:56:08 +00:00
Alexandre Laurent
62832ea958 Translate remaining string in French
Change-Id: I68f3e92270dce73ce72dced3bad9d89ca94c82f4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Johnny Jazeix <jazeix@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Olivier Delaune <olivier+qt@delaune.info>
2024-03-18 20:01:46 +00:00
Leena Miettinen
44fe5a9c5c Doc: Auto-generate navigation links based on "All Topics"
This does not change what you see as values of \previouspage
and \nextpage in the source files. However, when you build the
docs, QDoc replaces those values with links to the next and
previous page from the list in qtdesignstudio-toc.qdoc because
that page contains "\title All Topics".

So, with this change, you need to keep the list in "All Topics"
up to date.

Change-Id: I0996e383cbd60b7f4297524e4141a2d7af6fae13
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-03-18 15:04:55 +00:00
Ahmad Samir
ba3f0bc841 Adpat to changes in QAbstractFileEngine/Iterator in qtbase
- Replace hasNext()/next() with a `bool advance()` method
- Replace QAFE::FileTime with QFile::FileTime, they are identical
- QAFE methods now return std::unique_ptr, which matches reality as call
  sites stored the pointers in a std::unique_ptr anyway

FileIteratorWrapper:
State::BaseIteratorEnd is only needed when using hasNext()/next(),
hasNext() changes m_status to State::BaseIteratorEnd, then next() checks
that and changes m_status to State::Ended; this isn't needed with
advance() since it's only one method.

Change-Id: I4414f334715237a2fc13ace6f4733d975e2cfaa3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-18 13:15:14 +00:00
Marco Bubke
7448d44dc5 Nanotrace: Fix unsed arguments
The arguments must be set because we otherwise access old data.

Change-Id: I18e83297b80558b112af266bd50779bef8da9e94
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-18 13:01:35 +00:00
Marco Bubke
a08837e8bd Nanotrace: Use begin and end slices instead of duraction slice
If an exception is thrown or the program is abortet there is still the
begin of a slice. Because a duration slice is only wirtten at the end we
get no slice.

Change-Id: I8b05e9ae045517a503c2a6f00936b05715b812ca
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-18 13:01:27 +00:00
Marco Bubke
402ac58d05 QmlDesigner: Fix missing BreakTemplateDeclarations
Change-Id: I00c042e5e0a04705e3c2773dca5499d9bfa32949
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-18 13:01:16 +00:00
Marco Bubke
04cbe49267 Nanotrace: Fix dangling reference
As EventQueueData was derived from EventQueue the order of
initialization was inverted. So we got dangling pointer. Merging
EventQueueData into EventQueue fixes the dangling references.

Change-Id: I3d9cee492304132fa612d6d19324656df597ec99
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-18 13:01:04 +00:00
Marco Bubke
82b4d34c9c Nanotrace: Fix dangling tuple
The tuple are constructed on the stack, so we cannot hold references to
it.

Change-Id: Ia02bf21516c97eb67eca8fd56e68dbd10878ca9e
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-18 13:00:51 +00:00
Marco Bubke
244904303d QmlDesigner: Add lite designer to qmldesigner project management
Task-number: QDS-12102
Change-Id: I3abea3a5b32128db984a9b0c49b3044a42d9f72d
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-18 13:00:28 +00:00
Marco Bubke
15d0ab5358 QmlDesigner: Remove unneeded break
Change-Id: I051bf442870ce1ec429565bcbf15068d22eb16a9
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-18 13:00:21 +00:00
Marco Bubke
0cd74fe22e QmlDesigner: avoid extra widgetInfo() call
widgetInfo() should be cheap but people make expensive stuff inside the
call. So we should try to avoid to many calls.

Change-Id: I66b0a5431471732dca934fc03efb307e2617fd65
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-18 13:00:01 +00:00
Marco Bubke
f8d74b5a05 QmlDesigner: Avoid dangling pointer to the stack
Pointer to temporaries create dangling pointer. So we have to copy the
tuples. The leafes still only contain references.

Change-Id: I37900be569283324178e223829f913fb4ccba16e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-18 12:59:54 +00:00
Marco Bubke
d632a7c82e Nanotrace: If the process is terminated flush the event queues
That terminate handler is only installed if any event queue is
activated. That is only the case if you compile with a special
option.

Change-Id: I4d8661c0fa11d8bb14b49b7b963471f626b3b950
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-18 12:59:47 +00:00
Marco Bubke
27cfd2e240 Sqlite: Add convertToString to Sqlite id
Change-Id: I52d9b6860d24d715fdd6b584ffc2f8345f6b99c4
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-18 12:59:37 +00:00