Commit Graph

80529 Commits

Author SHA1 Message Date
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
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
Jarek Kobus
b9dca8f8fa ExtensionSystem: Use TestCreator in more places
Amends b59e632ac3

Change-Id: I11000c488c6a69b4c55b8ccb164fa6587abb8b5b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-02-20 13:33:30 +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
Thomas Hartmann
68a6b12b5a StudioWelcome: Open design mode if project is opened again
If an already opened project is opened again we swtich to design
mode instead of edit mode and showing an error message.

Task-number: QDS-9183
Change-Id: I291e32a9824103a8f14f4fd618cc9211408ff2da
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-20 13:33:16 +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
Eike Ziller
133b78dafa Build: Sort contexts on translation updates
Change-Id: I484f42ff9e3d41f8830d5f531de9e4d8cdfa9c88
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-20 13:20:54 +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
Henning Gruendl
519b9e3c52 QmlDesigner: Fix startup crash on linux
Task-number: QDS-9198
Change-Id: I1e0f87a941ccbd2131f0e86ae20f7a2d0c2d7856
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-02-20 10:15:55 +00:00
Jarek Kobus
6c50298fa5 RunWorker: Remove watchdog functionality
Not used anymore.

Change-Id: Ib28287648dd15a31775a72c5a821ba33cae255fa
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-20 10:14:10 +00:00
Jarek Kobus
ce082b7bc4 RunWorker: Remove unused virtual function
Change-Id: I70788a0a17f5fcb214b63c812a6bb8a3547e7ebc
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-20 10:11:59 +00:00
Alessandro Portale
50d2565c68 Translations: Fix occurrence of tr() call with randomn context
Change-Id: Iaba347e3611f894c9f76cffa7e8b7870d13d9920
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-20 10:03:14 +00:00
Christian Kandeler
7fe9363395 CPlusPlus: Use categorized logging in lexer
Not suprisingly, the #ifdef-based debugging produced uncompilable code
when enabled.

Change-Id: I4a6646bfa98a8500491be4892d464ec88512bec7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-20 09:03:55 +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
Leena Miettinen
ff71290758 Doc: Describe Temporarily hide inline annotations in Edit mode
...for different types of annotations individually in the annotation
tooltip popup.

Update the screenshot.

Task-number: QTCREATORBUG-28721
Change-Id: Ic2f010e370109a5ea35aef5d9c8da5b74927f4ef
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-20 08:00:20 +00:00
Andre Hartmann
b9af26adf3 Git: Fix soft asserts on failing instant blame
When git blame returns no output, silently avoid creating
annotations instead flooding soft asserts.

This situation can easily happen when navigating to a
header file that is not under version control.

Fixes: QTCREATORBUG-28768
Change-Id: I8d2f443dec98575221995a9016bd2f8442c682cf
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-02-19 14:56:14 +00:00
Orgad Shaneh
10dc4f93f4 VCS: Recover clearer actions when closing commit editor
Amends commit d63bfa4a29, and recovers the
actions that were introduced in 15b176e30c
(relates to QTCREATORBUG-18799).

I keep being confused by these Yes/No myself :)

Change-Id: I0429ef9c25231b96bd595a1bfb6808b621db54e5
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2023-02-18 16:58:22 +00:00
Tasuku Suzuki
8b70e59cdb Add markdown viewer plugin
Fixes: QTCREATORBUG-27883
Change-Id: Ie4099b8a322797d300bc15a80333bcb361ecafc3
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2023-02-18 16:40:10 +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
f681b696e9 QmlDesigner: Add StudioQuickWidget
This makes it easy to share the QQmlEngine between different
QQuickWidgets.
All StudioQuickWidgets share the same engine.

Change-Id: I2b370a45a14fdc143e161e2aca62b45aa0d91da9
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-17 16:01:32 +00:00
Brook Cronin
9e2926c537 QmlDesigner: Update component icon in nav to new design
Change-Id: I1cdcc9aeb1b654b2a3e01a08ce21f11bda94df2e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-17 15:52:48 +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
Thomas Hartmann
9b06fa46fb QmlDesigner: Fix FlowView issue
NodeMetaInfo is always valid since last refactoring.

Task-number: QDS-9188
Change-Id: Idc7e7de9031485b12a0764e0aca3f89d482cdd72
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-17 15:40:46 +00:00
Thomas Hartmann
a4605a962e QmlDesigner: Fix crash
Task-number: QDS-9187
Change-Id: I3711da6a3dbab1bda1bf2c33da1834ca017e4d30
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-17 15:38:38 +00:00
Thomas Hartmann
2b9fcb8132 QmlDesigner: Use StudioQuickWidget for states editor
Change-Id: I4c6c85b9f92769700f979b070dd96cb0c50a58cd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-17 15:28:53 +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