Commit Graph

72385 Commits

Author SHA1 Message Date
hjk
251b47c834 ClangTools: Inline project settings widget
Allows nicer translatable strings.

Also remove the extra white space in the outer layout.

Change-Id: I9b7c82f932f8b0f0a7fc78a3aba6d2ea292dc670
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-12-02 12:23:22 +00:00
David Schulz
dbc4cd6f4a TextEditor: always replace cursor
Otherwise some internal data might be outdated. For example inserting
text resets the QTextCursorPrivate::x which is used to calculate
positions when moving the cursor up or down.

Fixes: QTCREATORBUG-26635
Change-Id: I9fee7436a3648f9d3eab7b30f8a09a134c5be356
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-12-02 11:42:46 +00:00
Eike Ziller
2e42c99522 Prevent litehtml from downloading googletest, take 2
Put BUILD_TESTING into the cache, so it doesn't get overridden by the
default option in a clean build via policy CMP0077

Fixes: QTCREATORBUG-26626
Change-Id: I8b90286c82a60ba30eb9b036dac8fca3be82cc2e
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Youri Westerman <tetracon@gmail.com>
2021-12-02 11:16:08 +00:00
Eike Ziller
4cbfdecaf3 Bump version to 6.0.1
Change-Id: Idc7519d7b74968cb6bdb473ff3dabff18ad0cee5
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-12-02 11:15:35 +00:00
Thomas Hartmann
0e696e19fe QmlJsCheck: Allow new connection syntax in Connections
Change-Id: Ibbef3f8e8230d727d3183fa1615e0f38373a3c7f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2021-12-02 11:04:40 +00:00
Eike Ziller
d097314873 Split "New File or Project" into "File" and "Project" parts
This was non-standard to begin with, and splitting it makes it
possible to have different designs for New Project and New File dialogs
that are more tailored for the different needs (as is done in
Design Studio)

Change-Id: Ie6246e3c3f3527702c4562ec6f8fcbf5fae6c6ad
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2021-12-02 11:02:35 +00:00
Christian Kandeler
510ab1a659 QtSupport: Use red color for failing test cases
We want them to stick out in the output pane.

Change-Id: I2276c93301500fa67a3e23a61cde021b1993a247
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2021-12-02 10:46:32 +00:00
hjk
e1370a01ff Debugger: Fix interrupting via console
Amends 89646aadce.

Change-Id: Ibb644dc8897a967bd691155fe5be2eb2165b01f9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2021-12-02 09:33:17 +00:00
Eike Ziller
421d8038dc Merge remote-tracking branch 'origin/6.0'
Change-Id: I2ae142f02ee184d756932bf594c25addd3c2676c
2021-12-02 09:31:03 +01:00
Miikka Heikkinen
26ba5bdb0c QmlDesigner: Fix puppet crash with nested Repeater3Ds
Repeater3D instance instantiated by another Repeater3D got its
componentCompleted called twice because a repeater constructing a
child repeater already completes the component as part of the process,
and then we recursively complete the children again when completing
the parent. Added a check to avoid duplicate completions.

Fixes: QDS-5651
Change-Id: Iefc7deff4877df903f784396f2efd13468f604b7
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-12-02 08:09:58 +00:00
Alessandro Portale
df1876f0d0 Remove nested margins in project panel wigets
While maintaining the margins in the respective option pages.

Change-Id: Ia7c0e9f68ab196be0d68632117041eca9f4b15f5
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-12-02 08:08:14 +00:00
Antti Määttä
eadc9cb0e3 Improve particle system animation driver
- Do not automatically restart particle system animation when pressing the
  restart button if the animation is paused.
- Use own QElapsedTimer in AnimationDriver and properly handle animation
  driver pausing.

Change-Id: Ic2924fb66fddffb8878625be8fa766f06219ca61
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-12-02 05:32:45 +00:00
Oliver Wolff
beb167a963 Add qt's toolchain file to initial cmake arguments for Windows on ARM64
Fixes: QTCREATORBUG-26636
Change-Id: Id9fc9f3c2242136d2fa4d42e7e64b038a50b1809
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-12-02 05:19:46 +00:00
Christian Stenger
38b2bb9fb2 TextEditor: Fix crash in hover handler
Amends 2dbe5c72d8.

