Commit Graph

72385 Commits

Author SHA1 Message Date
Knud Dollereder
a6e3b39d40 Retain zoom factor when showing after hiding
The timeline and transition editor where resetting
their zoom factors to 0 in the showevent.
This is now fixed.

Fixes: QDS-5337
Change-Id: Ic4d9b2af7613b4c5c2fd5e9c646df51978fd05f6
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>
2021-11-23 16:35:09 +00:00
Henning Gruendl
6f27359f15 QmlDesigner: Make live preview work with AVD
Make the live preview work with Android Virtual Device. This allows to
start the emulator with the currently active project via the live
preview toolbar button.

Task-number: QDS-5383
Change-Id: I3f44ea8fcb6f23d938d9775d78314b23c69768ec
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>
2021-11-23 16:32:22 +00:00
Cristian Adam
a4791debf0 GitHub Actions: Use actions/cache v1
Update to latest v1 actions/cache, instead of using a fixed version.
For example v1.1.1 increased the cache version from 2GB to 5GB!

Change-Id: Ib312016f5e0e07771451049cf2d4cd3ce0225837
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-23 16:09:51 +00:00
Miikka Heikkinen
5841a159c0 QmlDesigner: Fix capitalization of rotBlocked@Internal aux property
The "@Internal" part of aux property must have the "I" capitalized
for it to avoid affecting document modified state.

Fixes: QDS-4802
Change-Id: Ibbf0006ba6c24bad3ad017a72196dac1d366fe94
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2021-11-23 14:29:51 +00:00
Leena Miettinen
e56847f200 Doc: Update info on Beautifier Options
Use the file names for each tool and update screenshots.
Also, some small text edits.

Change-Id: Id8678a7d482f1c33fb1ad779e3d660b88090bd9f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2021-11-23 14:04:53 +00:00
Leena Miettinen
965fd595bb Doc: Use HTTPS for a link to remove message about broken link
Even though the link with HTTP automatically works on at least
some browsers, the doc snapshot server prints an error about a
broken link.

Task-number: QTCREATORBUG-26278
Change-Id: I5fa030b4b6148dbebeeca9c7dccc0d77dc929243
Reviewed-by: hjk <hjk@qt.io>
2021-11-23 14:04:44 +00:00
Christian Stenger
37a10f4a2b SdkTool: Fix path handling and adjust expectation
Amends 1a6e6825e6.

Change-Id: I0e0c1bf46951a05d360032e01c15ff8adb31ac33
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-23 10:59:24 +00:00
Leena Miettinen
60f2b81773 Doc: Fix method to ignore Boot2Qt for auto-linking
Removed the backslash from \Boot2Qt, and added Boot2Qt in ignorewords
in .qdocconf file. Created explicit links to the Boot2Qt topic in
this manual where needed.

Task-number: QTCREATORBUG-26278
Change-Id: Ieac851f711d7a2cd4d7ae034c3b81ab47c5fbc11
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
2021-11-23 10:48:46 +00:00
Henning Gruendl
6eec40264f QmlDesigner: Fix SVG paste action
Fix an issue with the SVG paste action where the SVG uses multiple
classes in one class attribute.

Change-Id: I332ae217cff6b2215c3f63b1d2433a54933f404a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2021-11-23 09:22:01 +00:00
Leena Miettinen
6124bd4124 Doc: Document the designer-developer workflow
Fixes: QDS-4506
Change-Id: Iff581a36c699764b91788e166af82faee282f2d4
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-23 08:07:13 +00:00
Christian Stenger
c65ec79481 AutoTest: Move benchmark icon to Utils
Make it available for others.

Change-Id: I423dec664a263f5586d98ac387b871b6cf8162d9
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-23 06:05:09 +00:00
Tapani Mattila
f8f7f47ec3 CMake generator: Make only some files selected by default
Task-number: QDS-5561
Change-Id: I1a76385f55681ba60bdb43eafdede6697893598f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-22 17:07:18 +00:00
Henning Gruendl
590e19acb7 QmlDesigner: Enable environment variable usage
Change-Id: I91ada6d7dfa5e8376333c5ef27fbd72a5484e4f4
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-22 15:38:42 +00:00
Tapani Mattila
46c3540961 CMake generator: Add translation contexts
Change-Id: Icdd2ce4626588e6bdcd870cae915ef2f48a85666
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-22 14:11:50 +00:00
David Schulz
53bae17b96 CDB: always set stop reason when handling exceptions
Otherwise we get an unknown stop reason which might get handled
differently in the cdbengine.

