Commit Graph

88653 Commits

Author SHA1 Message Date
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
Robert Löhning
871b91b843 SquishTest: Clone sources just in time for testing qbs
...to decouple them from the sources used in other tests.

Change-Id: I80b3ea1478cdffdc28933e4320971f98a11d1898
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-15 08:24:44 +00:00
Christian Stenger
7e01d90824 QmlDesigner: Fix build
Change-Id: Iadf44d41d1f5236fa6311b93a4721829018eea6f
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-15 08:04:01 +00:00
Christian Stenger
699a9aa04a QmlProjectManager: Fix qbs build
Change-Id: I538c03d4f914510913e84c29748ab6f414a086c4
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-15 08:03:49 +00:00
Shrief Gabr
1ed3235e84 EffectComposer: Toggle "Assign to.." button based on component selection
Task-number: QDS-12148
Change-Id: I1f44df7c6c027c36c09f7c4d74e4dd609542c5b8
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-03-14 21:43:05 +00:00
Jarek Kobus
4a7f3db615 ToolChainOptionsPage: Don't leak QMenu
Change-Id: I2d123b72a28f9aa9c566f0b186817c94e5ecacd3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-03-14 15:52:07 +00:00
Eike Ziller
7fbb7e0bee Bump version to 13.0.0
and fix copyright year for the Qbs build

Change-Id: If9f9d152c9a8e66274cfbee3198087848e0fe74c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-14 15:32:15 +00:00
Jarek Kobus
92fca24842 SystemSettingsWidget: Don't leak label and combobox on non mac host
Change-Id: I9968a38055a8c1224aa09aad34ef5b3a30bd3490
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-14 15:19:33 +00:00
Leena Miettinen
4fa5422026 Doc: List Tutorials as a separate category on the front page
Add the following topics to the creator-tutorials group:

- Building and Running an Example
- Debugging a C++ Example Application

Task-number: QTCREATORBUG-29361
Change-Id: Ib6de92e99caf552ee8337b49af48bd04d6760474
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-14 15:17:06 +00:00
Leena Miettinen
9fa1dbcd3c Doc: Turn "Semantic Highlighting" into how-to topics
And move the general information to the Overview (or the Code
view docs in the QDS Manual).

Task-number: QTCREATORBUG-29361
Change-Id: Ib1d13f3d81d707691c84aa4241ed28662e2bc8ee
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-14 15:16:37 +00:00
Leena Miettinen
ebb3ad8d47 Doc: Turn "Using Qt Quick Toolbars" into a how-to topic
Task-number: QTCREATORBUG-29361
Change-Id: I5ed2aa9322f2d83dc8c58a6254a7cde5186252be
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-14 15:16:09 +00:00
Tim Jenssen
9ce7aaccc5 Merge remote-tracking branch 'origin/qds/dev' into HEAD
Change-Id: I9d13aa050b1c7fb0954e2b63d13da2922d8f7218
2024-03-14 16:13:25 +01:00
Christian Stenger
c9d51cfa4a Utils: Allow multiple edits of an environment variable
There is no reason to limit the environment modifications to unique
variables. The environment modifications are processed sequentially
from top to bottom and there may modifications that are done on the
same variable (e.g. once a prepend, once an append,..)

Change-Id: I8a187737be1108e537a926239088c6352dc92957
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-03-14 14:50:39 +00:00
Mahmoud Badri
36cdab7f98 QmlDesigner: Apply camera speed config icon
Change-Id: I15ec173221908e6317f6ee8cb9d2355c8686e43b
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-14 14:15:49 +00:00
Jarek Kobus
59669a929e LanguageClientSettingsPageWidget: Don't leak QActions
Amends 16decfec67

Change-Id: Ib567502944fd5efca9442c88af9f163391e147bd
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-03-14 13:54:47 +00:00
Jarek Kobus
5d005e7313 QtSettingsPageWidget: Don't leak m_model
Change-Id: Ia543612d741b60fa35528e1f1eeade232a8daa15
Reviewed-by: hjk <hjk@qt.io>
2024-03-14 13:50:20 +00:00
Mahmoud Badri
2547e377ae QmlDesigner: Add camera icon and update camera align icons
Change-Id: I96dbdf39a19642805485f135a101a5464bb4cbe8
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-03-14 13:39:59 +00:00
Christian Kandeler
71ada2b478 CppEditor: Consider all "else" branches
... in "Add braces to control statement" quickfix.

