Commit Graph

88653 Commits

Author SHA1 Message Date
hjk
d3fb3a163c Debugger: Ignore stops in libart.so and other Android runtime specific places
From https://issuetracker.google.com/issues/240007217#comment17
"Some a background on the technical aspect of SEGVs:

Android Runtime (ART) uses SEGV for various internal purposes (it
triggers a SEGV and handles it without crashing the app, the app doesn't
know it happened). When the native debugger is connected, the debugger
must intercept all SEGV signals.

When running the debugger on Android API level 27 and newer, we make the
debugger skip these SEGV signals (i.e., forward them to be handled by
ART), because we know how to handle real SEGV signals inside ART.  For
older Android versions (26 or older), we did not have this support, so
the debugger stops at every SEGV (i.e., it cannot know if the signal is
a real crash or an ART-internal thing)."

Arguably, this should be caught by the LLDB Android platform bits, but...

Task-number: QTCREATORBUG-30759
Task-number: QTCREATORBUG-29928
Task-number: QTCREATORBUG-30080

Change-Id: I8cabe4a0675c596a9617520aff0d62ad11321f0e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-02 15:36:26 +00:00
Alessandro Portale
15f83efa6a ModelEditor: Inline addrelatedelementsdialog.ui
Change-Id: I53f9ec87030c4ac41ff34f61a54dd10a866b8c33
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Jochen Becher <jochen_becher@gmx.de>
2024-05-02 15:25:07 +00:00
Alessandro Portale
67ab041903 Android: Disable "Make [NDK] default" button while NDKs list is empty
When pressing the "Make [NDK] Default" button while the list is empty
leads to a crash. The button should actually not be enabled if the list
is empty.

This change disables the button while the NDKs list is empty.

Fixes: QTCREATORBUG-30716
Change-Id: I5f10fd180f62d20210f1b0c0261e4d821d0582dd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-02 15:24:08 +00:00
Alessandro Portale
f625c2682c ModelEditor: Inline modeltreefilter.ui
Change-Id: I03925b708ac1741f6342023b455b0280a8bce584
Reviewed-by: Jochen Becher <jochen_becher@gmx.de>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-05-02 15:18:20 +00:00
Alessandro Portale
a90368d704 Android: Use LayoutBuilder for SDK Manager OptionsDialog
Change-Id: Ic8bfa9f73579f7717a100c538641bc8a229c946d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-02 14:58:08 +00:00
Thomas Hartmann
34e4710f7a QmlProject: Fix tests
Change-Id: I988b1e623ee672109172ac8f746406a62b6a895b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
2024-05-02 14:32:37 +00:00
Shrief Gabr
a327f38d5e QmlDesigner: Ignore Image cell warning for Url column
Task-number: QDS-12157
Change-Id: Ia2a46ef878d522f6c5a08fb817c2ef1332cb113b
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-02 13:57:37 +00:00
Cristian Adam
2c4b7fa02a Core: Use Windows API to create path to explorer.exe
Searching after "explorer.exe" in PATH can fail, as seen in a report on
#qtcreator channel on Discord.

Explorer.exe is always part of %systemroot%, which can be
programatically obtained via SHGetFolderPath function.

Fixes: QTCREATORBUG-30765
Change-Id: Id2c4f3bd9c51234cb9e16d936202dfbcb1975606
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-02 13:40:56 +00:00
David Schulz
bf41545468 ProjectExplorer: remove confusing function from Project
Change-Id: Ifaed5d8293dadd2ae3cfdab3b027434d4f8caa3e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-05-02 13:37:47 +00:00
David Schulz
b7dff8b636 ExtensionSystem: fix crash on git interactive rebase
Luas LuaPluginSpec::plugin() returns a nullptr so we have to check the
usages of PluginSpec::plugin before using it.

Change-Id: If4fa926814e5a418e446d6970bb46060feec5664
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-02 13:37:35 +00:00
Christian Stenger
8af9417181 AutoTest: Remove unneeded capture
Amends 1fc135822f.