Fixes: QTCREATORBUG-26506
Change-Id: Ia1622977631190d43a6b599b58410953cd2add6e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-11-22 14:09:22 +00:00
The Qt Project
fba36e7620 Merge "Merge remote-tracking branch 'origin/6.0'" 2021-11-22 13:50:12 +00:00
Christian Kandeler
3a03b50c7c CppEditor: Consider not only classes
... when trying to find out whether an include statement needs to be
inserted for a given symbol.
The previous code used to ignore e.g. function declarations, so an
unneeded refactoring operation would be triggered.

Fixes: QTCREATORBUG-26591
Change-Id: I5ce0bb064b6ba76e5977de73ea2697342cf74d7e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-11-22 13:49:17 +00:00
Leena Miettinen
89e6e99957 Doc: Update keyboard shortcuts for recording text editing macros
Task-number: QTCREATORBUG-26278
Change-Id: I4bbb52859671b4f1840bb1803695fd3f106b05ad
Reviewed-by: hjk <hjk@qt.io>
2021-11-22 13:41:40 +00:00
Christian Kandeler
8f611286f7 Fix some compiler warnings
Change-Id: I9128afcf56bd47cb6627012bb6b0d13395b432ac
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-11-22 13:39:08 +00:00
Samuel Ghinet
4c36e157af QDS New Project dialog: capitalize the first letter of the Project Name
Capitalize the first letter of the project name When the user finished
editing.

Change-Id: I7222bbd9a13d275fa13028cdc24cfd781c7a791f
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-22 12:37:28 +00:00
hjk
4de74a67ee Merge remote-tracking branch 'origin/6.0'
Change-Id: I773141d47e3f2b773da51f2e26ef53b93bb28f90
2021-11-22 13:18:08 +01:00
Leena Miettinen
470beadce1 Doc: Remove obsolete info on "Getter and Setter" tab
The tab has been removed from Tools > Options > C++.

Task-number: QTCREATORBUG-26278
Change-Id: I5b57691dc476a4adcd54c6cc2a5d1128276610dc
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-22 11:55:38 +00:00
Leena Miettinen
4c3756b28b Doc: Add note about C++ settings depending on enabled plugins
Update screenshots for text and code style settings.

Task-number: QTCREATORBUG-26278
Change-Id: Ica3c993592a7e487b351eaac6030378cb36a770a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-22 11:49:13 +00:00
Leena Miettinen
ccd64cc083 Doc: Update screenshots to use the Design Dark mode
Change-Id: I8851bca12941945bb5f6a442f5c1b6e5a4264a07
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-22 10:55:11 +00:00
Miikka Heikkinen
cb00a8d30f QmlDesigner: Fix orthographic camera hdpi issues in edit 3D view
There is no need to double the viewport anymore when calculating
orthographic camera frustum visualization, Qt6 correctly accounts
for device pixel ratio in ortho projection. Even in Qt5, the old
hack only made frustum visualization correct for hdpi screens while
breaking it for regular screens.

Also fixed zoom factor handling for orthographic edit camera mode.

Task-number: QDS-5469
Change-Id: Ie53b5dfa2fbcc00f098ea64e5a6673e4b7af0963
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-11-22 10:14:42 +00:00
Miikka Heikkinen
e018a8649c QmlDesigner: Add needed types to post-dnd bind ignored types list
Added ParticleSystem and <cpp>.QQuick3DObject to ignored types to block
offers to bind to "system" and "parent" properties when dragging
things under Particles3D items.

