Commit Graph

76860 Commits

Author SHA1 Message Date
Jarek Kobus
60a5f77ef2 Drop Qt5: VCS: Get rid of QComboBox QOverload
Change-Id: Ib2f21f28a0ec16b817f9227c6234424001752d50
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-07-19 21:45:59 +00:00
Jarek Kobus
ae9a330344 VcsManager: Avoid using sender()
Change-Id: I09cca9c85b4300f25aa195be3c399d1511e2da11
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-19 20:22:00 +00:00
Jarek Kobus
e7b43b6b8b SubmitEditorWidget: Avoid using sender()
Change-Id: I748dbf6232e89ffe0e412894bf708434be247e31
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-07-19 20:17:28 +00:00
Jarek Kobus
7f4363e51a VcsBaseEditorWidget: Get rid of DiffChunkAction struct
Change-Id: Ia35a8ef6b836709f7e058cfe33bf902f015e89b9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-07-19 20:17:20 +00:00
Jarek Kobus
52e649cf53 VcsBaseEditorWidget: Avoid using sender()
Change-Id: Id300535d40b52a2f7d3e69fca77ca75271da8711
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-07-19 20:17:09 +00:00
Thomas Hartmann
fa29dcb1cd QmlDesigner: Ignore excpetion in special corner case
If users do a ".." import the type name was "...XYZ".
This could be considered technical correct, but is really not
what we want to do in this case. The type is associated with
a QML file anyway in this case.

Change-Id: Icaac5cb237f4ae2a98f6458f119047cbdc87a64b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-19 17:38:45 +00:00
Thomas Hartmann
8ff3c0ac2b QmlDesigner: Ignore Behaviors when sending items to puppet
Change-Id: I86b787ce2502622a43542f60046880f53c2c2698
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-19 17:38:33 +00:00
Ulf Hermann
07b0147714 Tracing: Add some civilization to TimeMarks.qml
Use concrete types and annotate JavaScript methods.

Change-Id: If636741181d0ae28605f3f37b46d9011130f5988
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-07-19 13:49:46 +00:00
Jarek Kobus
715e304f93 VcsCommandDecorator: Don't leak future objects
Don't leak QFutureInterface<void> and QFutureWatcher<void>
in case VcsCommandDecorator was destroyed before
the task was finished.

Change-Id: Ib915afe29250f3e5c3fe2e1d465005a0c980252b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-07-19 13:47:19 +00:00
Jarek Kobus
163625f56a VcsCommandDecorator: Fix call to abort()
Call ShellCommand::abort() instead of std::abort().

Amends a640a6ae8c

Change-Id: I3e71c1e919ef05100934011d1f9a80961249cddf
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-07-19 12:48:58 +00:00
Jarek Kobus
a91ff34836 ClangdFollowSymbol: Don't leak ClangdFollowSymbol::Private
Change-Id: Ic8486d832084ae700322f0696d7b7321f0daf35f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-19 09:05:02 +00:00
Christian Kandeler
5c341854e0 ClangCodeModel: Fix callback handling when following symbols
Make sure emitDone() is atomic with running the callback, so in case the
latter starts an event loop of its own, we won't be overtaken by
incoming signals, deleting the object from under us.

Task-number: QTCREATORBUG-27910
Change-Id: I586d7609974662bf391b12041f416aaa2a973ecb
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
v8.0.0
2022-07-19 07:44:18 +00:00
Ulf Hermann
7fb871944d Tracing: Give TimelineModel a name and make its properties FINAL
You really should not shadow them. The name helps to use it from QML
in a type safe manner.

Change-Id: I3fbd03ad267e10f5003647cdfb916a6f90e30b8c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2022-07-19 07:17:58 +00:00
Ulf Hermann
df8d01dd1e Tracing: Untangle dependencies between CategoryLabel and TimelineLabels
CategoryLabel only needs a parent for the dragger and a way to position
itself. It doesn't need all the other properties of TimelineLabels.

