Commit Graph

64402 Commits

Author SHA1 Message Date
Miikka Heikkinen
cfa8373ce0 QmlDesigner: Remove unused signal
Change-Id: If0adce20a27575f7b4a39a08836da250d0b7bae6
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-09 12:13:32 +00:00
Miikka Heikkinen
b441988b58 QmlDesigner: Add fade control handle to point light gizmo
Also changed the point light mesh to just a single camera plane ring
based on discussions with UX.

Change-Id: If9e847440570bbe87483194c0b417cf09c7084a2
Fixes: QDS-2041
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-09 12:13:13 +00:00
Miikka Heikkinen
327821220c QmlDesigner: Add handles to light gizmo for adjusting area light
Change-Id: Ic12bd6f5ec8800d7a42064247eecbb742ebea40c
Fixes: QDS-2040
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-09 12:12:55 +00:00
Miikka Heikkinen
e4b2e45ea6 QmlDesigner: Implement spotlight drag handles
Inner cone visualization for spotlight was added, as well as drag
handles to adjust inner and outer cone angles and fade.

Fade handle adjusts fades in order: quadratic, linear, constant.
If a specific fade value is zero, the next one in list is chosen
for adjustment.

Change-Id: I921936d9782de511558bc6c24cfa0953cce494f0
Fixes: QDS-2038
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-09 12:12:32 +00:00
Miikka Heikkinen
387657b83a QmlDesigner: Add missing camera plane ring to point light model
Task-number: QDS-2037
Change-Id: Ica5a7ec2983da251d2ab75565120423288de27a2
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-09 12:10:58 +00:00
Miikka Heikkinen
3d162524e4 QmlDesigner: Add brightness control to light gizmo
Brightness can be controlled by dragging on the brightness indicator
arrow of the light gizmo in 3D edit view.

Change-Id: I317f5ee08b59bcc0bebf3fdf59861df15ef13c84
Fixes: QDS-2039
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-09 12:09:55 +00:00
Miikka Heikkinen
a3e6e24427 QmlDesigner: Update light gizmos
Directional light model was made constant size, as it doesn't have
actual physical presence.

Spot light cone now shows the cone angle correctly and the length of
the cone is calculated so that 5% of the brightness reaches the
center of the cone bottom.

Area light rectangle matches the area of the light.

Point light mesh changed to three perpendicular circles.
Same formula for size of the circles used as for spotlight length.

All light types share a common brightness indicator arrow.

Task-number: QDS-2037
Change-Id: I534dbcda9cfa2a7768c2537868ba83818979b250
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-09 12:09:41 +00:00
Miikka Heikkinen
4d23e6300f QmlDesigner: Update light icons
Task-number: QDS-2037
Change-Id: I0b95034f9ba9f308ba6fde82749b6cbef3f35859
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-09 12:07:39 +00:00
Orgad Shaneh
91103ad66d QmlPreview: Fix MSVC warning
C4065: switch statement contains 'default' but no 'case' labels

This amends commit 6079a317b9

Change-Id: I90dc72702d8b8d4c1dbcb08f78f67c8ddf9f6717
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-06-09 11:37:44 +00:00
Christian Kandeler
84082ca920 FakeToolTip: Enforce "no focus" policy on Windows
Evidently, it's not enough to call setFocusPolicy(), one also needs to
pass a special WindowType flag.

Fixes: QTCREATORBUG-4267
Change-Id: Ic2f377aad9a859443c79b375242bed2166301a3e
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
2020-06-09 10:25:22 +00:00
Christian Stenger
128341d4e2 QmlJS: Fix possible duplicate semicolon
When dragging a member inside or onto a "oneliner" item a
duplicate semicolon can appear which makes the code invalid.

Fixes: QTCREATORBUG-12560
Change-Id: Ifa824a64b951fde879625d321dfae48e167a9227
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2020-06-09 09:37:29 +00:00
hjk
92942f0f12 ExtensionSystem: Port PluginSpec to QRegularExpression
Task-number: 24098
Change-Id: I8dcdc736962eef949c54e457f06d9dbdb4efb054
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-09 08:54:14 +00:00
Christian Stenger
f1b7fd81f5 Meson: Fix compile for gcc 5.3
Amends 77d7bb5014.

Change-Id: I8aca3c3a95890ec794a8f0f5cadbc6d726559f49
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-06-09 06:05:06 +00:00
Christian Stenger
059c8edf21 Meson fix compile
Amends 77d7bb5014.

