Commit Graph

62421 Commits

Author SHA1 Message Date
Kai Uwe Broulik
b748f531ee ManhattanStyle: Check widget being not null
In case someone calls styleHint(SH_Widget_Animation_Duration)
without a widget.

Change-Id: If331f2365050b18fd6b06ce764c9ccbc7eede08a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-04-27 08:47:02 +00:00
Tasuku Suzuki
3fe7a56013 ProjectExplorer: Set focus to Kit filter on Kit Selection
Change-Id: I6acc3d620d3b254e31527164aa1ddb0831f50ee9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-04-27 08:19:28 +00:00
Tasuku Suzuki
142a41c6c8 ProjectExplorer: Add more space for Kis in new wizard
Tweak layout on Kit Selection page to show more Kits at a time

Change-Id: I94b2eafa0c214f64bc719a57cbfedb07b0ae7b78
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-04-27 08:19:01 +00:00
Eike Ziller
c865fe50f2 Mimetypes v3: Improve performance
When looking up mimetypes by glob or magic, we may not add a mimetype if
it was overwritten by another provider that did not find a match.

The patch that implemented that was very inefficient, because a huge
list of "handled mimetypes" was created that needed to be checked,
every time a mimetype was determined.

Instead inform each provider about their overridden mimetypes once after
loading the mimetypes.

Amends 98b1e82d2b

Fixes: QTCREATORBUG-27319
Change-Id: I409856c272c334798d7a71ce590ff2d4f69c71a1
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-04-27 07:39:24 +00:00
Jarek Kobus
74b1623acd PythonUtils: Connect to QtcProcess::done() signal
Instead of connecting to errorOccurred() and finished() signals.

Change-Id: I02fefe01cfc4be6ef996c7c8b98b36137217504e
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-04-27 06:26:45 +00:00
Jarek Kobus
8d2c9aa8d4 LinuxDevice: Implement shared ssh connection
Change-Id: I1897f0a468e477e0be61767d4bad0086d59fb075
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-04-26 17:36:01 +00:00
Jarek Kobus
c81a7b5c70 QtcProcess: Add processChannelMode() getter
Use ProcessInterface's setup data when handling
readyRead signals. In this way the user may still
change this setting, also when QtcProcess is running,
as a preparation for the next run. In this way this
works like all other QtcProcess mutators.

Change-Id: Ie80475e322162ce109fb95468ce858f9c98eefa9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2022-04-26 16:29:41 +00:00
hjk
88d148f01f CMake: Move error and warning handling
... from CMakeBuildConfiguration to CMakeBuildSystem.

Less back-and-forth this way.

Also, prefer plain buildConfiguration() over cmakeBuildConfiguration()
back-pointers.

Change-Id: Ie1341302ecc10e53d71ca68b7b6eb5f46cfdad5f
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-04-26 16:01:00 +00:00
Cristian Adam
8c050eaad9 CMake: Set the build directory change after Browse
As an user I expect when I select Browse for the build directory
that after the directory has been chosen it will be taken into
consideration.

Amends 1d600101ee

Fixes: QTCREATORBUG-27407
Change-Id: I331b6095c176f57ca8e4c73c0b378a11ce3d6dbc
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-04-26 13:24:48 +00:00
Eike Ziller
3211d064e0 Merge remote-tracking branch 'origin/7.0'
Change-Id: I3da1b663a570682201afbe644d6f9299019aae21
2022-04-26 15:22:35 +02:00
Thomas Hartmann
1f5ede1543 QmlDesigner: Do not show error while type information is incomplete
Task-number: QDS-6546
Change-Id: I1c295fc3417f7bb83d8cc0e751e1893cd74d8d4f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-04-26 12:09:17 +00:00
Thomas Hartmann
8e8491e32c StudioWelcome: Use Welcome as display name
Task-number: QDS-6788
Change-Id: I4a9400af6ce98be82826b1301aef7c383615e771
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-04-26 12:08:59 +00:00
Thomas Hartmann
5e75673dde QmlJsCheck: Add more ids to negative lists
Since those are QML keywords those ids can create
all kind of unexpected side effects.

