Commit Graph

62421 Commits

Author SHA1 Message Date
Christian Stenger
abbc429395 QmlDesigner: Fix qbs build
Change-Id: I23c9a805742a493125afdaefa69051f0ce18d832
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-08 05:18:26 +00:00
David Schulz
7c79e18831 LanguageClient: cancel running semantic token request
... when we are about to send a new semantic token request.

Change-Id: Ibd421dd29bf3ea0e2b502c227341ff03259b2370
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-08 05:05:23 +00:00
David Schulz
457c88343f LSP: define a MessageId invalid if it contains an empty string
Change-Id: I90852b4f17a465d562cb402b46de5266aeba9b28
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-08 05:05:13 +00:00
Thomas Hartmann
99c8706a95 QmlDesigner: Remove QML_DECLARE_TYPE for QQmlPropertyMap
This is not required and can create issues, when including this
header file.

Change-Id: I2472ecf45c1c8f1faf0d44c8ee97cfbb4736c6c8
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-07 19:26:00 +00:00
Thomas Hartmann
58e0d76a61 QmlDesigner: Make views in viewmanager public
The views can be accessed anyway via the model.

Change-Id: Id87d3f1bdf3e9ec84a68cfd3035a05f59b85fc7c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-07 19:06:02 +00:00
Marco Bubke
180bcbef8a Sqlite: Fix locking
Change-Id: I32a1435db21f6d891dd9bed4faada704aeaf43af
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-07-07 17:50:55 +00:00
Marco Bubke
936ae86598 QmlDesigner: Add ImageCacheDispatchCollector
Instead of creating a new cache for every collector we now use a
collector dispatcher which is dispatching the request to different
collectors.

Tsk-number: QDS-7258
Change-Id: I024622d4b757e1ff10f7cab4204d1742ef5926da
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-07 17:50:06 +00:00
Marco Bubke
8fbd703974 Utils: Add endsWith to SmallStringView
Change-Id: Iea8286b46c28a68b26904e256b9f084c32c79909
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-07-07 17:49:34 +00:00
Marco Bubke
659dabd1a6 QmlDesigner: Fix unused warnings
Change-Id: Iacf067b772b7beda0e9cb27aa173115d4bcced38
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-07 17:48:48 +00:00
Marco Bubke
bcd9c2e8f2 QmlDesigner: Improve Has*TypeName interface
Instead of putting some strings into a list let the compiler to his
job and put it in a compile time tuple. This has the advantage too
that it can be of different types.

Change-Id: Ic4e7a9da8994d2a43ca115c1d69eab622c610437
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-07 17:48:35 +00:00
Marco Bubke
fe50af151d QmlDesigner: Simply property type name check
Move some repetitive pattern to PropertyMetaInfo

Change-Id: Iba8722d3d95881c1db85c12cbc2b2b8c4b629f2c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-07-07 17:48:23 +00:00
Jarek Kobus
c17214c53f ClangClient: Receive done() signal only once
Before this change the done() signal was emitted 3 times
in a row. The reason was that first one was coming
synchonously from handleGotoDefinitionResult(), while
2 others were scheluded with queued connections.
So, the handler for done() signal was called 3 times.
The first invocation calls deleteLater() and clears
the pointer, while the object is still alive.
Before the request to delete later gets dispatched,
the 2 remaining done() emissions are dispatched,
so the handler is still called 2 times.

One possible solution would be to disconnect from
done() signal inside a handler. However, the done()
signal shouldn't be called many times, so this fix
ensures the done() is emitted only once.

This fixes the following prinouts:
"QCoreApplication::postEvent: Unexpected null receiver"
issued twice on every follow symbol interaction.

Amends 650bc260c6

Change-Id: I9b440a80386aca3462eda323e51a76696e53fa6b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-07 15:28:03 +00:00
Christian Kandeler
6a6ea17a16 Update qbs submodule to HEAD of 1.23 branch
Change-Id: I801afa6044871db3f9689ee9277562e04096bfee
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-07 15:07:38 +00:00
Marco Bubke
9bd6bbb1f3 QmlDesigner: Don't use #pragma once in .cpp files
Change-Id: I0b8969ae489616416e5c9a426793b78cb3a77558
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-07 14:14:51 +00:00
Christian Stenger
b9ceefe918 Core: Fix build with Qt5
Amends 5b683c53c3.

Change-Id: I80b8b6d1b508e42f81e022fee19117285a4c9687
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-07-07 14:07:09 +00:00
Marcus Tillmanns
6003fe9b36 docker: Fix StringAspect default value handling
The StringAspect needs to return a possible default value if
no value was set by the user. Otherwise it would write an
empty string when ::apply was called.

Also a small improvement for docker error logging is added

Change-Id: I85f80253894d2c3e726da714616e5275039febcc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-07-07 13:09:02 +00:00
Cristian Adam
5b683c53c3 Change log browser: Use the markdown renderer for the .md files
Change-Id: I8a419b746b4b88a89ea77de8bd160acebd595655
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-07 12:52:11 +00:00
Marco Bubke
f26379c850 QmlDesigner: Fix property string order
Change-Id: Ib205c96eaf926f1b4852e11748f0e632ef613aeb
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-07 12:44:52 +00:00
Thomas Hartmann
e45ab20bef QmlDesigner: Sort names of views in menu
Change-Id: I24f260ad74c0df5ccc979fa3c21c6edba8eff9fc
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-07-07 12:36:36 +00:00
Eike Ziller
b33a1c62ed CPlusPlus tools: Fix build with Qt 5
error: reference to type 'CPlusPlus::ClassOrNamespace *const'
could not bind to an lvalue of type
'const CPlusPlus::ClassOrNamespace *'
    if (interfaces.contains(u)) {

Amends f7097cef19

Fixes: QTCREATORBUG-27806
Change-Id: Ia5c27260f71bf35c87352545fff42dcaef1f2649
Reviewed-by: hjk <hjk@qt.io>
2022-07-07 12:21:21 +00:00
Eike Ziller
f950a5d86c Merge remote-tracking branch 'origin/8.0'
Conflicts:
	src/libs/utils/terminalprocess.cpp
	tests/auto/qml/qmldesigner/coretests/CMakeLists.txt

Change-Id: Ifc5b37dadd46af752f0771a2685da1ac9a6260bd
2022-07-07 13:47:12 +02:00
Christian Kandeler
fae3ba1a1b RemoteLinux: Switch default value for "clean install root"
... in MakeInstallStep.

Fixes: QTCREATORBUG-27724
Change-Id: I5999ace2a9653c103b9b974bc9e58bdfdfa4f780
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-07 11:40:42 +00:00
Alessandro Portale
777ae87779 Android: Update devices list after creating an AVD
Ensure that a freshly created AVD is properly listed and is usable. By
forcing a AndroidDeviceManager::updateAvdsList() after successful
creation.

Fixes: QTCREATORBUG-27804
Change-Id: I1ef0fb23d2c13b99d285f07505189f37929f4ed7
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2022-07-07 10:33:47 +00:00
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
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>
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