Commit Graph

71402 Commits

Author SHA1 Message Date
Jarek Kobus
26114f6736 Use QtcProcess in NimSuggestServer
Change-Id: If4e67a06cfb44c4ae94a78930745d29fb2330b9a
Reviewed-by: hjk <hjk@qt.io>
2021-11-09 09:44:12 +00:00
hjk
122edddb6a Debugger: Robustify view access
Task-number: QTCREATORBUG-26449
Change-Id: Ic13508e15bc9e33ce0641703f8827870adeaf2d4
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-09 09:39:47 +00:00
Alessandro Portale
d33cd5194a Debugger: Consolidate search code for python-path
Not just to deduplicate/reuse code but also to make make it clear that
different places where lldb is called, the same preparations have to be
done.

Change-Id: I104aca845fd7b42f63443bda2502574f4d28b411
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-11-09 09:35:23 +00:00
Christian Stenger
1b6d374d62 QmlPuppet: Fix qbs build
Amends b8b6af0dbb.

Change-Id: If3dc168243939c90205ad274cf61b2d0d2e03cc3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-09 09:32:56 +00:00
Christian Kandeler
f6c974fc1b CPlusPlus: Fix "Find references"
... for certain types of template/namespace combinations.
This essentially reverts 2798c11d1d.

Fixes: QTCREATORBUG-26520
Change-Id: I1ab0e4e19bd09695d1536bf6f10960107e9ecbc4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-11-09 08:51:31 +00:00
Miikka Heikkinen
1021c1b42d QmlDesigner: Fix property binding after drag from component library
Restricted the properties offered for a newly created node to be
bound to after a drag from component library.
Read only properties are no longer offered for binding.
Properties of common base types are also omitted due to large amount
of invalid properties offered.

Fixes: QDS-5357
Change-Id: I96fea067c3c4f64dd60d7cb6edebd4333c9fb51a
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-09 08:34:18 +00:00
Christian Stenger
eab5315904 Android: Register Lldb if it is present
Change-Id: I46a544c0541ca4f0a969064faf055c1e99b9c5ad
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-09 07:19:35 +00:00
David Schulz
bfe6c46f9f QmlJSEditor: block non Utf8 codecs
Additionally adjust the postioning of the initial setCodec to all other
forced codecs.

Change-Id: Id60bfdac858851e5ad6554ff2dbcb3dd5b806c0b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-09 05:14:02 +00:00
Mahmoud Badri
3f0aa40d35 QmlDesigner: Correct Assets view empty status
Make isEmpty a property instead of an invokable method so that
Qml side is properly notified when its value changes.

Change-Id: I2552b23cc533bbd740902a31bae89b1dfbd3b0cf
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-08 17:52:08 +00:00
Thomas Hartmann
a1c476d864 QmlDesigner: Avoid exception when database is missing
Task-numner: QDS-5365
Change-Id: I0231d7b0fbe29be39ff5f0de4c01efd6073531fa
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-08 17:43:56 +00:00
Jonas Singe
ce924f74b6 AutoTest: Set gtest_catch_exceptions=0 during debug runs
This allows the debugger to show the code location from which
an uncaught exception originates.

Change-Id: I6edbc381a4028e95d1844affac85a79ecdf55197
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-11-08 17:06:50 +00:00
Topi Reinio
1c729b931f Doc: Qt Design Studio: Fix missing search results page in online builds
The qt-html-templates-online include adds a source for the results page,
but because it was included before the main project .qdocconf, the latter
overrode this setting.

Pick-to: 6.0
Change-Id: I10d9491aa481eec958bdb8744e1c0bbd36e4763c
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2021-11-08 14:42:21 +00:00
Christian Kandeler
35e57ca748 ClangCodeModel: Make sure not to overwrite macros with their expansion
... when highlighting with clangd.

Change-Id: I89ec8bf5a1ed4d43e0e9a398b26705df00ca9a46
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-08 13:55:15 +00:00
Eike Ziller
f16589f969 Fix that Restart Now might not close Qt Creator
The call of QWidget::close() on the main window is blocked by Qt if
there are modal windows open. First close/accept all currently open
modal dialogs, then close the main window.

Reverts a8bc9774f9 which was specific to
the Link with Qt functionality, and generalizes the code in
MainWindow::exit().