Change-Id: I9ecb9b0559c57d59104aacedfca505b559de9685
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-04-26 12:08:22 +00:00
Artem Sokolovskii
9afe4f958a ClangFormat: Remove unneeded warning
- Remove warning when .clang-format file is absent
- Remove warning when a page is nullptr in addTab function

Change-Id: I4232bc77eaac56c78707fc37aaf75b00b8af9006
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-04-26 09:10:05 +00:00
Orgad Shaneh
48f01f503f ProjectExplorer: Only strip L from cplusplus macro if it exists
Old GCC versions have #define __cplusplus 1

Change-Id: I71286656df8f9925c2e0ccc46d32546037423268
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-04-26 06:59:42 +00:00
Jarek Kobus
ea6892d05d ApplicationLauncher: Cleanup
Get rid of public msgWinCannotRetrieveDebuggingOutput() method,
as it was used interally in Windows case only.

Get rid of m_listeningPid field, as that's the same what
applicationPID() returns.

Change-Id: I8bfac790f0d363e6f7cc12012597c7b8aaad6d92
Reviewed-by: hjk <hjk@qt.io>
2022-04-25 16:20:14 +00:00
Piotr Mućko
080249e902 McuSupport: Generate kit name in setKitProperties
Change-Id: I88a0a2b1291322ad9313eb5d2ad8cafa28f3bfec
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-04-25 14:14:56 +00:00
David Schulz
11ce6e365f Utils: fix QProcess backend on Windows
Do not return false from QtcProces::waitForStarted if the process is
already running. This causes mayor issues on windows since QProcess
directly emits started and therefore switches to the running state after
calling QProcess::start.

Change-Id: I4604b08a59918d3df11c8a174b57e1e483e78a0d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-04-25 10:04:48 +00:00
Cristian Adam
a5a06fe355 Core: Display build cpu architecture in about dialog
Previously we were displaying the word size: 32 bit, 64 bit, but
nowadays we could have x86_64 and arm64 and "64 bit" doesn't cut
it anymore.

Change-Id: I02c1942eae2b93726554561fa4eb83ac8a97dfa0
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-04-25 09:23:42 +00:00
Eike Ziller
04770346f7 Merge remote-tracking branch 'origin/7.0'
Change-Id: I1574de12ff58be4fdcffd29a5abdbdc8704b0453
2022-04-25 10:27:25 +02:00
Alesandro Portale
922c4636f0 QtSupport: Show thumbnails for YoutTube videos in "Tutorials" page
This change replaces the generic thumbnails for online talks and
online tutorials with an actual video thumbnail + "play" overlay.

The video thumbnails are stored as .webm files in order to have good
compression and reduced visual artifacts. In order to fetch and process
the thumbnails from YouTube, there is now the new Python script
downloadytthumbnails.py:

usage: downloadytthumbnails.py [-h] [-xmlfile XMLFILE]
                               [-outputdir OUTPUTDIR] [-overwrite]

Parses a 'qtcreator_tutorials.xml', downloads the video thumbnails from
YouTube, scales them down to WelcomeScreen thumbnail size and saves them
as .webm files.

optional arguments:
  -h, --help            show this help message and exit
  -xmlfile XMLFILE      The 'qtcreator_tutorials.xml' file.
  -outputdir OUTPUTDIR  Where the downloaded files are written.
  -overwrite            Overwrite existing downloaded files.

Task-number: QTCREATORBUG-26937
Change-Id: Id7a91c757e5d87996026e3d0d9e63f1cb7f2d76b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-04-25 07:35:28 +00:00
hjk
4297b9f289 Android: Avoid one use of ProcessArgs::splitArgs()
Replaced by the more harmless joinArgs in a compatibility settings
code path for now.

Change-Id: Id6d94faea26002f4a2641b5824d97e09a783b720
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-04-22 14:21:09 +00:00
Eike Ziller
3a1eda28b9 Add trademark info to about dialog
Fixes: QTCREATORBUG-27410
Change-Id: I496c7088cdcab68ba007ab1e43bcf7bfed8955f6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-04-22 13:02:16 +00:00
Jarek Kobus
2533a4cfd6 ProcessLauncher: Flush Done signal when waiting for started
After changing the protocol so that error signal is no more
sent we need to flush the buffered Done signal when
awaiting for Started signal.

