Commit Graph

7857 Commits

Author SHA1 Message Date
Brook Cronin
0d8c76e853 QmlDesigner: Add double button to material browser
Change-Id: I5dda141374b2804bab009359b1826aea9ba16e31
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-21 15:08:18 +00:00
Aleksei German
0e8dcb8862 QmlDesigner: Update MCU Wizard template for 2.4
Task-number: QDS-4729
Change-Id: I17c07e87542ad140c55e8cde5bc75086b0e05cd0
Reviewed-by: Sivert Krøvel <sivert.krovel@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-21 14:07:19 +00:00
Samuel Ghinet
f45080e619 QmlDesigner: Don't show the context menu for not-downloaded textures
Task-number: QDS-9227
Change-Id: I1f0c147e2dfd69bee9da0872b15d796741b57609
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-02-21 12:41:46 +00:00
Samuel Ghinet
bf61be5cc0 QmlDesigner: Allow texture download only via left mouse button
Previously, the user would have downloaded the real texture even when
clicking with the right mouse button.

Task-number: QDS-9226
Change-Id: I4040cda4a8c541edc12b4bfe821a09c76eb7efc4
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-02-21 12:38:48 +00:00
Eike Ziller
31de62fb23 C++ settings: Don't manually break tooltip
Use automatic word-wrap instead, by making it an html tooltip. This is
also less weird when translating (though one needs the <p> tags).

Change-Id: I96f2719b46c5a0242ef6e94db38bb67a6f79ab80
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-21 12:04:33 +00:00
Samuel Ghinet
87f76d9bfa QmlDesigner: Fix downloading textures no longer working after some clicks
A "locking" mechanism was implemented to prevent multiple textures from
being downloaded at the same time. However, there was a mistake made,
which made it so that when a texture that had already been downloaded
was clicked again, this locking would be enforced and not released.

Also, fixed minor issues:
* The download button now has a black outline, so as to better
distinguish it inside black-and-white textures
* Canceling the download of a texture no longer marks the download as
failed -- it should show it as if the download was never attempted.
* Fixed tooltips not showing the texture size for downloaded textures
- and now we also update the tooltip text after the real texture has been
downloaded.
* Always creating the "target path" in the FileExtractor, if it does not
exist -- this is different from the "target folder" name, which is an
folder that can optionally be created inside this "target path"

Task-number: QDS-8664
Change-Id: Ieac0e81a5595a8bff3d1aa7ff6252e16c2509c2e
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-21 11:47:01 +00:00
Pranta Dastider
e876f79807 QmlDesigner: Update Tooltips for Page Indicator Section
This patch update tooltip text for Page Indicator Section
fields in Property editor.

Fixes: QDS-9211
Change-Id: I24e2a6c9bb20d62c03457eaf981fa16179d52624
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-21 09:59:05 +00:00
Pranta Dastider
e909749e05 QmlDesigner: Update Tooltips for Page Section
This patch update tooltip text for Page section fields
in Property editor.

Fixes: QDS-9210
Change-Id: I5ceb1fb970e1122c2042894dbd2c143807c313f3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-21 09:58:43 +00:00
Pranta Dastider
d7898d9659 QmlDesigner: Update Tooltips for Pane Section
This patch update tooltip text for Pane Section fields
in Property editor.

Fixes: QDS-9212
Change-Id: Id6cf4fea516065f1cb7ac6d004e4015c1118b96b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-21 09:58:29 +00:00
David Schulz
b625e8bb9b Debugger: improve dumping Qt pointer types
Adding the data as pointers allow casting the data to the actual derived
class

Change-Id: Id1b421c2729c6da8bf17054e39b4f1e8d8ff2cfa
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-21 08:45:59 +00:00
David Schulz
1a575cd2df Debugger: Fix printing of pointer to multiple inheritence base class
...for cdb when we have no nativeValue. This is the case whenever we
have a container like std::vector, QList or a c array to the base class.

Fixes: QTCREATORBUG-28337
Change-Id: I18c63dfbc207d76bf41d85d5da83f7f4603504f9
Reviewed-by: hjk <hjk@qt.io>
2023-02-21 08:45:49 +00:00
Brook Cronin
8925776620 QmlDesigner: Adapt push button icons to widget style
Change-Id: I755700ff345853d51c1cdc49d1da7bc223ac0601
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-20 16:23:23 +00:00
Thomas Hartmann
479924497f QmlDesigner: Fix feedback dialog on macOS
Qt::SplashScreen prevents the widget from getting any keyboard focus.
Using TextEdit for neutral styling.

