Commit Graph

86167 Commits

Author SHA1 Message Date
Jarek Kobus
d7bae47f8a LanguageClient: Simplify openedDocument map
Replace custom OpenedDocument struct with custom deleter
of std::unique_ptr.

Change-Id: Ia7606fcad5337685aecae7c9dec064a5df4666fe
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-01 07:15:13 +00:00
Marcus Tillmanns
92996b74ae Python: Don't needlessly store default value
Task-number: QTCREATORBUG-24762
Change-Id: I3ca495b2696747d5323cc7eea4aac4d99e3adfd1
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-01 07:15:07 +00:00
Jarek Kobus
fffb69d078 LanguageClient: Avoid possible deletions on map growing
Replace the QMap with std::unordered_map.
Keep a std::unique_ptr to OpenedDocument as a hash value.
For clarity, declare Q_DISABLE_COPY_MOVE for OpenedDocument.

Change-Id: I46a0b486ea6bc1fd3d4014739a350ae587038dc8
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-01 07:15:04 +00:00
Marcus Tillmanns
4aab6a9173 LanguageClient: Don't needlessly store empty values
Task-number: QTCREATORBUG-24762
Change-Id: Ifdff1e3cd23ce287b0c7a17064587e995616d42f
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-01 07:14:57 +00:00
Marcus Tillmanns
20904b2411 Debugger: Dont show invalid hit count
The CDB Engine cannot report the hit count.
Instead of showing "0", we don't show the hit count
at all.

Task-number: QTCREATORBUG-20069
Change-Id: Ie8b5478ba85c7255b13070cb488599a2b2ca4537
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-01 07:14:43 +00:00
Christian Stenger
6d22196dd1 Axivion: Correctly reset dashboard
..to avoid displaying old data when switching projects
or "unlinking" in general.

Change-Id: I35f6995f2b010402d78ac3f9d1ca3760138423c0
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-01 07:09:19 +00:00
Christian Stenger
e77e89dede Axivion: Raise default limit for search
Minor clean ups.

Change-Id: I685f067e1830c41c958645de624c4e4dd360ac4b
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-01 07:08:29 +00:00
Christian Stenger
a5e6efd4f7 Axivion: Add state filter handling
Contrary to the web dashboard selecting a filter means explicitly
enabling this instead of disabling.
May change later with other UI improvements.

Change-Id: I83b32464a6d9bdab03dce78587962960900af08b
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-01 07:08:18 +00:00
Christian Stenger
1ea5f6fa92 Axivion: Handle path globbing for issues search
Change-Id: I92ad022cbea5f2460cc9ddcea1c05e0c87f83610
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-01 07:08:09 +00:00
Christian Stenger
5702374b72 Axivion: Handle owner parameter for issues
Beside this extracted recurring pattern into helper
function.

Change-Id: I48c34cac80bcc43ac7b0c6f7250bf8a8943869a9
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-01 07:07:41 +00:00
Christian Stenger
0b0941cbcb Axivion: Only update basic project info when needed
Extract functionality and guard against clearing and repopulating
if not necessary.

Change-Id: Ic4e5e87a3aa76f3b29d38e42b2b6be2ad64dcf1f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-01 07:07:31 +00:00
hjk
55e0036c0e Core: Remove Menu
... and replace the only use by MenuBuilder.

Change-Id: Iaf224bee4a07de6ed733b4c89f01c42d4103fcb7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-01 06:59:27 +00:00
hjk
17055f2e18 Core: Add a MenuBuilder
Use it in the AutoTest as example.

Change-Id: I357faba71f685ea05206a7e1ca93069a88787823
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-01 06:59:09 +00:00
hjk
6e7b83bb4a CppCheck: Use ActionBuilder
Change-Id: I385427232891826641760f463da26de3777387b6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-01 06:57:41 +00:00
David Schulz
aefd80094a Python: add requirements file to python project wizard
This is the de facto standard way of defining project dependencies. And
those files can be used to install dependencies via pip.

Change-Id: Ibfe37624b66d757cd331aee9c51090200b3bad39
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-01 05:44:46 +00:00
Alessandro Portale
7d659b446d Utils: Introduce StyleHelper::uiFontLineHeight
The "Text tokens" which are defined in Figma have an additional line
height value.

This change adds a getter function for the line heights.

Change-Id: I9513ac2f689292baf6e2c0a52fca8a1ec7f14dc1
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-01-31 20:06:14 +00:00
Alessandro Portale
03db2fd6c5 Utils: Add two fonts to StyleHelper::UIElement
Change-Id: I0b4ff271ef9fe91eb369c916ad886c7d39c2e060
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-01-31 20:06:05 +00:00
Alessandro Portale
4d56f9b840 Utils: Improve metrics handling in StyleHelper::uiFont
Figma designs have font sizes defined in pixels. We want to
define font sizes in points.

