Commit Graph

76860 Commits

Author SHA1 Message Date
David Schulz
b47b6cddc7 Python: Prepend pyside6-project path to PATH env variable
Otherwise pyside6-project cannot find uic or rcc or might use those
tools from another pyside installation.

Change-Id: I34eff2fc2627b07a18a705e5d658bd7cf8ce9350
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-07-07 09:10:01 +00:00
Jarek Kobus
1431452069 SquishTools: Keep processes on stack
Avoid manual termination and killing - use either
QtcProcess::close() or default QtcProcess d'tor.
Both will employ internal reaper for terminating
the running process asynchronously.

Change-Id: Ib1de1125da0c25b4f5c5b7ac0827336f99881679
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-07-07 08:55:24 +00:00
hjk
d3786a895b Debugger: Use some Tr::tr in WatchModel related classes
Change-Id: I1fcd0c5f342da4fd5ff52c19eb9f3f20a9bdcc5b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-07 08:52:11 +00:00
Jarek Kobus
78958d5740 TerminalProcess: Emit done() signal when stop() was called
When we call QtcProcess::stop(), the terminal process invokes
stopProcess() method. However, if it doesn't emit done() then
subsequent call to waitForFinished() will timeout with 30 s.

This should fix the 30 seconds hang when debugging in terminal
after pressing the red square button.

Change-Id: Iea1f9ade85dc8a4414dc49d7c8a2cbe80f0b5756
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-07 08:51:48 +00:00
Christian Kandeler
7f94e68b74 ProjectExplorer: Fix index confusion in app output pane
There's a QTabWidget and a list of RunControlTabs, whose indexes got
confused in several places.
Fix this and decrease the likelihood of the problem occurring again by
never using indexes for the RunControlTab list.

Fixes: QTCREATORBUG-27743
Change-Id: I8a83b0c802fe76a09b4eba0da999a52fdeb6ddac
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-07-07 08:19:27 +00:00
Christian Kandeler
5d8e53038e ClangCodeModel: Fix "Find References" for operators
We broke this in 49bb40f19e.

Change-Id: Ifc18501745c4515899c57ea461305db0f9ed6662
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-06 13:30:39 +00:00
Christian Kandeler
06e2f8d8fa CppEditor: Always use "clang:std=" for specifying the language version
... when in clang-cl mode.
We observe strange behavior when keeping the MSVC /std:c++xx syntax,
namely that files that are not specified in the compilation database
appear to get parsed without a language version. The problem does not
occur when passing the flag via "clang:".

Fixes: QTCREATORBUG-27764
Change-Id: I0035e5fef6dfd37fbbe396b538f38fc29b23923b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-06 13:05:37 +00:00
Christian Kandeler
0456643a86 ClangCodeModel: Use the correct language type options for MSVC
This was broken by our compiler command line optimizations, resulting in
"-x" rather than "/T" appearing for MSVC/clang-cl toolchains and causing
clangd to assume C instead of C++ for some files.

Change-Id: Ib98db88ac90e4e45a7016a7edcb80a279df372aa
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-06 13:05:29 +00:00
Marco Bubke
fd41105191 QmlDesigner: Introduction of PropertyMetaInfo
Because the project storage is integer id based the string based API
isn't fitting well for the new approach. PropertyMetaInfo can be easier
mapped to the project storage.

Task-number: QDS-7197
Change-Id: I49bc650abdaacf4b039d76c2514b5ad05ec84abe
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-06 12:40:58 +00:00
Jarek Kobus
650bc260c6 ClangdClient: Don't delete an object from its signal handler
Delete it later instead.

Fixes: QTCREATORBUG-27803
Change-Id: I1108a87bc762a7da690b8999c9e73e127d79d3c4
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-06 12:40:57 +00:00
Jarek Kobus
1231c9e546 QbsBuildSystem: Don't delete an object from its signal handler
Delete it later instead.

Change-Id: Iff0b0d2410752f324f0fea15c0314b60fd637b5e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-06 12:11:34 +00:00
Henning Gruendl
1f1570f0e6 QmlDesigner: Fix hover issue in UrlChooser
Fix UrlChooser ItemDelegates not getting the hover event due to a
MouseArea overlayed on top which also accepts hover events. This issue
wasn't there in Qt 6.2.4 and only happend since Qt 6.3.1

