Commit Graph

88532 Commits

Author SHA1 Message Date
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
hjk
fc4067a118 Debugger: Annotate internal debug output with engine type
Makes it easier to reason in mixed setups.

Change-Id: I4f7aa43847dab51d4041fb1b9850ed9860a6dafc
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-14 08:31:36 +00:00
hjk
5ebd4c833e QtSupport: Restrict QtVersionManagerImpl lifetime to plugin lifetime
This occasionally triggered crashes on static destruction when
hard-killing Qt Creator.

Giving QtVersionManagerImpl the plugin as QObject parent effectively
re-instates the lifetime behavior from before we moved to delayed
initialization. We keep the delayed initialization, at the (acceptable)
prize of a somewhat quirky setup.

Change-Id: I1b4be284a1b573325ed5cc441778eeb48b94c24b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-14 08:30:55 +00:00
Leena Miettinen
75b9b31c62 Doc: Turn "Using GitHub Copilot" into a how-to topic
Task-number: QTCREATORBUG-29361
Change-Id: Ie682ebd399b0f478d106dba9876f4fea9834d340
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-14 08:07:01 +00:00
Marcus Tillmanns
1942506b2c Utils: Fix IntegerAspect::addToLayout
The UI should show the volatileValue, not the value().

Change-Id: Ia4b4e596e757cfb3590d6df2f359f6a90f7c5790
Reviewed-by: hjk <hjk@qt.io>
2024-03-14 05:49:17 +00:00
Tim Jenssen
6ea8c6290c Merge remote-tracking branch 'origin/13.0' into qds/dev
Change-Id: I3adcadf18eb19344461c5a6a0b6d3aec9045430c
2024-03-13 18:25:08 +01:00
Eike Ziller
cdad61d08a QmlDesigner: Add optional dependency on LicenseChecker
It is important that the LicenseChecker's initialization (if that is
available) happens before QmlDesigner's, so add an optional dependency
to reflect that.

Add a PLUGIN_MANUAL_DEPENDS option to add_qtc_plugin, which explicitly
specifies the name, version and type. The existing PLUGIN_RECOMMENDS
requires the plugin target to exist to extract the plugin's version.

Change-Id: Ie2cf84e75964ce91ed8bbcdbeee9fa9770bed641
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-13 17:19:07 +00:00
Ali Kianian
43ee39361f QmlDesigner: Add Ids to icons for Squish tests
Task-number: QDS-12204
Change-Id: Ib63409e9092db4446756ec9dec6092947d5f0697
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-03-13 15:16:41 +00:00
Alessandro Portale
e604f285e8 Android: Provide direct JDK download link to required version
This changes the JDK download link to the JDK 17 packages on
adoptium.net, which is the latest source for JDK binaries for all three
host OSses.

Fixes: QTCREATORBUG-30335
Change-Id: I54322c82b7854d948fe15462f198f8eac1f58981
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-13 14:51:58 +00:00
Christian Stenger
e97791ea6a Axivion: Make columns movable again
This got lost when replaced the default header implementation
with a customized one.

Change-Id: I5824b0e35a39746eb7056fbc95ea085505129f4e
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-03-13 14:48:32 +00:00
Christian Stenger
4a17bbbfd1 Axivion: Left-align the header columns
Change-Id: Ie1384cf10bc30e12cac3c8b1d120edb030738a22
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-03-13 14:48:27 +00:00
Ali Kianian
9780e05ef2 QmlDesigner: Check the validity before accepting the import dialog
Fixes: QDS-12068
Change-Id: I5341214b43edf8fb7d3693a861a09c7fd3461ac2
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-03-13 14:15:59 +00:00
Eike Ziller
988832ae76 Do not use original ID when creating kit for vanished target
If we use the same ID for the new kit as for the original, we get into
problems if the original kit re-appears.

This can happen when uninstalling a Qt version with the online
installer, and later re-installing it. Or when changing the install
settings path to a different online installation and back again via the
command line or the "Link with Qt" functionality.

Change-Id: Id99a3560ebed6264ad13dab5ff48945b30a8229f
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-03-13 14:14:02 +00:00
hjk
1c64f2bd4e AppMan: Fix crash when creating AppManagerInstallPackageStep
... in a situation where no device is present. This happened to me
when trying to restore a "vanished" kit.

Change-Id: I7019385af115a5cd653b9a79e4420f1f8df4797d
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
2024-03-13 14:06:03 +00:00
Eike Ziller
d70450d849 Examples: Ignore remote Qt versions
While showing examples from remote Qt versions would probably be
possible, it is not a great idea performance-wise.

Task-number: QTCREATORBUG-30512
Change-Id: I2d00640bc8cbb3b19a89af1b17108e28604ef5a8
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-13 13:59:26 +00:00
Jarek Kobus
d738d3ab95 Axivion: Ensure the username matches on unauthenticated access
Disallow the unauthenticated access when the username doesn't
match the dashboard's username.

Change-Id: If4a38091b0bba42d89da911be45f823c248cc25f
Reviewed-by: Andreas Loth <andreas.loth@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-13 13:54:18 +00:00
Jarek Kobus
5211a9457a Axivion: Break the authorization process on error
Break the authorization process on any error coming from
unauthorized access trial except the UnauthenticatedException.

Call onUnauthorizedGroupDone only after successful execution
of dashboard's dtoRecipe(). Rename it to onUnauthorizedDashboard.

Change-Id: Ia7ce0f326c91722d0e68d5228cb46b94b47a7892
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Andreas Loth <andreas.loth@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-03-13 13:54:03 +00:00
Ali Kianian
d90828b055 QmlDesigner: Detect literal types from string values in ModelEditor
Fixes: QDS-12213
Change-Id: I58d56c42b94be99309a344e084c68703b0b25b82
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-03-13 13:45:23 +00:00
hjk
b33fee0ded Debugger: Be a bit more explicit about states while quitting
... and make sure to use notifyInferiorIll only in states
where the inferior might still be alive.

Change-Id: Ie002cd8b70cc610b15bab00554c027494a0ad2e3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-13 13:29:35 +00:00
Ali Kianian
fbb8bd89f9 QmlDesigner: Set null value for the empty properties of json objects
Fixes: QDS-12211
Change-Id: I0b85c6fb2f059317ab412f083e2130e8c1cfb6b6
Reviewed-by: Shrief Gabr <shrief.gabr@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-03-13 13:01:04 +00:00
hjk
a7bf5f17c5 CppEditor: Code cosmetics in cppeditoroutline.cpp
Mostly inlining and namepsaces.

Change-Id: Ib5d22d40844d55ae029158d8cf3d694ecf2bc4c4
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-03-13 12:47:29 +00:00
hjk
a2ee1043c7 RemoteLinux: Fix crash on running test of an already configured device
I got a crash when clicking "Test" in the configuration of an
already existing ("Local Remote") device that was intentionally
not yet set up with working authorized keys after dismissing the
qtc-askpass dialog. The full reason is unclear, but this here
fixes it for me.

Change-Id: Ie07b89b85576beb59583370191e337fd1219db51
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-03-13 12:47:09 +00:00