This change introduces the original font pixel size values from Figma
and provides the conversion to sensible point sizes.

Change-Id: Ic8356942a9bc033d2b5cd62863d2bd0a4cc6973b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-01-31 20:05:52 +00:00
Alessandro Portale
6cc66d2db7 Utils: Add "Spacing tokens" to StyleHelper
The spacing tokens are defined by the design team and used
in the Figma design specifications.

Change-Id: I9930d1471ac04ffe6826b900d8154f873c6710a3
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-01-31 20:05:42 +00:00
Alessandro Portale
d952c2fdd4 ExtensionManager: Remove unneeded include
Change-Id: I56244fbe26d8d00916977a60b801a1075b3e7010
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-01-31 20:05:35 +00:00
Tim Jenssen
a3a69d83f3 Merge remote-tracking branch 'origin/qds/dev' into 13.0
Change-Id: I09a0e8514c8ad7badaa7af6d101c71d5c96b5465
2024-01-31 20:25:34 +01:00
Tim Jenssen
a4d8348432 EffektComposer: Move plugin class definition to .cpp
And clean up a bit.

Change-Id: Ib3d69555ed3e05741570c9aa386e6b9c8ea449fa
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-01-31 19:19:38 +00:00
Tim Jenssen
4e651fdcbb QmlDesigner: remove unused include components/effectmaker
Change-Id: I566a686399249f51d12cdcfff04a750cbd4eeba8
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-01-31 19:07:13 +00:00
Ilya Kulakov
05d7070178 debugger: Fix RecursionError when fetching Qt version
When working with statically linked Qt qVersion may not be available.
In that case Qt uses the qtHookData which has type of quintptr.
This type is subject to SyntheticChildrenProvider because lldb
hooks are set up via a regular expression.

When SyntheticChildrenProvider is instantiated, it tries to fetch
Qt version, which causes another instantiation which again recurses.

The fix is to bypass SyntheticChildrenProvider via GetNonSyntheticValue.

Change-Id: Id00cdb3d0a0895bb02e4b3e4504c574d89be2ed0
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2024-01-31 18:27:50 +00:00
Thomas Hartmann
558b7fbc71 QmlDesigner: Clear text highlight when jumping to code
Change-Id: Ie382c2d9a45bdb57676a4c047bf750b0b7849191
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-01-31 16:16:25 +00:00
Thomas Hartmann
ff3f8a5bc7 QmlDesigner: Remove unused code
Change-Id: I56a72af9251a1908f160c0e92b56addf69143169
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
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-01-31 16:16:01 +00:00
Thomas Hartmann
284ef9108f StudioWelcome: Remove old welcome page
Change-Id: Ib01c0f1962b8d696ca57c8b6f96611b0d28e6ca0
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-01-31 16:15:47 +00:00
Christian Kandeler
40f84a37ff ProjectExplorer: Add locator filter for debugging a run configuration
Complements the "run run config" filter.

Change-Id: Id1603fbfcbccce83e4b1f36dbdfa7fc9ef58c14f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-01-31 15:31:46 +00:00
Eike Ziller
431690e04a Add change log for 13.0
Change-Id: Ibf909d44825f9054583f8c5f581015345e7fc890
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-01-31 14:50:23 +00:00
Thomas Hartmann
caa58954e0 Allow linking of colors in the Palette section of a theme
This allows entries like toolbarBackgroundColor=background_Muted.
The code tries to resolve assignments until all colors are resolved
or in the last step no new color has been resolved.
Cycles are not resolved, but do not lead to issues.

In case some colors are not resolved we use the original code to assign
black and show an error message.

This also add the possibility to include ini files like this:
Includes="base.ini"

Change-Id: I31124a59dffca45d14b81d528ba7c88220e57577
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-01-31 14:42:19 +00:00
Jarek Kobus
46769e72e4 DocumentManager: Replace QMap with QHash
The key is a pointer, so use QHash.
Simplify some lookups.

Change-Id: I3304d9cd8fd0456877d0f3fb66d2b872d23fa86a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-01-31 13:16:42 +00:00
David Schulz
d651d8b41f GlslEditor: Fix crash in GlslHighlighter
since the async highlighter implementation the parent is not a
TextDocument anymore, but a QTextDocument. Pass the required mimeType
via the SyntaxHighlighterRunner now to the SyntaxHighlighter.

