Commit Graph

72643 Commits

Author SHA1 Message Date
Leena Miettinen
0c13c1c084 Doc: Describe formatting in CMake Build Settings
Italic text indicates that a value was inherited from
the kit configuration or initial configuration. Red text
indicates mismatches.

Change-Id: Ief30eef1d2667d0b4e570ea439ffb6af681db2b7
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-02-21 16:44:10 +00:00
Tim Jenssen
c3bd3d6a62 qds: make code reusable
Change-Id: Ic11917f8a442a1ed15482a1ea492a7cef9f2a7ff
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-21 16:01:01 +00:00
Thomas Hartmann
3be545123a QmlDesigner: Add QMLSCENE_CORE_PROFILE for Qt 5
Task-number: QDS-5522
Change-Id: Iff3591e05a172716f3f37963e0430875e3ad9e04
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-21 13:22:14 +00:00
hjk
3eac52dc7d Mercurial: Fix saving of settings
Fixes: QTCREATORBUG-27091
Change-Id: I59297993f19c60a9eaf67910638818ffd17b4ff8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-02-21 11:40:36 +00:00
Thomas Hartmann
6104806208 QmlDesigner: Add new workspaces
Task-number: QDS-6234
Change-Id: I839459c18fd0937615d97c7b74584e97300b430b
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-02-21 11:32:26 +00:00
Christian Stenger
38f5415d9a McuSupport: Do not use compiler specific syntax
Change-Id: Ib466c989318b5d303f89def56fcd3f1369407843
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-02-21 10:35:47 +00:00
Christian Stenger
8b994bd79b McuSupport: Fix test expectation
Change-Id: I4cd0fa4d326e7681f187980c11d37668ae46c798
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Piotr Mućko <piotr.mucko@qt.io>
2022-02-21 10:34:26 +00:00
Christian Stenger
4318bfb9b6 QmlDesigner: Fix qbs build
Amends c82937a78c.

Change-Id: I7438fbc84351e9de61dc27dfb5ecb4226974d6ce
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-02-19 18:50:49 +00:00
Robert Löhning
00c7161e33 Squish: Run tst_save_before_build on CMake and qmake
Change-Id: I91501633e0fe7c863c43af4224474c09f57dbf8c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-02-18 22:01:14 +00:00
Thomas Hartmann
c82937a78c Convert old projects to project that supports the cmake generation workflow
Task-number: QDS-5992
Change-Id: I9dd4204d7422052c80c86665ded558d959bb020b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-18 21:10:21 +00:00
Alessandro Portale
a0d19e088e Wizards: Remove the .ui.qml wizard
Qt Creator does not offer editing .ui.qml documents, so it should not
produce them. For creating and editing .ui.qml, please use Qt Design
Studio.

Fixes: QTCREATORBUG-27085
Change-Id: I8bce9379a4bff8762a694067c25a0b266c41c417
Reviewed-by: Kimmo Leppälä <kimmo.leppala@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-02-18 15:55:22 +00:00
Thomas Hartmann
4cbe956722 QmlDesigner: Cache result of eventListEnabled
Calling EventList::hasEventListModel() takes time, since it includes
file access. Since eventListEnabled() is called on each selection change,
we cache the result. If the root node is the same, also the document is the
same and there is no reason to check again.
This way we check only once per document.

Change-Id: Id664811b1319a306c70283d2b37de258a129892f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
2022-02-18 15:06:44 +00:00
Thomas Hartmann
a29154225e StudioWelcome: Reduce minimum size to 640, 480
Change-Id: Ie6694cd62837c91f573bdcc348457876771ac479
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
2022-02-18 14:00:20 +00:00
Christian Kandeler
022510f1e6 ClangCodeModel: Mention project name in clangd indexing message
This will help avoid confusion in case of multi-project sessions.
We also shorten the message a bit so it won't be cut off in the progress
bar before the project name.

Change-Id: I0e5885f89a976b14f758f9be77e7669f199cd887
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-02-18 13:39:31 +00:00
David Schulz
4f69996190 ClangCodeModel: iterate over documents instead of editors
Makes sure to handle each document just once since we can have multiple
editors for the same document.

Change-Id: I0d26a9931086d9b6be0c9c93b01f4485716d75e3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-02-18 13:35:05 +00:00
Christian Kandeler
5866f78049 ClangCodeModel: Fix libclang tests
We must make sure clangd doesn't get in the way.

Change-Id: Ica053cce6928920b39602c7c467b5d16f8232fe6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-02-18 12:40:44 +00:00
Mats Honkamaa
f87c25acb5 Doc: Update particle system documentation
Update particle system documentation and add downloadable fire
particle example.

Task-number: QDS-6190
Change-Id: Id2922f536a8400029b290328c1bdc6c1bd408fd6
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-02-18 12:35:53 +00:00
Christian Kandeler
8ad7ab2d2a ClangCodeModel: Use project-specific clangd client, if possible
If we open a file that does not belong to a currently open project, there
is a good chance that the current project's parse context is a better fit
for the file than the fallback client's.

