Commit Graph

72811 Commits

Author SHA1 Message Date
Eike Ziller
ff04dc53ef Require Qt 6.4.3 for building Qt Creator
And remove unneeded conditions from CMake files

Change-Id: Ibb4646f83599c5a91fbd18ce3489103e4150c49f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-04 11:15:36 +00:00
Christian Kandeler
f56fd04c8d Revert "Clangd: Avoid client restart after modifying open documents"
The whole point of tracking external changes to files is to use the open
files as a sentinel to indicate that non-open files (on which we don't
have a watch) have likely also been changed.
This reverts commit cff26d813a.

Change-Id: I5a8b3e6709eda881b912916cf0838b45d1ff4fa4
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-03-04 10:36:53 +00:00
Cristian Adam
cf8a8974ed CMakePM: Suppress error message for valid build preset
Fixes: QTCREATORBUG-30373
Change-Id: I2e2ec83c0b14d188096ace61468435ccbd36d84b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-03-04 10:34:29 +00:00
Christian Kandeler
36c7d971c3 LSP: Fix missing icons in call hierarchy
Change-Id: I8b10392ac28689ce80dc818cba5ff58f21becb81
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-03-04 09:06:11 +00:00
Eike Ziller
832fde9e0e CMake: Exclude non-project CMake files from search
All the CMake files the belong to packages found with `find_package` are
part of the project tree, but we shouldn't include them when searching
through "files in the project".

Set listInProjects to false for these files.

Fixes: QTCREATORBUG-30372
Change-Id: If39d477f14dc3207f4e2dd66b2f3969811dbd863
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-04 09:01:02 +00:00
Christian Kandeler
5d41ab126f ProjectExplorer: Expand selected details widgets in target setup page
Rationale:
  - Selecting and unselecting should behave symmetrically.
  - The user is informed of and can easily change the set of
    pre-configured build configurations.

Fixes: QTCREATORBUG-30412
Change-Id: I86e6a41c3baed280df9a694d6cf6eb631cb537f9
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-04 08:47:27 +00:00
Marcus Tillmanns
44b6dea740 CompilerExplorer: Use volatile
Currently the user can't change the Url. This is for the future.

Change-Id: I7854c1dc0e680c9aa4bbb41d44dbcb9540a3b34b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-03-04 07:48:41 +00:00
Christian Kandeler
bb15322af8 Update qbs submodule to HEAD of 2.3 branch
Change-Id: I3c4dd9307c74e3fef12bccdc54c13f96dd252e97
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-01 14:33:22 +00:00
Artem Sokolovskii
810c9e7106 ClangFormat: Fix vague error message
Change-Id: I321d74a80c1735dad3edb6e542451cab3a71a3f7
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-03-01 13:46:51 +00:00
Ali Kianian
f7530458c4 QmlDesigner: Remove CollectionSourceModel
Task-number: QDS-12032
Change-Id: Id0b999500a0a8cae16a90a59d051cd725417e431
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-03-01 13:17:42 +00:00
Eike Ziller
6a59cb891b Qt/Documentation: Avoid automatic loading of unrelated help files
On Linux/KDE systems, the KDE documentation files can be installed in the
Qt documentation directory. This leads to a great of documentation files
to be loaded by default, which we try to avoid for performance reasons.
Restrict the pattern for .qch files to start with a 'q', which still
matches the Qt documentation files. If the user wants the documentation
of KDE libraries, they can register them manually.

Change-Id: Ib658c3b2c26a97ca69a8c0e46a5057a58b5a7ec7
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-03-01 12:45:58 +00:00
David Schulz
262dcc6643 Core: do not activate open documents entry on right click
If we activate an entry before we handle the context menu event we might
switch into another mode. For example when right clicking on a ui File.

Fixes: QTCREATORBUG-30357
Change-Id: I8de78c3a6bbd9d62e2766ccd2059ee3ee4ef0870
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-01 11:29:17 +00:00
Eike Ziller
5b276d5940 Android: Use more ICore::dialogParent()
This is usually the better choice because it takes dialogs into account.
I had one message box vanish behind the rest of Qt Creator, which could
be better with this.

Change-Id: I47b93e120a9e86f9f81da8e542477f1c6274bf87
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2024-03-01 10:11:16 +00:00
Marcus Tillmanns
b5a6f851a3 CompilerExplorer: Adjust Terminal font size
Adjust the output Terminal font size based on
the text editor font size settings.

Change-Id: Id1047f0fce0ac781cbc51b01f0df9657b179d71a
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-03-01 07:40:37 +00:00
Marcus Tillmanns
b6b5f04264 CompilerExplorer: Fix value vs. volatileValue
Previously adding a new Compiler would not compile the current source,
but the last "applied" source.