Change-Id: I0afcbe68719195649b4b7040416a743cb01214df
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2024-01-31 13:15:44 +00:00
David Schulz
256ae21c07 TextEditor: remove unused include
Change-Id: I500cb91008f9a3d25f2648ce15abecf4be8aae2e
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2024-01-31 13:15:32 +00:00
David Schulz
6888c07f11 TextEditor: move struct to implementation file
Change-Id: I40ed45ff5ee1f392514e24ab17cd0c3ec7c25dc6
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2024-01-31 13:15:11 +00:00
Pranta Dastider
2b59676b49 QmlDesigner: Update images in the 3D Textures document
This patch updates the old images in the 3D Textures
document screenshot. Some descriptions were updated
to keep it relevent with the new changes.

Fixes: QDS-11564
Change-Id: Ia1acb9199d76e202373a45e801d290d7b1ae8505
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-01-31 12:43:14 +00:00
David Schulz
f4b3b85fee TextEditor: Merge Base- and ThreadedSyntaxHighlighterRunner
Change-Id: I38ad01a895eabba99b2e554f3ae9bef85f32bb3b
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2024-01-31 10:20:56 +00:00
Samuel Mira
2a430a5fa4 Update supported feature list for MCU in QDS 4.4 docs
. Noted that StateGroup is disabled now
. Removed the part about the need to configure QUL to use ts files

Task-number: QDS-10577
Change-Id: Iedf21549ef9e32e84629eb43f4e15d43bac67dd6
Reviewed-by: Esa Törmänen <esa.tormanen@qt.io>
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-01-31 08:53:19 +00:00
Dominik Holland
1db28206c0 AppMan: Remove Manifest copy constructor
Change-Id: Ia3c756b5e77fd5f13d70f27ec995df8152120dae
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-31 08:51:38 +00:00
Jarek Kobus
728c03ca7c Async: Disable onResultReady test
To be enabled again when QTBUG-119169 is fixed.

Task-number: QTBUG-119169
Change-Id: I0a889faf3726d53ced11cecfc7c569f6aaa6ffd5
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-01-31 08:49:39 +00:00
Jarek Kobus
c1842d9aec Command: Replace QMap with QHash
The key is a pointer type. Get rid of 2 double lookups.

Change-Id: I088325e7940091c9f8079bd466d8cbc37fd882e0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-01-31 08:49:26 +00:00
Jarek Kobus
afb062cae2 Wizard: Replace QMap with QSet
It looks like both key and value are the same pointers.

Change-Id: I38d006ada777d61df242dd0b82e9b622c0907cad
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-01-31 08:49:15 +00:00
Jarek Kobus
8931f02fb8 Wizard: Replace QMap with QHash
The key is a pointer, so use QHash.

Change-Id: I6315ee545bf582078301212f6f8d661a8c95eb87
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-01-31 08:48:59 +00:00
Jarek Kobus
e4077d5166 Wizard: Remove unused field
Change-Id: I2873efa78e38ceb0b683e84e1c2c258353be0b47
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-01-31 08:43:53 +00:00
Jarek Kobus
104eb5bfb2 Axivion: Make it possible to fetch unlimited number of items
This happens when IssueListSearch.limit = 0;

Change-Id: I86a580241f19189fd0ac5905ab88f9d18cabaf3a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-01-31 07:42:29 +00:00
Jarek Kobus
41de43fa0a Axivion: Use task tree for fetching opened doc issues
Change-Id: I34a694a25cebc312b5ce32eccfa1b5ad04680b01
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-01-31 07:42:13 +00:00
Jarek Kobus
ba4df4555b Axivion: Use more const references
Instead of copying potentially big vectors / maps.

Change-Id: Ib367d18b7afb8f00551f54e8f2b2dd5c18a018c3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-01-31 06:12:10 +00:00
Christian Stenger
32890c59af QmlJSTools: Fix tests
Amends 316e48fc50.

Change-Id: I5d28a89cdae23a76b37654aff6560b8334452e01
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-01-31 05:33:34 +00:00
Christian Stenger
1331c4dbf8 Todo: Fix include
...and qbs build.
Amends d4e44b920d.

Change-Id: I6fc37ae0f6528c0099bf77a9d819379a7bed23f1
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-31 05:14:15 +00:00
Ali Kianian
012a8331b5 QmlDesigner: Apply rename and delete collection on CollectionDetails
Fixes: QDS-11656
Change-Id: I0e5cec47395f8f531285041111b73686c4c858d4
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-30 21:00:41 +00:00
Alessandro Portale
022ff621d4 Utils: Quote font-face in StyleHelper::fontToCssProperties
Font faces should be quoted. '.AppleSystemUIFont', which is the default
on macOS, would break the CSS parsing if not quoted.

This change uses single quotes (which is equivalent with double) for the
task, because inline CSS in HTML is usually already quoted with double
quotes.

Change-Id: I08d8de1131f58a9c968cf45acc636cb2b3b21700
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-01-30 20:19:13 +00:00