Commit Graph

74059 Commits

Author SHA1 Message Date
Tapani Mattila
bf4a85d60c CMake generator: Fix support for deeper module folder structure and asset_imports
Task-number: QDS-5585
Change-Id: Id7d6f551acc5692a6c7c580d5ffc90ca7528bbc8
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-11-30 19:25:41 +00:00
Christian Kandeler
684f5da066 Android: Try harder to find the right qmake project file
... for adding the OpenSSL libs to.
For the typical Android case of a single application product, this will
do the right thing, and otherwise won't do anything worse than now.

Fixes: QTCREATORBUG-24255
Change-Id: I577f3cbd3fda086b8a7c7c5614d0ca79ff9d46f7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-30 16:54:52 +00:00
Thomas Hartmann
1e537f7ab0 Wizards: Expose project name for qmlproject to file wizard
If the project has a .qmlproject, then this exposes the name
to file wizards.

Change-Id: I3522784bc5fb4d373072eb72e5881d7a6d1d2777
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-30 15:40:51 +00:00
Eike Ziller
536c31fd89 Doc: "New File or Project" was split into "File" and "Project"
For Design Studio

Change-Id: Ie6246e3c3f3527702c4562ec6f8fcbf5fae6c6ad
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-11-30 15:37:54 +00:00
Eike Ziller
a1608ec9e4 Update 6.0 change log
Change-Id: I16823d33655a29db17ad070b0c745179252c3da4
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-11-30 15:03:13 +00:00
Eike Ziller
46f611bee1 Fix icon for headers and sources on macOS/Windows
On macOS and Windows, we used the system icon for C/C++ source and
header files. This was probably done under the assumption that the
system would have sensible icons registered for these types via Xcode/
Visual Studio, but actually that assumption is not very well founded.

For example I have set emacs as the default editor when double clicking
C/C++ files, and then get the same little emacs icon on all .h and .cpp
files in Qt Creator, which is not useful. There seem to be more effects
on macOS 12 leading to a generic icon too.

Fixes: QTCREATORBUG-26586
Change-Id: I88616b28d51f1583324bac9c802c9cc5bbc8ee70
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-30 14:38:02 +00:00
Mahmoud Badri
53ffd806aa QmlDesigner: Remove faulty blue color behind docking widgets tabs
Fixes: QDS-5653
Change-Id: I71bc6267b1e40016fbcacc7ae4d6b21b76c8d701
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2021-11-30 13:14:38 +00:00
Cristian Adam
e6957808ec GitHub Actions: Build macOS dmg file only on release
The regular builds should be as fast as possible.

Change-Id: I76b9ac009831192053f2163b1f73fb2183f3e791
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-11-30 12:06:19 +00:00
Cristian Adam
7f1b2bda9d GitHub Actions: Increase number of artifacts to search after cache
By default it's 30 per page and one page. Increasing to 100 per page
and trying out 10 pages should provide recent results.

Change-Id: I46d8e20a35f94d2ef81cc0bbead4bade66a17f5a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-11-30 11:59:04 +00:00
Cristian Adam
4a41f97a48 GitHub Actions: Store ccache storage directory as artifact
GitHub Actions cache action uses the branch name to scope the file
caching, which when using with a gerrit bot can lead to cache
misses.

By using the cache storage as an artifact we can always get the
artifacts if previous jobs created them.

By upgrading to v2 of actions/download/upload artifact we remove
the v1 problem of the upload action that creates a directory name
with the name of the artifact, which leads to failed release
uploads.

Change-Id: I8cb8c3242b58f709f51202852ad45d42b833fa84
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-11-30 09:54:45 +00:00
Eike Ziller
bcc0160ea5 Prevent litehtml from downloading googletest
We don't want litehtml tests, and downloading content during the
configure/build is not nice either.

The litehtml CMake files include CTest, which adds
BUILD_TESTING as an option (default ON), and if it is on,
litehtml downloads googletest with FetchContent.

Fixes: QTCREATORBUG-26626
Change-Id: I1e8d1cde8819d52e96a925a52392cdb8068701d5
Reviewed-by: Youri Westerman <tetracon@gmail.com>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-11-30 09:52:02 +00:00
Eike Ziller
c996c08a2f macOS: Fix crash when quickly canceling device test dialog
and the settings dialog, by quickly pressing escape (twice) after
closing the device setup dialog.

The device test dialog was created on the stack, and run with exec(),
which creates another nested event loop for it. If the escape keys got
into the event queue before the device test dialog was shown, the first
key event was handled by the device test dialog correctly, but the
second key event was delivered to the settings dialog _within the device
test dialog's event loop_.