Change-Id: I5c0cb8ed10d70795408236acb240c662d7eddbbb
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-06-09 05:52:56 +00:00
Christian Kandeler
2433a40def Android: Fix qbs build
Change-Id: Id9adcd458f22a786a60193fea6c01fd7dcc4e8f0
Reviewed-by: hjk <hjk@qt.io>
2020-06-08 14:19:14 +00:00
The Qt Project
ae9ed29608 Merge "Merge remote-tracking branch 'origin/qds-1.59'" 2020-06-08 14:11:10 +00:00
Eike Ziller
c644e7c80a Merge remote-tracking branch 'origin/qds-1.59'
Conflicts:
	src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp
	src/plugins/qmlpreview/qmlpreviewconnectionmanager.cpp

Change-Id: Ifa7c66330c1995378280cdb4c57c30015dc11b68
2020-06-08 16:04:15 +02:00
Tarja Sundqvist
a68e6a4fb1 Add Android services to the manifest editor documentation
Task-number: QTCREATORBUG-24075
Change-Id: Ifd3ec1ee52fede81eec4c18a3c5c5a23eb44132b
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-06-08 13:44:20 +00:00
Orgad Shaneh
bfcd1149eb Git: Do not read working directory before it is set
This amends commit c17767c78e.

Change-Id: Ide6f9de2420dd1262b27aed83351b76404cdba30
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: hjk <hjk@qt.io>
2020-06-08 13:18:28 +00:00
Tim Jenssen
42cad89708 fix tests
Change-Id: I5a0f10e6afb85dc0306e224710d2c103f24404f3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-06-08 13:02:40 +00:00
Tim Jenssen
106f11a42f sqlite: make defines public
Change-Id: I44d1636cdb7f1dce9a3b25fe8f5e9f11f5364cdb
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2020-06-08 12:30:58 +00:00
Christian Stenger
e19f8899f5 Meson: Fix compile
Amends 77d7bb5014.

Change-Id: I86bae4f0d0df79f1941e5ab6b4ef097d72a505ed
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-06-08 11:29:02 +00:00
Christian Stenger
28ce5f497a Squish: Clean issues before filling them
Change-Id: I5ba9f8d73bdb72c02919261057e6d5bf00183f4e
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2020-06-08 11:28:45 +00:00
Christian Stenger
311ed87e30 Squish: Remove handling for closed bug
Change-Id: Ib78d62620b45458ebaddc3d0e8575ffe9be093db
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2020-06-08 11:28:26 +00:00
Christian Stenger
7778ef9597 Squish: Test newly added code paster
Change-Id: Ied5d08393185cc117a5f3986f05c3d6fbbb45718
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2020-06-08 11:28:11 +00:00
Christian Stenger
c88ea7db8f Meson: Fix compile with gcc 5.3
Amends 77d7bb5014.

Change-Id: I1f67754b0a92200d4e526d27aa9ab310625719c0
Reviewed-by: hjk <hjk@qt.io>
2020-06-08 11:21:39 +00:00
Alexis Jeandet
77d7bb5014 Meson build plugin initial support
Most basic project management is implemented:
- Project config/build
- Build options accessible to user
- Lists most build targets
- Meson and Ninja added to kit setup
- Basic project file tree with files known by Meson
- Some basic meson and ninja process output parsing
- Some project templates

Missing features, that will come later:
- Configurable project tree layout
- Locators for Meson
- Build importer
- Access to Machine files for better user fine tuning
- ...

Fixes: QTCREATORBUG-18117
Change-Id: I2811e71562c113fb0fc6b6177bcf0698fa71ef63
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-06-08 09:55:17 +00:00
Tim Jenssen
9a9110d3d7 fix qbs build
Change-Id: Ia266f1ce748b2ac70d71477374551da00cb8706a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-06-08 09:37:42 +00:00
Tim Jenssen
96453e54b6 qmlpuppet: fix cmake
Change-Id: I09aa610fb5d9d5ee07d2994707b7490e9f1ebd39
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-08 08:51:55 +00:00
Tim Jenssen
cb9e0c99be qmlpreview: fix cmake builds
Change-Id: I0062d017a207b8641e97c39427e2440c9fac07ed
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-08 08:41:49 +00:00
Denis Shienkov
a8f38f8aab ProjectExplorer: Recognize GCC ABI for Renesas SuperH architecture
Now the ABI of GCC compiler for the Renesas SuperH architecture is
deteted correctly.

Change-Id: I788bc848fed4741b3bbc193e843b753884c7e209
Reviewed-by: hjk <hjk@qt.io>
2020-06-08 07:06:32 +00:00
Denis Shienkov
71631fdadf ProjectExplorer: Recognize GCC ABI for Renesas RX architecture
Now the ABI of GCC compiler for the Renesas RX architecture is deteted
correctly.

Change-Id: I5d0b810a5d5fe7339e0d0f507f696f98c16be30d
Reviewed-by: hjk <hjk@qt.io>
2020-06-08 07:06:16 +00:00
Eike Ziller
623e607b23 Merge remote-tracking branch 'origin/4.12'
Conflicts:
	cmake/QtCreatorIDEBranding.cmake
	qbs/modules/qtc/qtc.qbs
	qtcreator_ide_branding.pri

