Commit Graph

66382 Commits

Author SHA1 Message Date
Johanna Vanhatapio
b819f3fd52 Doc: Change the font of the Getting Started title
Changed the title for Getting Started section to bold on the QDS Manual front page.

Change-Id: Ia1b6eb653589a9175a7dd7ee771341f1a338a300
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-10-01 14:02:48 +00:00
Eike Ziller
5e73215a0a Help: Prefer litehtml viewer backend over QTextbrowser
Fixes: QTCREATORBUG-24661
Change-Id: I027da9bffbebcbef600150ca9d842c234fe9de8d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
2020-10-01 13:31:03 +00:00
Eike Ziller
f34c6fbebf Remove branch specs from submodules
We use the registered SHAs, and COIN does funny things with them (doesn't like the '.' at all, since
it doesn't replace that with the branch of the parent repository.)

Change-Id: Ifeb5ac1fa4bd251018f2c1032b4f1d729731bcc3
Reviewed-by: Antti Kokko <antti.kokko@qt.io>
2020-10-01 13:27:57 +00:00
Fawzi Mohamed
1b134a6909 QmlJS: accept import without version
Since Qt 6 import without version are accepted and should import
the latest version.

Change-Id: Id98bd0f7664dd77b30b9c91ee153fccc4160fc6d
Fixes: QTCREATORBUG-24533
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2020-10-01 12:35:22 +00:00
David Schulz
dc64f3207b Editor: Make line spacing adjustable
Fixes: QTCREATORBUG-13727
Change-Id: I3dbc3277795b339bced81dc6c5a048c828183cb6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-10-01 12:11:09 +00:00
Leena Miettinen
f4a11f38fa Doc: Describe basic and advanced QML type properties
These properties can be set in the Properties view for
all QML types.

Fixes: QDS-2851
Change-Id: I40743f5474eaa4255409b53106014bf916601bc4
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-10-01 10:37:43 +00:00
Jeremy Ephron
b9323cccc0 Debugger: Use GetName instead of GetDisplayTypeName
In the newest version of LLDB, they remove anonymous and inline
namespaces from their display name, which breaks all debugger helper
code on Macs with the newest version of Xcode, since Qt Creator logic
determines libc++ vs. libstdc++ by the presence of the "__1" inline
namespace.

Change-Id: I139d0654ffbc9dec2e42b40eaad92ea2e3c067c0
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-10-01 10:29:12 +00:00
Christian Kandeler
efce9b04fc ClangTools: Allow multi-selection in diagnostics view
This enables users to suppress or copy several issues at once.

Fixes: QTCREATORBUG-24396
Change-Id: Ib9019fd6a495b967627bf1ce53dead4d168e99da
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-10-01 10:08:40 +00:00
Thomas Hartmann
751c0dbc98 QmlDesigner: Add hint for layer effect support
Change-Id: I758bddbe0e8f80966f1e7741144f3552e7a736ef
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-10-01 10:03:55 +00:00
Cristian Adam
0dda86c55b CMake Build: Add option to build plugins, libraries, executables by default
You might want to build only a specific list of plugins, libraries,
or executables by opting in, instead of building all of them and opting out.

Change-Id: Ic81da380828779e409ba4192f307aa1b77a89808
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-10-01 09:51:42 +00:00
Christian Stenger
2fa08db858 AutoTest: Consolidate common functionality
While at it remove unused code path.

Change-Id: I15dff61131c5f3c9301cd733e1c8b92bd848f084
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-10-01 09:37:09 +00:00
Fawzi Mohamed
89c8021c5c QmlJS: fix reformatting of required properties
Fixes: QTCREATORBUG-24376
Change-Id: I9ebe66f881575ce8e58cee46d34c3ff8da55ef9c
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2020-10-01 08:47:14 +00:00
Christian Stenger
d10d25b3f3 AutoTest: Improve Boost test results handling
This improves constructing the results tree and additionally fixes
matching free functions to their respective test tree items.

Change-Id: I79490507ba7a1934a7be010a00cb341374bf93ad
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-10-01 08:08:06 +00:00
Christian Stenger
ff06a409c2 AutoTest: Immediately update checkstate cache
...as soon a modification of the check states happens
instead of waiting for the next parsing to update.
Otherwise we might lose all changes that have been
made without a parse.

Change-Id: I33a92786742eb2b58c1cfcdb438412a2c5bbaed8
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-10-01 08:07:50 +00:00
Christian Stenger
a7e1411ebf AutoTest: Cache failed states
Avoid losing failed states of test while editing files
that trigger a re-parse and may drop the original item.

Change-Id: Ia66c7f61819d610cced42ff9f86449855b80da2a
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-10-01 08:07:40 +00:00
Eike Ziller
6269d09763 Add missing documentation for EditorManager
And tweak related documentation a bit.

Change-Id: Id71d6ed0ddf1bd81f605a6b17b51ed3d9fee9485
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-10-01 07:24:45 +00:00
David Schulz
000f1bb338 Debugger: Fix char pointer dumper test for cdb
Change-Id: I3a1bf50a32076199791283d4bb661feb72c85f6d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-10-01 07:00:48 +00:00
hjk
2da4d9ae1f CPlusPlus: Fix crash in FindUsages
Amends 45dd074441.

Change-Id: I6d32bfe4798eca4fa5cb7786cd72e4f9e109a1b7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-10-01 05:55:03 +00:00
Fabio Falsini
30997838e7 Add support for Android xhdpi, xxhdpi and xxxhdpi splashscreen format
Current Android Qt Creator plugin allow to convert a single
image to the basic format ldpi, mdpi and hdpi for use as
splashscreen. However Android guidelines require to add
xhdpi, xxhdpi and xxxhdpi format size also. This patch
add conversion of the master image to these additional
formats.

Change-Id: Ibb3e9e0bd0d2aeaf6119b04c64275ffc00e820ad
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-09-30 15:37:39 +00:00
Eike Ziller
f811b87c66 EditorManager: Small API clean-up
- Move private enum to private header
- Add missing parameter to openEditorAtSearchResult
- Remove convenience singular close* methods, we have {} nowadays

Change-Id: Ic5b6d831a9f506ffee09b89b3358874433d62998
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-09-30 14:57:20 +00:00
Leena Miettinen
2ee1af2032 Doc: Update Qt Design Studio tutorials to use a new style
Based on the first part of the tutorial.

Change-Id: I169ea9bcd2707771fffce03a8f3678d1c73be0cd
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
v4.13.2
2020-09-30 11:10:33 +00:00
Leena Miettinen
d61c6c859f Doc: Update Qt Design Studio tutorial part 1
- Explain basic Rectangle, Text, and Image types a
  bit more
- Describe how to add gradients
- Update info about asset handling

Change-Id: Ia23187f647847a16edaab3706f8bf742f09f26b1
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-09-30 11:10:18 +00:00
Eike Ziller
6c4a8cf05b Add changes file for 4.13.2
Change-Id: Icd847416d78ef98c5fd96ffb8fd52680da6cc5e6
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-09-30 08:51:42 +00:00
Orgad Shaneh
52d1b31a67 Git: Enable push also for detached HEAD
Task-number: QTCREATORBUG-24508
Change-Id: I326b701c79b21f2d4495d752c7928fadd80901d9
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2020-09-30 08:40:57 +00:00
Fawzi Mohamed
103b35bcd5 qml: fix refactoring to separate component
* avoid extra spaces
* warn about existing files

Fixes: QTCREATORBUG-21091
Change-Id: Ic9ed4444bd028455e1b2d1755e6c43f352dfd5e3
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2020-09-30 08:32:38 +00:00
Fawzi Mohamed
eddf2bead8 QmlJS: fix operator << of Trie to QDebug
Change-Id: I0a540c7b1842fff9652a7ced01697eae2e90b0e0
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2020-09-30 07:09:36 +00:00
Eike Ziller
bb7b08eeae Help: Fix build of shared_help
The define is correctly set in src/plugins/help, but missing here.

Change-Id: I211554c195d1198bbed040c40cb2c707b623364d
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-09-30 06:53:55 +00:00
Fawzi Mohamed
f26b7a3700 projectexplorer: avoid crash if recovery of kit fails
Change-Id: I8bf3a24b1485da2bfd1eb13e61c2712b66b30a70
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2020-09-29 21:41:22 +00:00
Knud Dollereder
26ef972310 Disallow the creation of invalid curve
but allow invalid initialized curves to be moved into a legal state.
Visualize invalid curve-segments by painting them in the errorColor

Fixes: QDS-2130
Change-Id: Ida44c3b4f5e3d113df7d1e8e7a2b965d26f43815
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-09-29 15:44:04 +00:00
Fawzi Mohamed
45716a4ccc QmlJS: set and propagate qtVersion in ProjectInfo
Change-Id: Icbeb3679c8a76c111a5e3503b2c496c28c830342
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2020-09-29 14:24:14 +00:00
Miikka Heikkinen
a3e92da8b8 QmlPuppet: Force QApplication use in puppet if charts is imported
Qt Charts requires QApplication, so force that on when QtCharts import
is detected.

Change-Id: Ie725cb0714f2816a34374e46de71b82f00ce6239
Fixes: QDS-2842
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-09-29 14:00:56 +00:00
Miikka Heikkinen
b099c2967b QmlDesigner: Refactor preview image data caching
Made image cache always be local to the NodeInstanceView and changed
the key to always be the node id to avoid wrong data to be shown
on tooltip in some cases, such as id change or same image used by
multiple nodes.

Also clean up old cached item on id change.

Change-Id: I6fedea2a158d62e03f9d04be4cd26ae34550d09c
Fixes: QDS-2843
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-09-29 14:00:37 +00:00
Miikka Heikkinen
1f43e06847 QmlDesigner: Respect cancel on crumblebar save confirmation dialog
Change-Id: I682494100ff90c45e3a4bb1137701d603c548478
Fixes: QDS-2704
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2020-09-29 14:00:25 +00:00
Christian Kandeler
8adb284783 ProjectTree: Remove effectively unused variable
lastFocusedProjectTreeWidget is always null when read, and so is the
variable it's being assigned to. Therefore, it has no effect and should
be removed.

Change-Id: I05ec123dc0acb542fffc8fce92296f3b533d0fa5
Reviewed-by: hjk <hjk@qt.io>
2020-09-29 12:34:31 +00:00
Leena Miettinen
168c3df4c6 Doc: Add missing file
This content was moved to a new file, but the file was
not submitted as a part of the change.

Change-Id: I44246688f5d8b0baf83069475fbd3c0a5c9a4c7d
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
2020-09-29 12:33:30 +00:00
Venugopal Shivashankar
67bc45ebcd Doc: Add an MCU-specific video to the tutorials list
The video demonstrates how to create UIs using
QDS and Photoshop.

Change-Id: I05477e3307d2f9e3e92f1f41b3e57d1fa13088f3
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-09-29 11:33:25 +00:00
Eike Ziller
929e3819a8 Qt6: enterEvent now gets passed a QEnterEvent
Add a Utils::EnterEvent for porting.

Task-number: QTCREATORBUG-24098
Change-Id: I2782fe33e41a813b5562676f6dc87d6d53babdd3
Reviewed-by: hjk <hjk@qt.io>
2020-09-29 10:34:22 +00:00
Christian Stenger
af9d8768dc AutoTest: Fix marking for removal and sweeping of Quick Tests
If opening and editing a QML file we did no more mark tests of this
file as to be removed. In turn we may have got "new" items when e.g.
just modifying the name of a function or test case and but did not lose
the old one.
Broke with 90fd6870c5.

Change-Id: I86917089ffb9d4acb2f735f2f3e0f112d8cdc65a
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-09-29 10:18:47 +00:00
Miikka Heikkinen
8d6ee2509d QmlDesigner: Show tooltip preview image for Textures with sourceItem
For non-component sourceItems, the preview shown is simply whatever
image has been stored for form editor for that item.

If the sourceItem is component, the preview image is the same as
sourceItem's preview image, as the form editor image for components
often includes unnecessary empty space.

Note that currently the image stored for form editor doesn't include
child items, so this is not a perfect solution. It is however in line
with what form editor shows for the texture.

Change-Id: I3c0c629ca5e7fa25dbcb390c53e3865e34d5e729
Fixes: QDS-2824
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2020-09-29 09:58:21 +00:00
Miikka Heikkinen
36a8b8ad99 QmlDesigner: Add navigator tooltip for 2D components
This enables showing preview tooltip for 2D (Item based) components.

We render the component from scratch for this purpose instead of using
existing renders done for form editor to ensure preview doesn't
include any local changes to component.

Also cache tooltips as QPixmaps in NodeInstanceView instead of QImages
to avoid unnecessary image to pixmap conversions when using cached
data.

Change-Id: I3082c5c846f605a765a81408767266d1ff7a12d7
Fixes: QDS-2762
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2020-09-29 09:58:04 +00:00
Eike Ziller
47955ed4fa Adapt to key sequence changes in Qt6
Use operator| instead of operator+ which was removed.
Individual keys in QKeySequence are now QKeyCombinations instead of
ints.

Task-number: QTCREATORBUG-24098
Change-Id: I43a6122cf660e6a6de7edbf3ac9954e0a39cec06
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-09-29 09:24:29 +00:00
Eike Ziller
5722ab8706 Fix PCH file for Qt6
Change-Id: I273af019758d56bca159e517a45b68f8d3a16f5e
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-09-29 09:24:18 +00:00
Leena Miettinen
c61b2dcdff Doc: Update Studio component docs
- The antialiasing property was removed, because it is
  inherited from Item. Keep reference to the inherited
  value.
- Fix default values.

Change-Id: I8d63801b15422de0bd78fdd82fb518a556088cfb
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-09-29 09:13:33 +00:00
Leena Miettinen
ee601e548e Doc: Describe gradient stops
Change-Id: Ib56f5bdf9bc025f666f05e7ee7df6b30e635efd8
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-09-29 09:13:23 +00:00
Corey Pendleton
be1a3c8b73 Doc: Update and flesh out JavaScript simulation
- Update the code examples to correct some syntax errors.
- Re-organized some steps to remove unnecessary ones and clarify the
process.

Change-Id: Ieaa061459b74154bc7a398b8686a09bb0b8a10a1
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-09-29 09:12:52 +00:00
Leena Miettinen
cb8ee308ee Doc: Create separate topic for dummy QML data
There is now a collection topic for methods for
simulating data in the Qt Design Studio Manual.
Move information about creating dummy QML models
there.

Change-Id: Id15998b172169a7d714250350f6f627b998ad9e8
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-09-29 09:10:25 +00:00
Eike Ziller
4dc9d92b1e Remove unneeded QStringList forward declarations
Fixes build issue with Qt6, for which QStringList is now a
QList<QString>.

Task-number: QTCREATORBUG-24098
Change-Id: I0c81aa5bae413b836dbedea0bb6117b46f6f24c2
Reviewed-by: hjk <hjk@qt.io>
2020-09-29 08:58:12 +00:00
Miikka Heikkinen
07851d0e44 QmlDesigner: Use ElidingLabel for preview tooltip labels
Change-Id: I641a6d93cccd888f494f2d7a7ce095c66bed92e0
Fixes: QDS-2821
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2020-09-29 08:19:20 +00:00
Miikka Heikkinen
fbc6e3196c QmlPuppet: Update 3D edit view on property removal
Change-Id: I9cdcc7a4a1515b6046bc2c7c78de196a2c7d8c22
Fixes: QDS-2840
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2020-09-29 08:17:42 +00:00
David Schulz
f6b3f41d19 Editor: Skip auto inserted characters with tab
Fixes: QTCREATORBUG-12641
Change-Id: I9800b939118d1e46d202454a66729cd81d2c08b3
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-09-29 07:17:05 +00:00