Commit Graph

62421 Commits

Author SHA1 Message Date
Assam Boudjelthia
12ccd9ec54 Andriod: declare QLatin1String as char[] instead in AndroidManger
Change-Id: I4f11950dcdfa0caddf02bf2b123ff78a9c01c062
Reviewed-by: hjk <hjk@qt.io>
2021-11-05 14:16:03 +00:00
Ivan Komissarov
a17170d027 Update Qbs submodule to the top of 1.21 branch
Change-Id: I12cd44b90e5418cca88b5a267c740b26e4496f1d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-05 13:56:00 +00:00
Miikka Heikkinen
590d01e8a9 QmlDesigner: Block modifying imports when editing in-file subcomponent
Adding import statements fails silently when editing in-file
subcomponent, and removing them can crash creator, so block various
cases in component library, navigator, and 3D edit view that do this.

Fixes: QDS-5353
Change-Id: Ide5429cd97d2bf78f884b14e83cdffd10399f929
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-05 12:44:21 +00:00
Piotr Mikolajczyk
78552e5848 Fix to qmlpreview failing to upload files
Return to correct function call order when preparing
and uploading data to the device.

Pick-to: 6.0
Change-Id: Id4c56eda385964bc97b7d866bc6d76cf854feca2
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-05 12:07:56 +00:00
Jarek Kobus
b729a6cee2 Use QtcProcess in createAvdCommand()
Change-Id: Ic90bb732814de11dbb17d43649f464fabd671d21
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-05 11:36:15 +00:00
Tomi Korpipaa
69c8be67ae Add particle editor support
Add a way to edit and view particles visually, as editing
only the properties in property editor does not help visualize
how the particle effect is going to look. Support toggling the
effects on/off, pausing, resuming, and scrubbing the time back
and forth. Only the selected particle system is animated to allow
concentrating on that particular system without being confused
by other possible particle systems.

Fixes: QDS-4623
Change-Id: I2677c56a73279d451d77df1d131bd7294e6b23bb
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-05 11:31:31 +00:00
Knud Dollereder
b6c8871dbd Fix formeditor zoom shortcuts
The shortcuts of the formeditor related to zoom did not work
on macOs since they where specified in a wrong manner.
Zoom in/out are now specified in terms of QKeySequence::StandardKey.
Zoom all/selection are now specified in terms of strings.

Change-Id: I7a779b81a9464eea59a8443cd5d5e6cec3316fd6
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-05 11:01:33 +00:00
Jarek Kobus
a5318cba79 Use QtcProcess in SshConnection::connectionInfo()
Change-Id: Ibc0966ee43266d5d0f5f4f71274f11a4150eab3b
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-05 10:39:09 +00:00
David Schulz
fe9e8417f2 Editor: Fix drop location marker
Change-Id: Id63ff9e8089fd8aaf38fb61ff6d79384a60135d7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-11-05 10:34:43 +00:00
David Schulz
e96c664fce Editor: Fix drop position of drag and drop operation
Change-Id: I6649b0506e06bccb681c66afc91ad85f763206c4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-11-05 10:34:38 +00:00
Jarek Kobus
19205e10af Use QtcProcess in NimToolChain
Change-Id: If45fe607cb17387692f9350166d1382090a9a50a
Reviewed-by: hjk <hjk@qt.io>
2021-11-05 10:27:18 +00:00
hjk
a7c8c97a68 Android: FilePathify part of debugger abi detection
Change-Id: I3abbc780c1e1301db4c6d367dcdf1dcf8cbf556d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-05 10:26:52 +00:00
Miikka Heikkinen
39374307f1 QmlDesigner: Hide items with non-2D Item parents on form editor
Items that do not have 2D Item parent, such as 2D items embedded into
a 3D scene should not have form editor items created for them.

Fixes: QDS-5356
Change-Id: I11e38c99718977dcb94152925fcdf2d2caf57c9d
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-11-05 09:55:30 +00:00
Thomas Hartmann
14effaf9cb Allow clearing the wizards path
The QmlDesigner now depends on the CppEditor plugin
and the CppEditor plugin enables most of the C++
related wizards.

The easiest solution is to simply clear the wizard
paths before setting the QDS specific path.

Change-Id: I7ee6c84693053e6ad32ec28a6cf262dee615992f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-11-05 09:25:49 +00:00
Jarek Kobus
18f1be58e7 Use QtcProcess for console process
Change-Id: I1510c576992ce5a28f42cf3c7e1a7333ae7981ac
Reviewed-by: hjk <hjk@qt.io>
2021-11-05 09:23:54 +00:00
Alessandro Portale
ae8db2d55a QmlDesigner: Fix build if Qt::Svg is not installed
Make presence of the Qt::Svg target a condition for building
QmlDesigner.

Fixes CMake Error at cmake/QtCreatorAPI.cmake:442 (add_library):
  Target "QmlDesigner" links to target "Qt5::Svg" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
Call Stack (most recent call first):
  src/plugins/qmldesigner/CMakeLists.txt:6 (add_qtc_plugin)

Amends: 14c4f257fe

