Commit Graph

88653 Commits

Author SHA1 Message Date
Thomas Hartmann
170aefb0dd QmlDesigner: Crash fix
We have to check if the semantic info is actually valid.

Task-number: QDS-12203
Change-Id: Ia4fa411708f0235de4754ced057fb86dd9a4aa7a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-12 15:21:13 +00:00
Thiago Macieira
1ac1095d4d QmlDesigner: fix build with Qt 6.8 w/ the spaceship operator changes
There are new operator== overloads that are causing this to now be
ambiguous.

qlist.h: In instantiation of ‘qsizetype QtPrivate::indexOf(const QList<T>&, const U&, qsizetype) [with V = QByteArray; U = Utils::SmallStringView; qsizetype = long long int]’:
qlist.h:935:20: error: ambiguous overload for ‘operator==’ (operand types are ‘const QByteArray’ and ‘const Utils::SmallStringView’)
qbytearray.h:520:5: note: candidate: ‘bool operator==(const QByteArray&, const QByteArrayView&)’
smallstringview.h:117:16: note: candidate: ‘constexpr bool Utils::operator==(SmallStringView, SmallStringView)’

Change-Id: I6818d78a57394e37857bfffd17b9ffb5101cdc5c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-03-12 15:06:29 +00:00
Ahmad Samir
1ddc71fcda FileIteratorWrapper: simplify the code
Setting m_status to BaseIteratorEnd should only be done in hasNext(),
because the latter is always called first, before any other member
function.

Change-Id: Ie55518a850655730fb760226d58c4fb171a7f2e1
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-12 14:27:25 +00:00
Ahmad Samir
ad446d5689 FileIteratorWrapper: refactor setPath()
Only call setPath() in hasNext(), the latter is called before any other
member method, and setPath() is guarded by a bool to only run a single
time.

Split some code to a helper function, which will be reused when porting
to new QAFEngine API.

Change-Id: Ibda0ede18593a3a20729b31e03e994ad2de126de
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-12 14:27:05 +00:00
Marcus Tillmanns
4e8bdd610b Utils: Remove PresistentStoreCache
It turns out caching the information is unreliable due to a variety of reasons.
We remove the cache for now as its less dangerous than trying to fix each
use case.

Change-Id: I8238166486a2fb29c101f700af1c8d7e4ad7a172
Reviewed-by: hjk <hjk@qt.io>
2024-03-12 14:24:05 +00:00
Mahmoud Badri
b5f7b4c45e QmlDesigner: Remove the taskbar window when popup opens
Change-Id: I58f52983d8f939f489d3ff364705660906253289
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-03-12 14:20:45 +00:00
Ali Kianian
8f33db6bf1 QmlDesigner: Fix the bug for regexp and encoding of csv in ModelEditor
Fixes: QDS-11667
Change-Id: I2399f1a8689634f92595624f4da781f27290fb57
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-12 14:16:09 +00:00
Marcus Tillmanns
07399dfb0c Utils: Fix compile on windows
Change-Id: I296e4a75984689a4cdbcea69519c4a27d5d5e90a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-03-12 14:15:33 +00:00
Leena Miettinen
5e2140a01f Doc: Create links between Callgrind and Performance Analyzer
Change-Id: Ia7073a8cef72f141253810558b30ba9c28083b7e
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-03-12 13:59:51 +00:00
Teea Poldsam
7def8caf65 Doc: Update Installation
Rewrote almost the whole page, renamed the topic, and updated the image.

Fixes: QDS-12025
Change-Id: Id8b4dcdb8513e726db933158833ba032ca9b8125
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-03-12 13:47:21 +00:00
Jarek Kobus
6956771e0d ProjectExplorerSettingsWidget: Don't leak QButtonGroup
Change-Id: I64896287dda3df96078f7fabec4cd4437396f3f3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-03-12 13:40:46 +00:00
Eike Ziller
dd43b59ede MCU: Fix translated string
It tried to use an existing string, but missed the full stop

Amends 124c62a5a0

