Commit Graph

88532 Commits

Author SHA1 Message Date
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
Marco Bubke
462f46db30 NanoTrace: Add missing category constructor
The constructor for the category was missing. Otherwise the CTAD is not
working.

Change-Id: I4d4c2aaba8915fbbade0b8ce4f1310046d748cd1
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
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:19 +00:00
Marco Bubke
5159d7ebe4 Nanotrace: Support enumeration arguments
Change-Id: I75f7576f28231fc35269cbb3bb46654739cf7f18
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 12:57:33 +00:00
Alessandro Portale
8e9cf9604f QmlDesigner: Fix landing page theming
The QmlDesigner landing page appears if a *.ui.qml document is open, and
user selects the "design" mode. Between QtC 12 and 13, the landing page
broke (unnoticed) due to the removal of the "Welcome_*" theme colors.

This change lets the Landing page use the new color tokens. A few fixes
in the PushButton component were needed.

Fixes: QTCREATORBUG-30547
Change-Id: I93319665bb283fba7f7a8892b671aaeb11479c7e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-18 12:55:46 +00:00
Eike Ziller
6a78272ac8 Fix visibility of vulnerability warning for QML debugging
The warning was not shown when opening a project with the QML debugging
option enabled.

The `changeHandler` was explicitly called at construction, but at this
point the `warningLabel` doesn't have a parent. The `setVisible` call
was skipped in this case, to prevent opening a toplevel window (for a
short time) for it until it has a parent.

Unfortunately there is no Qt API for setting the "visibility to the
parent". Instead invert the logic: Let the label have default visibility
to start with (which is "visible if the parent is visible"), and force
it to hidden in `changeHandler` if necessary.

Amends eda5fbd645

Change-Id: I69b86a967ee1fe7bd3d5d035765349981b64eb72
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-18 12:29:40 +00:00
Cristian Adam
2c598814bb CMakePM: Always set the comiplers from the CMake Preset probe
In cases when a CMake project is using a CMake preset with a toolchain
file, the CMAKE_C|XX_COMIPLER value was not set in the CMakeCache.txt.

This commit makes sure that the cache from the CMake preset probe
contains CMAKE_C|XX_COMPILER values.

Task-number: QTCREATORBUG-30474
Change-Id: I63ac6fe2b043e49dda98e286b6d85950e34be920
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-03-18 11:56:18 +00:00
Leena Miettinen
85b3413daf Doc: Fix the value of \page for "Link projects with GitLab"
Using the same value for two topics hides the old topic, but
QDoc did not complain during local builds.

Change-Id: Id5d927cca60c9d288323429c99969475c9ecd15b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-03-18 10:34:11 +00:00
Marcus Tillmanns
3d8d85b5b9 Terminal: Ignore "height = 0" resize events
ConPTY on windows will send "clear line" characters in response
to resizing the PTY.

During re-showing the terminal pane the widget receives a "height=0"
resize event. We have to ignore this otherwise the conpty might try to
clear the screen.

Another issue was that we are calling resize on the pty even thought the
process has ended and won't be able to respond to the clear attempty by
the pty anymore.

Fixes: QTCREATORBUG-30523
Change-Id: I24caeaffb31d255a0640952e2d35bda23fd16280
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-03-18 10:03:02 +00:00
Thomas Hartmann
6a5056dc22 QmlDesigner: Hotfix keep qml cache enabled
Task-number: QDS-12264
Change-Id: I4fb58331141c72eedd74b3d7ac8fd8462ae3158f
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-18 09:50:04 +00:00
Mahmoud Badri
244752f6af QmlDesigner: Hide Flags combobox's popup when opening the cog menu
Otherwise the cog menu appears below the popup

Change-Id: If3b541bd98b2d771687373c9259ad017349d4215
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-03-18 09:30:22 +00:00
Leena Miettinen
10858b1f68 Doc: Fix minor language issues in Axivion docs
Some text had gone missing.

