Commit Graph

68765 Commits

Author SHA1 Message Date
Christian Stenger
3a23126419 CoPilot: Fix warning
Change-Id: I867b44fd769c96d294830d0a2c1c8b1bdf669d6f
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-29 11:59:29 +00:00
Tim Jenssen
26365f34d4 Merge remote-tracking branch 'origin/10.0' into qds/dev
Change-Id: Idd5eac05f3506387e5f1884e22cc2c902032bbe1
2023-03-29 13:42:04 +02:00
hjk
aefc8e296c ProjectExplorer: Provide access to copy step id constants
Makes steps better re-usable.

Change-Id: I5ef687480179b06985e525336f31be3fd69bcd23
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-29 11:25:57 +00:00
Christian Stenger
016385d514 Debugger: Do not store generic debuggers to settings
They get added automatically. Silences a warning for each
generic debugger.

Change-Id: I5a60ddd9780e5992d67a67a75eb0917ceae778e6
Reviewed-by: hjk <hjk@qt.io>
2023-03-29 11:18:52 +00:00
Eike Ziller
b36287731e Merge remote-tracking branch 'origin/10.0'
Conflicts:
	cmake/QtCreatorIDEBranding.cmake
	qbs/modules/qtc/qtc.qbs
	src/plugins/remotelinux/genericlinuxdeviceconfigurationwidget.cpp
	src/tools/perfparser

Change-Id: Ie5643100e0eb00e0933359dce320169b876f5634
2023-03-29 12:21:50 +02:00
David Schulz
6ab923c39f Copilot: add copilot suggestion tooltips
These tooltips allow to switch the currently visible suggestion as well
as applying it using
the mouse.

Change-Id: I30b9a76ae57c66887f4e1b1311e1a7248ed0f194
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-29 07:43:28 +00:00
David Schulz
8a1e34f084 TextEditor: introduce text suggestion interface
And also a copilot suggestion implementing that interface that allows
reverting all changes done to a suggestion as well as applying it.

Change-Id: I236c1fc5e5844d19ac606672af54e273e9c42e1c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-29 07:43:19 +00:00
hjk
1ee46580ac RemoteLinux: Simplify display of make install command
Including proper quoting.

Change-Id: I49fd85b5cfc9d035d3b63fe1c7cef40247d8742c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-29 07:25:54 +00:00
Marcus Tillmanns
0fb635e76c Docker: Fix Shell destruction handling
Change-Id: I125ac2eaf99e8dff85da06640f048b502f36fa08
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-29 06:54:40 +00:00
Eike Ziller
29108a1463 Do not automatically reset progress details position
Add a "pin" button that appears on hover if the details have been
dragged around. Clicking on it resets the position.

Position is also reset when hiding & re-showing the details with the
button. And the details snap to the original position when dragged near
it.

Fixes: QTCREATORBUG-28829
Change-Id: I6a6f13ca1baac79951c20f2e8edf6fac137a8cfc
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-29 06:43:17 +00:00
Alessandro Portale
de733a4294 Utils: Add "pinned small" icon
To be used it in pinnable floating dialogs.

Change-Id: I379a0422af5b0f5dd4045fcaa8086c642832d641
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-29 06:42:48 +00:00
hjk
cf138ad909 Debugger: Small corrections to "Generic" item handling
Change-Id: Idd8f6a64aa64b8f13e713b3337ad1f8f2b8735db
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-29 06:30:02 +00:00
Thomas Hartmann
bcd74a2fad QmlDesigner: Fix crash
The buildsystem might be missing.

Change-Id: I05e03f59a2fcb49ce1ff7a2521ed1af165730b51
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-28 15:09:00 +00:00
Marco Bubke
c940cc5466 QmlDesigner: Fix access to nullptr
We try to access projectStorageData but it does not exists. Now we
return a dummyProjectStorage() instead. Because it is never accessed if
we don't use the project storage we should be fine.

Change-Id: Ic36a27472e95012b29b15ad33d2abe01507d64b4
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-28 14:57:16 +00:00
Brook Cronin
17cb071012 QmlDesigner: "add small backspace icon"
Change-Id: Id5e23b536c7e4a0eb3778a66ec003ba4eb7c1e77
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-03-28 14:29:40 +00:00
hjk
463e47bbdd Debugger: Have a generic "GDB in PATH on Build Device" item
This is only checked at run-time, but allows smoother creation of
kits for standard setups as the (possibly remote) full path is
not needed.

Remove the DebuggerKitAspect::fixup() implementation. Too much magic
by now, and worst thing that could happen is a non-matching debugger
that will clearly bark when used.

Change-Id: If2414610d479a5b93c3e6227b8736ddc61f70635
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-28 13:57:50 +00:00
Sivert Krøvel
22909726eb McuSupport: Bring tvii and rh850 kits up to date with latest QUL
Bring recently changed kits up to date with QUL repository.