Change-Id: Idf66621b714da86be700d4ac18c6df2c7a83a468
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-03-12 13:34:39 +00:00
Christian Kandeler
3f457c158f TextEditor: Add type hierarchy infrastructure
We want to support more than one back-end in the future.

Task-number: QTCREATORBUG-28116
Change-Id: I72020c94b36072a297e13f44130e5e2482922cd4
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-03-12 13:22:51 +00:00
Mahmoud Badri
eebd3472ae QmlDesigner: Close CustomComboBox's popup on view scroll
Also remove the taskbar window (on Windows) that appears when the popup
appears, and make the FlagsComboBox buttons smaller

Fixes: QDS-12215
Change-Id: Ief8ab3b746a3d18b391b46a391cb53e775ecd624
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-12 12:47:58 +00:00
Leena Miettinen
e6eed39985 Doc: Turn "Using Text Editing Macros" into a how-to topic
Task-number: QTCREATORBUG-29361
Change-Id: I0d62d48036e08528c025eac8653e58ff0039e5a2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-12 12:20:38 +00:00
Leena Miettinen
8c0bb53c76 Doc: Turn "Comparing Files" into a how-to topic
Hide it from the QDS Manual.

Task-number: QTCREATORBUG-29361
Change-Id: I7c44aaed42e374b8e07d093279c8078ada18c250
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-12 12:20:25 +00:00
David Schulz
f5de774d77 LanguageClient: improve callhierarchy direction items
Do not use the icon of the root function for the artificial "Incoming"
and "Outgoing" items in the call hierarchy. In the case of deprecated
functions this can be a warning icon.

Change-Id: Ib75a66296210d4da24208e98efb527b9af37b793
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-03-12 11:59:12 +00:00
Alessandro Portale
7c6c08a8ba Welcome: Draw stroke for hovered items
As specified by design.

Change-Id: Ia766ca16e3ce233aa73ac75d48d70b1379c39c37
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-03-12 11:27:21 +00:00
Jarek Kobus
79573f2c76 CppEditor: Don't leak CppCodeStylePreferences
Change-Id: I4414c69cebaeb429c5b6dfea6e6fa97b118e353e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-03-12 11:15:00 +00:00
Christian Kandeler
e01909a8a1 LSP: Implement SymbolTag support
Change-Id: I6e57d315a5ecd7402c0082df68e083e33dfeab7e
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-12 11:08:22 +00:00
Ali Kianian
1e92dd4fe4 QmlDesigner: Add tooltips as data type descriptors to Model Editor
Task-number: QDS-11676
Change-Id: I14132ca8f2285de85532b26d3374b5e442f8c746
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2024-03-12 10:33:53 +00:00
Jarek Kobus
31e97d5069 ClangFormat: Don't leak editor
Amends e1f7469afb

Change-Id: I862bca5a57d818e8b813d557fa7c3a4e3690dcd2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-03-12 10:27:56 +00:00
Shrief Gabr
7bdf43e8e1 EffectComposer: Hide effects from Components view
Task-number: QDS-12147
Change-Id: I9df43dc41aebe7d526c2f75d120ec512f2c1172e
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-03-12 09:50:13 +00:00
Christian Kandeler
1de045f687 CppEditor: Move some convenience functions to CppCodeModelSettings class
Change-Id: I0af8560c23374ce4f6c46f98d498d44f7cb50db3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-03-12 08:55:11 +00:00
Marcus Tillmanns
d5750f8cb7 Utils: Export TypedAspect
Without the export, when compiled on macOS (with clang), the call
"runControl()->aspect<RunAsRootAspect>()" in runcontrol.cpp would
return a nullptr, since ProjectExplorer and libUtils had different
vtables for TypedAspect<bool>.

Task-number: QTCREATORBUG-30516
Change-Id: Ic3cef6545e97f59af2a1138f13762c07d9402e4a
Reviewed-by: hjk <hjk@qt.io>
2024-03-12 08:54:14 +00:00
Marcus Tillmanns
da3bc4e86e Terminal: Rename "Close" action
Fixes: QTCREATORBUG-30520
Change-Id: I0fc2eaba533e6260763c0c02657cf3a7de7c9dce
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-12 08:34:50 +00:00
Marcus Tillmanns
726b023c78 Terminal: Remove Close action
A remnant of a wrong refactoring.