Change-Id: I56b9a3ac10d68aebdef4064fed4dd2e31bf82b8e
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-20 16:18:50 +00:00
Miikka Heikkinen
0b9eb65d97 QmlDesigner: Allow texture/light probe creation for hdr and ktx files
Also refactored Asset class a bit to optimize cases where multiple type
checks are done against same asset by resolving type at constructor
instead of on demand. Pretty much all cases where Asset instance
is needed also require resolving the type, so this makes sense.
Refactored the remaining cases to not create Asset instance
unnecessarily.

Fixes: QDS-9128
Change-Id: If9d518c9dcfcc70962e5d4e9881889c6ac243c97
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-20 14:45:35 +00:00
Thomas Hartmann
b70139fd84 QmlDesigner: Add Workspace label to workspace combobox
Change-Id: I00b5aead6e0f747229a360e6573b8bcb0c8e8260
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-20 14:42:46 +00:00
Pranta Dastider
a81018cabd QmlDesigner: Update Tooltips for Range Slider Section
This patch update tooltip text for Range Slider section fields
in Property editor.

Fixes: QDS-9180
Change-Id: I2ecf5a325812dae40d99a73353dc20c77f8da6ff
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-20 13:34:33 +00:00
Pranta Dastider
b44b88b2e2 QmlDesigner: Update Tooltips for Tab Bar Section
This patch update tooltip text for Tab Bar fields
in Property editor.

Fixes: QDS-9173
Change-Id: I1ae970e374142b5a0323c29bc0b68295bad64896
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-20 13:33:30 +00:00
Pranta Dastider
ae7eb03fb7 QmlDesigner: Update Tooltips for Round Button Section
This patch update tooltip text for Round Button section fields
in Property editor.

Fixes: QDS-9179
Change-Id: I4831ed76b546815379342cb2ef40ac4675302e22
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-20 13:32:50 +00:00
Pranta Dastider
6dde00121e QmlDesigner: Update Tooltips for Scroll View Section
This patch update tooltip text for Scroll View section fields
in Property editor.

Fixes: QDS-9177
Change-Id: I40a0581852fb0bff5f1a5f76d32a757f313eddd3
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-20 13:32:16 +00:00
Pranta Dastider
5125407b39 QmlDesigner: Update Tooltips for Tumbler Section
This patch update tooltip text for Tumbler fields
in Property editor.

Fixes: QDS-9171
Change-Id: I28755273b02f9624c2e8b47a80692f42b17d0e92
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-20 13:31:34 +00:00
Samuel Ghinet
1a6cc6fa5e QmlDesigner: Make ContentLibrary textures downloadable
At this point the textures_bundle is still required, but only because
of the icons of the textures. Also, some changes should be done for the
visuals of the downloading.

Also, did a fix in FileDownloader: In case the URL given does not look
to be an image file, we should cancel the download instead of treating
it as a zip archive--it can be that eg we were redirected to a sign-in
page and we don't want to download the content of the page and save it
as a zip file.

Task-number: QDS-8664
Change-Id: Iec40e540c116030288df76e1922eab56ba323d1e
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-20 12:28:44 +00:00
Alessandro Portale
e27f82b49e Translations: Merge "OpenWith::Editors" into "QtC::Core"
Change-Id: I241ccc53afa11fa3faa1f1ca9363421827081812
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-20 08:00:37 +00:00
Miikka Heikkinen
5248922e0e QmlDesigner: Focus the content widget of the dock when focusing tab
When DockWidgetTab or DockWidget is focused, typically user actually
wants to focus the content widget, so we now do that.
Focusing content widget is done asynchronously to avoid complications
from doing another setFocus in middle of setFocus handling.

