Commit Graph

80529 Commits

Author SHA1 Message Date
Samuel Ghinet
339ebeab8e QmlDesigner: Implement keyboard commands in AssetsLibrary
Up and Down now change selection--they work only for files, they skip
directories.

The Delete key will (ask confirmation to) delete the selected files,
just as it happens when clicking Delete from the Context menu.

Also, did a small fix in the AssetDelegate, where, on mouse release,
you could have a directory added to the selection list.

Task-number: QDS-8710
Change-Id: I05e232ed0ce94709df41a5150a49300ad65c0a86
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-03-09 15:57:57 +00:00
Leena Miettinen
13b5254df6 Doc: Remove 'Window UI - Dynamic load' from project templates
Task-number: QTCREATORBUG-28721
Change-Id: Id1369c189ef4e92ec646e16fa7b8fc4a3d65c877
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
2023-03-09 15:45:12 +00:00
Miikka Heikkinen
0c7ae672a2 QmlDesigner: Fix warnings about deprecated function
TableView.modelIndex function was deprecated in Qt 6.4.3 and replaced
with TableView.index function.

Change-Id: I65638c002015c556a78ce6341ebcb3ce6448e825
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-03-09 15:41:56 +00:00
Jarek Kobus
4859aa2aaa DirectoryFilter: Use QPromise for async calls
Change-Id: I0f5fd3de4d31990f6e8642068e6886b7e76258a1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-09 15:13:55 +00:00
Jarek Kobus
e3bae749ea DirectoryFilter: Use synchronous task when empty directories
There is no need to run asynchronous task in this case.

Change-Id: Iaca0a5950572c167b996a8d8f0a376d9c35c38ab
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-09 15:13:34 +00:00
Miikka Heikkinen
d9e8228c4a QmlDesigner: Fix ChooseMaterialProperty dialog
This dialog is a standalone QQuickView with its own engine, so we
shouldn't use MaterialBrowserBackend as it is not defined.

Change-Id: Ibcca023d3f85f652f080c1eee70bac550181ef9a
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-03-09 15:05:06 +00:00
Mahmoud Badri
419b7faf06 QmlDesigner: Cleanup includes in materialbrowserwidget class
Change-Id: I5d2c4a9a6b929401d536be3a2e223eb6577e8513
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-03-09 15:03:47 +00:00
Leena Miettinen
d299edfe05 Doc: Add MSVC example for CMake presets using 'external' strategy
... for the architecture and toolset fields.

Task-number: QTCREATORBUG-28721
Change-Id: Ieac6c4bc1553204a1e34ea0ea05028e6e4975adc
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-09 14:40:40 +00:00
Mats Honkamaa
c6adcb4a56 Doc: Add info about mode selectors being hidden by default
Task-number: QDS-9383
Change-Id: I4535c81328c52f1e7400f89c7f08553985519b48
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-03-09 13:34:03 +00:00
Leena Miettinen
c7a67ab9e9 Doc: Add Profile to Qbs Build variant field options
Task-number: QTCREATORBUG-28721
Change-Id: Ib05ce93ac4813d35cbe5bdd0e1bccdf24bce172b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-03-09 13:31:32 +00:00
Marco Bubke
c4a51f168e QmlDesigner: Update directories without qmldir to project storage
There are qml directories without a qmldir. To identify them we use the
directory source id instead of the qmldir source id.

Task-number: QDS-9345
Change-Id: I1356ad332c091b64cbdad389a3ac505133716634
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-09 13:22:53 +00:00
Marco Bubke
f0fde39b0b QmlDesigner: Use directory source id for project data
There are qml directories without a qmldir. To identify them we use the
directory source id instead of the qmldir source id.

Task-number: QDS-9345
Change-Id: I4ed4596a21576e6bbd18c5117753669ef8a68a28
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-09 13:22:46 +00:00
Marco Bubke
583bb87c6a QmlDsigner: Add entries to path watcher for initial run
If there are no cached data all importatnt files should be now being
watched.

Task-number: QDS-9178
Change-Id: I0c9093e41e6a2d4f3a5aa3d62aba1fd41e047da4
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-09 13:22:32 +00:00
Jarek Kobus
4ae94a9910 CMakeProjectManager: Use QtConcurrent invocation for async run
Change-Id: I03b23a6bd32bfaa435ddddab1a7ab47a5203ff44
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-09 13:12:47 +00:00
Jarek Kobus
ab523ee083 ProjectExplorer: Use QtConcurrent invocation for async run
Change-Id: I7c09b3c299eae1b0672a8bf8ba8dcc71a9d4feef
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-09 12:52:40 +00:00
Miikka Heikkinen
762261367d Qmldesigner: Fix texture bundle metadata key
The key generation was changed to omit filename suffix.

Change-Id: I46f19fa0b8b750ebf10271cffa99682277d283b6
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-03-09 12:10:19 +00:00
Jarek Kobus
5ff073df19 DiffEditor: Use QtConcurrent invocation for async tasks
Change-Id: I06640837ffee830e60e8dd2a566f9388f8444010
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-03-09 11:53:18 +00:00
Mahmoud Badri
a0df1fd61a QmlDesigner: Allow changing downloaded textures path
For now changing the path triggers the "restart needed" dialog. Some
refactoring (for future) is needed to make the change works right away.