Change-Id: Iea2f75e72e5d8f8460b3ee9957ffcf54471e029c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-11-05 09:23:50 +00:00
Jarek Kobus
6a51277f61 Use QtcProcess in CppcheckRunner
Change-Id: I0b5f9956a20673acb44903b2e35564a8862810ae
Reviewed-by: hjk <hjk@qt.io>
2021-11-05 09:23:46 +00:00
Eike Ziller
b7853efaf3 Re-enable QWebEngine help viewer backend for Qt 6.2
Fixes: QTCREATORBUG-26380
Change-Id: I8aa31bebd5a8a20f664a17bca2f657fcfac4b1f5
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2021-11-05 09:10:15 +00:00
Jarek Kobus
9e8b838080 Use QtcProcess for ssh key gen
Change-Id: I5a1ddf7f6773467c57571fe385fc1969e347c582
Reviewed-by: hjk <hjk@qt.io>
2021-11-05 08:50:26 +00:00
Christian Stenger
083c8029b0 QmlDesigner: Fix compile for Qt5
Amends 533ed33706.

Change-Id: Ib5471918400bff62792d8fe8a0eaaffa6e8e68e8
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2021-11-05 08:46:39 +00:00
Jarek Kobus
a50c5db110 Use QtcProcess in getJdkPath()
Change-Id: I46544c1e0f811476a7e743a3085083ba204dc14b
Reviewed-by: hjk <hjk@qt.io>
2021-11-05 08:44:49 +00:00
Alessandro Portale
fd1b41af9d Android: Enable locating NDK's lldb-server on Windows hosts
For Windows, lldb-server on the local file system is not a
QDir::Executable, but just a QDir::Files.

Task-number: QTCREATORBUG-26281
Change-Id: I4eb91ad9bce62401a945c46a1d2f94b654f9eaa2
Reviewed-by: hjk <hjk@qt.io>
2021-11-05 08:05:45 +00:00
Henning Gruendl
02b8bb3ac4 QmlDesigner: Add wizard font icons
Task-number: QDS-5284
Change-Id: Ifb1e4128d4ae74396a35566bae2c43017c4e1f34
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-11-04 19:46:22 +00:00
Tuomo Pelkonen
48c30ed76c QmlProject: set project languages from application side
Even though this does not save the project languages
to the .qmlproject file, this is needed for the languages
to be synced during runtime. Saving the changes to the
.qmlproject file is done in multilanguage-plugin itself.

Change-Id: I771a2e68c3e776422e52d40f4b8526c9ae4e84c4
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2021-11-04 17:30:19 +00:00
Cristian Adam
06410dcb80 CMakePM: Fix importing of Qt projects
Amends ca04d9afcd

Fixes: QTCREATORBUG-25767
Change-Id: I099662a52bbae40541698edb80ba0576eda70884
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-04 17:26:49 +00:00
Jarek Kobus
f15e5e020a Use QtcProcess in run_meson()
Change-Id: Ib86940984d00de429a6ab138ee767155409f968f
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-04 16:36:21 +00:00
Eike Ziller
e95968a206 Update qlitehtml to latest master
Get latest fixes in qlitehtml and litehtml

Change-Id: Iea46961014bf899bccc71a8cd9360ad6d6743817
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2021-11-04 15:38:49 +00:00
Tapani Mattila
533ed33706 CMake file generation: Dialog for deselecting generated files
Task-number: QDS-5331
Change-Id: Ib1470069ab444dfd792e40fadc338d6452b727ca
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-04 15:24:16 +00:00
Alessandro Portale
d4efd4a369 Android: Improve prior commit
Actually use the version variable that was defined prior to the line.

Amends: 0de09fe3a3

Change-Id: Ie05e1a4e1be0fa0729dd1de38fc6b5351d02d380
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2021-11-04 14:53:26 +00:00
Thomas Hartmann
a8938f8916 QmlDesigner: Improve icons for layouts and positioners
Task-number: QDS-4287
Change-Id: I8e8cd98cdcb335177b72a28f12c121a3bb591f77
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-04 14:47:42 +00:00
Jarek Kobus
910c71b59b Use QtcProcess in IosSimulator
Change-Id: I7e31a2702512802e7670e79ff096e4cc191d42a3
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-11-04 14:20:43 +00:00
Cristian Adam
05b40bbcd3 auto-setup.cmake: Add QT_CREATOR_CONAN_BUILD_POLICY cache variable
By having QT_CREATOR_CONAN_BUILD_POLICY as a cache variable the users
can change the default value of "missing" to something else like
for example "never".

Change-Id: I8b447c40d1331976d0ee35ecb34b4d68c5742771
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-04 14:03:25 +00:00
Christian Kandeler
7e99926efd CppEditor: Make sure all clangd-related widgets are enabled/disabled
... when the general clangd checkbox is toggled.

