Commit Graph

80147 Commits

Author SHA1 Message Date
Samuel Ghinet
b9b2121ae1 QmlDesigner: Show a placeholder text in the Content Library when empty
When QDS starts for the first time, and there is no internet connection
(to download the materials bundle and the textures bundle), tell the
user that the problem might be the internet connection.

Task-number: QDS-9539
Change-Id: I81311bf00c830b76019e0edb53eeb980362a1339
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-03-30 09:12:28 +00:00
Orgad Shaneh
613e011bfa Utils: Fix MSVC warning in MultitextCursor
warning C4267: 'return': conversion from 'size_t' to 'int', possible loss of data

Change-Id: I35b981e544c66f818089b9e2d511a1b36ca86bfd
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-30 08:27:19 +00:00
David Schulz
73c645820f TextEditor: use QScopeGuard instead of ExecuteOnDestruction
Change-Id: I2d7c04d69ad49a121b157af2750eaed26bab9480
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-30 08:00:19 +00:00
Orgad Shaneh
0f3f5fb4d8 Git: Fix crash when menu is closed before fast-forward check result
Fixes: QTCREATORBUG-28958
Change-Id: Ic3bfde2f355fdb3d44b0614e9ba176ff550d97c8
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-03-30 07:38:50 +00:00
Ali Kianian
3f5fbfc25b QmlDesigner: Fix the text overlap for TopLevelComboBox
Task-number: QDS-9464
Change-Id: I72e6e855c0b7ebeb6893fe9a4f463b6ef6197248
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-03-30 07:37:05 +00:00
Mahmoud Badri
0b79db5c17 QmlDesigner: Close section's context-menu on view focus out
When clicking outside any view that has sections and a section's
context-menu is visible, it is now closed.

Fixes: QDS-9564
Change-Id: I73cd3a9754c5a18360427525a2a943c2c549e83f
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-03-30 07:31:24 +00:00
Christian Stenger
6f7934226e McuSupport: Adapt plugin unit test expectations
Amends 22909726eb.

Change-Id: Icd586fe7724ce4ba9b12780f6044a3f35e5a4fa5
Reviewed-by: Sivert Krøvel <sivert.krovel@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-03-30 04:48:20 +00:00
Samuel Ghinet
0d73fae212 QmlDesigner: Fix texture metadata no longer showing on hover
After the changes that made the texture icons downloadable, hovering
over the download button of a texture no longer showed metadata. The
reason is that the structure of the json metadata file changed a bit
-- now we have a top item with children "version" and "file_items".

Task-number: QDS-9575
Change-Id: Ib41d7871e3b3c0a0c759de5d0277c3ee7c974d4f
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-03-29 15:26:54 +00:00
Samuel Ghinet
a59cf942e0 QmlDesigner: Fix materials & textures not shown when internet is down
If internet is down, or, for some reason, the URLs are inaccessible,
then we should still show the existing materials and textures.

Task-number: QDS-9582
Change-Id: Ic9516c7bc00a37d1c3cd31643749f51a217bf317
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-03-29 15:26:15 +00:00
Mahmoud Badri
0184e38708 QmlDesigner: Fix typo in anchors property names
Change-Id: Ibb100babdc1d98bd0c75bda11ac3b184efb0e480
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-29 15:25:38 +00:00
Christian Stenger
3ad00fc871 SquishTests: More Python3 adaption
Change-Id: I95488e2b5661c8790cb73246947af58de2a1899b
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-03-29 15:17:24 +00:00
Christian Stenger
230b030755 SquishTests: More expected build issues
Expect build issues if the kit does not support the
minimum cpp standard needed by the project.
Additionally exclude the kit explicitly if the compiler
is too old to understand the needed minimum cpp standard.

Change-Id: I0cf0ad17b2cd68ba990d3360a8628ddd7fe507bd
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-03-29 15:17:09 +00:00
Christian Stenger
5265ad275c Squish: Allow build to fail for runAndCloseApp()
Allows to mark current configuration to fail when we trigger a run
with implicit build.

Change-Id: I5738c49e62bca876c0aeba28af5f8315303620a2
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-29 15:17:02 +00:00
Thomas Hartmann
31347c0506 QmlDesigner: Fix crash
The file node can be null if a new file was just added.
This worked before the 10.0 merge, but could be timing related.

In any case the check is good practice.

Task-number: QDS-9584
Change-Id: Ic01b763c6ba4466832316a454a12ccbdc1a6cc64
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-29 14:21:00 +00:00
Robert Löhning
143dedf2f5 LanguageClient: Fix state string
After a shutdown, the client is shut down.

Change-Id: I092af02bfb72fda611229af42a838071890bfce9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-03-29 13:29:54 +00:00
hjk
2eebfb130c RemoteLinux: Also check for generic copy in device test
Currently both ssh and rsysnc don't work on double remote, this
allows passing the test with some deployment.

Change-Id: Iad2f125b09d1b326d6399cdc3dff0faa9430e92d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-29 13:08:45 +00:00
Eike Ziller
dc9fc28ac5 Bump version to 10.0.1
Change-Id: I6828aa83a6ce828a12b30e1a0d942ec64f582cbe
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-29 12:34:01 +00:00
Thomas Hartmann
1c6e7c796b QmlDesigner: Fix crash
The nullptr does crash. We can use a proper QmlJSQuickFixAssistInterface
created from the editor instead.

Task-number: QDS-9573
Change-Id: I5ea2792acb311c37e1005ff039ed7110503dfb4f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-29 12:29:15 +00:00
Christian Stenger
59be9e98bf Debugger: Avoid duplicate commit and close
The delegate triggers a commit and close already when
the focus is switched. So, the additional calls will
end up in a warning deep inside QAbstractItemView
and not processed.
Get rid of the obsolete calls and the warnings.

Change-Id: Ic27f6b1aa0b73f4bb82b0878650d8ae8ae8f87d2
Reviewed-by: hjk <hjk@qt.io>
2023-03-29 12:19:39 +00:00
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
Eike Ziller
81a5e2143c README: Add section on getting sources from git
Change-Id: I81b8d0e4e6d8df460f85bdd90b4688df2987bf6c
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-29 08:34:10 +00: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
Leena Miettinen
df53b7c9b7 Doc: Add docs for Peripheral Registers view in Debug mode
Task-number: QTCREATORBUG-28778
Change-Id: I17b66417c943c08295a8e7fb9936e5f8d28b9263
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-28 14:19:39 +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
Christian Stenger
c46dff0199 SquishTests: Fix checking for build issues
Do not count code model issues as build issues when checking for them.
Fixes tst_build_new_project on the Linux machines which fail for unknown
reasons.

Change-Id: I2cd77b0208019fc902742197c0def6d3811cfced
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-03-28 13:20:10 +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
Christian Stenger
e113a12645 SquishTests: Fix accessing build dir line edit on Win
The respective line edit is hidden inside the collapsed
details, so ensure we have expanded details instead.

Change-Id: Ib6f6fab9f06c3250a71baf95a853d770bfa9b221
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-03-28 13:06:29 +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
Leena Miettinen
faf8f91b65 Doc: Update the docs for the Expressions view in Debug mode
Task-number: QTCREATORBUG-28778
Change-Id: I687fb1bb2ecf6dbc511bffc70a6f9ac00aee6ee9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-28 10:48:18 +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