Also added few missing ContentLibraryBackend uses.

Fixes: QDS-9233
Change-Id: I3a576d397b0452a70d9940edaaa38193c41af347
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-03-09 11:47:01 +00:00
Jarek Kobus
a8214665fe CppEditor: Use QtConcurrent invocation for async run
Change-Id: Ibbac7f7788fe966c0dd846d68b7d17c43acadb0e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-09 11:28:24 +00:00
Jarek Kobus
d6f5d07639 ClangCodeModel: Use QtConcurrent invocation for async run
Change-Id: Id404d3a7699f12cdbc1e51390b3e5218ab3459b6
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-03-09 11:21:33 +00:00
Jarek Kobus
adaf067e77 CompilationDBParser: Use QtConcurrent invocation for async run
Change-Id: I9649db2d7c890e89ddc3f5da36715b4fa6d5219b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-03-09 11:13:01 +00:00
Jarek Kobus
d80b02de56 StringTable: Use QtConcurrent invocation for async run
Change-Id: I33da94ee9d564104edf4b93f1ae40d97adc407fd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-09 11:12:50 +00:00
Jarek Kobus
f670ceaa5e QbsBuildSystem: Use QtConcurrent invocation for async run
Change-Id: I23024d31627d767ad74c8495abfa3d5042673f7d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-09 11:07:00 +00:00
Thomas Hartmann
db6046b456 QmlDesigner: Use StudioQuickWidget for toolbar and statusbar
Change-Id: I0255fc7cd2a10d16fea79804af814fcc3d3417ca
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-09 10:27:22 +00:00
Christian Stenger
87be1f6370 AutoTest: Tweak generated cmake project file a bit
Using Quick Test with cmake as "build tool" does not list the
important part for the testing - the test sources.
Explicitly add the qml files to the project and list them to
be able to see and access them directly.

Change-Id: Id136a017989a5bfb4b9058576e008edb792e5866
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-09 10:08:13 +00:00
Christian Stenger
e3ce7cf2f9 Utils: Fix build with Qt6.2
Change-Id: I00a0e562bf4c290e4bdc441abd422b2771ba0a53
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-09 10:07:58 +00:00
Thomas Hartmann
f47d5c77d2 QmlDesigner: Use StudioQuickWidget in material browser
The event filter has to be installed on the actual QQuickWidget.
Using registerPropertyMap instead of global context properties.

Task-number: QDS-9124
Change-Id: Ic4d26081bb10b4cb4c8cca7050180feb1c081664
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-09 09:49:18 +00:00
hjk
c54317e47a QmlDesigner: Remove unused PuppetDialog class
Change-Id: I0939d28137fe5119df1c8c7c1203aef6c093aac5
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-09 09:47:58 +00:00
Leena Miettinen
e16ddefbdd Doc: Fix link to a removed section
... called Adding Qt Quick Timeline Module to Qt Installations

Change-Id: Ia074ad82ea544bc65286b8f0a8d54997521aabe6
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2023-03-09 09:37:29 +00:00
Mahmoud Badri
e3b37edb15 QmlDesigner: Fix adding bundle material from context menu
Was broken by 57448021b8

Change-Id: Id4822b75038dadac6c898191bce2b4f60de79232
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-03-09 09:30:39 +00:00
Mahmoud Badri
230c1331ee QmlDesigner: Implement dragging a bundle texture to a material
Fixes: QDS-9375
Change-Id: Id73e54341e12ec023bb0b55ddffdb7f6b89e2267
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-03-09 09:30:26 +00:00
Jarek Kobus
fad7bb9382 PluginInstallWizard: Use QtConcurrent invocation for async run
Change-Id: I82fad61c765af283e5d5cee4d7262e13a6843a84
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-09 09:17:11 +00:00
Jarek Kobus
2baf59b87a Meson: Use QtConcurrent invocation for async run
Change-Id: I2b222a481a32edbea38d1784629b0a888c8b0c57
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-09 09:17:01 +00:00
Jarek Kobus
ce037d09a2 VcsBase: Use QtConcurrent invocation for async run
Change-Id: Ia4e461c1a2e71d4c959f582e9ed464d4713b672a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-09 08:40:57 +00:00
Jarek Kobus
cae18f8872 QmlJSSemanticHighlighter: Use QPromise for async calls
Change-Id: Ic5d70d766cc25214a3c4a54251d514b678aa9aff
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-09 08:32:10 +00:00
Jarek Kobus
cca7c2a12b AsyncTask: add asyncRun() wrappers around QtConcurrent::run()
These wrappers accept the additional QThread::Priority argument.

Change-Id: I05a692d13bb539622146e3267f8a918431af06ac
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-09 08:32:03 +00:00
Thomas Hartmann
c3e5f3e83c QmlDesigner: Use StudioQuickWidget in assets library
The event filter has to be installed on the actual QQuickWidget.
Using registerPropertyMap instead of global context properties.