Change-Id: Ifc43fe70fbefab9696a17a59966afdaf47b93829
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-06 11:34:05 +00:00
Leena Miettinen
b694b1bd6e Doc: Reorganize kit preferences in a table
- The settings depend on the setup and a table is easier
  to browse.
- Describe the "Build device" field.

Task-number: QTCREATORBUG-27560
Change-Id: I5ec5534f45a069ac92b0c42f5233c8e9cb1648b4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-06 08:56:55 +00:00
Eike Ziller
ae0032dfd5 CorePlugin: Use Tr::tr instead of QCoreApplication::translate("Core"...
Change-Id: Idf0b8e9effedbacda7a4eedb5bf0f78918fce631
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-06 06:41:24 +00:00
hjk
10728efa3b Debugger: Inline symbolpathsdialog.ui
Change-Id: Ib56735f5a58d2d45687c135ddb4de38359f1d4d7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-06 06:31:05 +00:00
Jarek Kobus
3ec577ff17 VcsBaseSubmitEditor: Don't use QtcProcess::readDataFromProcess()
There is no big benefit of calling readDataFromProcess()
when the last argument is false. Simplify
runSubmitMessageCheckScript() and use QtcProcess::exitMessage()
for error message reporting.

Change-Id: I4ddaf3e72a2b5d49b47a2024da84862d92ab49fc
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-07-05 15:43:31 +00:00
Christian Kandeler
c04f3a94ea QtSupport: Try harder at providing the right debugger
... for a temporary kit created by the importer.
The way the importer works is that it sets up a random kit (with a
default toolchain) and then overwrites toolchain and Qt version. If the
new toolchain is of a different type than the original one, the debugger
will not match anymore. Fix this by calling fix() on the changed kit and
adapting the DebuggerKitAspect so that it sets itself up from scratch if
the current value doesn't match the toolchain.

Fixes: QTCREATORBUG-27758
Change-Id: Ib0539f07c0c38728de89a49299b7d2439afc5744
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-07-05 13:49:11 +00:00
Henning Gruendl
df47dad53c QmlDesigner: Avoid focus lose live preview
Change the behavior of the output pane when an error occurs in the
QML live preview to avoid focus lose.

Change-Id: I78326af5060c775837d7a2d930c1fdd73b500f16
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
v8.0.0-rc1
2022-07-05 13:39:04 +00:00
Christian Stenger
3852b89d02 Fix compile on Linux
Change-Id: I288d0942b65844b205b50ac75cce2a4d358c6eff
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-05 12:55:00 +00:00
Alessandro Portale
2c219c01c1 QtSupport: (Windows/MinGW) Copy additional MinGW dlls in plugin tests
The QtSupport plugin tests copy qmake into a separate directory. If that
qmake is from a MinGW Qt, the respective .dlls are missing, and the test
interrupts/blocks.

Fixes: QTCREATORBUG-27793
Change-Id: I1ac02c31b6b74cf382285b8a5246292f82f979e3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-07-05 12:11:53 +00:00
David Schulz
990737add7 Squish: fix typo
Change-Id: I3ef71995a146655c485fffffc015b150c59867d7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-07-05 11:54:15 +00:00
Christian Stenger
18b6a61eaa Squish: Fix alignment of icons in tree view
Change-Id: I0911ad1c71eb94f2a0b2590aee13a51838c6a738
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-05 11:47:26 +00:00
Jarek Kobus
96c5a8a789 PipSupport: Connect to watcher before setting a future
In order to avoid runtime warning:
"QFutureWatcher::connect: connecting after calling
setFuture() is likely to produce race".

Change-Id: I921396628e5615e7c2d87045d2e787388dbddcc6
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-05 11:47:17 +00:00
Christian Stenger
2e5c5b8a81 Squish: Fix default value for server port
Change-Id: I5c7bacbb126082b02928a32a3f87e78f0086031a
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-05 11:47:11 +00:00
Jarek Kobus
c7aa3a9605 AvdDialog: Connect to watcher before setting a future
This fixes the runtime warning:
"QFutureWatcher::connect: connecting after calling
setFuture() is likely to produce race".

Change-Id: I5c54ec10cef6bfd43a905e4e48fea05cb7b49297
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-07-05 11:30:34 +00:00
Christian Stenger
7f30c3b137 Utils: Allow placeholder text for path chooser aspect
Change-Id: Ic2b27c1b239031e739322a6afbc6b30f293abda6
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-05 11:09:14 +00:00
Jarek Kobus
c67ef789ee AndroidSettingsWidget: Remove unneeded includes
Change-Id: I8a0f78868a335125b5ccdbb3554d222d68d5751d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-07-05 11:09:01 +00:00
Christian Stenger
93e14012c8 Squish: Remove unimplemented declarations
Change-Id: Ia62013e0bca0cf2defb4ec7a2e493bc8cca3c81f
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-05 11:08:58 +00:00
Eike Ziller
d059a610b1 COIN: Arm auto tests
Some of our auto tests fail, so add an EXCLUDE_FROM_PRECHECK option for
add_qtc_test, which sets a corresponding label on the ctest, and exclude
these when running ctest on COIN.

Disable the Googletest based unittests for now, they are inconsistently
failing on CI, e.g. sometimes timing out after 60 seconds for tests that
usually take only a fraction of a second.

tst_perfdata from the perfparser submodule also fails. Temporarily
disable it explicitly, until the EXCLUDE_FROM_PRECHECK change can be
merged there.

Change-Id: I7e9d7aded75bbe8800f82f7aa125c181271a2a1f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-05 10:13:18 +00:00
hjk
68852bdd51 ProjectExplorer: Remove unused BuildStep::reportRunResult
... and a few unneeded Utils:: qualifications.

Change-Id: I900061baed6afbb5a4ce7c2fd6a346a44f6d0945
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-05 09:58:47 +00:00
Marcus Tillmanns
15c7f08e4a docker: Change Settings to single owner
We change DockerSettings to have a single owner.
Since DockerDevices are destroyed after the plugin
is unloaded, we have to make sure to remove the
settings from devices during plugin teardown.

For this we store a list of created devices in
the factory, and call their shutdown function when
the plugin unloads.

Change-Id: Ic9c7d8ad9437c48d68f20c9a8f8ad7449b3cb972
Reviewed-by: hjk <hjk@qt.io>
2022-07-05 09:42:07 +00:00
Eike Ziller
4d72cb55ba Projects mode: Use "Show Right Sidebar" action to toggle build output
For users who want the full area for the configuration widgets or don't
see output there because their build system doesn't put it there.

Fixes: QTCREATORBUG-26069
Change-Id: I4ffa73be88e5c7cc058227bc681f87e4c0a642bd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-05 09:08:40 +00:00
hjk
26f135f243 ProjectExplorer: Drop unused Macro::toByteArray(const QVector<Macros> &)
Change-Id: Ic3f0b8bda4fac1d31e2b3239e4a3ee261547b30a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-05 08:23:53 +00:00
Thomas Hartmann
106f034caf QmlDesigner: Rename text editor view from "Text" to "Code"
Change-Id: Ic279e33d051c071417ae9ea1bf45027c7f9d2c04
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-05 07:47:28 +00:00
Thomas Hartmann
5e96768eac QmlDesigner: Rename Connections View to simply Connections
Change-Id: I13f126b5a847cdd047a39063fd0d68c6606c24fa
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-05 07:47:18 +00:00
Jarek Kobus
5d3b8c4d88 tst_QtcProcess::crashAfterOneSecond(): Increase the timeout
Increase the timeout to default 30 seconds when
waiting for finished. Apparently 2 seconds were
sometimes too short. We still ensure that waitForFinished
didn't timeout but finished eariler.

Change-Id: I12ca647b45537174c7c66d271e7c8a477184f2ff
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-07-05 07:24:34 +00:00
Eike Ziller
946d08c6fd Fix display of build errors/warnings in status bar
We show a summary of errors/warnings with icons in the status bar, if
the "Progress Details" are toggled off. The change that fixed the size
of that details widget to a grid, to prevent constant relayouting of the
output pane buttons while indexing runs, broke the size of the build
result summary.

The size was adapted in
ProgressManagerPrivate::updateStatusDetailsWidget() but that is only
called when FutureProgress::setWidget is called. When the build manager
later makes the warning/error details visible, the size was left at the
minimum size of 20 pixels, leading to the widget being cut off.

Amends b4f2ac0dd4

Change-Id: Ia41cf3db7e4485dff4712412976c1d4f5dd315b2
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-05 06:43:42 +00:00
Leena Miettinen
de4c8cb174 Doc: Describe Squish Coco plugin
Fixes: QTCREATORBUG-27693
Change-Id: Ia4fadaeca08fc0f63d761394f1b8750a3ae6c010
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-05 06:11:18 +00:00
Thomas Hartmann
a1a5ad2017 QmlDesigner: Fix license headers
Those files originally came from Qt.

Change-Id: I724c98d2a09fb004f19042f348e0994ae1970b73
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-07-04 14:56:01 +00:00
Christian Kandeler
96be267a6e ClangCodeModel: Prevent documents from getting opened in wrong clangd
As per 8ad7ab2d2a, we prefer to open non-
project sources in a project-specific clangd, rather than the fallback
client.
However, we do *not* want clangd to open files from "foreign" projects.
Checking for the existence of a client for a specific file is not enough,
as we might be in the process of loading a session or the respective
project might have clangd turned off.

Change-Id: I2d5cb7027c6a3ad23e99606d6d6742d67fbc5384
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-04 13:05:06 +00:00
Christian Stenger
53269fc386 Squish: Do not directly delete process from handler
Change-Id: I1aa692285449a36b9ae88f7aa9a5c3b75769a7fb
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-07-04 13:04:58 +00:00
Leena Miettinen
22ed2aa8ac Doc: Describe resurrected Clang Format preferences
Update the screenshot.

Task-number: QTCREATORBUG-27560
Change-Id: I3178ab880d49097c837354c4f32501096b179c4b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-04 12:53:56 +00:00
Eike Ziller
2e8d6661ca Change log browser: Make bug numbers clickable links
And use monospace font

Change-Id: Ib847045150e4c3fcf1a9ef74f207ef9eb2415e71
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-07-04 12:43:01 +00:00
Jarek Kobus
8a37019b3b CMakeBuildSystem: Get rid of call to waitForStarted()
This is unneeded when followed by waitForFinished().

Change-Id: Ia30161da73ea877ba8973903a391100f29be8410
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-07-04 12:40:25 +00:00
Jarek Kobus
4a9fe3e709 TestRunner: Don't call blocking waitForStarted()
Handle failed to start case inside done() handler.

Change-Id: Id138f0ef1fc58b6e335e08d8222e99c29c06b942
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-07-04 12:40:16 +00:00
Christian Stenger
2d7457573b Squish: Aspectify settings
Change-Id: I9861de1803adaf39fda9378a3169e99e37ad8695
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-04 12:27:43 +00:00
Marcus Tillmanns
8a7a4fce6c docker: Add dockercli setting
Change-Id: I46fada555d697007042d823ef1cad0658be98e22
Reviewed-by: hjk <hjk@qt.io>
2022-07-04 12:21:00 +00:00
Leena Miettinen
e94c0f4a8b Doc: Update supported Qt for MCU SDKs
Task-number: QTCREATORBUG-27560
Change-Id: I26f405a217648b5b44789fd33949b21ba514e2dc
Reviewed-by: Piotr Mućko <piotr.mucko@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-04 11:53:07 +00:00
Leena Miettinen
f0c9849e3a Doc: Update info about Android Device preferences
Task-number: QTCREATORBUG-27560
Change-Id: Ice201b62930cc04906d17fa647c555abec77c597
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2022-07-04 11:37:16 +00:00
hjk
95c1f37a31 RemoteLinux: Reduce visibility of KillAppStep
Change-Id: Ib90a25ea5d3f2c7636aa099c87a3f71721ab9ea6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-04 11:11:13 +00:00