Change-Id: If4343f606af1bdf25409ffaef82e44456fee7ee4
Reviewed-by: David Schulz <david.schulz@qt.io>
v6.0.0
2021-12-01 15:44:46 +00:00
Alessandro Portale
fd768cf55e Android: Show native paths in .pro File selection dialogs
Change-Id: I99e15a5d9ae3074447513e5e08f843c05653957e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2021-12-01 13:31:29 +00:00
Christian Kandeler
0cc4617c78 CppEditor: Add settings for clangd session mode
Complete with (hidden) UI. Doesn't do anything yet, because some
assumptions about projects need to be adapted on the LanguageClient side
first.

Task-number: QTCREATORBUG-26526
Change-Id: I34c92555e34c3d3ed98462261d47b35dfc015ce0
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-12-01 13:26:35 +00:00
Mats Honkamaa
06e1182574 Doc: Split the Examples and Tutorials Section into two pages
Splitting Examples and Tutorials to own separate pages.

Task-number: QDS-5495
Change-Id: I0014f1ab456298e9b5887b511f608725ec9d2455
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2021-12-01 13:15:28 +00:00
Christian Stenger
8fd937f29f StudioWelcome: Fix missing include
Amends 536f96fef8.

Change-Id: I1e143fc42fe6e085798d39da11292b9f9faf81f0
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-12-01 12:07:09 +00:00
David Schulz
cc7619804e LanguageClient: announce opened projects just once
... and not on every file list change.

Change-Id: Id74aceb5bb382c01746eca0e014da72e2260b8d8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-12-01 11:42:00 +00:00
Christiaan Janssen
b4eb6ff4dd McuSupport: fix armgdb registration when creating kit
Task-number: QTCREATORBUG-26631
Change-Id: Ia1854ba2a4d34afff1d2c80aac4c9919cd3142dc
Reviewed-by: Erik Verbruggen <erik.verbruggen@me.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-12-01 11:32:46 +00:00
Samuel Ghinet
536f96fef8 Fix visual issues in new project wizard
* Make Project name text field have the same font size as the rest
* Use Titillium Web as the font family for the title
* Reduce the top padding of the dialog box
* Renounce the section "Advanced" from Details - we still have the items
  in the section, just not the section itself.
* Add scrollbar for the details pane - to allow smaller size dialog
* Move the tab bar (Presets) out of the GridView component - so that
scrolling the view would not also scroll the header.
* The Project view now shrinks if the dialog box is shrinked too much,
also reduced the minimum sizes of the dialog
* Resize dialog on screens smaller than 1920 x 1080
* Increase the space between Presets, Details, Styles text and their
top margin
* Lower the project item width from 144 to 90, so that project items in
the view are not so distanced from each other.
* Align the Cancel button with the left margin of the Style pane

Task-number: QDS-5500
Change-Id: I340967941c5c56c89b8741079cb64e355a283e3b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-12-01 09:35:16 +00:00
Henning Gruendl
f79a93dc2b QmlDesigner: Hide ComboBox ScrollBar if not needed
Change-Id: I1e8d9917b7b966b6c4e68459185c54dda7d21015
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2021-12-01 09:09:25 +00:00
Christiaan Janssen
da192fb1e8 McuSupport: adjust more cmake variables to the 2.0 API
* added missing mapping for RGL_DIR
* remapped TVII_GRAPHICS_DRIVER_DIR and EK_RA6M3G_FSP_PATH
* fix duplicated EVK_MIMXRT1170_FREERTOS_PATH (second one should be IMXRT1050_FREERTOS_DIR)

Task-number: UL-5070
Change-Id: Ic2a69df6e5ba9a0c05f360e5e800d4c19ec966f4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-12-01 08:59:51 +00:00
Eike Ziller
d62d0f305b Merge remote-tracking branch 'origin/6.0'
Change-Id: I71b19dd8ecd96a7a2a58622f68283b8635264e48
2021-12-01 09:24:05 +01:00
Leena Miettinen
b6fe15294e Doc: Add CMake way of making global changes to build environment
Task-number: QTCREATORBUG-26616
Change-Id: I67668c64c6e61e36f35a33947c19be5ec1651dad
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-12-01 07:49:28 +00:00
David Schulz
333374e6a9 LanguageClient: move remove project connection to client
Change-Id: I63ff089c7b72a4f72ddf65548dc8df1cc6763ff9
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-12-01 05:39:08 +00:00
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