Commit Graph

88653 Commits

Author SHA1 Message Date
Jarek Kobus
983fc4bcf6 TaskTree: Rename stop() -> cancel()
This better corresponds to done handlers called
in this case with DoneWith::Cancel.

By the way, get rid of unused LocatorFilter::stop().

Change-Id: Ie4246b8d888fff95940a2ed41367d2817bd6339c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-01-25 09:26:12 +00:00
Mahmoud Badri
cfe3828c53 EffectMaker: Allow resizing effect preview area
Fixes: QDS-11724
Change-Id: I23081ab5a484cdb4a748e55231db2d20b0f9437c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-01-25 09:13:33 +00:00
Ali Kianian
715f0c544e QmlDesigner: Initialize column data type in the header edit dialog
Fixes: QDS-11757
Change-Id: I746516281857f3080fc7f5d6010582d42539bdb2
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-01-25 09:13:11 +00:00
Mahmoud Badri
b4eefcb64f EffectMaker: Fix preventing clicking outside bool checkbox
Fixes: QDS-11485
Change-Id: I122c45b665c5d086a863d0907878ca9be8189112
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-01-25 09:07:04 +00:00
Jarek Kobus
a525949a2c Axivion: Simplify onDone handler
The fix went with 6116605c4c.

Change-Id: I0e9cfe6ee3d55517af71379474a66b8106ca0cb3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-25 08:58:53 +00:00
Jarek Kobus
acf42bf90d Utils: Add synchronizedvalue.h into cmake and qbs
Amends 35a2d598ab

Change-Id: I64d76896c8bfbe4b48e2593118b209e3ae187a87
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-01-25 08:52:05 +00:00
Marcus Tillmanns
87999abead Terminal: Linkify git commits
Allows the user to Ctrl(Cmd)+Click "version like" text (e.g. text that
only contains 0-9 and a-f) and starts a "vcsDescribe" if a version control
can be found for the current directory.

Fixes: QTCREATORBUG-29213
Change-Id: I462092b58bf595a6968f4765f83a207506f0cf87
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-25 05:43:17 +00:00
Fabian Vogt
0e4af4b880 Register AutotoolsProject as handler for Makefiles again
95a3087a7b dropped the mime type registration by accident. Add it back to
make the plugin functional again.

Signed-off-by: Fabian Vogt <fvogt@suse.de>
Change-Id: I783429ce7883bad8b946ed1599098751d56cabad
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-01-24 20:55:19 +00:00
hjk
ee4d258776 CppEditor: Reduce visible CppTypeHierarchy interface
... and remove related helpers from the plugin class itself.

Change-Id: Ibc6af7518a2c90da93e619dde05edbd1eb7948f0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-01-24 16:48:08 +00:00
hjk
8b86fe239b ClangcodeModel: Move test creation closer to tested code
Change-Id: Ifb6771673aa8639d2ee23d1f34b1ff821000e348
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-24 16:38:09 +00:00
Christian Kandeler
4dba2a2f87 ClangTools: Add "edit as string" feature also for clazy
Fixes: QTCREATORBUG-24846
Change-Id: Id9931c0539ff1e03ab9cac7fb9b76f9694250536
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-01-24 16:20:13 +00:00
Christian Kandeler
1cc1d98601 CppEditor: Fix completion tests
Amends 2c91d4b472.

Change-Id: I6c4e8bc359acd2cd413fe86c1217ccce5321fa1e
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-01-24 16:16:10 +00:00
Dominik Holland
32d31b6eea AppMan: Add support for B2Qt devices
Change-Id: Icb18968b41a093a1330021b720252962aceb0bc6
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-24 16:05:54 +00:00
Dominik Holland
ee54315791 Boot2Qt: Allow the deploy steps to be used in all deploy configurations
Instead of limiting them to a specific deployment configuration, they
are now limited to the B2Qt device.

Change-Id: Ic27d3e4fc50cea0a838223eb41e0e422d7b17b82
Reviewed-by: hjk <hjk@qt.io>
2024-01-24 16:05:37 +00:00
Dominik Holland
57445ff12d AppMan: Remove the "Remote Package installation" step
Instead of having a local and a remote step, we can use a single step
for both cases. The code of the remote step is now used also locally.

Change-Id: I08d3b07761b77b3618f3db001a0d83d1eea65421
Reviewed-by: hjk <hjk@qt.io>
2024-01-24 16:05:26 +00:00
Dominik Holland
707886faac AppMan: Use device specific tool paths
This makes sure the RunConfiguration is correctly executed on the remote
device.
For steps executed on the host, a nullptr can be passed as device.

Change-Id: Ide5aa5a06402b137494c10108d09a4e7ffa32ec9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-01-24 16:04:53 +00:00
Jarek Kobus
fdb0ba0389 CppProjectUpdater: Simplify done handler
Call it only on success.

Change-Id: I8a9bea3768c1bd1d1f68ec852519b6e6dda1a2e9
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-24 15:39:21 +00:00
Cristian Adam
c05ad8b446 CMakePM: Fix bad "path" backtrace generation
CMake can generate backgraces with absolute paths, and the commit
246f33c20d removed this support from Qt
Creator.

