Commit Graph

72385 Commits

Author SHA1 Message Date
David Schulz
b38251659b LanguageClient: more log output in the semantic highlighter
Task-number: QTCREATORBUG-26624
Change-Id: Ib276662f1ce2cf355015258c564f6f9c817a3d8a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-29 09:44:58 +00:00
Leena Miettinen
0215a31c4a Doc: Update Performance Analyzer docs
- Describe Create Memory Trace Points button
- Describe Create Memory Trace Points dialog in more detail
- Fix "Load perf.data File" menu item name
- Update screenshots

Task-number: QTCREATORBUG-26278
Change-Id: I028d8da6f19a61bbe457c94287779c2aed0ab7ba
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2021-11-29 08:13:58 +00:00
Alessandro Portale
022bf4396c QtSupport: Set a lower single step in ExamplesPageWidget view
By default, the view scrolls by a whole row when using arrow keys or
mouse wheel. With rows with a height as in the examples view, this
causes more of a fast flickering than the impression of a scrolling.

The single step value of 25 which is set by this change makes it look
smoother.

Change-Id: I7fe9fe49dab71cebdfd8b01eef245813783426ae
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-11-29 06:36:48 +00:00
Leena Miettinen
136bb81776 Doc: Add missing space
Change-Id: If4480bf34d5ecf5aeab55cd5212865150ffa4568
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-11-26 17:47:50 +00:00
Cristian Adam
63fcd6812b CMakePM: Disable "Run CMake" menu entry while building
Configuring a project during build is a recipe for disaster.

Fixes: QTCREATORBUG-26606
Change-Id: I041d9bd76315647439100cadba809d6664d268fa
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-26 15:58:22 +00:00
Christian Kandeler
0eaba469cf ProjectExplorer: Add "link back from issues" functionality
... to the app output pane.

Change-Id: I3e11f63a42fb30ae4e40da50d5ba8143ce99cd65
Reviewed-by: hjk <hjk@qt.io>
2021-11-26 15:43:46 +00:00
hjk
304e5c7552 QmlProfiler: Remove unneeded Q_OBJECT in some test
Which apparently also confused my cmake.

Change-Id: I0d3c131616e9aeb1487731900849545f925a0106
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-11-26 14:35:12 +00:00
Miikka Heikkinen
9f8fcd82fd QmlDesigner: Check file type imports when adding unimported items
When searching for unimported items in component library and dragging
those into the scene, also check if the required import is file type
import.

Fixes: QDS-5545
Change-Id: I389ecb2c5bdbb686832af6eed06b84fe02f12a2f
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-11-26 12:39:23 +00:00
Miikka Heikkinen
09b2ceb96a QmlDesigner: Destroy old view before each navigator preview generation
If you triggered another preview generation while previous
is still going through the async loop, it was possible for puppet to
crash or create a preview image with e.g. both material and model
previews overlapping.

Fixes: QDS-5600
Change-Id: Ia11e01cff0503483dc4152aa412c3f9aea7fea6d
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-11-26 11:24:16 +00:00
Leena Miettinen
3858181e61 Doc: Describe selecting run targets in kit selector
If several run targets, such as tests or AVDs are configured for
a project, users can select the one to run in the kit selector.

Task-number: QTCREATORBUG-26278
Change-Id: Iaa4828865db7be488ec426c4284573156e5131db
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-26 10:53:51 +00:00
David Schulz
f681296484 LanguageClient: select the innermost item in editor outline
When multiple items in the editor outline match the current cursor
select the inner most item.

Fixes: QTCREATORBUG-26509
Change-Id: Ib4ced177059e3a9914ace35e4cdc34959719091a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-26 10:51:32 +00:00
Thomas Hartmann
3ee0b55b7a QmlDesigner: Support transparent border for effects
If an effect uses transparent border int paints outside of the item.
Without this patch the item is only rendered inside the bounds of the item.
This patch always adds 40px to the bounding rectangle if an effect is
detected. This is done by effectAdjustedBoundingRect().
The 40px should be sufficient for every realistic case.

Task-number: QDS-3576
Change-Id: I82af0ea66c79039dcae92a88a5954b49de6d944f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-26 10:26:31 +00:00
Leena Miettinen
0dcbe6077b Doc: Use \QC macro instead of \QDS for correct branding
This needs to be extended to "Qt Creator" in the Qt Creator Manual.

Change-Id: I86003c306937db5c0318f0fcf5aa917ae789dc39
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-11-26 09:59:44 +00:00
Leena Miettinen
4f2928b935 Doc: Update info about QML Profiler
- Fix some paths to actions and action names.
- Describe Start QML Profiler dialog.
- Update screenshots to use Design Dark mode.

