Commit Graph

76686 Commits

Author SHA1 Message Date
Marco Bubke
c37e69ee2c Valgrind: Disable warnings
Change-Id: I76c2833828b52b24886e148ff37a07ef87a38336
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-11 09:11:29 +00:00
Thomas Hartmann
8953be1d3f QmlDesigner: Add transaction to deleteDynamicPropertyByRow()
Change-Id: Iebbd127ba43698b82e7f7124c5b929e406687f22
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-11 09:02:40 +00:00
Leena Miettinen
0caa9b4cee Doc: Add info about troubleshooting Performance Analyzer
Fixes: QTCREATORBUG-27707
Change-Id: Icd2c5ad8ef79ecb7a2a2e37574a269e24bf55e71
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2022-07-11 08:55:27 +00:00
Leena Miettinen
87bdbb993e Doc: Describe adding docker devices
For building and running apps using docker images.

Fixes: QTCREATORBUG-27561
Change-Id: Ice195e73ef8eb321cd53aee5888a9f01ddcf06f8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2022-07-11 08:50:46 +00:00
Cristian Adam
8d99df9a7c CMakePM: remove unused headers, enforce sorting of headers
Used clangd hints.

Change-Id: Iade4de67c1d2e5fdd1a880c5603b31203170ebbe
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-11 08:43:09 +00:00
Jarek Kobus
d578b3a7c0 Remove manual test for QtcProcess
It's not clear what this test is going to do and
how to run it. Besides, it's not working at least
for one year already. There is not a big loss, since
it was utilizing QtcProcess::readDataFromProcess() only.

Change-Id: I821cd2755d5889ddc3f772352148d595ca1816c2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-07-11 08:35:32 +00:00
Jarek Kobus
37ac00e498 ProcessInfo: Don't use QtcProcess::readDataFromProcess()
There is no big benefit of calling readDataFromProcess()
when the last argument is false. Simplify
getLocalProcessDataUsingPs() method.

Change-Id: I3839f93574945ef2bb6d147415cffc61d95afda0
Reviewed-by: hjk <hjk@qt.io>
2022-07-11 07:36:35 +00:00
Piotr Mućko
5be5f7a331 McuSupport: Version detection handling for kit requirements
Create appropriate instance of version detector depending on
parsed data from JSON and pass it to McuPackage's ctor. Also tests.

Change-Id: I4f7e5cd6d998745dfe951284c34904526abc216b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-07-11 07:23:38 +00:00
hjk
866f20e4f9 Valgrind: Use Tr::tr
Change-Id: I77b27462d88079699e620ef459f951846c15c3e2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-11 07:14:37 +00:00
Eike Ziller
f901478c6a Bookmarks: Convert to Tr::tr
Change-Id: I3fd7472b731264b4399412ed36b1b9aba9b7d1c3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2022-07-11 07:07:40 +00:00
Leena Miettinen
78e4360843 Doc: Describe "Use global settings" in Quick Fix project settings
Task-number: QTCREATORBUG-27560
Change-Id: I3dc3a86fb303bed1c2bed520ab2d631cc3d46078
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-11 07:04:20 +00:00
Christian Stenger
1e723327fe Debugger: Fix build with Qbs
Amends 9894c6eaf0.

Change-Id: I13358bddf13abfc239de9254dfa125fc46c244a4
Reviewed-by: hjk <hjk@qt.io>
2022-07-11 06:11:32 +00:00
Marco Bubke
7dc3ff425a RemoteLinux: Fix warning
Change-Id: I644d3f62d25cb89dc054aba3c97a84f5b9afcdff
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-09 12:40:03 +00:00
Thiago Macieira
d4ed6d6129 Debugger: force qfloat16 to float to print
It'll get a _Float16 cast operator, which will cause ambiguous overloads:

watchhandler.cpp:782:24: error: ambiguous overload for ‘operator<<’ (operand types are ‘std::ostringstream’ {aka ‘std::__cxx11::basic_ostringstream<char>’} and ‘qfloat16’)

Change-Id: Ic44396b31ba04712aab3fffd16ff43d6616878f9
Reviewed-by: hjk <hjk@qt.io>
2022-07-09 05:44:00 +00:00
Cristian Adam
531288a715 CMakePM: Group CMake settings into one category page
CMake settings were split in two places, which complicates things.

Now they are both into one settings category, just like other build
systems Qbs, Meson.

Change-Id: I55f434d83604c9b3be111fc89014b720ee72b513
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-07-08 19:02:42 +00:00
Knud Dollereder
8d30f1d004 Prevent access of invalid frames
Changing keyframe positions while the timelineview
is hidden might lead to access of invalid frames
when showing the timelineview again.
Prevent this by calling invalidateScene from
within the showEvent.