Task-number: QTCREATORBUG-28684
Task-number: QTCREATORBUG-28833
Change-Id: Id70268584891a72659930817a5c8458418a9f3b0
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-03-28 13:18:25 +00:00
hjk
5cfc52a92c Android/Baremetal: Clean up some header
Change-Id: I63a3483a28d9a4ccd21042ae3bd2049598125f5f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-03-28 13:07:07 +00:00
hjk
bc4629d427 RemoteLinux: Add history completion to a few device property line edits
Change-Id: If871ff31ebd33a055bdcae38438eb0b4b48b904b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-28 13:05:38 +00:00
Marcus Tillmanns
662aabd29f ProjectExplorer: Add menu button to add devices
Change-Id: I7078617dc0a981854ccf25cef7a8136dbe51000b
Reviewed-by: hjk <hjk@qt.io>
2023-03-28 13:05:10 +00:00
Marcus Tillmanns
db38eef811 RemoteLinux: Display copy errors
Change-Id: I6f75af7b4700e26d43b605bee014b4768224caf6
Reviewed-by: hjk <hjk@qt.io>
2023-03-28 12:04:25 +00:00
hjk
746f0f93be ProjectExplorer: Inline BuildStepInfo
Was a more or less arbitrary subset of BuildStepFactory data.

Change-Id: Ie37735532da8a15a22d5f92e1b45d6ed5f7758fc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-28 10:19:28 +00:00
Ali Kianian
5644fa1b9c QmlDesigner: Move StyleAnimator to Utils
StyleAnimator moved to Utils in order to be used by other modules and
styles.
Since Utils is the most common dependency, it's chosen as the right
place of StyleAnimator.

Task-number: QDS-9522
Change-Id: Idbf55875e0c320ccfa21e1c479bf5997ea7d150d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-28 10:13:28 +00:00
Mahmoud Badri
4612fb20b5 QmlDesigner: Update assets context menu based on scene env state
Also remove signals emitted from the assets widget to the view since
the widget now has a reference to the view.

Fixes: QDS-9467
Change-Id: I80a2aef4c35aeeb344cc71c890664e1645d4334a
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-03-28 10:12:20 +00:00
hjk
62b1795fb0 RemoteLinux: Further disantangle buildsteps from downstream
Expose Factories, (mid term:) hide step implementations.

Change-Id: I930899fe6873c8f727f3dedbb86aceb9bcbda0a4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-28 09:49:52 +00:00
Mahmoud Badri
38cf58d0ca QmlDesigner: Emit changed signal after updating m_matBundleExists
Fixes: QDS-9516
Change-Id: I905aff3a526d913d3eb56ae556cbebd7d7e67c5b
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-03-28 09:24:20 +00:00
Marco Bubke
f07e8a5918 QmlDesigner: Concat source ids into one struct
SourceIdsData is reducing the parameter count and later shares the
initialization the watcher notifier.

Task-number: QDS-9479
Change-Id: I30fca678a857821a376906071d6c219c4dd2e4b7
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-28 09:18:36 +00:00
Marco Bubke
492c2f89c4 QmlDesigner: Cleanup code for reuse
Task-number: QDS-9479
Change-Id: If8c66444e7b85255aa2f66519ab74572d3800979
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-28 09:18:30 +00:00
Marcus Tillmanns
7e4c52959c Utils: Don't try to start clangd if path is empty
Change-Id: I30d3279be81b66c16ee8081b09828aaa6bcd53e0
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-28 08:30:30 +00:00
Alessandro Portale
3da30a8f2c MinGW build: Fix a few compilation warnings
Change-Id: Ib4f85d2ef15a5c06c6d2b175823c196b8588f5d2
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-28 07:54:44 +00:00
Marcus Tillmanns
5db27d21da Terminal: Add setting to change arguments of default shell
On non windows systems, initialize it with "-l" to start a login shell.

Change-Id: I972f845c3933c6a54752d4c71108a658311a0256
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-28 07:13:00 +00:00
Marcus Tillmanns
c7b6c66cab Docker: Fix process state handling
Fixes the following errors that would trigger warnings due to incorrect
QtcProcess/ProcessImpl state synchronization

* Don't emit readyRead when state != Running
* Set result.m_error to FailedToStart if remote pid was not received
* Send stderr data once the pid was received
* Don't call deleteLater() on nullptr

Change-Id: I4b498a860ad27bef1a5b3e26417576431b54e84c
Reviewed-by: hjk <hjk@qt.io>
2023-03-28 06:32:38 +00:00
hjk
d8e87413a3 RemoteLinux: Add some support for "doubly remote" devices
This adds an "Access via:" settings to RL based devices that allow the user
to select an intermediate (also RL based) device as "stepping stone".