Fixes: QTCREATORBUG-26697
Change-Id: I6c17e275b047602c51364f3203b3f0a3e74a49fc
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-02-18 11:37:34 +00:00
Henning Gruendl
3d56b8b54a QmlDesigner: Fix creation date issue on macOS
On macOS the creation date was not according to the date/time when the
example was unzipped it was rather the date/time when the example folder
was zipped. By removing the already existing folder and create it again
to hold the content of the zip archive this issue should b circumvented.

Task-number: QDS-6288
Change-Id: Icf18c4fcddcacf69feeca536f6d0e81f4c126afe
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-18 11:34:25 +00:00
Tapani Mattila
1d06032453 CMake Generator: Fix modules with nested imports
Task-number: QDS-6220
Change-Id: Icdb37b5b856af369a8d6a0e00a02ae469116864a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-18 11:11:54 +00:00
Thomas Hartmann
abf1ec7cdc Open only designer related project files in Design Studio
DocumentManager::setFileDialogFilter allows overriding
the open Project/File filter. In QDS we only allow the relevant suffixes.

Task-number: QDS-5825
Change-Id: I6cdc0f15628a215edc41cdaeb485bd17e08ef4ec
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-02-18 11:10:22 +00:00
Leena Miettinen
24c9340d3d QML/JS: Fix punctuation of message
Task-number: QTCREATORBUG-27055
Change-Id: Ibaa37fc49e9ae3671cc7904b63682d245c0bdd8d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-18 11:07:21 +00:00
David Schulz
844a5e624a Editor: make sure to cleanup select all future watcher
Change-Id: I39e1bc7926905684601eb72cdd7a4357c708c432
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-02-18 11:04:51 +00:00
Henning Gruendl
61d5bbbdad QmlDesigner: Fix example download missing setting
When starting with a clean config the location for download/extraction
of an example is empty. The first call to the settings needed a default
location.

Change-Id: I2d63f805dc46c564f13346648f3e3bf29a0970d8
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-18 11:00:43 +00:00
Thomas Hartmann
8538f919ca QmlDesigner: Adjust wizard template
Instead of using the constants we can use the size of the
main screen directly. This has the advantage that if
the size of the main screen changes without adjusting
the constants it still works.

Change-Id: I602cf4089249e90efb6a35b803d67df6ca2b1bab
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-18 10:59:07 +00:00
Christian Kandeler
59fb0e9c9c Core: Properly handle file path arguments with -client option
These paths come from the user, so the separators must be translated.

Fixes: QTCREATORBUG-27075
Change-Id: Ia20c2662d30626b8b7ed3dd19afb64a43c8a716f
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>
2022-02-18 10:33:53 +00:00
Christiaan Janssen
2834e90930 McuSupport: split mcusupportoptions
Several independent classes were mashed together in mcusupportoptions.cpp
This patch moves McuToolChainPackage together with McuPackage,
McuTarget to its own header+source pair, and
McuKitManager to its own header+source pair.

Task-number: QTCREATORBUG-26890
Change-Id: I0b51da4e1cae5a976201dffd290a665eaa318b33
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-02-18 09:14:29 +00:00
Christian Kandeler
a08e0f7a9d ClangCodeModel: Differentiate between clangd debug output log levels
Depending on the kind of highlighting issue we want to debug, we may or
may not be interested in the actual tokens.

Change-Id: I412126d3e97949a31f1dd5f339dc09072f28be64
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-02-18 08:55:54 +00:00
Thomas Hartmann
088b926ff4 QmlDesigner: Update supported macOS version
Task-number: QDS-6290
Change-Id: I41a0cca5cc0f5113fe3a06e3cb93a7e49b20a341
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-02-18 08:40:20 +00:00
David Schulz
088d692bb2 Editor: fix crash after triggering select all with no search results
Change-Id: I32d5172e8b5df6db93053f358c5a72cb8d38f6ea
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-02-18 08:09:14 +00:00
Leena Miettinen
d487110351 QML/JS: Fix terminology in messages
- Replace Qt Quick Designer with Qt Design Studio
- Replace "Qt Quick UI form" with "UI file (.ui.qml)"

Also fix the docs:

- Add missing messages
- Hide QDS  messages from Qt Creator Manual
- Make punctuation consistent
- Add some links to more information

Task-number: QDS-2670
Task-number: QTCREATORBUG-27055
Change-Id: Id90f1ad82e7297f91225bc8d650a9578ba071330
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-18 07:33:35 +00:00
Leena Miettinen
1f3e6b4c7a Android: Fix punctuation and wording of messages
Task-number: QTCREATORBUG-27055
Change-Id: I4180717163ec52a405c40e1a932713dda27c3f38
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-02-18 07:27:41 +00:00
Christian Stenger
e4ff13e529 StudioWelcome: Fix compile
Amends 5d660d7afe.

Change-Id: I8d7239f2b57274c062cb2f9f535d274f5e149288
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-02-18 06:10:18 +00:00
Leena Miettinen
3805bec91f C++ Editor: Fix UI text capitalization
Task-number: QTCREATORBUG-27055
Change-Id: I148cfb7b9628ab2460050c1127b6557b8830983b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-02-17 14:34:19 +00:00
Leena Miettinen
b2d90241fe Log Viewer: Fix UI text
Also update the string in the documentation.