Change-Id: Ie9dde7692e72300d350029cac01b712795c6e200
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-03-14 12:44:13 +00:00
Leena Miettinen
63cbd5761e Doc: Update info about code pasting
- Pastecode.xyz has been replaced with DPaste.com
- The process has changed

Task-number: QTCREATORBUG-30209
Change-Id: I1c52923ada597bd741787a8c7ad66425ed5168f9
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2024-03-14 12:41:15 +00:00
Eike Ziller
cca64b14f3 ExternalTools: Fix drag and drop in the preferences
It mostly broke when Qt changed containers from int to qsizetype:
When we use QDataStream to serialize the value of `QList::indexOf`, but
deserialize that into an `int` variable, we don't get the same value
back.

Fix that, and also use begin/endMoveRows, which results in a better
selection behavior after dropping.

Fixes: QTCREATORBUG-30469
Change-Id: Ic99181ea7f75958766977ce7cf9d17c3d96103e2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-03-14 11:39:33 +00:00
Ali Kianian
a43b3e916c QmlDesigner: Use the trimmed value for urls
Fixes: QDS-12213
Change-Id: Id177a897849335e4cddca1af12ceca682c3f531f
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-03-14 11:24:04 +00:00
Mahmoud Badri
c581576e27 QmlDesigner: Use flags instead of int in FlagsComboBox
Fixes: QDS-12217
Change-Id: I0b87e084ac35ade002ed4d4f85ee141bd9e527b8
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-03-14 11:20:08 +00:00
Eike Ziller
c19f97bd23 Merge remote-tracking branch 'origin/13.0'
Conflicts:
	src/plugins/cmakeprojectmanager/cmaketool.cpp
	src/plugins/python/pythonutils.cpp
	src/plugins/qtsupport/baseqtversion.cpp

Change-Id: Ia3e35c763ff9475d17ad922718b54152209893b8
2024-03-14 11:35:07 +01:00
Miikka Heikkinen
b6318addef QmlDesigner: Fix right click selection on 3D view
Right click on 3D view will now always clear selection if
there is no model under the cursor when click happens.

Fixes: QDS-12227
Change-Id: I922fc79472ced4a3aa5e518c03731edf240e1d43
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-03-14 10:29:53 +00:00
Jarek Kobus
11752615c5 Process: Don't call waitForFinished() when process is not running
Fixes: QTCREATORBUG-30537
Change-Id: I8594fd6982e22044a43e5a67411b50f1bdc02426
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-14 09:22:22 +00:00
Marcus Tillmanns
685f452d91 SettingsDialog: Call Aspect::cancel on cancel
Previously the SettingsDialog did not call Aspect::cancel().

Without this, the volatile value is not reset if the user did some
changes before pressing cancel.

This "should" mean that re-opening the settings dialog should present
the changed values again. But since not all aspects are implemented
correctly, they reinitialize from their value instead of their
volatileValue.

When the Settings Dialog is reopened and applied, a warning is triggered
as the container thinks its dirty, but the Aspect::apply returns false.

Change-Id: I8fac66fc95f9118d69c789ced22481d121769f0b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-03-14 09:22:01 +00:00
Leena Miettinen
d5c357e67b Doc: Add path to "Initial Configuration"
It is not in the dialog described in the topic.

Change-Id: Ia0d1a399a2926e78cb8a0cc772abb7e2adc14840
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2024-03-14 08:57:04 +00:00
Leena Miettinen
f6c3318e94 Doc: Turn "Running on Multiple Platforms" into how-to topics
And hide it from the top level TOC in the manual.
Link to "How To: Build with CMake" from CMake topics.

Task-number: QTCREATORBUG-29361
Change-Id: If0522cdd9636ac075e8bdeafa0fc7248199aaf2a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-03-14 08:56:36 +00:00
Leena Miettinen
d0e240fd52 Doc: Turn "Pasting and Fetching Code Snippets" into a how-to
Task-number: QTCREATORBUG-29361
Change-Id: I0b2fe3cd2b3d3e3ec2c589ebcbd196832765c4ac
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2024-03-14 08:56:18 +00:00
Miikka Heikkinen
5a85490d4c QmlDesigner: Add 3D edit camera speed configuration dialog
Edit camera speed configuration consists of a slider and a multiplier,
which combine into the total camera speed.

Speed and multiplier are stored per scene.

Fixes: QDS-12187
Change-Id: I587c04cf80d1ca95b5a38c406158e46cdb91d06f
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-03-14 08:43:52 +00:00