Fixes: QTCREATORBUG-30519
Change-Id: I2fadb353b83762d4d821444a58f7631dcfd22b0d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-12 08:33:48 +00:00
The Qt Project
db4aa77237 Merge "Merge remote-tracking branch 'origin/13.0'" 2024-03-12 08:28:18 +00:00
Eike Ziller
1b97fdc100 Merge remote-tracking branch 'origin/13.0'
Conflicts:
	src/plugins/debugger/gdb/gdbsettings.cpp
	src/plugins/perfprofiler/perfprofilerruncontrol.cpp

Change-Id: I0d5b914f9d9b5499920a5db484ef77af6ae748d5
2024-03-12 09:27:39 +01:00
hjk
68347c9c9b Debugger: Avoid a soft assert on QmlEngine shutdown
Change-Id: Id26b41e878ed2b8b20099b62ed1c122966165665
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-12 08:16:27 +00:00
David Schulz
9934a9cafa Debugger: improve tooltip handling for cdb
Fixes: QTCREATORBUG-13413
Change-Id: I93cde8d11867ab8cec8a2f760f0f38a0935fe946
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-12 06:57:57 +00:00
Tim Jenssen
e7e9a58e46 Merge remote-tracking branch 'origin/13.0' into qds/dev
Change-Id: I8cd3cdf5854299d3017d6c6bfa656fc483a0e20b
2024-03-11 17:18:48 +00:00
Alexandre Laurent
3af6f65ebc French translation for Qt Creator 13.0
Change-Id: I0895a8ef3ccad9ab41081ec1df53aa45ed721e3e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Reviewed-by: Johnny Jazeix <jazeix@gmail.com>
Reviewed-by: Olivier Delaune <olivier+qt@delaune.info>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-11 16:16:43 +00:00
Marco Bubke
09b00446b7 Utils: Make ranges dependency more explicit
Seems it does not work with MSVC and Mac OS