Fixes: QDS-5543
Change-Id: Ie4b7b85ce7d2bf3d8125fc0affd0a26c75d20bdc
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-22 10:12:56 +00:00
Thomas Hartmann
1f7f3144c3 QmlDesigner: Allow setting AuxiliaryData without lock
Change-Id: I63344aa240a2d1198195ff4130690131efe18a43
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2021-11-22 10:10:50 +00:00
Christian Kandeler
f4070c4b43 ClangCodeModel: Do not report symbol references from non-existing files
... which we get from clangd's textDocument/references.
This works around https://github.com/clangd/clangd/issues/935.

Fixes: QTCREATORBUG-26574
Change-Id: I3933f30fdaca024a6e240bd0962de3d97acd0dbf
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-22 09:56:59 +00:00
Christian Kandeler
799ffe7e0e ClangCodeModel: Fix possible crash in clangd test
Change-Id: Ifb68b62f1076fa6b086717d7a5db939e52e5e9f2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-22 09:50:56 +00:00
Leena Miettinen
1d57f755c2 Doc: Document "Prefer single line comments"
Update the screenshot.

Task-number: QTCREATORBUG-26278
Change-Id: I8c7eb57b189a1984be72ba4f15a224c1d80f9610
Reviewed-by: Jacopo Martellini <jack.lilhammers@gmail.com>
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-22 08:58:17 +00:00
Cristian Adam
d177a20bb8 GitHub Actions: Separate ccache cache based on ide major version
This way master, which now is version 7 won't interfere with 6.0 branch
which will have version 6.

When branches share the same cache the ccache hit rate is now ~40%,
which is too low.

Reduce the ccache size so that the 5GB would host multiple branch
versions.

Change-Id: If29c917fb47f4e1fdab4b4257af8b0625f6f219e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-11-21 11:08:17 +00:00
hjk
1a6e6825e6 SdkTool: Allow remote paths in various operations
QDir::cleanPath() doesn't work well with the scheme://... syntax.

Change-Id: I2d2a86e416251ea2396b67ab1e5831444d4a979a
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-11-19 13:56:01 +00:00
David Schulz
2dbe5c72d8 TextEditor: fix crash after removing hover handler
If we remove a hover handler from the editor we have to reset the last
cached hover result in the runner to prevent using this removed and
potentially deleted hover handler.

Change-Id: I2bbdbee9d018aac426832552d036926be9ff198e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-11-19 12:30:26 +00:00
Jarek Kobus
b62fbe3ab9 Fix a crash when setting up toolbar editor actions
LanguageClient::updateEditorToolBar() contained the static
hashes that were keeping raw pointers to different
objects. However, the lifetime of these objects wasn't
controlled, so it could happen that we were operating
on dangling pointers.

In fact, like in the bugreport, some text editor widget could have
been deleted (together with his outline action), while later another
one (coincidently with the same address) could have appeared.
The old mapped widget still pointed to the removed action
so we crash.

Instead of keeping a static hashes we attach the custom
child object to the widget and keep there QPointers to all objects
we are interested in.

Fixes: QTCREATORBUG-26588
Change-Id: I335d9848ea85372baf3328772f0a249cee242dcd
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-19 12:29:49 +00:00
David Schulz
897fbd8317 ClangCodeModel: show specific client name in diagnostic
Task-number: QTCREATORBUG-26585
Change-Id: I5edbe3ab40e91e2e5f8455b7a8d484a82c5cf6e6
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-19 12:29:00 +00:00
The Qt Project
1d785d6687 Merge "Merge remote-tracking branch 'origin/6.0'" 2021-11-19 11:15:43 +00:00
Miikka Heikkinen
ff891e3132 QmlDesigner: Don't enable position or layout menu if no content
Changed node position and layout context menu enabled checks to
correspond to checks that are used to determine the enabled
state of their contents.

Fixes: QDS-5483
Change-Id: I71a26ffce9cc12036397b62658a08d9895f7cb63
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-11-19 10:48:47 +00:00
David Schulz
f16a473b3b LanguageClient: make sure to send a response to a request
Restructure the message handling in the client, so if we get a message
with an id always send a response to the server either with the result
or with an error. Also make sure to not send responses to unreachable
server.

