Commit Graph

71171 Commits

Author SHA1 Message Date
hjk
a98f5de6c1 Debugger: Fix LLDB/Python startup for Android
Uses the right python version and connects. but the device
side keeps saying "Waiting for Debugger".

Change-Id: I0bc9dadfa9e12831006cd486984bc29e197d7fbd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-11-08 08:18:46 +00:00
Christian Stenger
f686bce68f QmlJS: Soften strict equality check Pt II
Disable strict equality check for undefined values as there
are too many ways the code model just assumes "undefined" as
the information would be present at runtime only or to avoid
too complex evaluation.

Task-number: QTCREATORBUG-25917
Change-Id: I7c6da04f52ba767c4ef5c21078dc14ac4de86687
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2021-11-08 08:04:42 +00:00
Jarek Kobus
0830e50185 Fix "forever" timeout in QtcProcess::waitFor... methods
Change-Id: I57aac503599fa94f530e073164b86b5247702ce5
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-05 17:46:56 +00:00
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
Thomas Hartmann
525d70647c QmlDesigner: Update documentation for arc
Change-Id: Ic039b97041745671697206165276ec94d6a69968
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-11-05 13:05:28 +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
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
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
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
Leena Miettinen
b19f236c24 Doc: Describe new Project and File System menu commands
- Show some accidentally hidden information in Qt Creator
  Manual

Task-number: QTCREATORBUG-26278
Change-Id: Ia611633d52e4b012a40d7be548313e62f8ce3683
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-11-05 10:01:30 +00:00
Leena Miettinen
61c8895da3 Doc: Describe new search options
Update screenshots.

Task-number: QTCREATORBUG-26278
Change-Id: I6db12622fc207a6ed6d61da4f27f6ba469d6d307
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-11-05 10:00:57 +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
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
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
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
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
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
Leena Miettinen
cf72b0064e Doc: Describe clangd support and configuration
Task-number: QTCREATORBUG-26514
Change-Id: I709fb009763fa577ce3887d2107f23dc1daf17eb
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-04 15:13:48 +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
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
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
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
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
Ivan Komissarov
dbd5a4fe1b Update Qbs submodule to the top of 1.21 branch
Change-Id: I3620f8d950c24e664df0cef424e65ba195b3336d
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-03 15:41:55 +00:00
Eike Ziller
a759a4e8da Plugin wizard: Make github workflow work with Qt 5 and 6
The new default build of Qt Creator is Qt 6 based, so we need to make
sure that that actually works.

Change-Id: I6195f9d46cd020175daf8bc4caaa003fa7ae2b52
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-11-03 14:56:38 +00:00
Alessandro Portale
0de09fe3a3 Android: Enable manual adding of NDKs v22+
Don't enforce the presence of a "platforms" subdirectory if the NDK is
of version 22 or higher. The last NDK version with that directory is 21.

Change-Id: Ib431e7db4521533206304d252dcf93b7ea6169e5
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2021-11-03 14:33:02 +00:00
Jarek Kobus
b6228eb182 Fix signal slot connection
QtcProcess isn't derived from QProcess anymore.

Change-Id: I6c92163cc0bb73dc8e350ffa05ecbb5a25a88f9a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2021-11-03 13:46:20 +00:00
Orgad Shaneh
f4701d2bd4 EditorManager: Remove outdated TODO
Change-Id: I8c4632985ba9ec9bc2a4efa3754d50035e6b29d3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-11-03 13:29:30 +00:00
Eike Ziller
c2e27bd927 Merge remote-tracking branch 'origin/5.0' into 6.0
Change-Id: I436d15f2aeefbf6fc80340f01398509c213fc1b1
2021-11-03 14:26:47 +01:00
Eike Ziller
ad8a04f410 Add changes file for 5.0.3
Change-Id: I3fb115586f2207840da2f884c6451101190078e7
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
v5.0.3
2021-11-03 10:33:37 +00:00