Change-Id: I9b699f8b47d5897b11dae7aafa8c738f95774abf
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-18 09:28:28 +00:00
Robert Löhning
301b06ca4c SquishTests: Make sure targets' details are collapsed after choosing
Other code expects all of them to be collapsed, but Creator 13 expands
them when checking. This change makes sure they are collapsed afterwards.
The new code is backwards compatible with the old behavior.

Change-Id: Ic698fb17f3ad1573195e7e0f7bcf722beed74ffc
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-18 08:51:44 +00:00
Eike Ziller
720ab253b1 German translation: Debugger
Change-Id: Ib650492a2a1c5cc1e8e1dcf5fd87e0b638239a9d
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-18 08:36:05 +00:00
Leena Miettinen
e7351a8024 Doc: Add links to docs for project-specific settings
...to "Configuring Projects"

Turn "Linking Projects with GitLab" to a separate how-to
topic.

Some style edits.

Change-Id: I3fd68b303126770965c7ca68ca2e041daf593d74
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-03-18 07:39:15 +00:00
Christian Kandeler
faa595e38b CppEditor: Introduce per-project code model settings
Change-Id: I325cc39e60d4b1f0fba1651502d772bfb9c6a91c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-03-15 14:21:21 +00:00
Christian Kandeler
812326eadc CppEditor: Support try/catch in built-in indenter
Fixes: QTCREATORBUG-29452
Change-Id: Icf3d86a6080aeb741436800ae77af7c8bec3155c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-15 14:18:30 +00:00
Miikka Heikkinen
3031bbfd07 QmlDesigner: Fix assert
Url properties should be set as urls to avoid asserts.

Change-Id: I990e731f4555943ce35443226ab053286c58bd58
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-15 14:15:11 +00:00
Alessandro Portale
e0cf25fb55 Spinner: Allow setting the spinner color
Deeply under the hood, the color for ther Spinner was determined by the
QApplication palette, color role "Text".

In order to run the spinner on a dark toolbar (in a non-dark theme),
though, the color needs to be bright. It is the case for the
ScreenRecorder.

This change adds a color setter to the Spinner classes, adds colored
Spinners to tst_spinner and makes use of the feature in the
ScreenRecorder.

The default color of the Spinner remains QApplication palette, color
role "Text".

Change-Id: Ia75758707f225b1f994e73c5a314478101c80f5e
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-03-15 14:09:30 +00:00
Alessandro Portale
9606f81bc8 ScreenRecorder: Fix "show dialog or settings" logic
If the user selects "Record Screen" while the ffmpeg/ffprobe are not
set, the ScreenRecorder settings are shown. The ScreenRecorder dialog
did open up after the settings page, even if the user just pressed OK
without setting the tools.

With this change, not the settings page return value determines whether
to show the ScreenRecorder dialog, but rather a second check if the
tools are set/registered.

Change-Id: I35b8f4e3afe7ea5e6834fcff74ce8f73d3a115b4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-15 09:42:47 +00:00
Jarek Kobus
f8cf71e4ba Help: Don't crash on shutdown when (un)registedDocumentationNow()
Put the future into the future synchronizer.
Otherwise, when (un)registedDocumentationNow() is still executed
on shutdown we are destroying the locked mutex and crash.

Change-Id: Ic8e7f8252719a3015101a0f5fc7b48ba57956562
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-15 09:10:37 +00:00
Christian Kandeler
45de53d353 LSP: Add type hierarchy support
Fixes: QTCREATORBUG-28116
Change-Id: Ibaed23144f63fa84fa97ae9106d0f0baf8f53118
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-15 08:49:20 +00:00
Robert Löhning
d54e98cdb8 SquishTest: Update sources for testing qbs
The old sources used deprecated features.

Done by:
1. Assuming that current Creator works correctly because
   it is passing the test with the old sources.
2. Replacing the .tsv's contents with what Creator
   generates from the new sources on Linux.
3. Removing everything from the .tsv which is not found
   in the same place on Windows.

Change-Id: I31f0f1a46c1972d8c717c216275dd453ca74fc27
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-15 08:25:14 +00:00