Change-Id: Ie74128069c1678af60871896d5dce45c08e71b05
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-19 10:32:11 +00:00
David Schulz
67971d2855 LSP: rename ApplyWorkspaceEditResponse -> ApplyWorkspaceEditResult
Change-Id: Ib30891a76b37d9013fb7a0cd7a787ef56d725668
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-19 10:32:07 +00:00
David Schulz
73e30f782d LanguageClient: prevent crash in LanguageClientManager
This also prevents assigning a client to a nullptr document.

Change-Id: Iacefe141a08fd47e69faacd4b0cd156c264ac19b
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2021-11-19 10:09:37 +00:00
Eike Ziller
eba4115b82 Merge remote-tracking branch 'origin/6.0'
Change-Id: I3bab4e31bc5993c59c7025ebde0846bf6c75810e
2021-11-19 10:44:15 +01:00
Leena Miettinen
b569041709 Doc: Update Meson screenshots
And add alt text for them.

Task-number: QTCREATORBUG-26278
Change-Id: Ibe40f284e3162a77982fc3731313a6f2bc9492b5
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-19 08:47:58 +00:00
Miikka Heikkinen
afe77aa646 QmlDesigner: Fix 3D edit view rendering logic
If we have more than one render in queue for 3D edit view, we know the
current render is not good, so do not send it to creator side but
instead wait until we have just one render in the queue.

Also changed the timeout for queued renders to closely correspond to
60fps frame time as there is no point rendering any faster than that.
This also means we never need to queue more than two frames to ensure
correct results.

Fixes: QDS-5467
Change-Id: I49a3a7aeaff24484f48784d0391414165ce50748
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-11-19 08:19:02 +00:00
Leena Miettinen
727d1afa6d Doc: Describe "Find References with Access Type"
Task-number: QTCREATORBUG-26278
Change-Id: I08dbea1dd505f818ba2e4e5809e9ca6f37409750
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-11-19 08:16:15 +00:00
Jonathan Mouchou
d9addef725 QmlEditorWidgets: Fix missing character escape for transparent
When selecting transparency in the qt quick toolbar, the text inserted
is missing quotes around transparent.

Add missing quotes around transparent.

Fixes: QTCREATORBUG-10769
Change-Id: Ibc5d10b2276b44aee8afad60c33f0394a7d75ba7
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-19 04:23:38 +00:00
Christiaan Janssen
51c2ee8714 McuSupport: fix false positive when detecting upgradeable kit on Windows
Cause was: mismatched slashes-vs-backslashes in path comparison

Task-number: QTCREATORBUG-26584
Change-Id: I74ec18d33b8138ecc75a5b4928bd67f856b4c4c1
Reviewed-by: Dawid Śliwa <dawid.sliwa@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-18 16:50:11 +00:00
Leena Miettinen
9576c34366 Doc: Update info about Valgrind tools
Describe the toolbar options.

Task-number: QTCREATORBUG-26278
Change-Id: I51ebd08a42ba696a3d76f709ff894181d4e9bb7d
Reviewed-by: hjk <hjk@qt.io>
qds/v2.3-beta1
2021-11-18 15:49:22 +00:00
Leena Miettinen
75f9c91c76 Doc: Describe enabling the Qt Quick Designer plugin
The plugin has been disabled by default in 6.0, and
some users have already asked us about it.

Task-number: QTCREATORBUG-26278
Change-Id: I6085b17b0e78592eff285d2d0fc55107593202da
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-11-18 14:40:04 +00:00
Leena Miettinen
67674bca36 Doc: Add alternatives for installing Conan
The installation has been temporarily removed from Qt Installer.

Task-number: QTCREATORBUG-26278
Change-Id: I8de557045857ddaa73e984cce37f31f3d93690bd
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2021-11-18 14:39:52 +00:00
Samuel Ghinet
c2a4bebad4 Fix: QDS New Project dialog shows incorrect items in the screen size combobox
The index in the backend wizard's combobox was not loaded when
initializing the QML combobox.

Task-number: QDS-5523
Change-Id: I48583ff1ca85f840e9b7314a4e0ed734364c326a
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2021-11-18 11:38:22 +00:00