Change-Id: Ib9c1e90de5bd7679823c4faeed9156da764c98a6
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-08 16:09:41 +00:00
Eike Ziller
99a116d721 Bump version to 9.0.0-beta1
Change-Id: If64527bc1f5af72f488a96bb134e70a4194515af
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-08 13:49:19 +00:00
Knud Dollereder
1df1a065de QmlDesigner: Improve usability of boolean animation curves
Boolean animation curves are now painted from min to max of the value range
instead of from 0 to 1. This allows to see value changes when the curve is
loaded together with other animation curves of different value ranges.

Boolean curves are now forced to be step interpolated.
If the user tries other interpolation types the request is denied and an
error message is written in the new status line.

Added a status line that displays the current frame number by default and
an informative text in case the user did something forbidden.

Respect the current state when populating the curve editor.

Fixes: QDS-6950
Fixes: QDS-6889
Change-Id: Ia5fa1c1c55ee93eda5a39fd83987b54fb41d54db
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-08 13:20:26 +00:00
Leena Miettinen
b1975da9f7 Doc: Update docs and screenshot for Editor settings
The "Editor settings" field was replaced with a
"Use global settings" check box.

Task-number: QTCREATORBUG-27560
Change-Id: I56160bdf089e574cbc827e99ecb68730b845363f
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-08 13:07:33 +00:00
Eike Ziller
1cb4f33dfb CMake build: Fix include paths passed to lupdate
The include paths that we extract from the targets often still contain
the generator expression, like $<BUILD_INTERFACE:actual/include/path>.
Throw away "paths" with generator expressions that we don't care about,
and strip the BUILD_INTERFACE expression around the paths, which are the
ones that we do care about.

This wasn't only partially relevant so far, though it probably was the
reason for the need for fully qualified tr(...) calls at some places.
It becomes essential when we move to the <Plugin>::Tr class, which
requires an include to <plugin>tr.h, which is otherwise not found for
files that are not in the same directory.

Change-Id: I7a0183f002973069839920ec29944342cfd91721
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-07-08 13:04:06 +00:00
Cristian Adam
f49ffa0ab4 CMakePM: Use HeaderViewStretcher for Tools QTreeView
This way one can change the size of the items in the view by
moving the delimiter left and right.

Without this patch the size would stay fixed and looks weird on
Windows with CMake being detected from Visual Studio.

Change-Id: Iaaf1cfb6e854a26e4a2e6535dfd47c19d77125bb
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-08 12:47:48 +00:00
hjk
9894c6eaf0 Debugger: Convert to Tr::tr
Change-Id: I5d2475c790851c68f9997ac6af72b5eaca58482d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-08 12:32:38 +00:00
Christian Kandeler
bb3549a721 ClangCodeModel: Move completion code to its own set of files
Change-Id: Iad856881ace80896f4aceab3fbf129d7635de642
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-08 11:58:42 +00:00
Leena Miettinen
4fea392096 Doc: Describe "Parse standard output during build" check box
In Custom Output Parsers section of Build and Run settings.

Task-number: QTCREATORBUG-27560
Change-Id: I507ff85523253c3c163433485966af5a7b376b19
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-08 11:43:31 +00:00
Leena Miettinen
5edfb1b7e5 Doc: Match Python code in manual with code generated by wizards
Task-number: QTCREATORBUG-27560
Change-Id: Iff442279b99e05a577dc791ca88345a81d7bf564
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
2022-07-08 11:29:43 +00:00
Artem Sokolovskii
a427527328 ClangFormat: Fix saving settings for standard code style
Task-number: QTCREATORBUG-27269
Change-Id: I8ddd30e55989dc3f9ee83d3cb1a3c2a794144da8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-08 11:13:04 +00:00
Artem Sokolovskii
e8f1d97a3b EditorSettings: Move Restore Global buttone
Change-Id: I58729f868a214e7ad15d4960e28d4b7bb0c3cf98
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-07-08 11:12:32 +00:00
Alessandro Portale
9f469cef11 Android: Don't show 2 issues per Android Qt if unconfigured SDK
Only call registerNewToolChains() and updateAutomaticKitList() if the
Android SDK is configured and the required environment for the mkspec/
qmake parsing is set.

Fixes: QTCREATORBUG-27805
Change-Id: I66eca659074afeea97a894cc418a95675e46ff1e
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2022-07-08 10:40:55 +00:00
Assam Boudjelthia
f079479756 Android: Look for latest JDK version and not 1.8 specifically
Recent SDK Manager that is used by Qt Creator works with JDK 11+,
and JDK 11 is needed by Qt 5.15.7+, so look for the newest JDK
instead of 1.8 as currently being done.

Change-Id: I6ff415aa300d742735e8636b24a03116d5bfe2b6
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-07-08 10:40:43 +00:00
David Schulz
d3a40b1d04 CodeAssist: Fix disapearing completion list after update
Change-Id: I3e35fe53a69e7806c0c8a5959ef8c16344aace8d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-07-08 10:19:23 +00:00
David Schulz
8170501502 Editor: visualize indent
Paint a horizontal line every indent size in the whitespace at the start
of each block.