Change-Id: I0979d21a61808e7bc03e5b72e9c8a2492200c8f6
Reviewed-by: hjk <hjk@qt.io>
2024-03-01 07:40:27 +00:00
Christian Stenger
53eb67e483 Axivion: Improve sort indicator icon
Change-Id: I3579cd460644867cddf491365780c0fd76f2c810
Reviewed-by: hjk <hjk@qt.io>
2024-03-01 07:26:45 +00:00
Tim Jenssen
56c4ba1db4 Merge remote-tracking branch 'origin/13.0' into qds/dev
Change-Id: I1d328f67a1c538e36a54f9660d5fb2840a6753df
2024-02-29 19:40:30 +01:00
Tim Jenssen
070e482138 Nanotrace: build doc only does not call any add_qtc_library
So it would fail to find the Nanotrace target.

Change-Id: I1ff8be19e930bd547ced37767be2042f8261e75b
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-02-29 17:17:53 +00:00
Alessandro Portale
4f30c2b4ed Welcome: Fix the hover background color
It used the wrong color token. With the correct one, the hover effect
is a bit less prominent.

Change-Id: I95a1f5a92f95d4055ae8bce703fdc633b122ac59
Reviewed-by: hjk <hjk@qt.io>
2024-02-29 17:02:21 +00:00
Christian Kandeler
dfb685d64c ProjectExplorer: Employ FuzzyMatcher in run config creation dialog
... when filtering the candidates.

Change-Id: Ia95475ae3ee2a6eab2c9551ed22f97a9540d3503
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-02-29 15:03:08 +00:00
hjk
d6eb041e6d Debugger: Show supported gdb architectures in log
... using a true gem of interface design.

Change-Id: I33ee751a0d204ea610d031991f0d472912a065a8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-29 14:48:52 +00:00
Christian Kandeler
3aa801ca94 CppEditor: Mark two tests as incompatible with ClangFormat
Change-Id: I95771a3f7fb78d0b7700dc52fdbe7c1e17d00f74
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-29 14:46:11 +00:00
Christian Kandeler
2e45d1d85a CppEditor: Make two test cases ClangFormat-compatible
Change-Id: I5e9df40de3e13f0941c0f8c14385de43e828b5d2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-02-29 14:45:59 +00:00
Tim Jenssen
409b9d904f QmlDesigner: refactor dynamiclicensecheck.h
Change-Id: Ic806a32c87200219f6376356bf251cfd5927deed
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-02-29 14:13:56 +00:00
David Schulz
02bac28488 TextEditor: add mime type for device tree source files
Fixes: QTCREATORBUG-19029
Change-Id: I1959681cb7e0f9466cea3344836d7029a98b4548
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-29 13:57:39 +00:00
Cristian Adam
251a8a2210 Utils: Display error message boxes on missing dlls
This used to work in previou Qt Creator versions.

Task-number: QTCREATORBUG-29662
Change-Id: I97b0b15edbc39c2d6c11bb7d71cacd7e006a26f5
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-02-29 13:45:45 +00:00
Artem Sokolovskii
38ea622416 TextEditor: Fix jump to a search result to a folded block
Change-Id: Id9963bdf2a02930911753af046443e9b657bc9b9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-29 13:32:49 +00:00
Christian Kandeler
cc763c80d7 ClangCodeModel: Improve debug output for semantic highlighting
Previously, the final highlighting results we showed were incomplete and
out of order.

Change-Id: If18062cc5a7f3156d6bb0b282aed33906cdef910
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-29 13:27:47 +00:00
Christian Stenger
63a8856251 ClangFormat: Do not show floating widget
The widget is visible by default and will be shown when it
gets added to its parent widget.
This patch avoids a short popup of the widget which is not
added to its parent when opening the C++ settings.
Amends e1f7469afb.

Change-Id: I7fd40e1fff4872c725ec84b5d1c1e60d6b2b22ce
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2024-02-29 12:50:26 +00:00
Tim Jenssen
4ef5338229 qml2puppet: use branding from qtcreator repository
To build a correct puppet with the correct version
number do:
cmake -DBUILD_DESIGNSTUDIO=ON

no branding argument necessary anymore

Change-Id: I74b25e3da296fe77d83892d0596f5da3c38ed6cf
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-02-29 12:47:53 +00:00
hjk
a8b689ae9b Debugger: Fix register display for LLDB and CDB
Change-Id: Ia157c0c03168e91b11d837d6355e61e10afd9728
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-29 12:46:48 +00:00
Eike Ziller
6c2df76737 Merge remote-tracking branch 'origin/13.0'
Conflicts:
	src/plugins/android/androidsettingswidget.cpp

Change-Id: Ifcb16aa16c7bc2792de25d0ee7a22cf0e39a05f8
2024-02-29 12:44:58 +01:00
Miikka Heikkinen
942b5b62bb EffectComposer: Silence warning
Change-Id: Id2cd48e3976b5bd33c8951d706f0186c7f8a8d87
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-02-29 10:54:40 +00:00
Artem Sokolovskii
49ab0c4109 TextEditor: Fix jump to search result
Change-Id: Ie570936b0b96290d95999b8b501c12610ebfc9a8
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-29 09:48:42 +00:00
Aurele Faure
a2be1e9692 AutoTest: Fix bugs on catch2 fixture
Fix the integration of SCENARIO_METHOD.
Allow the catch2 fixture to have namespace before the class.