Change-Id: I21b8b596979de6a68e35764c6dc435b596c773a2
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-02 13:27:01 +00:00
Eike Ziller
6b65826858 Add a template for change logs
Change-Id: Iba89a51f6cd5c42c42c5fc1e210acac9a0fc1033
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-05-02 12:58:14 +00:00
Eike Ziller
d2afb4e8af Merge remote-tracking branch 'origin/13.0'
Change-Id: I4817ff528f92dcb2ffb00c92ca1039f1ae31c7f1
2024-05-02 14:47:43 +02:00
Jarek Kobus
b090401b78 Android: Inline some redirections
Get rid of onLicenseCheckResult() and runPendingCommand().
Gather all the continuations inside the packageFutureFinished().
This clears up the picture of what is happening.

Change-Id: I7d63fa7a628a0bdefb26677f04df97a0491668ab
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-02 12:46:29 +00:00
Jarek Kobus
bbd2c81e61 Android: Make workflow item names consistent
Otherwise it's a nightmare to track it.

Change-Id: I6d9ddc1d5e7046307b0aa66ded05023cf884f37b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-02 12:46:20 +00:00
Christian Kandeler
4506b184a3 CppEditor: Let users disable the built-in indexer
Fixes: QTCREATORBUG-29147
Change-Id: Ib7e791362782f5b40c5678de95d2309a6396ccb9
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-02 12:38:01 +00:00
Miikka Heikkinen
4cb9857293 QmlDesigner: Handle material type without using item library entries
Recent project structure changes invalidated material bundle metainfo
files, as we can't support both new and old structure with them.
They were only used for populating possible types in material editor,
so adjusted this functionality to only allow changing the type between
basic types. If the material is a custom component, then the only the
current type is displayed and the type combo box is disabled.

Fixes: QDS-12628
Change-Id: I07b1a482977f0ecc94c35f3d485302c85c6153f9
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-02 12:21:40 +00:00
Mahmoud Badri
c8215e986d QmlDesigner: Reload bundles when id change
i.e. when opening a project that has a different import folder style
from the currently open project.

Fixes: QDS-12639
Change-Id: I8d341c38ec771dc5e28c4436cd9ad191e27c38a8
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-02 12:13:10 +00:00
Eike Ziller
ff6e8656d7 Add change log for 13.0.1
Change-Id: I7f6dd377ebcae45bf3acd526daa5f3981df1a981
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-05-02 11:37:47 +00:00
Thomas Hartmann
ac5d88716b QmlProject: Add more image formats
Task-number: QDS-12660
Change-Id: Idabe761b8ef7d1a02fb0a4a05632a8e11e036cce
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-05-02 11:11:06 +00:00
Pranta Dastider
0100eb2c1a QmlDesigner: Update tooltips for QtQuick Studio Design Effects
This patch update tooltips for QtQuick Studio Design Effects.

Fixes: QDS-12568
Change-Id: I7f500a765ca58a27b7efe3923f637856684215f2
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-05-02 10:56:17 +00:00
Marco Bubke
11f7ece0d8 QmlDesigner: Type annotaion reader set defaults
So far the defaults were false but some of the are true.

Task-number: QDS-12663
Change-Id: I710913ed371d6e094cf68c154bb9353c21ee0c16
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-02 10:34:21 +00:00
Mahmoud Badri
7525ef79de QmlDesigner: Use only 1 content library importer for all bundles
Change-Id: I59e8efda2e5704caf72297b8dee5178eb8ecfc71
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-02 10:17:53 +00:00
Cristian Adam
480f5366d2 CMakePM: Do not force Kit's Qt version as projects Qt version
Amends c6d1c962ee

Fixes: QTCREATORBUG-30712
Change-Id: I1d78d108a7566f4f59ff0f479eb4b5eddb8a986f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-02 10:02:09 +00:00
Marco Bubke
522805629a QmlDesigner: Propagate annotation type traits recursivly
Task-number: QDS-12661
Change-Id: I593eeaaa3800c450a0c2b9f08ae1993ddc29cd8f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-05-02 09:39:25 +00:00
David Schulz
5920d9cb9e Python: remove rope_completion language server setting
Rope is not part of the default installation of the python-lsp-server
pypi package and enabling it by default results in an error at startup.

