Commit Graph

80509 Commits

Author SHA1 Message Date
Miikka Heikkinen
9d0099245a QmlDesigner: Fix crash at shutdown
It is specifically PureActionInterface pointer that is getting deleted,
and it is subclassed, so its destructor needs to virtual for delete to
work properly.

Fixes: QDS-9221
Change-Id: Iba3b9d944de521d7e115b0d85f5a0f107b703fc1
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-21 11:55:09 +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
Henning Gruendl
cb2ffbcc09 QmlDesigner: Change default icon color
Change-Id: I9dbb5ac43f47820da54e0fe9c8ffcf22a9b05507
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-21 11:45:23 +00:00
Henning Gruendl
d105b20c7e QmlDesigner: Add pixel metric tool bar extension
Change-Id: I65f0ce65113f9d8b4af0ea95a914e2fd4fc2bb07
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-21 11:45:06 +00:00
David Schulz
3d65a441a0 Core: reduce flickering when restarting a search
The cancel button of the search result widget gets visible when a search
is currently ongoing in other states it is hidden. Showing and hiding
the cancel button changes the height of the replace tool bar. In the
case of clangd a search is started whenever the replacement text changes
to update the results. So if the results are received shortly after
requesting them the cancel button is only shown briefly resulting in the
flickering. Avoid this by setting a fixed minimum height to the label
containing the cancel button.

Change-Id: I6fb7a4cfe256c7612a902be621fa9ad971681ee7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-21 11:44:33 +00:00
hjk
607118f8ae QmakeProjectManager: Remove unused declaration
Change-Id: I187538270bdcb9288d63e7ae73944101552e3485
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-02-21 10:55:48 +00:00
Orgad Shaneh
a5e98b1fa0 CMake: Avoid redundant copy
Amends commit e8802d92e3.

Reported by Coverity.

Change-Id: Ibc0b1cdf1918d5bfed5104f14098096d158526e2
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-02-21 10:48:58 +00:00
Leena Miettinen
55760cb5f7 Doc: Fix reference to an \image after image name and format changed
Change-Id: I581a0c3ad6be9cc435fc27069d95c72816948755
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-02-21 10:31:10 +00:00
Marcus Tillmanns
625f0ef726 Copilot: Add LSP plugin for Copilot
Fixes: QTCREATORBUG-27771
Change-Id: I1249b9a4492427208a70b3e21bf20ac668fc3c50
Reviewed-by: hjk <hjk@qt.io>
2023-02-21 10:26:12 +00:00
Cristian Adam
10bbc7ce33 CMakePM: Add QTC_RUN environment variable for the CMake run
This way one can do certain things knowing that CMake is being run in Qt
Creator.

Change-Id: If3ac8a52f30f9fa73a756212199a25632c757dcd
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-02-21 10:08:48 +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
8f53231165 Debugger: fix debugger log entry
Separate command and argurments with a space in the log output.

Change-Id: Iaa486ce668ed268cb2a85e1267ca54aa42b07c20
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-21 08:45:54 +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
Leena Miettinen
08e789851e Doc: Describe changing includes when renaming .ui files
Task-number: QTCREATORBUG-QTCREATORBUG-28721
Change-Id: I6508f57dd7f8634e0fb8412bc55845b24fb5af54
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-21 08:44:43 +00:00
Leena Miettinen
b1184509b5 Doc: Describe Preferences > C++ > Code Model > Ignore files
Task-number: QTCREATORBUG-28721
Change-Id: I18aa6a624038543fd7a2e9b78e4678dd617cffce
Reviewed-by: Philip Van Hoof <philip@codeminded.be>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-21 08:44:26 +00:00
Jarek Kobus
31fa792b5b TaskTree: Update inline comments
Change-Id: I8a34eb0757fc6d6bf7589ced7a714bb6e564fd09
Reviewed-by: hjk <hjk@qt.io>
2023-02-21 08:37:36 +00:00
hjk
307f7f6075 QmlDesigner: Inline settingspage.ui
Change-Id: I4ff8511d2d4f229977ecdcc882c420e1cc058119
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-21 08:37:09 +00:00
Eike Ziller
351088d7bb Update qlitehtml to latest master
Updates litehtml to v0.6

Change-Id: Ic195844c466b288bccf1baaf3cd8a0b65aad3b3f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-02-21 08:36:39 +00:00
Ali Kianian
3d02d08612 QmlDesigner: Clean up 3D Toolbar
* Item orders for 3D toolbar is modified
* ParticleSeeker is available as an action, and also an Edit3DAction

Task-number: QDS-9082
Change-Id: I210feaa416934c3e287a1a177720db69138ffab3
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-21 08:01:38 +00:00
Alessandro Portale
a5d4187630 Squish: Use Tr::tr() where possible
It is more "type-safe"

Change-Id: If406de0e2c8896913ecc3b9b86cc603de7d22d3f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-21 07:56:03 +00:00
Jarek Kobus
69ec9c4361 TaskTree: Add TreeStorage::operator*()
Reuse it in some places.

Change-Id: I335f38fa0384ea17bd8e981d743f835c3f05b731
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-21 07:31:48 +00:00
Alessandro Portale
36c6a255b1 QmlDesigner: Add missing plugin dependency to QmakeProjectManager
Otherwise, launching with "-noload all -load QmlDesigner" fails.

Change-Id: Icae219fd90aad799257384bccc4bb4ab60cf5e2a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-21 07:31:07 +00:00
hjk
dce7025969 MarkdownView: Merge into TextEditor
Make it a bit more compact, too.