Fixes: QTCREATORBUG-30454
Change-Id: I27b0578fae12715e6a4466289ed4cc34351f3112
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-29 08:39:33 +00:00
Christian Stenger
f20fc9132f Axivion: Fix sort toggling glitches
The resize handle of a header has some margin to decide
whether to start a resize attempt.
This margin interfered with our randomly chosen one.
Take the needed margin into account and beside this store
an additional information about the column that triggered
our sort toggling attempt.
This avoids starting to toggle some column and moving
slightly to the next one and ending up in sorting the
final column of the move.

Change-Id: I8199f90fd06145c61d2c5e7574b6f040c72022b6
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-29 08:03:26 +00:00
Christian Stenger
3e90ccaf35 Utils: Fix Qt6.2 build on macOS
Change-Id: I2b2ca409b88551dc71b7784ff2d7678fe45e3fc2
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-02-29 05:33:34 +00:00
Marco Bubke
85be58e31b QmlDesigner: Modernize ownership in connection editor
Because the member are forward declared we use an nested class to reduce
the pointer and declare them there as value member.

Change-Id: I0e7058333983c4d742d1d831990e9e63cd651562
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-02-28 23:20:55 +00:00
Cristian Adam
0d8a542b4f CMakePM: Only add paths with dlls to PATH
Skip adding object libraries paths to runtime PATH.
Also add only the paths that contain the dll files.

Fixes: QTCREATORBUG-29662
Change-Id: I58cd9b24c6c079b99ed51ae2ebd315a1aa195f04
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-02-28 18:33:37 +00:00
Tim Jenssen
689b1066b8 QmlDesigner: suppress unknown attribute warnings
Somehow MSVC does not follow cppreference:
https://en.cppreference.com/w/cpp/language/attributes

"All attributes unknown to an implementation are ignored
without causing an error.(since C++17)"

Change-Id: Ic67fc7b4297f981ce52f457a09fd919949050449
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-02-28 17:43:13 +00:00
Marco Bubke
1110a7a457 Nanotrace: Silence warning about exports
The behavior between windows and unix is different, so we need a more
complex approach.

Change-Id: I614c480c1184c5d4be807496fa6ac13fd98506d8
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-02-28 16:47:22 +00:00
Marco Bubke
2ba6b48df4 QmlDesigner: Move thread local variables inside function
Maybe  make them inline but I think that is not working nice with DLLs.

Change-Id: Ice220873bf4f9c87cb64cb3271aa1ca5cfb1dda2
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-28 16:00:16 +00:00
Marco Bubke
de5598e70f Sqlite: Update to 3.45.1
Change-Id: Ie92194de1b12c22667e48edd913abc24108cedaa
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-02-28 15:59:52 +00:00
Marco Bubke
2d440ecb75 QmlDesigenr: Use tick instead of range for selected nodes
It is really hard to click on a short range.

Change-Id: Ib5dea4b199fb6f2b5a0320845cefaa4501e04a81
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-28 15:59:45 +00:00
Marco Bubke
0e0034ce7e QmlDesigner: Use property name as trace name
Change-Id: Ifcf4cf1b0bf6f71c6096279d6b2e3dbe4e0f6b30
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-02-28 15:58:06 +00:00
Marco Bubke
11ab3ba268 Nanotrace: Prevent large zero initialization for thread local
There seems no way to disable zero initialization reliable. So the
arrays are now allocated on the heap.

Change-Id: I926e8deb91fc835dfa797c445860c8b66ed27def
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-02-28 15:53:09 +00:00
Marco Bubke
cc8a57233d Nanotrace: Optimize queue
Instead  that the queue data is generating a queue it is now derived
from it. That saves one thread local entry.

Change-Id: Iba4f3002019fc281457c6108ae955a2f755bb9f6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-02-28 15:52:56 +00:00
Ali Kianian
c9b8d396bb QmlDesigner: Fix the bug for reading the dataStore of the projects
Fixes: QDS-12047
Change-Id: I6144b78985ed761b5446f71731fd0c220658c259
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-02-28 14:06:17 +00:00
Marco Bubke
413c2a65eb QmlDesigner: Eleminate function calls
The definition of gnu pure is a little bit fuzzy but I think it applies
in this case.

Change-Id: Icaf97a669f217c8ec28884771f80218c442f0c96
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-02-28 13:59:06 +00:00
Christian Kandeler
576747d623 CppEditor: Mark some tests as XFAIL when running with clangd
These are fuzzy decl/def switches, where clangd does not fail, but
returns the original location.

Change-Id: I86814c2dc5e1b8ec9085fd1486c0120e2f98a3b6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-28 13:44:33 +00:00