Change-Id: I16fc72476021d88d02b0c0d2794ee726cde77272
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-11 15:28:56 +00:00
hjk
96d44d375b LanguageClient: Suppress a compiler warning
warning indentation; statement is not part of the previous 'for' [-Wmisleading-indentation]
                    if (__builtin_expect(!!(clients.removeAll(client) == 0), true)) {} else { ::Utils::writeAssertLocation( "\"" "clients.removeAll(client) == 0""\" in " "/data/dev/creator-out/src/plugins/languageclient/languageclientmanager.cpp" ":" "114"); } do {} while (0

Change-Id: I14297567627801d3a5436abf2df8fec23bff85dd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-11 14:46:26 +00:00
Sivert Krøvel
68e178c041 McuSupport: Read versioned settings keys for MCU dependencies
In an accompanying change, the installer writes versioned
settings keys. The version string will be appended to the
existing key, after a single underscore character.

When reading from the settings, the plugin first looks for
keys matching one of the requested versions from the kit.

Optionally, if no key for a matching version is found, the
key for the newest version available is chosen. This only
applies to the Qul SDK package for the time being.

If no suitable versioned key is found, the plain unversioned
settings key is picked

Task-number: QTCREATORBUG-29194
Change-Id: I2db888390cfb64a4b7c78ebcf795543251cb7a1b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-11 14:37:57 +00:00
Dominik Holland
18e1c36648 boot2qt: Fix reading the perf record args
Change-Id: I0b181dc05a409a38cbd87366a0cb6631c900ed24
Reviewed-by: hjk <hjk@qt.io>
2024-03-11 14:14:00 +00:00
Jarek Kobus
54205c1b62 Axivion: Replace local lambda with static method
No need to create lambda on every call to credentialKey().
This should remove the warning about the
Performance inefficiencies (AUTO_CAUSES_COPY).

Change-Id: I9a7dc9cabcc6f80e58e39ef8be6a5445a11e0433
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-11 14:09:05 +00:00
Jarek Kobus
d30f97ac7e Axivion: Pass arg by const reference
Amends 0b0941cbcb

Change-Id: I61cfe511be6627a347b330a6833f5d7a4afe3f1d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-11 14:08:13 +00:00
Jarek Kobus
cd4ec16f6e Axivion: Show error string on error's deserialization error
Change-Id: Ib8cd3d336508f1a4e12465456254b02c556ac38b
Reviewed-by: Andreas Loth <andreas.loth@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-11 14:08:05 +00:00
Mahmoud Badri
914956eb5d QmlDesigner: Add select all/none options to FlagsComboBox
Fixes: QDS-12214
Change-Id: Iea02b76a1f2f57cfb9bb292dc26e9ce0a517693b
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-03-11 14:04:21 +00:00
Christian Kandeler
2607e07b20 CppEditor: Try to handle "declaration macros"
Fixes: QTCREATORBUG-13640
Change-Id: I6566add09011388627c62394dfc3e47d29bac9cd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-03-11 13:33:26 +00:00
Christian Kandeler
8c5c849b71 CppEditor: Refactor AddBracesToControlStatement quickfix
Preparation for bracifying if-else chains. No functional changes.

Change-Id: Idc101131c02aac88598a6de1f8f511f89c958346
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-11 13:30:35 +00:00
Marco Bubke
e82a6fc37c QmlDesigner: Fix C++ 20 capture error
Change-Id: Iba9b702878c3c04f1b10efd2b518f1a3054c5a55
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-11 12:58:34 +00:00
Miikka Heikkinen
2f4ff01b7a QmlDesigner: Add "Edit in 3D View" context menu option
This option is only shown when View3D item is selected.

Fixes: QDS-12207
Change-Id: I0a98b59a5eb3fe7abd689711939b649fe496eeb7
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-03-11 12:49:51 +00:00
David Schulz
325db93a7b LanguageClient: improve clangd function hint
Add a Clangd specific function hint model that alwys highlights the
current parameter based on the number of commas in front of the cursor
position, like the builtin code model. It also correctly closes the
proposal after typing the closing parenthesis.

Fixes: QTCREATORBUG-26346
Fixes: QTCREATORBUG-30489
Change-Id: I09d3ac6856acfe5e0f206d8c3a96dbb561ea2ce7
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-03-11 12:39:06 +00:00
hjk
b7b78df8be Require C++20
Prevent introducing C++20 problems for the master merge.

Change-Id: Id6581a4c32ec6411195edb51339f017e4ddb51ff
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
(cherry picked from commit e678da9934)
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-11 12:09:37 +00:00
Eike Ziller
3dbdad20dc Utils: Fix build with MSVC with C++20
Rename process.h back to qtcprocess.h

MSVC's "threads" standard header includes <process.h>, and that ends up
including our process.h from Utils.

There already was a hacky workaround in place for a similar issue with
MINGW, but that doesn't work with MSVC because that doesn't have

Simply use a name that doesn't conflict.

Change-Id: I1159cd2096b4f2dbc4a1728d0131dd6edd30ebd3
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>
(cherry picked from commit 5af531cd39)
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-11 12:08:33 +00:00
Eike Ziller
3cc4e22cdc Utils: Fix build on macOS < 13 with C++20
The Clang implementation of span is incomplete until
LLVM 15 / Xcode 15 / macOS 13.5

Change-Id: Iac8514fc84643cb4dae9cfaac603df5e798f9ff4
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
(cherry picked from commit db5ac2dc15)
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-11 12:06:49 +00:00
Marco Bubke
8b7762621b QmlDesigner: Change model creation to new code model
The model needs the project store, the path cache, the imports and the
file path. So we now use a method in the model to copy them over to the
new model.

Task-number: QDS-12102
Change-Id: I80f911d55c5a5fdf9d1a87c1f4888e498086374b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-11 11:23:33 +00:00