This commit fixes this issue with absolute paths.

Fixes: QTCREATORBUG-29914
Change-Id: Ib911e80aee1ff9f4a26435f7e693f7766551cc90
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-24 15:02:49 +00:00
Marcus Tillmanns
0414c4b67e QmlJS: Fix deadlock when scanning apps
Change-Id: I7f8133eb634876b988675ed3b3cbebe596870a06
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
2024-01-24 15:01:17 +00:00
Jarek Kobus
428898e6ba Axivion: Load projectInfo with taken from DashboardInfo
Task tree variant.

Change-Id: Ie42573f78caa180ad9669e63bab8a6b920515927
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-01-24 13:41:42 +00:00
hjk
2beaba4627 Android: Use more direct access to current config singleton
Change-Id: Ica5ba556ac022fe39ed4439d023cda1742344eed
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-01-24 13:41:13 +00:00
Pranta Dastider
be41546c5b QmlDesigner: Update image in the Design Views and Concepts and Terms documents
This patch updates the old image to include lock the views features
in the document screenshot.

Fixes: QDS-11560
Change-Id: I886c2cdd385117791ac7f45f7477a7bf5458ac66
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-01-24 13:10:05 +00:00
Pranta Dastider
5711ac4df0 QmlDesigner: Update image in the 2D view document
This patch updates the old image to include new topbar
in the document screenshot.

Fixes: QDS-11567
Change-Id: I07573874a1bfa428e377c394ade0cf556ce6b056
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-01-24 13:07:09 +00:00
Dominik Holland
cdb44ea680 AppMan: Cleanup variables in TargetInformation and Manifest
Remove all variables we don't need and convert them to FilePaths where
it makes sense.

Change-Id: I4842bcf23f81db8c86f7e305113c24034b361d80
Reviewed-by: hjk <hjk@qt.io>
2024-01-24 12:15:16 +00:00
Dominik Holland
3ce58e0465 ProcessParameters: Allow to set the ProcessMode
Change-Id: I45db21d8785cfaecd8d524b4acda32e352640282
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-01-24 12:14:40 +00:00
hjk
ead7afde3d Utils: Introduce FilePathAspect::setDefaultPathValue(FilePath)
... as a convenience function for .setDefaultValue(filePath.toUserOutput());

The case that someone already has FilePaths should not look (much)
uglier on the user side than the QString "raw" case.

Direct overloading setDefaultValue(FilePath) causes resolution
conflicts, which are solvable, but I'd rather keep it explicit now.

Change-Id: I03d71e4f99005a1d1f76ebf23080bebe46a9351d
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-01-24 12:03:08 +00:00
Jarek Kobus
359ab928b1 TaskTree: Add tests for Group's CallDoneIf
Change-Id: I7140c1c7e28f6f503520ad05e6dcd613dcec2df3
Reviewed-by: hjk <hjk@qt.io>
2024-01-24 11:52:40 +00:00
Jarek Kobus
6116605c4c TaskTree: Fix calling group done handler according to CallDoneIf
The regression was introduces in one of the refactoring patches.

Amends 37b6cb7f90

Change-Id: Ieb2350a024249d1ea9a50c7e2c3d05ce4faaf74a
Reviewed-by: hjk <hjk@qt.io>
2024-01-24 11:52:33 +00:00
Jarek Kobus
2d9f8805dc Axivion: Fetch the DashboardData via task tree
Enrich the DashboardInfo structure.
Use dashboardInfoRecipe() for fetching the project list.

Change-Id: Ibbc14d0fae31a8930cec6051e412af15bec71fea
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-01-24 11:43:05 +00:00
hjk
6215206a06 CppEditor: Use FilePath for licenseTemplatePath
Change-Id: I0a7d957a9308a5e696f4af7f06226e407584ceba
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-24 10:55:21 +00:00
hjk
ff25fa6ca7 CppEditor: Make some settings accesses more direct
Change-Id: Ib7768462bcf50b5321323b27f0d2837444160162
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-01-24 10:55:15 +00:00
Eike Ziller
e1da48bf86 CodecSelector: Hide dialog class behind function
It isn't necessary to export the class (which would then best have a d-
pointer etc). Just provide a function that asks the user for a codec and
returns their decision. This makes the whole dialog an implementation
detail.

Change-Id: I7d574561cbe7f079a6d383ba65ba70f6868bbf05
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-24 10:00:18 +00:00
Christian Kandeler
f68a0ca738 ProjectExplorer: Fix handling of -Xclang when filtering compiler flags
Amends fd47b37298.

Change-Id: Idb78ebb88291d26498a5bfd7301fdc721fc6a6f7
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-01-24 09:43:53 +00:00
Christian Kandeler
6d7387f1aa CppEditor: Fix restoring per-project cpp file name settings
Another victim of Utils::Store.
Also add missing initialization of "is global" state.

Change-Id: I3d20e1403795366044d3b2df552f2a5947ba8c98
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>
2024-01-24 09:42:39 +00:00
Christian Kandeler
f40c18784b TextEditor: Fix quickfix formatting
... for e.g. function insertion. In some contexts, the insertion
position is on the last line of some unrelated code (e.g. a preceding
function implementation) and the inserted code starts with a newline. In
that case, advance the position of the formatting cursor, so that we do
not accidentally format the existing code.