Communication to these devices is done by running ssh from the
intermediate device, currently without connection sharing.

Currently kind-of-functional: "Show running processes"

Change-Id: I6964fb4005ab8f42551c877da2c0bdb1e825cd61
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-28 06:05:53 +00:00
Christian Stenger
22952c5357 McuSupport: Fix missing include
Change-Id: Ie7a90edf3e4d6b289512a5bb60bca039b0b10fe3
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-28 04:53:13 +00:00
Samuel Ghinet
2081d1c0bc Download icons and metadata of textures at startup
Task-number: QDS-9397
Change-Id: If1bb4a5500896b70b4a9dbb82d2122c1232ee744
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-03-27 17:58:53 +00:00
Mahmoud Badri
bda4ae301b QmlDesigner: Fix regression: Close context-menus on focus out
Was broken by introducing StudioQuickWidget

Fixes: QDS-9468
Change-Id: Ie9a29af7356387591259fd2a3d1ae9adc34c711d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-03-27 17:48:06 +00:00
Marco Bubke
4cb99eb737 Sqlite: Improve ownership
Using the compile option instead of a function pointer makes the code
less brittle.

Change-Id: Id7f3b42c044d47f13e099f50c5bb33b72c05cde1
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-27 14:36:24 +00:00
Thomas Hartmann
8ba06e6865 QmlDesigner: Do not complete Connections in the puppet
This is not required and does crash with Qt 6.5.
Calling component complete on Connections is not required, since they
should not be active in the puppet anyway.

Task-number: QDS-9533
Change-Id: I686b99adb2d888b7df53e5f7da14a2e0a5d147e7
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-27 14:18:54 +00:00
hjk
4adec47a3e Qbs: Return FilePath from QbsInstallStep::installRoot()
Change-Id: Ie4943ec3dfd760a37b9d85c65095ae0d6cad7fe1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-27 13:00:15 +00:00
hjk
18772b9db5 ProjectExplorer: Use 22 as ssh default port
Also when constructing an SshParameters object.

Change-Id: I0f5a194052c88805bf5f1f414c4b876229d7bdf8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-27 12:38:38 +00:00
hjk
103c03afd4 RemoteLinux: Drop workaround for remote executables
Not needed anymore and gets into the way of "double remotes".

With this change "Local host as 'double remote' behind some
real remote linux" can run plain C++ applications.

Change-Id: Id0863c0893e3df0ced59384d12adbe00bc39073e
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-27 12:33:43 +00:00
Marcus Tillmanns
e45ee44ae6 Terminal: Use native shortcut representation
Changes the ESC configure button to display the native representation of
the ESC Key instead of the macOS specific one.

Change-Id: Id3ec69901afb2bcb8b352b9c50a1adb4a074cd74
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-03-27 12:24:01 +00:00
Filippo Gentile
193b1295f6 Debugger: run GDB post attach commands also for local inferiors
GDB post attach commands previously where only run for Remote or
Extended Remote targets.
Now they are also run for Local and Local Attach targets

Task-number: QTCREATORBUG-28764
Change-Id: I6cf34091f2e53ffc7ea436465c2c1de3ef637e9d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-03-27 12:19:17 +00:00
hjk
9783ffd7c3 Qnx: Allow incremental deployment
Seems to work nowadays.

Change-Id: I5d6ee3054d1ef127385403a92f8c1e3119eb27f7
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-27 10:45:24 +00:00
Robert Löhning
b82fdb0499 Git: Fix explanation in GerritPushDialog
Change-Id: I527414dc3948a009099ec993c0f71d3501394ecd
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-27 10:25:12 +00:00
Miikka Heikkinen
51a071dbdf QmlDesigner: Fix build
Add BakedLightmap to type cache.

Change-Id: Id831fbcdc7ad3138d0f6a741098cfd429c15de39
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-03-27 09:53:04 +00:00
Marcus Tillmanns
43d6f1b294 Terminal: Allow Locator shortcut
Change-Id: I278eb3ec2c18efe49a400149a83f71d0fbb2a35c
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-27 09:50:00 +00:00
Marcus Tillmanns
9f5f213337 Terminal: Fix search debug output
Change-Id: I66f5a5e5d11f892b11d009df234fe9d7c29356be
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-27 09:30:15 +00:00
Marcus Tillmanns
4ab5eb5339 Terminal: Fix warning messages
Change-Id: I1ab473c79219cf6e2adefaa1349b4675a2455b2f
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-27 09:30:09 +00:00
Marcus Tillmanns
2eb4884742 Terminal: Make audible bell configurable
Change-Id: I6cc02f2f1b873f39352151265fb7ba1fe0f170fc
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-27 09:29:54 +00:00