Task-number: QTCREATORBUG-27055
Change-Id: Idce699a7796e7cb55d8218c105ec851c369cef7b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-02-17 14:23:29 +00:00
Mahmoud Badri
81c9051feb QmlDesigner: Fix rename asset folder dialog's error text width
Fixes: QDS-6202
Change-Id: Iea6714561ce23e3a18889ab5d684fbeae85d62fe
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-02-17 14:16:49 +00:00
Mahmoud Badri
9c4e4309f8 QmlDesigner: Close Assets Library context menu on press outside
Fixes: QDS-6197
Change-Id: I0c694b5a64bc0a41e905523b16552d6b0493eac6
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-02-17 13:57:52 +00:00
Henning Gruendl
f7cbc513aa QmlDesigner: Add missing context pointer connect
* Add missing context pointer in connect statement
* Fix console output "QFile::remove: Empty or null file name"

Task-number: QDS-6170
Change-Id: I31f671dc1422c6b90aff81252f4bc4cf2c34e7d1
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-17 13:11:46 +00:00
Henning Gruendl
5d660d7afe QmlDesigner: Add examples download path setting
Add a PathChooser to StudioSettingsPage which enables setting the
location to which the QtDesignStudio examples are extracted.

Task-number: QDS-6174
Change-Id: I99232edf3c1200a84daaadf4a0d118317a5ea009
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-17 13:11:39 +00:00
Eike Ziller
8851810658 GitHub: Explicitly use MSVC 2019 machines
windows-latest is "transitioning to 2022" currently, and that seems to
mean that for some users this is already 2022 and for some still 2019.
Explicitly state something.

Change-Id: I1e7ba6fa60b9fe44c78505b322ff8278c2e41ee6
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-02-17 13:07:42 +00:00
Leena Miettinen
0064dda2c0 Remote Linux: Do not use contractions in UI text
Task-number: QTCREATORBUG-27055
Change-Id: I7fbc6374c910fa81900a10432892c10afb0ea6d4
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-02-17 12:12:31 +00:00
Leena Miettinen
99ceebe695 Debugger: Remove extra words from tooltips
Task-number: QTCREATORBUG-27055
Change-Id: Ic7b447da2de3267ad897cdef0275a2faa4474099
Reviewed-by: hjk <hjk@qt.io>
2022-02-17 12:12:02 +00:00
Leena Miettinen
eb8d84f6de Docker: Fix UI text caps and punctuation
Task-number: QTCREATORBUG-27055
Change-Id: I6b5c2bbd36e34d4444b798e2e5040bff674ad02a
Reviewed-by: hjk <hjk@qt.io>
2022-02-17 12:09:23 +00:00
Leena Miettinen
e4b39e0ce4 CMake: Fix UI text
Task-number: QTCREATORBUG-27055
Change-Id: I53a3ece8b6180afa4fbcbc474cc980aced5f55c8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-02-17 12:08:59 +00:00
Leena Miettinen
4f3d3d445c Project Explorer: Fix UI text
Task-number: QTCREATORBUG-27055
Change-Id: I9b0e4f02ea7d1ebb14a9581f21c76b8908589334
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-02-17 12:08:37 +00:00
Leena Miettinen
1a90f06fe5 QML Designer: Fix UI text
Fix capitalization of strings and the wording of tooltips.

Task-number: QTCREATORBUG-27055
Change-Id: Id8e324b44574b9cf0d1522ae204b452cea6193cd
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-02-17 12:05:26 +00:00
Thomas Hartmann
d0852fb2a1 StudioWelcome: Remove unused code
Change-Id: I380a35cb735669feeeac5d0293ed43c4d2ef7059
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-02-17 10:46:22 +00:00
Thomas Hartmann
1fa9034aca StudioWelcome: Avoid opening two projects on double click
This issue was introdced because we do not go to the edit mode after
opening a project. We stay in the WelcomeMode until the project is
loaded. Since the recent project list did change a second click
(aka double click) will open a second project.

We now block the update of the model for 1000ms and also block opening another
project for the same duration.

Task-number: QDS-6286
Change-Id: I52ed6aa3686594b63fe4a6134c6db1287bca1dcb
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-02-17 10:45:53 +00:00
Thomas Hartmann
0d319ac3a1 QmlDesigner: Fix loading of .metainfo for versioned folders
This fixes a regression introduced by 7ea6492a17.
Since we actually check if import folders exist,
we did not take versioned folders into account. e.g. 'MyPlugin.1'
Extended and cleaned up the manual test case.

Task-number: QDS-6078
Change-Id: I3235d8fe498745903c5ca897e25e3d43222c119f
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-02-17 10:45:37 +00:00
Mahmoud Badri
c8481710c9 QmlDesigner: Enable searching in the text editor
Also hide the bottom status bar when it is empty.

Task-number: QDS-6187
Change-Id: I053771243c268ea20df8e127831b789b854021aa
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-17 10:45:01 +00:00