Fixes: QDS-9104
Change-Id: I569639c2f36f0721aafcdcab3498c875e98993a9
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-17 16:28:30 +00:00
Thomas Hartmann
1cbbcea8cc QmlDesigner: Move global annotations to edit mode
Task-number: QDS-9194
Change-Id: Iadba8028e5c4c91195413094086ec5c87329dff3
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-17 15:44:19 +00:00
Mahmoud Badri
0fb12133bb QmlDesigner: Fix drag reset animation after drop on mac
Fixes: QDS-8933
Change-Id: Iab88c996c98e2f1eb01c0282445409411226ff95
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-02-17 15:25:54 +00:00
Miikka Heikkinen
020db8f8e8 QmlDesigner: Autoexpand material browser sections on search
Also refactors ensuring visibility of selected item as the old way
broke when searching.

Fixes: QDS-9109
Change-Id: I87e45ff04a32e4de0adb7029cdfa47b058fa0f61
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-17 15:21:58 +00:00
Pranta Dastider
294a08b265 QmlDesigner: Update Tooltips for Swipe View Section
This patch update tooltip text for Swipe View Section fields
in Property editor.

Fixes: QDS-9175
Change-Id: I7b8b2328f1294481252998b0396f597bceb957fe
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-17 15:06:06 +00:00
Pranta Dastider
0a004a428e QmlDesigner: Update Tooltips for ToolSeparator Section
This patch update tooltip text for ToolSeparator fields
in Property editor.

Fixes: QDS-9172
Change-Id: I44ad7a12aeaa29aab7046893ba6a8079b33645ca
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-17 15:06:02 +00:00
Pranta Dastider
c74d99e4cf QmlDesigner: Update Tooltips for Container Section
This patch update tooltip text for Container fields
in Property editor.

Fixes: QDS-9174
Change-Id: I2496c3c07328becbc5c7c94fbbc4eca09d076245
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-17 15:05:57 +00:00
Pranta Dastider
68a77477c1 QmlDesigner: Update Tooltips for Spin Box Section
This patch update tooltip text for Spin Box section fields
in Property editor.

Fixes: QDS-9176
Change-Id: I57f8e18f49fe62d60566338f25f2ba0d8d1334e3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-17 15:05:52 +00:00
Alessandro Portale
0e4d618a2f Translations: Fix fix_value in the extraction scripts
The scope of fix_value function seems to be to just escape some
sequences. This, replace "\n" with "\\n".

Also fix three related translation sources in qtcreator_de.ts.

Change-Id: I1d4177d99a8f60757e5e17fb7f56960f522be728
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-17 11:52:25 +00:00
Alessandro Portale
cd2aef9f50 Translations: Move extracted translations into QtC:: contexts
This change adapts the exctraction scripts. The contexts in the .ts files
were already merged in earlier changes.

Core::Internal::ExternalTool
 -> QtC::Core

ProjectExplorer::CustomWizard
 -> QtC::ProjectExplorer

ProjectExplorer::JsonWizard
 -> QtC::ProjectExplorer

TextEditor::Internal::Snippets
 -> QtC::TextEditor

Change-Id: I277707d259abcc13fac064a1d879aeedee1703e4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-17 10:17:29 +00:00
Miikka Heikkinen
0a2e1731a1 QmlDesigner: Scroll material browser on selection change
When selection changes in material browser, the browser grid is
scrolled so that the selected item is visible.

Fixes: QDS-9010
Change-Id: Ie6f4383b0c8add2965fc42ffdf740effdf02fa67
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-17 10:03:04 +00:00
Mahmoud Badri
105a350008 QmlDesigner: Rename component editing actions
Go into Component -> Edit Component
Make Component -> Create Component

Fixes: QDS-8848
Change-Id: I3dfd6536fc5e27c66e1cef4006ab2687a75066e9
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-16 16:08:06 +00:00
Miikka Heikkinen
120bad0c6b QmlDesigner: Adjust general asset drop area so that there is no gap
Fixes: QDS-9039
Change-Id: Id314dff48155d453fda2ad1df2ccf8aa4061a83f
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-16 13:36:56 +00:00
Miikka Heikkinen
0fd152e37f QmlDesigner: Fix mouse cursor for material browser search field
The focus grabber mouse area was interfering with mouse cursor on
controls under it. There is no need to have grabber cover the search
box, as clicking search box anyway moves focus.

Task-number: QDS-9163
Change-Id: Ie2487296914a893dfc658ff8178963233a50c467
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-16 12:09:00 +00:00
Mahmoud Badri
7fc34fd59c QmlDesigner: Fix components view search
Fixes: QDS-9161
Change-Id: Id36b7e2ba56735438ce15c303f692ac2035020f7
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-02-16 09:15:41 +00:00
Christian Stenger
beac91ac81 Dumper: Fix std::variant on Linux
Amends 2c39db8eb7.