Fixes: QTCREATORBUG-22756
Change-Id: I044ccb4adefa4c8c9a3a610f0e996a810487fa1e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2022-07-08 10:12:42 +00:00
Brook Cronin
574d4cb108 add material editor and browser to 3D essentials workspace
Change-Id: I32cab4ce1ffd0d7d42d442389652ce67ec2f4cfe
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-08 09:37:22 +00:00
Eike Ziller
173363b616 Meson: Fix settings saving
Amends c24291648b

Change-Id: I0f80e1483c0550d7ec3add0f9869eb96c758052b
Reviewed-by: hjk <hjk@qt.io>
2022-07-08 09:11:31 +00:00
Leena Miettinen
c4b02fab05 Doc: Fix path to Text Editor Preferences
The > character and spaces were missing.

Task-number: QTCREATORBUG-27560
Change-Id: I005a57eb6b5f95766d052fcdf7b7906b61e1388c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-08 09:06:34 +00:00
Eike Ziller
10163afae0 Merge remote-tracking branch 'origin/8.0'
Conflicts:
	share/qtcreator/translations/qtcreator_ja.ts

Change-Id: I436b8f60971f11a5fb7962a57600ad075135f397
2022-07-08 10:21:30 +02:00
hjk
5b2ae8bdd0 Translation: Remove duplicates in Japanese translations
Amends 290c86f55c.

These slipped through earlier as Qt 6 based lrelease was flagging
wrong messages as duplicates, leaving no good hint on the true ones.

Change-Id: Ic9d94cc35d588dca0e0b1f0c34e00c4a7ee4ceee
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-08 08:19:26 +00:00
Christian Kandeler
1fb4737d0d ClangCodeModel: Move quickfix functionality to dedicated set of files
Change-Id: I7cc55afa7aa50ba584593457b6c1393794866c56
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-08 07:45:30 +00:00
Thomas Hartmann
ce6083992b QmlDesigner: Remove hex label
Change-Id: I9bb5ba47cdbc286544417b95cc9cf9c6ca3943cb
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-08 07:39:33 +00:00
hjk
14216fdf73 QDS: Doc fixes
Change-Id: I67f3c8477ace46c55499c73bf3a7eb1779c9f964
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-07-08 07:37:23 +00:00
Thomas Hartmann
6f0d2e6565 QmlDesigner: Add unusedProperty() as public member
Change-Id: If24e0d09145f0bb9e5459cae1b13302610818913
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-08 07:22:06 +00:00
Christian Stenger
674cca18a7 GitLab: Use IntegerAspect instead of QSpinBox
Change-Id: I06e9d907a6a65f8cf135031f0aed3cd3eca9281b
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-08 07:00:17 +00:00
Christian Stenger
ae1e006426 Utils: Allow programmatically change of IntegerAspect
Using setValue() on an IntegerAspect only had a visual effect
if it happened before adding it to a layout.
If the aspect had been added already the value silently got
changed (internally) but this was never reflected on the
respective SpinBox.

Change-Id: I60297d9d38835842b3b02a36787c0a2001477427
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-08 07:00:08 +00:00
Christian Stenger
fe07f7962c Squish: Move ownership of SquishTools into plugin
Change-Id: I9b5ed4ea37c2945642d644ec672f6e8cd2986c29
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-08 07:00:00 +00:00
Christian Stenger
eb22c0c615 Squish: Prepare handling of server settings
Change-Id: I3495eb82eb6c02901d4a05d40516c6088f9374dd
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-08 06:59:43 +00:00
Thomas Hartmann
8f141a8e26 QmlDesigner: Add instance to ConnectionView and make methods public
This allows to use the model from the property editor.
We do not implement the instance as singleton but use the View Manager.

Change-Id: I2d95235a31d4a776411336ef82ace0f230c9971f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-08 06:38:53 +00:00
Christian Stenger
bf0f2604c0 Squish: Extract functions for re-use
Change-Id: I3243619c8bb6a9ac6c4c9bfc6a438b23cc8bd37f
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-08 05:38:24 +00:00
Christian Stenger
abbc429395 QmlDesigner: Fix qbs build
Change-Id: I23c9a805742a493125afdaefa69051f0ce18d832
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-08 05:18:26 +00:00
David Schulz
7c79e18831 LanguageClient: cancel running semantic token request
... when we are about to send a new semantic token request.

Change-Id: Ibd421dd29bf3ea0e2b502c227341ff03259b2370
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-08 05:05:23 +00:00
David Schulz
457c88343f LSP: define a MessageId invalid if it contains an empty string
Change-Id: I90852b4f17a465d562cb402b46de5266aeba9b28
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-08 05:05:13 +00:00
Thomas Hartmann
99c8706a95 QmlDesigner: Remove QML_DECLARE_TYPE for QQmlPropertyMap
This is not required and can create issues, when including this
header file.

Change-Id: I2472ecf45c1c8f1faf0d44c8ee97cfbb4736c6c8
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-07 19:26:00 +00:00