Change-Id: I274bfa375db05627348684f11be535d79c62b42b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-04-22 12:43:19 +00:00
Jarek Kobus
6599a67737 ProcessLauncher: Pass start packet into the launcher socket
Instead of holding the start packet on caller side when
launcher socket isn't ready yet, pass it into the launcher
socket and buffer it there until the socket becomes ready.
This simplifies starting the process considerably.

Get rid of CallerHandle::canWaitFor(), as this is already
checked by QtcProcess itself.

Get rid of LauncherHandle::m_waitingFor field and
LauncherInterface::isReady() method, as both are not used anymore.

Change-Id: Ida6f0629170647249e562028c3ea5db1830b8a0d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-04-22 12:43:10 +00:00
Jarek Kobus
f630f49924 QtQuickCompilerAspect: Compile fix
Amends 5da8695dca

Change-Id: I532df0d3488750f5792f4ec09558d48d7e3ed752
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-22 12:34:06 +00:00
hjk
e4105330ab QmlDesigner: Compile fix with namespaced Qt
Amends 45ca3e030b.

Change-Id: I91956803ffebbb118a1d891e6bc433a370515248
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-22 12:14:56 +00:00
hjk
4faba42353 Webassembly: Compile fix
Missing #include.

Change-Id: Ifeffb9370547916ea014a8c4b8009a911aa2d72b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-22 12:14:42 +00:00
hjk
5da8695dca ProjectExplorer: Pass envAspect directly to WorkingDirectory constructor
This trades a now necessary order of setup for the now removed
"acquaintSiblings" facility.

Change-Id: I85058578b792e210f24573e2ab4e3a40a8813a11
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-04-22 11:53:59 +00:00
Fawzi Mohamed
a3b1dfd34a qmljs: correctly handle js string templates
In most cases we do want to visit the expressions in a function
template. Changing its accept0 would force those not wanting to visit
it to iterate on the templates (currently a linked list), so we add a
visit method explicitly visiting the expression in all the needed
places.

Fixes: QTCREATORBUG-21869
Change-Id: I47733544bfd32eec357810b97242608b8f7de572
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2022-04-22 10:43:38 +00:00
Alessandro Portale
2a39f35983 Icon Svg export.py: Make id to dir conversion work on Linux
Still works on Windows.

Change-Id: Ic16618b7d57d9d2f9d3c6d817c20eb4860dd1e22
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-04-22 10:25:53 +00:00
Jarek Kobus
3088f32115 SpotlightIterator: Connect to QtcProcess::done() signal
Instead of connecting to errorOccurred() and finished() signals.

Change-Id: I18548db319274ff28c78fc877711ce7536953212
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-04-22 09:14:06 +00:00
The Qt Project
241d8d014b Merge "Merge remote-tracking branch 'origin/7.0'" 2022-04-22 08:30:05 +00:00
Christian Kandeler
22ec44b5f3 Update qbs submodule
... to HEAD of 1.22 branch.

Change-Id: I72ccdd5bd8070baf214a74df32c443f1ba87ac0c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-22 08:24:13 +00:00
Christian Kandeler
7bace9d926 ClangCodeModel: Consolidate clangd highlighting data structures
Put all the highlighting-related data in one place.
No functional changes.

Change-Id: Ic13e755601682895b27a358b5783c52acc11794e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-04-22 08:23:56 +00:00
Eike Ziller
e2d5b6616a Merge remote-tracking branch 'origin/7.0'
Change-Id: I01ce83a2da66bb65af37c0ecc92372789cb85c01
2022-04-22 10:04:39 +02:00
Christian Stenger
9656eb9e7a QmlJS: Fix more invalid M325 cases
Fixes: QTCREATORBUG-27380
Change-Id: I76d1ef3d2f2a4cc9d930a006ecb3b564efea3fbc
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@qt.io>
2022-04-22 05:24:21 +00:00
Christian Kandeler
cf96a91b69 ClangCodeModel: Fix mis-detection of class members as operators
The name check was not tight enough.