Change-Id: I33b94ec6ae7bf2a54e233e9e6c1b3e30ff9c19d2
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-19 07:17:40 +00:00
Ulf Hermann
ffbd1ed7b5 Tracing: Add type annotations to some functions
Change-Id: Ie82a12cb74d6315ab0bcb3efa1e88038ae4ed6f3
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-19 07:17:26 +00:00
Ulf Hermann
c2691094ca Tracing: Depend on QtQuick
Otherwise qmlcachegen and qmlsc won't find any QtQuick types when
analyzing the QML-exposed C++ types of the module.

Change-Id: Ic7860b430c04b9290e2f972e4761f1ccbc7f67ab
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2022-07-19 07:17:16 +00:00
Cristian Adam
b2407dbde5 CMakePM: Update conan.cmake to version 0.18.1
This is the latest released version at this moment in time.
It has support for Visual C++ 2022 detection.

Fixes: QTCREATORBUG-27814
Change-Id: Ib4fa288ced1271e1964b2ae0f7d6a6c5e403cf53
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-18 17:16:55 +00:00
Alessandro Portale
b783d1bd2a qmljs: Fix linker issue with Qbs build
This adds Utils as dependency of the QML reformatter autotest.

Amends: fd89043de2

Change-Id: I713289b1221ea70b37ddda8073c61f4ec18850bd
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-18 10:27:59 +00:00
Christian Stenger
dd39d07cd3 SdkTool: Fix qbs release build with auto tests
Change-Id: I42777d24f96186d099a30f9da8ac99b0b1bcba4f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-18 09:30:38 +00:00
Marcus Tillmanns
07cb8876db deviceshell: Fix racecondition and long running tests
When writing to stdout and stderr from two processes, their output could become
interleaved. To work around that, we write stdout and stderr to different files
and later combine them together in the shell script.

Since tst_deviceshell tests could run for a long time if /usr folder
is too big, added a check that first tests the runtime once.

Since we currently only support linux containers, limit the tests to
only run if the container platform is linux as well.

Change-Id: I4b313596cdf9acc839d54d7cc77c66fd53ac23bf
Reviewed-by: hjk <hjk@qt.io>
2022-07-18 08:06:06 +00:00
Cristian Adam
825a3a5e7e GitHub Actions: Update MSVC runner to windows-latest
Also change to MSVC 2022, which is the only MSVC compiler present
on the windows-latest runner.

MSVC 2022 is backwards compatible with MSVC 2019 and should work
fine with our Qt 6.3.1 MSVC 2019 package.

Change-Id: Id9967de33d2fea03f86243f8d54d369095918cfe
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-18 07:50:35 +00:00
Alessandro Portale
34213f5717 Tracing/QmlProfiler/PerfProfiler/CtfVisualizer: Remove pre Qt 6.2 code
- Remove code for Qt below 6.2 from c++ sources and CMakeLists.txt
- Remove Qml code from .qrc files
- Qbs: Add qt.core.resource_data Groups for Qml code
- Remove OpenGL shader .frag and .vert files
- Remove Qml import version numbers

Change-Id: I3bd1cd95381e66c98ee3af4259e89b0b1eff0709
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2022-07-18 07:11:06 +00:00
Alessandro Portale
8ad4acdd30 Android: Don't quote log lines with path names
Change-Id: I70f23af46bd6c8318971b20727e4010889bdcebc
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2022-07-17 11:11:45 +00:00
Thomas Hartmann
a3f08d8ac6 QmlDesigner: Add default Connections to wizard template
Task-number: QDS-5963
Change-Id: I894ce59adfaafa6ff71d6fa958b8aa836564a20a
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-15 14:23:24 +00:00
hjk
71ec25895f Utils: Centralize adding layoutitems in LayoutBuilder
As a side-effect, this fixes adding stretch and space in the the dummy
vboxes for formlayout fields with more than two items that was
accidentally missing before.