Change-Id: Icb2503e5e2d66cba4fb81a3dc7a891e8ed694132
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-04 13:26:32 +00:00
Christian Kandeler
a6a1423421 ClangCodeModel: Fix assertion in clangd timing logger
Change-Id: If5134e5160b8278b2d0ef7037a00abe3b4b035ad
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-04 13:24:47 +00:00
Eike Ziller
e6d31c2b37 Merge remote-tracking branch 'origin/6.0'
Change-Id: I560583b200db8f180574256d6d851a867be11c37
2021-11-04 13:52:30 +01:00
Jarek Kobus
acfe224281 Flush finished() signal when waitForReadyRead() was called
Apparently the QProcess behaves like that.

Change-Id: Idb1993b8abccbd7943582d41bd456eacc9a1c185
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-04 12:30:03 +00:00
David Schulz
4d55fc911d clangd: disable lsp snippets
We have some additional handling with the completion items that might
interfere with the snippets.

Change-Id: I86405ec67af189d01c8a4dfa468f56035e6e69c4
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-04 12:07:18 +00:00
Oliver Wolff
08b6e0239f Add support for MSVC2022 (Preview)
2022 should be binary compatibility with previous versions (see
https://docs.microsoft.com/en-us/cpp/porting/binary-compat-2015-2017?view=msvc-160).

Change-Id: I4200f0c7d78adb0d1f352cd527c0f6041a1f5283
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-04 12:02:36 +00:00
Samuel Ghinet
b7d0902257 Add new theme colors necessary for New Project Dialog on QDS
We need colors for the dialog box background, and for warning text messages.

Note: We currently don't have carefully picked colors for warning, so I used
standard yellow (ffff00). The values, for each theme, will need to be adjusted
later on.

Task-number: QDS-4490
Change-Id: I257522216b03610d9f12951e7cb6f7cfa182489f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-04 11:18:40 +00:00
Christian Stenger
662d9a9564 QmlDesigner: Fix compile with Qt5
Change-Id: I366290900fa7198648ca1c6163a35140e0f0a3a9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-11-04 10:23:08 +00:00
Christian Kandeler
4022043792 ClangCodeModel: Ignore redundant semantic tokens
This can now happen due to the newly implemented refresh support.

Change-Id: If64feede84b044140f7ec04e317289d3f493aa53
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-04 09:54:02 +00:00
Jarek Kobus
8e8e8ddead Use QtcProcess in runQtChooser()
Change-Id: Ied2c58eb522e9ae9e5f312dce98b66bc852f41a7
Reviewed-by: hjk <hjk@qt.io>
2021-11-04 09:44:43 +00:00
Samuel Ghinet
98e5639f78 Make use of font icons for the wizards
Qt Design Studio will be using font icons to display project types (wizards) in
the New Project dialog box, rather than .png icons. The unicode values will be
saved in the wizard.json files as "fontIconCode". We need a way to access that
value in code.

Task-number: QDS-4490
Change-Id: I5dbcc522a707c288ee1f05ab6ec1cb24bcd75025
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-11-04 09:25:19 +00:00
Christian Kandeler
33b5fa25a8 ClangCodeModel: Do not mark the LHS of assignments as output parameters
... when using clangd. Amends a1f088376a.

Change-Id: Ief442d978e1cf3027dcba5a3c75b66c0f4ae8809
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-04 09:20:30 +00:00
David Schulz
416cd69a5e Editor: unselect text on mouse release event
Update the main cursor after calling QPlainTextEdit::mouseReleaseEvent.
Calling that function might change the selection without changing the
position, so it wont emit cursor position changed, and the multi cursor
does not get updated properly.

Task-number: QTCREATORBUG-26493
Change-Id: Ie310ee9a4c66897766af87065ee42fcd01302854
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-11-04 09:10:05 +00:00
Miikka Heikkinen
1c526c827d QmlDesigner: Improve error message on trying to edit empty component
Task-number: QDS-5308
Change-Id: I401a375443e2df52a2656a34ab4c650664b0df97
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-11-04 08:26:24 +00:00
Jarek Kobus
fa1515185a Use QtcProcess in webassembly
Change-Id: I19da9f4d9b2892256bf19655858ef585aa4825a8
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-03 20:40:26 +00:00
Henning Gruendl
0484d574d6 QmlDesigner: Add QtMultimedia
Add property editor sheets and item library entries for QtMultimedia.

Task-number: QDS-5147
Change-Id: Ic4fc2926e7bf5aa5376f3fd7b6b5e452034e4001
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-03 18:56:10 +00:00
Henning Gruendl
14c4f257fe QmlDesigner: Allow inserting SVG snippets
Allows to paste SVG clipboard content into the Form Editor. It will
create a Group item which acts as the SVGs view box and groups multiple
items together. All SVG items will be transformed into SvgPathItem.

* Supports all basic SVG shapes path, rect, polygon, circle, ellipse
* Supports the following SVG presentation attributes as CSS-inline
  definition, XML-attribute, style element: fill, stroke, stroke-width,
  opacity, fill-opacity, stroke-opacity
* Supports all transform operations

Task-number: QDS-5259
Change-Id: I9b7027992de60e5c87f2031251348dbb31fe03fe
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-03 18:55:47 +00:00
Jarek Kobus
cd6d2b0cd8 Use QtcProcess in QbsSession
Change-Id: I1220bb533e4d7aa0577860b750a7d97e2139bc20
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-03 16:39:35 +00:00