So, while the stack still was within DeviceSettingsWidget::testDevice()
and the dlg.exec() call, the settings dialog was rejected, and
recursively deleting children, including the device settings widget and
even worse the device test dialog - which was created on the stack. That
leads to a crash.

Move the device test dialog to the heap and use show() instead of
exec(), which fixes the issue and is the preferred method anyhow.

Fixes: QTCREATORBUG-26285
Change-Id: I03a0d1b92e466e18b753cad11482afdae2da24d0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-30 08:28:10 +00:00
Christian Stenger
355105b7a2 Tests: Fix setting up env for tests on Win
..when testing MinGW env inside a MSVC dumper tests.
Amends 652b9844e6.

Change-Id: I259e4392078628f6ec235291ac101bad973ff70d
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-30 08:06:34 +00:00
Christian Stenger
7017ad6419 ProcessLauncher: Fix qmake build on Win
Amends 102d5fe46c.

Change-Id: Ibaa314bdd611ee679f06793634615753ec838956
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-30 06:12:52 +00:00
Eike Ziller
fe710cadf9 Work around error when building telemetry plugin
Change-Id: Ia4a4314180b561c2a45446b1ae550c3164612b10
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2021-11-30 05:09:49 +00:00
Alessandro Portale
37e118b5ec Core: Base GridView on QListView (instead of on QTableView)
Use QListView with its very capable icon view mode instead of QTableView
in order to layout items in a grid.

This removes the need for the GridProxyModel.
It also leaves the previously self-implemented calculation of columns
count to QListView. Only the ProductGridView still needs to calculate
that.

Change-Id: If6e7f033fc78883930794c1e261aea396ae25190
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2021-11-29 19:09:58 +00:00
Christiaan Janssen
483a0158e8 McuSupport: fix cmake variable name for McuXpresso
Task-number: UL-5057
Change-Id: I6c5861c33b42ff691c934bb98cecb3677b245134
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-29 17:04:22 +00:00
Leena Miettinen
4c82d69779 Doc: Update info about opening output panes
- Describe additional ways to open output panes.
- Add a screenshot of the taskbar.
- Add descriptions of related icons.
- Fix the Maximize Output Pane command keyboard shortcut.

Task-number: QTCREATORBUG-26278
Change-Id: I92712d1542871119e4402df18bd10c9563a335d3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-29 15:30:50 +00:00
Cristian Adam
8b341a4109 GitHub Actions: Ignore doc and dist changes
Also remove the pull_request support for github actions, since we
don't support the pull request workflow for contributions.

Change-Id: Ia0a1ab7c996f679195fde455c1f06911077d6deb
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-11-29 15:12:42 +00:00
Christian Kandeler
8c7528212b Fix qbs build on Unix
Amends 102d5fe46c.

Change-Id: Ibe5d8da540544c323ce1b7576c664d14c76e0ed6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-11-29 14:11:58 +00:00
Cristian Adam
102d5fe46c Utils: Allow graceful termination of reaped processes
Utils::Internal::Reaper class is doing graceful termination of
process. It tries in a loop to first terminate() then kill()
the process and at the end delete the object.

Utils::ProcessReapder::reap should not kill the process directly,
and now that the function works with a QProcess, the special
handling of QtcProcess::terminat() of qtcreator_ctrlc_stub.exe
processes needs to be handled explicitly.

Amends ace765c199

Fixes: QTCREATORBUG-26612
Change-Id: Ia109ec0737a8c605a84e93b6ee3691d843ed5da8
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2021-11-29 13:03:40 +00:00
Leena Miettinen
0f4a203337 Doc: Edit the How-tos for grammar and punctuation
Also remove the specific mention of Shift key for enclosing
code because that requires Ctrl for curly braces on some
keyboards.

Task-number: QTCREATORBUG-26278
Change-Id: I7daa02392e9f405264bbc5960ad569ea2a4b281b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-11-29 12:18:24 +00:00
Cristian Adam
7a0bdccadf CMake: Remove debug list source files comparison
This was needed in the early days of the CMake port when the list of
source files would change due to being added to the qmake project
files.

Change-Id: I7afd219b24ab7a0d87fce26ba35dac75cf8caa5b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-11-29 10:34:18 +00:00
David Schulz
6aa2c58842 LanguageClient: remove semantic highlighting proposal
The semantichighlighting proposal from
https://github.com/microsoft/vscode-languageserver-node/pull/367
was replaced with semantic tokens in the final protocol version 3.16.

This reverts 307f1d8e6e

Task-number: QTCREATORBUG-26624
Change-Id: I635f0b4763a197edabf9edf8d9041143dcf531e3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-29 09:57:45 +00:00
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