Change-Id: I18e4755ccd3cd9e1de761b70dc621b17376277dc
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-15 12:05:08 +00:00
Eike Ziller
4c2306798d COIN: Include QtWebEngine in PRECHECK
Though we don't want to ship packages with it, it should still check
compilation.

Change-Id: I2ca018a564cf8164deb6d8ebc3e428c6969991cf
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2022-07-15 11:06:50 +00:00
hjk
11deab03a9 Utils: Set up form layout buddies automatically in LayoutBuilder
Change-Id: I79e523f7847258a43ffe263f80c52983651aa34d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-15 10:11:59 +00:00
hjk
2b3386908a app: Adapt to Qt >= 6.2
Change-Id: Ia27bccff16f0ba41e18c72ffd950b15e800fcf47
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-15 10:11:47 +00:00
hjk
0108c48463 Utils: Adapt fake TipLabel to Qt >= 6/2
And fix a warning about some stack-allocated offsetsAndSize member going
out of scope.

Change-Id: Icfd1de121cb951783a96f8195c3160c65c405cd4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-15 07:12:14 +00:00
hjk
d83eb0494a Use setClipboardAndSelection more broadly
Basically everywhere besides the EmacsKeys plugin.

Change-Id: Iaf2a0a5d791b5b3dd6df2c05c1b862516630d3f8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-15 07:06:25 +00:00
hjk
a5cb967704 Help: Adapt to Qt >= 6.2
Change-Id: I8529b33c597ab3ea795a6ac599f6f52ae36fce50
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-15 07:06:12 +00:00
Leena Miettinen
ff476cd87c Doc: Describe filtering Clang Tidy and Clazy checks
Task-number: QTCREATORBUG-27560
Change-Id: Iafd13201227b026d47f38aecb096c742e18552ca
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-15 06:53:35 +00:00
Leena Miettinen
48ebab7c58 Doc: Fix links in the Glossary topic
- "Target Platforms" has been replaced with separate topics
  for "Embedded Platforms" and "Mobile Platforms"
- Linking within the Glossary did not make sense because
  the whole page fits on the screen, so nothing happens when
  clicking the links

Task-number: QTCREATORBUG-27560
Change-Id: I55fe0b98685f67aab7ad0c9a00d28ac744235a9a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-15 06:49:29 +00:00
Marco Bubke
21b8186108 Help: Fix missing header for TR
Change-Id: I8f94ca9ff81ec7d4d2c902d7a28b771259ca33ec
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-07-14 15:56:48 +00:00
Jarek Kobus
a640a6ae8c VcsCommand: Don't derive from ShellCommand
Transform VcsCommand into VcsCommandDecorator and
attach it to ShellCommand. There is no need to derive
from ShellCommand anymore.

Use ShellCommand's public API to setup vcs command via
VcsCommandDecorator.

Make ShellCommand final.

Change-Id: I39e3699c80a9e108bcaeef7fb02214e2cc0d0dee
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-07-14 14:19:33 +00:00
hjk
a1588918b3 Utils: Adapt ProcessHelper to move to Qt 6.2
And move constructor out-of-line.

Change-Id: Iab92dbef56d60f2ec2d19b778fd968834dd72766
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-07-14 13:57:49 +00:00
Leena Miettinen
cc2a79fb2e Doc: Fix reference to "Locals and Expressions" view
They are now two separate views.

Task-number: QTCREATORBUG-27560
Change-Id: Iab659bd915c213d11db08b3a2b8749ebdbc5e70c
Reviewed-by: hjk <hjk@qt.io>
2022-07-14 13:52:57 +00:00
hjk
775aa8f9e5 Utils: Fix doCleanPath()
QString::right() != QString::mid(), except for very special cases.