Change-Id: I448164371c5a1d6969a292feba17caa2826f58c3
Reviewed-by: Tasuku Suzuki <tasuku.suzuki@signal-slot.co.jp>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-21 07:17:29 +00:00
Marco Bubke
b0ae85096e QmlDesigner: Fix warning
Change-Id: I334d1b508175885933b1f14212af353f29b7414c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-21 07:08:50 +00:00
Christian Stenger
2d79718ad4 SquishTests: Adapt to changed wizard template
Change-Id: I7e487481ede88d186fb868d595eb96f25afc2fc5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-21 06:23:43 +00:00
Christian Stenger
4525d7baf9 SquishTests: Adapt to changed wizard template
Change-Id: Id50e16a790e63f7c99fbbe5213d9e25d20aaf29b
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-21 06:23:27 +00:00
Christian Stenger
5c7eb717ed SquishTests: Adapt to changed wizard
Change-Id: I07d3b468e6b5ec4055fa57efcddaa0cdb678966b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-21 06:23:14 +00:00
Christian Stenger
507e5f76fa SquishTests: Fix expectation for profiling
Wizard template has changed and we use Qt6.2 nowadays.

Change-Id: I63d0103ac324bcf83f0b07802f57a171589a2fb1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-21 06:22:51 +00:00
Leena Miettinen
0cf83caa00 Doc: Add finding unused functions in Projects view context menu docs
Task-number: QTCREATORBUG-28721
Change-Id: I180028a09f51ec40d43ae99cfd474b05f5a2b69d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-20 16:44:17 +00:00
Thomas Hartmann
3534e0d27e QmlDesigner: Remove min-wdith for dockwidget tabs
The min-width does not play nicely in all cases.

Change-Id: Ic60d602aee02ea7e924ebed9b43d753665028c3a
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-02-20 16:41:09 +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
Leena Miettinen
ce2d773510 Doc: Remove obsolete \include commands
The information was moved to the Expressions view docs.

Change-Id: I8e98e9de57412792746727f521253e85ecff9930
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-20 15:50:39 +00:00
Artem Sokolovskii
25178ed8f4 Core: Speed up opendocumentsfilter
Do not rebuild the complete list of editors every time anything changes.
Handle the incremental update via the DocumentModel::model() signals
(while ignoring the "<no document>" item at the top).

Fix a bug that DocumentModel sent a dataChanged signal from
disambiguateDisplayNames for an index before the corresponding
rowsInserted signal was sent (by endInsertRows).

Change-Id: If9c02fef94e9c744b859db7a07c8464c4e06a73b
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-20 15:00:31 +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
Eike Ziller
c41b417748 Bump version to 10.0 beta2 and copyright year
Change-Id: I633df92077441d6eab1390259769488687803a9f
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-20 14:24:04 +00:00
Tim Jenssen
e549ad4d01 makedmg: add dmg-size option
The dmg size for QtDesignStudio can be much bigger
then the default size which is enough for QtCreator.

Change-Id: I2a7cbe01ca05fc32bb3b6b5a82c1670f9703ae50
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-20 14:21:41 +00:00
Jarek Kobus
efc4a0f1af AsyncTask: Make it possible to run with promise
Using QtConcurrent API.
Adapt asynctask tests according to new API.
The old API in going to be removed, soon.

Change-Id: I3cf163e9492526f0b49bd162c27e6c55a98ace7a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-20 14:21:06 +00:00
Marco Bubke
ba6c1344b6 QmlDesigner: Integrate ProjectStoragePathWatcher
Task-number: QDS-9170
Change-Id: Iedbb07e41232beeb73cd12c89f892eec7968d084
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-02-20 14:12:43 +00:00
Marco Bubke
44d61b3e66 UnitTests: Fail on warnings
Task-number: QDS-9135
Change-Id: I798b1143c68e68bcd53144f5e6d01864ae0ce73b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-20 14:12:37 +00:00
Marco Bubke
96ea9e3891 QmlDesigner: Stop on every warning
We already had some bugs because warnings were ignored. So we generate
errors now for the qml desinger plugins.

Task-number: QDS-9135
Change-Id: I9276a1b5cdbec554bc33c0c6ed3706817518f39c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-20 14:12:28 +00:00
Marco Bubke
9b43e0caea Googletests: Bump to 1.13
Change-Id: I8b54611e404e5313269fc3436ce995bf0d09d35d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-20 14:03:58 +00:00
Marco Bubke
332b2fb421 QmlDesigner: Integrate ProjectStoragePathWatcherNotifier into updater
Task-number: QDS-9092
Change-Id: I6f262367898e54f1c029d6c6b83778919d18ddee
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-20 14:03:25 +00:00
Thomas Hartmann
407167cf90 QmlDesigner: Adjust CSS for dockwidgets
* Add padding on the left to account for close button.
* Set minimum size of 80px for tab
* Use different colors for hover

Change-Id: I87dd98aa939c85278bd2312de50117f1f32fb274
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-20 13:44:46 +00:00
Thomas Hartmann
27b93900bf QmlDesigner: Use DSdockWidgetTitleBar for close icon in ADS
Change-Id: I28d479490a5c0550199a0d0a20e7cffa8494146a
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-20 13:39:44 +00:00
Artem Sokolovskii
41aeb175b8 Android: Move tests from sdkmanager class to test class
Change-Id: I2e7be8f33b40d7c67e72efa88ca5528deb046ade
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-20 13:35:16 +00:00