Task-number: QTCREATORBUG-26278
Change-Id: I00359ed21da8e48a9d08d00bfbff634dd50199fb
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2021-11-26 09:52:28 +00:00
Miikka Heikkinen
2be4efd475 QmlDesigner: Fix navigator preview of imported 3D components
Rendering of preview tooltip 3D content requires rendering multiple
frames to find the correct zoom level for a nice preview image.
This used to be done in a synchronous loop, which doesn't work in Qt6.
It doesn't work anymore because preview tooltip rendering uses a
selection box encompassing the component scene for finding the proper
zoom level. Selection boxes use custom geometry, which in Qt6
requires asynchronous rendering to allow the geometry to update between
frames.

Fixes: QDS-5600
Change-Id: Ib5e54a04ad5df2a8706fd22e554232feb45dd51e
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-26 08:27:03 +00:00
Miikka Heikkinen
56028311f1 QmlDesigner: Remove dummy View3D workaround
The underlying issue requiring the workaround has been fixed in Qt6.

Change-Id: I36ca14112ae86a558be0cfc43c192e26dfde7efd
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2021-11-26 08:21:53 +00:00
Mats Honkamaa
1f1faaf3f0 Doc: Improve All Topics link visability
Move the All Topics link from the topics table to the preceding paragraph.

Task-number: QDS-5603
Change-Id: I15893c4fc77f3bb21bcbb74977813661dee11df8
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2021-11-26 07:55:50 +00:00
Topi Reinio
92984571fe Doc: Fix documentation warnings in Extending Qt Creator Manual
Change-Id: Ic9b1644328e10e147c7f08563b8394418a7d7581
Reviewed-by: hjk <hjk@qt.io>
2021-11-25 18:13:51 +00:00
Knud Dollereder
2791e20b6e Enable FormEditor zoom with Ctrl MouseMove
Fixes: QDS-3166
Change-Id: I81fb8620793a97d8bc65eada88f733c1c74ae839
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-25 16:59:09 +00:00
Thomas Hartmann
3d64aa7aa6 QmlDesigner: Check if root element is a graphical item
If the root element is not a graphical item, then we show a proper error
message.

Task-number: QTCREATORBUG-20014
Change-Id: I9c1ccbbeb6765bd098344ceef8024a703a8dc919
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-25 16:56:38 +00:00
Mahmoud Badri
aad500cdab QmlDesigner: Animate the tab strip in the new project wizard dialog
Change-Id: I7af0c9b45c77d6742003319f7504d99d2df06d1f
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-25 16:30:19 +00:00
Christian Kandeler
08a86169db ProjectExplorer: Generalize issues -> output pane linking
This feature was specific to the compile output pane, but we want
to have it in other panes too.

Change-Id: I110b27af7d0aa23acbc5623d1c0405816250df19
Reviewed-by: hjk <hjk@qt.io>
2021-11-25 15:19:42 +00:00
Leena Miettinen
06f8d860ed Doc: Mention that QNX for Qt 6 is part of Qt for Device Creation
...and the Qt Creator support is considered experimental.

Task-number: QTCREATORBUG-26278
Change-Id: I7d4963605cc18a016c8bb6be412e6774b4fd106d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-25 14:42:47 +00:00
Leena Miettinen
35f0246006 Doc: Update information about adding generic Linux devices
Key Deployment was pulled into a separate dialog.
Update screenshots.

Task-number: QTCREATORBUG-26278
Change-Id: I257b225c91a65af4b8794cc0a10ec9045e132ac4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-25 14:42:35 +00:00
Leena Miettinen
4ea1303266 Doc: Edit information about MIME Type options
Try to make clearer where all the actions happen.
Update screenshots.

Task-number: QTCREATORBUG-26278
Change-Id: Iac3499b12a786a644bb7134907ec907ec675acee
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-25 11:49:18 +00:00
Miikka Heikkinen
cfaf169ea1 QmlDesigner: Fix node expand state caching for subcomponent edit case
When detaching subcomponent edit model, we just update node expand
state cache for the file instead of recreating it from scratch.

Also, never collapse the current root node when attaching the model.

Fixes: QDS-5557
Change-Id: Id107940daccd9663ec4216de7dc8ae6a5bee8974
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-25 11:19:43 +00:00
Thomas Hartmann
10d6bab932 QmlDesigner: Remove ZXP section from documentation
The ZXP installer did stop working and the instructions simply confuse users.
_If_ the ZXP installer gets fixed we can bring the instructions back.