Change-Id: I0b4d8e46b7631975dd1c3c38b50f4f336bff3f2e
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-14 13:24:49 +00:00
hjk
472f62734d Core: Also set selection from context menu actions
Change-Id: I1198cd20705c01e5025775a0aa0431fe0d198ffe
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-14 13:20:09 +00:00
Leena Miettinen
1e0cd24020 Doc: Update how-tos
- Fix menu paths to preferences
- Refer to existing screenshots of Preference pages
- Add information on setting preferences for
  automatically inserting matching characters
- Update the Completion preferences screenshot to show all options

Task-number: QTCREATORBUG-27560
Change-Id: Ib820c9bd19dc71ce109a4a59d40d6f276eb001ac
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-14 13:20:03 +00:00
Jarek Kobus
e6001ae2a0 AppOutputPane: Update buttons after stop was initiated
Otherwise it's possible to quicky press the stop button
again before the process actually finishes and this leads
to inconsistent state transition, resulting in assert
being triggered.

Change-Id: I4618a00cb9cea666992bc9ee6b60b3b3a0d9a8b9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-07-14 13:12:56 +00:00
hjk
fb3d3da156 Autotest: Inline testsettingspage.ui
Change-Id: I9cf2b9da84447abfa3fc2d34a9baa0724b40dcaa
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-14 12:41:28 +00:00
hjk
3007b990e5 Debugger: Load dumpers from the device that runs gdb
... not from the device of the inferior.

Amends 12bc192422.

Change-Id: Ief34d1765d48e87a9098522bafb4b419a857c42e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-14 12:41:10 +00:00
hjk
57ce33bc4e Docker: Move to Tr::tr
There were no strings in the .ts files yet.

Change-Id: I86e7edace45db796fc3cc80d2735d1a80b897c85
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-14 12:40:57 +00:00
Leena Miettinen
4ff4d2b6e9 Doc: Fix case in folder name in \quotefromfile command
When building docs on Linux, the folder and file were not
found.

Task-number: QTCREATORBUG-27560
Change-Id: I767703c66edf73221037bd17692d3f469319522d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-14 12:33:35 +00:00
Cristian Adam
7b0664f4e4 GitHub Actions: Update the docker alpine image used for tests
Also increase timeout to 300s.

Currently only the Linux runner is running the docker test,
and building on Linux is usually the fastest. Should not
affect the overall job time.

Change-Id: Ie7aa72da1ffac987ef732ad0fb8076d473d00185
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-14 12:19:24 +00:00
Marco Bubke
4ca769afb1 QmlDesigner: Add ProjectStorage::functionDeclarationNames
As we changed the MetaInfo interface we can return ids too but as an
intermediate step we return the sorted function names. Beware that the
sort is not matching the normal SmallString "<" operator because it is
not using size.

Task-number: QDS-7284
Change-Id: I96c6494d7c36f37d451d439be8aee35e0221f20b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-14 12:16:42 +00:00
Marco Bubke
63243aabc1 Use compare opertators from string_view
Change-Id: I9da78dd15a6696a7061342cc1b1f1571eba74f19
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-07-14 12:07:46 +00:00
Marco Bubke
2860e033ad QmlDesigner: Add ProjectStorage::signalDeclarationNames
As we changed the MetaInfo interface we can return ids too but as an
intermediate step we return the sorted signal names. Beware that the
sort is not matching the normal SmallString "<" operator because it is
not using size.

Task-number: QDS-7283
Change-Id: I767a4d9f589d2bb2d2e29788be90d29dbd5ac1e3
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-14 12:07:08 +00:00
Marco Bubke
f6ba4bc603 QmlDesigner: Add ProjectStorage::propertyDeclaration
Returns for a property declaration id the property declaration infos. If
there are no infos a null optional is returned.

Task-number: QDS-7278
Change-Id: I4faa158008130f00f31062bab94baa7f88d70edf
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>
2022-07-14 12:06:43 +00:00