Commit Graph

88532 Commits

Author SHA1 Message Date
hjk
7997d92f0c Core: Add MenuBuilder::setIcon()
... and use it for the cmake formatter menu.

Change-Id: I19fa1c1446ce893ef1c87389848869c6cbfc678a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-01 09:02:47 +00:00
Miikka Heikkinen
347c6b1121 QmlDesigner: Add extended 3D project template
Extended 3D template use ExtendedSceneEnvironment instead of regular
SceneEnvironment to enable various built-in effects.

Fixes: QDS-11812
Change-Id: If84807f5a4dd327d6da4f08669b66ed3d7a1ff14
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-02-01 09:02:01 +00:00
hjk
56f9493445 CompilationDatabase: Use ActionBuilder
Change-Id: I0469a25370592f62391d79fa1b8cc0f34ea362e7
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-01 08:23:01 +00:00
hjk
8976d78b8d CompilationDatabasePM: Use setup function for plugin items
Change-Id: Idd1a6dc1af49fc1e713524677b80ed2010b8f17d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-01 08:22:55 +00:00
hjk
d723c74858 Beautifier: Use MenuBuilder
... and simplify ActionBuilder use.

Change-Id: I95ae851a978e7c1fce62510bba29ed2ba447a89a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-01 08:22:17 +00:00
Jarek Kobus
a19d19733e Axivion: Remove a delay when typing in search field
Don't call cancel() for the task tree runner - the next
call to start() will reset it anyway, what will be faster.

Change-Id: Ib0aae67ab6ec9bc3835931e0b20b0e4cb381cf35
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-01 07:59:35 +00:00
hjk
3f0649f07c Use setAttribute(Qt::WA_DeleteOnClose) on context menus everywhere
Helps thinking about menu and parent lifetime.

Change-Id: I120a16b4ebbd92187c5e8e78bd7da4ee9f2b115d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-02-01 07:54:49 +00:00
Marcus Tillmanns
a4fbc5f00d CppEditor: Don't needlessly store default values
Task-number: QTCREATORBUG-24762
Change-Id: I171a7c6bd8f7f62cb4871b3d6c1828ff7edd53ab
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-01 07:50:43 +00:00
Christian Stenger
1d7f6451bb AutoTest: Parse for file paths in Qt test output
Add option to explicitly check for pattern file://path
and file://path:line which can be provided by the
test code to improve the location information of
qDebug() and friends.

Task-number: QTCREATORBUG-30143
Change-Id: I050ab544c0173769995f7c5e97c89b497ded9215
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-01 07:40:15 +00:00
Christian Stenger
16123997b8 Haskell: Fix missing include
..when building with Qt6.2.

Change-Id: I224feb4ee8d658ffa2702c0a111c5390c0a80f1a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-01 07:38:23 +00:00
Christian Stenger
41103666c5 Axivion: Mark current selected issue kind
Change-Id: I2bb49a5fed6f71f3a0e2dfc1207a6d6f592e59c2
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-01 07:24:30 +00:00
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
Sivert Krøvel
7bc5ab5e48 McuSupport: Comment out Spark properties in template projects
MCU tooling is more strict about QmlProject properties from
Qt for MCUs 2.7, so leaving these properties in would trigger
several warnings

Change-Id: Ia251f74180493b6ff115218a237994886cf65379
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-01-31 13:49:10 +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