Fixes: QTCREATORBUG-26525
Task-number: QTCREATORBUG-24098
Change-Id: I4c62f684cdfd749dfb3d3c18bd513b9fee10ddda
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-11-08 13:05:16 +00:00
Jarek Kobus
17fbbf7cb9 Use QtcProcess in startAvdAsync()
Change-Id: I47d6522f944ffe95a047e22971e94bba4fc93e2a
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-08 12:27:53 +00:00
Miikka Heikkinen
af8937f10f QmlDesigner: Update possible imports at model attach in component lib
Without this, add module list will be empty after project load
sometimes.

Change-Id: Ia45949bc0cb22e4e3a0942d5858f2b395c0b8722
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-08 12:26:15 +00:00
Jarek Kobus
50272f21f1 Use QtcProcess in ClearCaseSync
Get rid of code repetition by making runProcess() a common method.

Change-Id: If0b47fba4351119e7373caa250131891b9bb403d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2021-11-08 12:22:22 +00:00
Christian Stenger
50b2395804 Debugger: Fix running android lldb
..when gathering version information.

Change-Id: I99d69de661edad856fe66a045e8e2ee03036dd2c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-08 11:40:49 +00:00
Thomas Hartmann
39d2fc91fd QmlDesigner: Do not allow resizing scaled items
The resize tool does not work as expected in this case.

Task-number: QDS-5346
Change-Id: Id977bb29670d216cf0989e4b2cd5072ae40ad6d1
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-11-08 11:10:38 +00:00
Alessandro Portale
5c0c3ff6ca Debugger: Also look for "/ndk/" path segment in LldbEngine::setupEngine
And pull the env-modifying code into a function which we might want to
use in other places where lldb gets executed.

Change-Id: Ic9caaf8c29896c54d67c969d2812b4da627a5fc0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-11-08 10:57:32 +00:00
Mahmoud Badri
d06ddd12b6 QmlDesigner: Add placeholder controls for when the assets view is empty
Change-Id: I8cf864f97aff09f846411e50cec17e7cdf1be2d0
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2021-11-08 10:51:48 +00:00
David Schulz
33122b564a Editor: prevent endless loop for empty search results
Fixes: QTCREATORBUG-26536
Change-Id: Ia49559c5b340085ef8371d8d90bda26bb6d728bb
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2021-11-08 10:42:49 +00:00
Christian Kandeler
6077bde638 CPlusPlus: Allow numeric literals with single quotes
... also in macro expansions.
Amends 8c437362bc. Just like in that patch, we don't prevent trailing
quotes, even though they are not allowed. Unlike in that patch, we don't
check the language version, as it is not set during preprocessor mode
(for whatever reason).

Fixes: QTCREATORBUG-26484
Change-Id: I8737724208802ed9a9005af538cf13fbfd2efd42
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-11-08 09:32:45 +00:00
Christian Kandeler
9a16eb5fe6 ClangCodeModel: Inform clangd about changes to non-open files
That is, project-wide changes done from Qt Creator, such as search/
replace or quickfixes.

Fixes: QTCREATORBUG-26523
Change-Id: Ide4e56a7a1300eb6f25cabf1cfd94624d66e7e4e
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-08 09:32:02 +00:00
Assam Boudjelthia
bcc5c9a344 Android: since jpg is allowd, add jpeg to icon/splash file dialog
Change-Id: I018650a33d681f4ea75c9333eb875a197ce96e3d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-08 09:19:09 +00:00
Assam Boudjelthia
d80f3f4d8a Android: remove unused function that couldn't be removed in 5.0 branch
... because of binary compatibility.

Comes after a2b6dba0bc.

Change-Id: I18866de39a05c6690b47632cc5503f8555e006da
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-08 09:18:29 +00:00
Eike Ziller
3b9b9bdc0b Merge remote-tracking branch 'origin/6.0'
Change-Id: Ia7fc255ee8680e6beac5d4d878f446fe40873183
2021-11-08 09:46:57 +01:00
David Schulz
e0c115fb9b Editor: Allow creating block selections with alt+shift again
These block selections are a convenience for people used to the block
selection allowing to also unselect parts again (at least as long as
alt+shift is pressed).

Fixes: QTCREATORBUG-26535
Fixes: QTCREATORBUG-26529
Change-Id: I19558dc1d823c268cc1cfda0ea8151bac483701f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2021-11-08 08:35:38 +00:00
Eike Ziller
af7d9d6f8e Merge remote-tracking branch 'origin/5.0' into 6.0
Change-Id: I27fa20e040003188aec3e60c607dd0758c6906cd
2021-11-08 09:34:26 +01:00
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
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
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
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