Change-Id: I5d813a29525bd5b5c23ce04f0bd9e5982a36536e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-21 09:17:15 +00:00
Christian Kandeler
fd02996ec9 ProjectExplorer: Remove legacy code
No need to support pre-4.13 settings for an exotic feature like custom
toolchain parsers.

Change-Id: I4c9267d687049f66d3427ed596c91aaaa3c4a2eb
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-21 09:14:40 +00:00
David Schulz
2529b62315 Editor: improve open link via mouse press
It improve in the situations where the mouse move slightly between press
and release event, this should be mostly notable for trackpad users.

Fixes: QTCREATORBUG-26595
Change-Id: I36ef7d23c80c09b9248abd8313c040993ece92a4
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-21 08:01:23 +00:00
Eike Ziller
d1686e1867 UpdateInfo: Fix parsing of update info
It was no longer showing any updates. At some point MaintenanceTool
added <?xml...> headers to its responses, which broke our combine-and-
parse hack, since such a header in the middle of XML is invalid.

Add a hack that removes these headers first. This should be refactored
without the use of ShellCommand in master, because that doesn't allow us
to access the output of the two jobs separately.

Change-Id: I7248b070a8edb1a45248b3531ed50bb0d94eef73
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-21 06:56:56 +00:00
Eike Ziller
98dda165e4 UpdateInfo: Add some auto test
Change-Id: If97121bda98e1b09f093d0bcc8f60efb1aa18235
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-21 06:56:47 +00:00
Jarek Kobus
c53e846ab9 ExternalToolRunner: Connect to QtcProcess::done() signal
Instead of connecting to errorOccurred() and finished() signals.

Change-Id: I8f201f508b60ae795a4f7dfbbb4edb3d3fe8b030
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-04-20 14:51:41 +00:00
Eike Ziller
3b2134711b Merge remote-tracking branch 'origin/7.0'
Conflicts:
	src/plugins/webassembly/webassemblyrunconfiguration.cpp
	src/tools/processlauncher/launchersockethandler.cpp

Change-Id: Iab052af98013aa59282c16f22ae6e9ecb32f50c4
2022-04-20 16:12:41 +02:00
Christian Kandeler
d0a192064e GenericProject: Re-introduce variable resolving in include paths
Variable expansion and relative path resolving were accidentally removed
in 25ff15a1fb. Relative path resolving was re-added in 214968a80b, which
is superseded here.

Fixes: QTCREATORBUG-27401
Change-Id: Ida09e7b486765942c43acf55c4ef9c04eb3df12b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-20 13:35:46 +00:00
Cristian Adam
80d4c54d2a sdktool: Fix compilation build with MinGW
This has not been caught by GitHub Actions because sdktool is only
being built with MSVC.

Amends c246caf7a9

Change-Id: I620743467e24f77d2bc1861daa03202359d0cc6f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-04-20 10:41:03 +00:00
Eike Ziller
fb1f19c7c1 Fix duplicate entries in examples dropdown
Both the "normal" Qt node adds an example set, and the Android/
Automotive node adds another one with the same paths, leading to e.g.
two items "Qt6 6.2.4" in the dropdown for the examples.

De-duplicate example sets with the same paths, which we already do if an
example set and a Qt version itself refer to the same path.

Fixes: QTCREATORBUG-27294
Change-Id: Ia469045b2f2812612fcd8328bdfd223479b8d449
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-20 08:24:15 +00:00
Artem Sokolovskii
72dd90e512 ClangFormat: Start to use new file management
- Indenter uses .clang-format file from a dir of
editing file or from a parent dir. If there is no
such file then indenter starts to use file from a dir
with the name current CodeStyle settings.
- Test fixed

ToDo: Add file absentness processing in case of import

Change-Id: If09ef0c598899856b948c214e524bcfd5dad76e2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-04-20 07:52:17 +00:00
David Schulz
3f9c1d5d2b Editor: fix selecting multiple block selections with mouse
Change-Id: I5b46adbf38358d1396ee7120558648b1375e4047
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-20 07:45:12 +00:00
David Schulz
63702b52e2 Core: increase navigation size of navigation history
Fixes: QTCREATORBUG-27386
Change-Id: I0577e5cb4b799e485b5c17962d887c55b804a6d3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-04-20 07:44:56 +00:00