Fixes: QTCREATORBUG-30757
Change-Id: I975ac98d9f4c5b25f5be085461e5b626d3a93fbc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-02 06:25:38 +00:00
Knud Dollereder
d877e1bb1f QmlProjectManager: Fix splitting a path by separator
Fixes: QDS-12633
Change-Id: Ide81944e6f9bf08723576aa86d3a1f977c4a7e3d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-30 14:44:57 +00:00
Ali Kianian
5a8b389ddd QmlDesigner: Create and assign a model to the dropped GridView
The delegate for GridView is different from ListView.
Also cellWidth and cellHeight should be specified for the GridView
Also the delegate for the listView is modified to clip and elide the
text.

Task-number: QDS-12306
Fixes: QDS-12386
Change-Id: I7e75b9e7f234c5e021637e703088539886a8f25f
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>
2024-04-30 14:43:21 +00:00
Thomas Hartmann
c7790ab981 QmlDesigner: Suppress QDS compnent warnings in template
Change-Id: I409866d43282d425795e8afe0bcb824d860a2a84
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2024-04-30 14:21:24 +00:00
Marco Bubke
15f05d0bbc QmlDesigner: Drag and drop is now working with project storage
Type annotaions are now saving the type name and dropInFormEditor is by
default true.

Task-number: QDS-12450
Change-Id: I757f59b296de321c4d0190a36ec581379f646735
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-30 13:46:24 +00:00
Miikka Heikkinen
cae233f5db EffectComposer: Shorten the generated effect path
Changed "ComposedEffects" to "Effects".

Task-number: QDS-12629
Change-Id: I45e2fd8443af72531d3c3e80f32227eacb948d26
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-30 13:22:02 +00:00
Alessandro Portale
fcf3cf4770 Android: Allow users to use other Java versions than 17
Fixes: QTCREATORBUG-30684
Change-Id: I59940f43530fe5f36fdf4fc1655365ff321619f9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-04-30 12:54:28 +00:00
Eike Ziller
0f4efacb91 Merge remote-tracking branch 'origin/13.0'
Conflicts:
	doc/qtcreator/src/overview/creator-only/creator-reference.qdoc
	doc/qtcreator/src/qtcreator-toc.qdoc

Change-Id: Ibea5488fda972321c448c64fad7f657e84d62cdb
2024-04-30 14:23:09 +02:00
Miikka Heikkinen
6cc8c13c7c QmlDesigner: Tweak generated components folders
Old type names were too long, shortened various names:
"GeneratedComponents" -> "Generated"
"ComponentBundles" -> "Bundles"
"MaterialBundle" -> "Materials"
"EffectBundle" -> "Effects"
"UserMaterialBundle" -> "UserMaterials"

Fixes: QDS-12629
Change-Id: I3a49e57bbc8d401cadd8c5de6648c7229579d2b2
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-30 12:13:10 +00:00
Teea Poldsam
8ed54cb3a8 Doc: Update Applying States in Flows
Fixes: QDS-11506
Change-Id: Ic2e9993b96cf9ecc3f40fc9701f9044945610a99
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2024-04-30 11:54:24 +00:00
Eike Ziller
289b42aba4 Fix tab order in "file deleted" dialog on Windows/Linux again
This was fixed with e9320a8122 and shortly
after broke again with 4d6827dde9

Amends 4d6827dde9

Fixes: QTCREATORBUG-28676
Change-Id: I4a69b1ea1430613d1aa22620b8f10ebff73d66ab
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-30 11:30:27 +00:00
Leena Miettinen
2275b43cc4 Doc: Update info on Qt for MCUs
Task-number: QTCREATORBUG-29361
Change-Id: I926e09748265ca123fd1a52838da1d05de7f7766
Reviewed-by: Esa Törmänen <esa.tormanen@qt.io>
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
2024-04-30 11:27:02 +00:00
Eike Ziller
ae4c893301 Fix the directory opened when exporting coding styles
On macOS. Make sure to use an absolute path for the file dialog.