Task-number: QDS-9124
Change-Id: I9e0e59d4bdf312d98177b8da51761bca8073c9e5
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-03-09 08:10:26 +00:00
Thomas Hartmann
fb685307f9 QmlDesigner: Use StudioQuickWidget in content library
The event filter has to be installed on the actual QQuickWidget.
Using registerPropertyMap instead of global context properties.

Task-number: QDS-9124
Change-Id: I148ecc6b489f6d72d80a345aa195f74676a92d51
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-03-09 08:10:12 +00:00
Eike Ziller
b619319b2b Fix vanishing search term from locator popup
When setting the locator to open as a centered popup, everything locator
is triggered, the search term is cleared.

Don't delete the popup when closing it. That keeps the input field alive,
and the text in it. We manage a singleton instance of it in
locatormanager.cpp/locatorWidget(), and it will eventually be delete
because it has a parent.

Change-Id: I237029bc2793f7394c5eb6ea7d658a4dd4a2c1cf
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-09 07:57:57 +00:00
Eike Ziller
b98fc12de9 Set focus to filter input when creating run configuration
Change-Id: I9a02abfa917a211ec0e88a7debaabbf26cc2c918
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-09 07:40:32 +00:00
Eike Ziller
556e7315f7 Build: Simplify ts_all* targets and add "ts_all_cleaned"
Instead of trying to update all files in a single lupdate call,
make the ts_all targets just depend on the individual language targets.
It is less efficient, but not used often, simpler to setup and since
lconvert cannot work on mutliple .ts files simultanously easier to
setup a ts_all_cleaned target.

Change-Id: I60718408a661f011d84f3f74645e2f8fd49a95d1
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-03-09 07:40:03 +00:00
Orgad Shaneh
b54c1ec139 Debugger: Clear also global log when clearing the log
If the user wants to clear the log in order to read it only "from now
on", then the sensible way to do that is to clear the log, finish the
debugging session, then copy the output from the log pane.

But this flow did not work, because when the debugger is done, you no
longer have access to the live log window, only to the global window,
and this pane is not cleared, so all the logs are still there.

Change-Id: I89d8a5b8aab22c53e8c2eceac4c5482931cdd8b6
Reviewed-by: hjk <hjk@qt.io>
2023-03-09 06:37:08 +00:00
Sivert Krøvel
b9fb022389 McuSupport: Open QML file when starting new MCU project
Previously the editor opened the translation file when starting
a new project. It makes more sense to open up the main QML file.

Task-number: QTCREATORBUG-28790
Change-Id: If1f61d23e4863143cacf004246ca7813dd04a1ab
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-03-07 15:57:18 +00:00
Sivert Krøvel
0d809806d4 McuSupport: Update minimum CMake version in qmlproject template
The minimum CMake version was changed to 3.21.1 with Qul 2.3.
Updating the minimum CMake version for the qmlproject template
project, but keeping the old minimum for the template targeting
older versions of Qt for MCUs

Task-number: QTCREATORBUG-28825
Change-Id: Ia6cb43a47cee81b3b299f188d6008ebd0576daba
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-03-07 15:57:03 +00:00
hjk
5d21da74f9 Utils: More explicit host os use to make it stand out
Quite a few of the uses are actually wrong, but are better visible
now and therefore more likely to be fixed.

Change-Id: Ia51f7d6eb1b2d3a9c9f73d67dabacfd227c44b15
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-07 15:53:18 +00:00
Miikka Heikkinen
269738d7e5 QmlDesigner: Force QDS compatibility mode 3D import option
QDS requires 3D imports to use QDS compatibility mode to work correctly,
so we force designStudioWorkarounds option on in all imports we do and
hide the option from UI so user can't toggle it off.
Since designStudioWorkarounds supercedes expandValueComponents option,
we also hide that as setting it has no effect.

Fixes: QDS-9219
Change-Id: Id40a45338ea630228f59b111703eba661ebd357b
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-03-07 14:29:12 +00:00
Miikka Heikkinen
333ebb5bc2 QmlDesigner: Fix content library textures tooltip width
Width calculation didn't account for possible status text.

Change-Id: I58378a2dd185ea9ad47459ce107c1c227c2f6fd8
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-07 14:24:47 +00:00
Eike Ziller
d686d241d2 Build: Avoid installation of huge static QmlDesignerCore library
It is not used as a public interface, just to share with tests. Do not
install it.

Fixes: QTCREATORBUG-28673
Change-Id: I669ffd468291b8150568d0193a33e5795d58f017
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-07 14:23:02 +00:00
Cristian Adam
d0fae7fa59 Terminal: Fix conpty process creation
When the Project's source directory would be used as a working directory
for the terminal, conpty would fail to start the shell.

Change-Id: I1050ec11c2bb46e17187431114a1319c86dd449c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-07 13:56:59 +00:00
Jarek Kobus
69fa8f3f3c FilePath: Integrate FileStreamerManager for async i-face
Change-Id: I3371471e3c23b86a62b5e4056b343941ab46e191
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-03-07 12:22:40 +00:00