Fixes: QTCREATORBUG-30229
Change-Id: Id0be7f22e1797affa0602bb1d392a5e0802cbdcd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-01-24 09:38:13 +00:00
Christian Stenger
3df75b6740 Axivion: Fetch issues
Change-Id: Ib33c507c8036fe84291ac3ff3fb08eed46afb07c
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-24 09:22:29 +00:00
Alessandro Portale
d501cb3ad4 Axivion: Put icons into SVG
Change-Id: If666ce24c664dbff8c46e75bd6ac5de79e38c939
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-01-24 09:21:24 +00:00
Christian Stenger
0ba1e17797 Axivion: Prepare ui for displaying issues
UI preparation which may change when adding the functionality
of retrieving respective information from the dashboard.

Change-Id: I9ec8069d780f925b00ba63982af6b410ddec9a5a
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-24 09:20:52 +00:00
Pranta Dastider
e63b88c7dd QmlDesigner: Update image in the Live Preview documents
This patch updates the old image to include lock the views features
in the document screenshot. Also it updates the text description to match
the change.

Fixes: QDS-11565
Change-Id: I262be3392552920607725becda6e21d3e571c122
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-01-24 09:19:48 +00:00
Jarek Kobus
0a7dc1ac1e Axivion: Refactor fetching serializable data
Change-Id: I5a5c07238abf7440c4f8686a1a06b96da6125ef8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-01-24 09:09:52 +00:00
Jarek Kobus
948352d937 Axivion: Extract getting credential into a separate task
Change-Id: Iab7fe76fc11a2a3407c8111d2ea6a0cd22a1c194
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-01-24 09:09:36 +00:00
Jarek Kobus
40a0d1db88 Axivion: Employ TaskTree
Change-Id: I55678f67d990c569073571055dbfe820b2fd324e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-01-24 09:08:59 +00:00
hjk
d77f1b09c5 CppEditor: Simplify access to FileSettingForProject
Change-Id: I382a6cce314eafaeb21ae4c9fa42015b79a0cb0e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-01-24 08:02:04 +00:00
Thiago Macieira
7b04bdf491 CPlusPlus: deal with QByteArray::(c)begin() return nullptr
You should either use begin() and end(), or data() and size(), and
either way you shouldn't dereference the first iterator if the size is
zero.

Roberto's parser in 3rdparty/cplusplus assumes you've passed at least
one character (I'm guessing the null terminator) and does pointer
manipulation there:

void Lexer::setSource(const char *firstChar, const char *lastChar)
{
    _firstChar = firstChar;
    _lastChar = lastChar;
    _currentChar = _firstChar - 1;
    _currentCharUtf16 = ~0;
    _tokenStart = _currentChar;
    _yychar = '\n';
}

Note the _firstChar - 1 math is technically UB if firstChar is the
actual first character of any buffer allocation or string.

Fixes: QTCREATORBUG-30044
Change-Id: I76ffba14ece04f24b43efffd17abcb8102497813
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-01-23 20:36:57 +00:00
Ali Kianian
479380c799 QmlDesigner: Fix the bug for adding a property to the left side
Fixes: QDS-11659
Fixes: QDS-11661
Change-Id: Iabeae683c4ca33721f4e08137312cea0f6cb435e
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Shrief Gabr <shrief.gabr@qt.io>
2024-01-23 13:51:39 +00:00
Ali Kianian
43f3969617 QmlDesigner: Model should have at least one cell
* If all of the columns are deleted, all of the objects will be deleted
and a single column, with one empty row will be created.
* A bug is fixed for the cases that we have invalid selected column.

Task-number: QDS-11649
Fixes: QDS-11678
Change-Id: I8bdbd0176ad76dd761e98b5030cdc77379a8642b
Reviewed-by: Shrief Gabr <shrief.gabr@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-01-23 13:33:38 +00:00
Mahmoud Badri
9723ebe7b4 EffectMaker: Wrap long names in the nodes ComboBox
In practice this applied only to "Mipmap Drop Shadow"

Fixes: QDS-11717
Change-Id: Ia731370a1101a9bce17ae558ae8761b99afcd896
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-01-23 13:29:44 +00:00
Miikka Heikkinen
6826987c7e QmlDesigner: Hide duplicates from UrlChooser combobox
Files with same name but different path will now be removed from
UrlChooser combobox on the assumption that they are in fact copies of
the same file.

Fixes: QDS-11471
Change-Id: Ic65153a1a65865982ee1c11e4e20171d66221b76
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-01-23 13:28:21 +00:00
hjk
9aff30f7c7 CppEditor: Hide CppFileSettingsPage class in .cpp
Change-Id: Ic095d7d45681a1970fb8362667f50d632ee6d3e5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-01-23 11:43:03 +00:00
hjk
d0d0d3b83a Rename a few more ToolChain items to Toolchain
Change-Id: I78e12e6923242fcb72cdde6284185574b8792fc6
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-01-23 11:09:32 +00:00