Fixes: QTCREATORBUG-28832
Change-Id: I75f4166ee2bc3238a01089231bde4cf990269024
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-30 11:26:35 +00:00
David Schulz
7a47cf0a11 Utils: fix crash on hiding a tooltip
Closing the tip label indirectly calls ToolTip::hideTipImmediately via
its eventFilter that closes the tool tip on any FocusIn/Out event on the
application. Since m_tip is reset in hideTipImmediately the outer call
crashes when this nullptr gets dereferenced. Avoid this crash by
resetting m_tip before closing the tip label.

Fixes: QTCREATORBUG-30738
Change-Id: Id3e690141be196db8ac6c4dab3d97627c0657140
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-30 10:56:11 +00:00
David Schulz
15e56078b6 Debugger: Improve keyboard navigation in locals view
Expanding items in the locals view results in replacing the original
tree item with a newly created one. This ultimately resets the selection
and the current item of the view, which in turn makes it cumbersome to
navigate by keyboard.

Save a list of selected inames and the iname of the current index when
requesting the update and try to reselect them after the update
finished.

Fixes: QTCREATORBUG-27569
Change-Id: I9d8f51631e4ee490e19307877cbef44798506016
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-30 10:56:02 +00:00
Christian Stenger
1fc135822f AutoTest: Allow limiting scan inside project settings
Enables to limit the scanning for tests and respectively any
further action to a list of user defined patterns.
If limitation is enabled and any of the filter patterns does
match the file will be processed.
If no filter pattern matches the file will be ignored.

Change-Id: I6a6de8f4137485e83b750997fb3c948dc6e79c68
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-04-30 08:04:36 +00:00
Marcus Tillmanns
8b682ac7f5 Terminal: Fix TERM env variable
Some (Fedora) OS/Distros set a default value for TERM such as "dumb", which then breaks
command line tools such as "clear" which try to figure out what terminal they are
running in. Therefore we have to force-set our own TERM value.

Fixes: QTCREATORBUG-30737
Change-Id: I50ac86f17c92dc7bc477cc59ed43ec22025593fb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-30 07:11:01 +00:00
Marcus Tillmanns
0543085a64 Lua: Add luatemplates
Change-Id: Icc9e7505156eb8749da64e1f4022f27a57018a67
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-30 04:48:23 +00:00
Christian Stenger
caf31c4fe9 CPlusPlus: Support completion of list iterators
Fixes: QTCREATORBUG-30608
Change-Id: I169efe675e13540ecc5fbbd6b15dd13d8522db7d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-04-30 04:45:01 +00:00
Marcus Tillmanns
87193a0311 Lua: Fix leaking Actions
Change-Id: Ia2fd5eecfd76491c34650817e09be11252be1dec
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-30 04:28:50 +00:00
Orgad Shaneh
acd0894d73 ClangTools: Fix compiler warning
warning C4101: 'e': unreferenced local variable

Change-Id: Ic09058a9caa845b5dee7e356e7a53899ba87e7f0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-29 18:45:58 +00:00
Cristian Adam
84f0f6ba8b CMakePM: Fix crash with specific CMakePresets.json
The code was not taking into consideration an empty QStringList.

Fixes: QTCREATORBUG-30755
Change-Id: Ifb9f5dc3ffefd94d44b16b161bc04d381f3f6786
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-29 14:39:09 +00:00
Mahmoud Badri
25f8081032 QmlDesigner: Refactor update bundle imported state
Remove the useless round trip from model to view and back

Change-Id: I38a5826e165014f64d7855139b58e9691b0f6310
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-04-29 14:38:59 +00:00
Shrief Gabr
465a2e7ac4 QmlDesigner: Fix fly mode speed on macOS
Task-number: QDS-12337
Change-Id: I7590cd79a8d3b0b27cad7edb5e11be091223b6fb
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-04-29 14:26:15 +00:00
Mahmoud Badri
af6dcb6659 QmlDesigner: Remove "Internal" namespace from the bundle importer
Change-Id: If082d7fe724b6db2aaad8c1a6bf56f68bbbb3baf
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-04-29 14:16:22 +00:00