Change-Id: I22e9e2d25d5353cf2e818b7e2fa9f52557dbdda5
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-15 14:24:49 +00:00
Alessandro Portale
95a88ef732 ADS: Tr::tr()
Following contexts are merged into QtC::ADS

  ADS::DockAreaTitleBar
  ADS::DockManager
  ADS::DockWidgetTab
  ADS::WorkspaceDialog
  ADS::WorkspaceModel
  ADS::WorkspaceNameInputDialog
  ADS::WorkspaceView

Change-Id: Ieb3c8240531ca94f43ec1237c27647a51f59e4f9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-15 12:51:54 +00:00
Eike Ziller
379bf65e96 Some fixes in translated strings
- doesn't make sense to translate "%1"
- showPreprocessedFile: "reason" contains full stop, put at the end
- add missing closing >
- remove whitespace at the end of translated string
- added missing quotes and full stops
- Remove some control text from tr

Change-Id: I5537c3d12d038e25e2209af1198129fbf959b43c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-02-15 12:45:48 +00:00
Henning Gruendl
fbb79bb4e4 QmlDesigner: Fix SearchBox related QML toolbars
Change-Id: I88962fe48acd4345c29233cb00f72ec2ac6b6ca9
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-15 10:59:03 +00:00
David Schulz
2c39db8eb7 Debugger: modify dumper for std::variant
Directly display the containing value without the need to expand the
variant. Additionally fix the dumper for Windows and add tests.

Change-Id: Iaae49470750fa3659339331e1518e13020df7938
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-15 08:23:18 +00:00
David Schulz
3a2b49aafa Debugger: test std::optional dumpers
Change-Id: Iae177dd3448a861e93935d02388ea6af187bd9f3
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-02-15 08:23:13 +00:00
Eike Ziller
364013b9ac Merge remote-tracking branch 'origin/9.0' into 10.0
Change-Id: Ib01e191652168b2c38e80678f2f804bb95143cc5
2023-02-14 16:05:31 +01:00
Eike Ziller
5c98eaf592 Fix opening Terminal on macOS 13
When Qt Creator is notarized.

Using "open" results in a privacy error. A workaround is to use
osascript. Unfortunately then the terminal window does not close
automatically anymore.

Fixes: QTCREATORBUG-28683
Change-Id: I9861d7bd5100fd28b46b774fa465c970758a3a3f
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-14 15:04:02 +00:00
David Schulz
ab9b5357f9 Cdbext: fix expanding lamba captures
Change-Id: I2c1c64e3258cec503f83dbf561a734b4694592c4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-14 13:21:45 +00:00
David Schulz
e47dae643a Cdbext: lazy type lookup
Postpone the lookup until we need the type id. This potentially skips
the lookup for unresolvable types that are just to parse template
parameters. Also cache types we already checked to prevent looking up
types multiple times. Additionally traverse all modules in order to find
unresolvable types.

This combination reduces the time the debugger needs to execute all
dumper tests from ~7:30 to ~3:30 on my machine.

Task-number: QTCREATORBUG-18287
Change-Id: Ie1e9771f124096c2a9ad24ac26c9b51fcded4fed
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-14 13:21:38 +00:00
Brook Cronin
f93f7f62d9 QmlDesigner: Fix blocked state for top toolbar buttons
Change-Id: I764398749e58c9a5395ecd9521ed94d0ad89ed89
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-02-14 10:13:41 +00:00
Christian Stenger
885c6c1f0e Pdb: Change shutdown handling behavior
Directly finish the debugger when program ends if the
debugger is in running state as this feels more natural.
Only get into post-mortem handling when stepping.

Change-Id: I6ac6600a7cb8f58a003a6e4783174864ed5e89d8
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2023-02-14 06:44:07 +00:00
Pranta Dastider
6b6ff2aeeb QmlDesigner: Update Tooltips for FLOW Section
This patch update tooltip text for FLOW fields
in Property editor.

Fixes: QDS-9066
Change-Id: I097263e66a83673fbc0d6c95515ee5517b6bdf0d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-13 13:57:03 +00:00