Change-Id: I7e69fd4beea13656a284b93f7994b8cb90720d34
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-11-25 11:02:18 +00:00
Christian Stenger
857ca05ac3 ClangFormat: Fix compile for old LLVM
Using LLVM10 is minimum supported, but some format style
elements have been introduced later, so guard access to
members that are not present in LLVM10.
Amends a997161dd6.

Change-Id: I9513b4fdc1fa5247cd67beaf0122b1b1d5494bbf
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-25 09:34:23 +00:00
Christian Kandeler
1f2e25dd48 ClangCodeModel: Tighten the check for ambiguous calls
... when doing "Follow Symbol" with clangd. Not every call to a virtual
function is ambiguous.
Amends 4fe5be2565.

Change-Id: I7c31644510ca85d430a3e18b2ccad97548f71d54
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-25 09:29:13 +00:00
Leena Miettinen
72cd43594c Doc: Add external link target to Qt Application Manager docs
Task-number: QTCREATORBUG-26278
Change-Id: Ibb1e3e7737b31db8afe9c1e83622e211f2e7c554
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
2021-11-25 09:07:47 +00:00
Leena Miettinen
068e89eb63 Doc: Use a fixed link to refer to a Qt 6 command
The docs are built with Qt 5 for production, so a fixed
link is needed to:
QNativeInterface::QAndroidApplication::hideSplashScreen()

Task-number: QTCREATORBUG-26278
Change-Id: I9228ea53381532a1b4a5bea863802ea4e97f2956
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
2021-11-25 09:07:29 +00:00
Vikas Pachdha
f136cd22ad Designer: Fix crash when closing document in design view
Task-number: QDS-5606
Change-Id: Ide3d8439addb42478d4d72201938af75df65bdd9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2021-11-25 08:35:55 +00:00
Leena Miettinen
c0d8571928 Doc: Describe mapping FakeVim commands
Describe using the FakeVim > Ex Command Mapping tab in Options.
Update and add screenshots.

Task-number: QTCREATORBUG-26278
Change-Id: I926dbebb4c3ba73bda37b08eba010680d1056b23
Reviewed-by: hjk <hjk@qt.io>
2021-11-25 08:24:34 +00:00
Christiaan Janssen
4a50a582e7 McuSupport: default paths for 3rd party dependencies left empty
If QtCreator is installed via the Qt Installer, sensible defaults are
provided at installation time. For not provided software, $HOME
is not a useful default. Leaving the field empty signals the
user that they need to provide one manually, more clearly than
providing an invalid path.

Task-number: UL-4939
Change-Id: I8ef79e563366ebdbea53df8183a1eca82bd7be4a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2021-11-25 07:51:12 +00:00
Artem Sokolovskii
a997161dd6 ClangFormat: Synchronize ClangFormat settings with CppEditor codestyle
Added synchronization between ClangFormat codestyle settings and
CppEditors codestyle settings. All changes which will be done in
ClangFormat settings tab settings tabs will be automatically
retranslated to CppEditor codestyle settings tabs and vice versa.

Change-Id: I408d726c12552856e3c1b72d3ba09b77fff83321
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-24 21:35:31 +00:00
Christian Kandeler
85b5a887e8 CodePaster: Remove "make public" property
It's not functional in any of our implementations.

Task-number: QTCREATORBUG-23972
Change-Id: I7c35b548e6069ff31e9a050752cd8267ce8ed7a8
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2021-11-24 11:54:49 +00:00
hjk
04b1c92767 FakeVim: Fix GUI text for "Smart indentation" setting
Change-Id: Ib347a36dd10a6474aae4da7285f4374593d372f6
Fixes: QTCREATORBUG-26607
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-11-24 11:29:13 +00:00
Ville Nummela
14d09ea7a3 ProjectExplorer: Display message while fetching process list
Fetching process list from remote device can take a long time, which
might cause impatient users think that something is wrong and cancel
the listing.

Change-Id: Ideee017340811bc5600dd2a66a0afee6d223844e
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-24 11:22:40 +00:00
Samuel Ghinet
300ec4119f Fix: Project wizard may not close on project creation if there is an error
The error was: "The executable of the QML emulation layer (QML
Puppet) may not be responding. Switching to another kit might help."

This error / warning condition happens in ConnectionManager::setUp()
in plugins/qmldesigner/designercore/instances/connectionmanager.cpp
when puppet fails to start -
connection.qmlPuppetProcess->waitForStarted(waitConstant) returns
false. This opens a warning message box with the parent of it set as
the active window. This active window happens to be the New Project
dialog QQuickWidget. This somehow prevents the QQuickWidget object
from actually closing on `m_dialog->close()` -- the operation returns
true but the dialog is not closed.