Change-Id: I19a7406f7e387b53f1e7b3f08a0b4c89a377ab82
2020-06-08 08:22:10 +02:00
Eike Ziller
d62acfdefa CMake build: remove dependency of ClangTools on libclang
Amends 9fc2fda07e

Change-Id: I0bec3d894eae0117a52e6363c1a92cca98cd05b2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-06-08 06:20:24 +00:00
Ville Voutilainen
a2cd1e45df Android: add a splash screen editor to manifest editor
Task-number: QTCREATORBUG-24013
Task-number: QTCREATORBUG-24011
Change-Id: Iea7e8ff8f9bf616612827b70de67e01801ab1229
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2020-06-07 17:47:57 +00:00
Andre Hartmann
3fa6861e98 ShellCommand: Some style improvements
Change-Id: Ib9c8a7cd9f207b5f2fad9660183703f83d825575
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-06-07 12:43:43 +00:00
Eike Ziller
0f362115c1 CMake build: Deploy elfutils
Fixes: QTCREATORBUG-24131
Change-Id: Ibfe829492e86ce1563882cf3be6469f9e553812d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-05 17:34:51 +00:00
Eike Ziller
e2e50f80fa Deploy: Use argparse instead of gnuopt
It's the more modern variant that we use everywhere else.
Add -i/--ignore-errors as a dummy option since it wasn't used for much,
and all callers used it anyhow - always ignore the one error that it
applied to.

Change-Id: Iecb5b434b6c21fc555410565a8e63a80844228cc
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-05 17:34:40 +00:00
Tim Jenssen
21b369466a qmlpuppet: cmake compile fix
Change-Id: I002c13b22e23f323dde39c5d228fd2347631462e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-06-05 16:36:48 +00:00
Tim Jenssen
90fcca16e8 sqlite: mingw compile fix
Change-Id: Ia427231c864144b7a83a8346e050acc2d4531851
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2020-06-05 16:04:03 +00:00
Tim Jenssen
128980bb84 sqlite: fix qbs and cmake builds
Change-Id: I64887c2dd11b8de8627976b148993467e70674e0
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2020-06-05 16:03:54 +00:00
Christian Kandeler
e100939ba7 CppEditor: Extend "Add Include" quickfix
... so it works for all kinds of symbols, not just Qt classes.

Fixes: QTCREATORBUG-21
Change-Id: I2d329c09b64cd8f7eef8cce7d9f022aca8586c0d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-05 14:56:21 +00:00
Christian Kandeler
d811e7773f CppEditor: Do not treat friend declaration as member function
... when trying to create definitions from declarations.
Instead, we completely ignore friends in this context, arguing that the
respective function normally should have a proper declaration somewhere
else.

Fixes: QTCREATORBUG-7164
Change-Id: I3ddb89cefecbc494f9c7e63600b65fd6288b7169
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-06-05 14:51:18 +00:00
Tim Jenssen
d5b2a90bc0 qmldesigner: use Core::ICore::dialogParent() instead of mainWindow
According to a change in master from Eike this keeps window stack
order.

Change-Id: If9cb615cfa2fa3cf71f86f10711897418e3cf93b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-06-05 14:41:45 +00:00
Tim Jenssen
3db68b4aab qmldesigner: remove double command registration
Change-Id: Id37bea290c136d24551729a8edb36fab19b5bd7e
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2020-06-05 14:41:32 +00:00
Thomas Hartmann
1c10fe9440 QmlDesigner: Adjust selection behaivour
User want to select multiple items with special key + click
(shift + click and/or ctrl+ click).

Change-Id: I6bf17730983e5d8f199785bf35605f7eb67ec569
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-05 14:39:17 +00:00
Johanna Vanhatapio
54f53898bf Doc: Change the link to info on exporting 3D assets
Change-Id: I6ba7933928563343ea0f3420f1cb3b47bc262360
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-06-05 13:13:07 +00:00
Henning Gruendl
03e44b4f53 QmlDesigner: Fix start transition bounding rect
Change-Id: I17e9a13ae1c93584ee52727ba6f938c20e30e202
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-05 12:11:10 +00:00
Christian Kandeler
ca3ad20e64 ClangCodeModel: Do not offer completion for inaccessible symbols
We should not offer to auto-complete e.g. private members from contexts
where they cannot legally be accessed. This is also consistent with the
existing behavior of not offering non-const members on const objects.

Fixes: QTCREATORBUG-1984
Change-Id: Ic58c1ba2dc0b8023299feebc20bec4f2a5a6ea38
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-06-05 11:06:46 +00:00
Marco Bubke
cf441e8198 Sqlite: Add primary key table constraint to table builder
Change-Id: I60c158eb76db2217a2d045053bb8e47eef75ff7a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-06-05 09:57:47 +00:00