Fixing this involves two steps:
1. On "Create project" hide the dialog box before starting to create
the project, so that the parent of the message box would be set to
the main window.
2. deleteLater() on the m_dialog, because, for some reason, even if
the QQuickWidget is no longer its parent and even if m_dialog has
the flag Qt::WA_DeleteOnClose set, the close() still doesn't
close / destroy the dialog box.

If we do only (2) but not (1) then the message box would appear and
disappear quickly when the dialog box closes.

I have also set variables to null just for correctness.

Task-number: QDS-5531
Change-Id: Ib33be6a2de6174b0439cd1917f3e871ee5d4f52f
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>
Reviewed-by: hjk <hjk@qt.io>
2021-11-24 11:19:52 +00:00
Samuel Ghinet
bdf3fc27a2 Fix: QDS New Project dialog text color is not DStextColor
Task-number: QDS-5501
Change-Id: I323cf62a5149eeb062cdb87f2d59511a6bfd4662
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2021-11-24 10:43:25 +00:00
hjk
56009b8b15 Merge remote-tracking branch 'origin/6.0'
Change-Id: I0eae76ecff1a315877e4fdd471f0de3a3a55f180
2021-11-24 11:37:12 +01:00
Christian Kandeler
153dd2fe0b ClangCodeModel: Fix overly simplistic check
... when doing function call completion with clangd.
We did not take default arguments into account. E.g. the following
declaration:
    void func(int i, int j = int());
was mis-detected as taking no arguments, causing to the cursor to be at
the wrong location afterwards.

Change-Id: I522921721b0cb347ed593c43ed285ca6d02ccfee
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-24 10:00:20 +00:00
Thomas Hartmann
a95a77bcfc InfoBar: Do not suppress info bar if it is closed
Before the patch, any closed infobar was suppressed until Qt Creator was
restarted. With this patch the infobar will just be closed,
as naively expected. To suppress any infobar you have to click
"Do not show again".

Task-number: QTCREATORBUG-26605
Change-Id: I29645e853119286f507cba82c228f372dd80fa64
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Kimmo Leppälä <kimmo.leppala@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2021-11-24 09:10:40 +00:00
Thomas Hartmann
a9fc431bd9 QmlProject: Do not allow supression of info bar for qmlproject
Task-number: QTCREATORBUG-26604
Change-Id: I0bde278322150906780dccda734214182fe5100d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Kimmo Leppälä <kimmo.leppala@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2021-11-24 09:10:19 +00:00
Alessandro Portale
d0de8b18dd QmlDesigner/Android: Rename designviewer -> qtdesignviewer
"Qt Design Viewer" is the name of the component.

Change-Id: I37228ca32badc4107bb0faa088af5f6afeb9a8ac
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Piotr Mikolajczyk <piotr.mikolajczyk@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-24 09:05:34 +00:00
Antti Määttä
bf6f41322c Handle particle system animation when selecting child object
Do not stop particle system animation when user selects particle system
child object. Instead continue particle system animation and if the child
parent particle system is another particle system, enable that animation.

Task-number: QDS-5562
Change-Id: I334f522536b53e7fb5cbebf8f7e9914f6394d165
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-24 05:44:45 +00:00
Cristian Adam
478f68042b GitHub Actions: Fix failures when commit message had certain characters
The variable was not quoted and in certain cases the CMake code checking
for ccache clearing messages would error and the job would fail.

See 28a20b75bab8908e43ebf553a2ae2ef52775861b

Change-Id: I7703a547129b3294b6d8094035a272e5d35c5c60
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-23 17:19:40 +00:00
Christian Kandeler
0c53c2daef CppEditor: Do not overwrite extra selections from language client
The broken libclang-based implementation used to remove the correct
results we got from clangd.

Task-number: QTCREATORBUG-26339
Task-number: QTCREATORBUG-26596
Change-Id: I9b7c1214c376b616fe204986ed37c287e2307f81
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-23 16:44:37 +00:00
Christian Kandeler
7498b5523a ClangCodeModel: Fix another mis-highlighting with clangd
Output parameter marking strikes again.

Change-Id: Id98e07e87824a9db435d09482235d56c6808d42e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-23 16:43:37 +00:00
Christian Kandeler
c53e3f4893 ClangCodeModel: Treat function-like macros like functions
... when completing with clangd.

Change-Id: I8ffc0ff7a4a0f819f2ae48aabbb16609eb178178
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-23 16:42:23 +00:00