Commit Graph

61895 Commits

Author SHA1 Message Date
Christian Kandeler
6c66af5c23 ProjectExplorer: Add a base class for build aspects
... and make use of it in the QmlDebuggingAspect.
A build setting is conceptually not a boolean, but a tri-state, as we
need to support force-switching a feature on and off as well as
specifying that it is to be left at its default value.

Change-Id: I15552614c5cf4f5187c026909d233c13e3487e81
Reviewed-by: hjk <hjk@qt.io>
2019-11-25 13:25:02 +00:00
Christian Kandeler
9811f95aa7 Project Aspects: Provide alternative display style for selection aspect
Typically, a combo box is preferred to radio buttons.

Change-Id: I685d9c1773e4188252139fb7c784fd7b61e62c8f
Reviewed-by: hjk <hjk@qt.io>
2019-11-25 13:09:25 +00:00
Denis Shienkov
d94636f8f9 BareMetal: Allow IDebugServerProvider to create own runner
It is more correct way, because only the server providers
know about own runners.

Change-Id: I645f4696a5d9738d9cd578d642389124a0b0de60
Reviewed-by: hjk <hjk@qt.io>
2019-11-25 13:03:10 +00:00
Cristian Adam
6160abb4f8 Documentation: Fix Ninja reference
Change-Id: I95967b62b46ebe08ac837c490c54f5f3fc24d443
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-11-25 12:32:17 +00:00
Aleksei German
4bf0105bac QmlDesigner Binding Editor structure rework
Separated Binding Editor into 3 files.
Cleaned up includes.

Change-Id: I84d06148b09cfc0df7db0f5a3a99e0f92997b586
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-11-25 12:24:00 +00:00
Leena Miettinen
d48fa5b8d6 Doc: Update info about building with CMake
Change-Id: I30813c51deec50043c0015aef5a672babe6b5608
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-11-25 11:58:50 +00:00
hjk
e2a9cd81dd Qnx: Remove unused code
Change-Id: I84a87be28a4d94c733d17e6b27dd4b25d9ad2fae
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-25 10:52:52 +00:00
zarelaky
7e148d8a07 Debugger: Allow changing item format for all array elements
Change-Id: I05000102d4c6b185340581029006b9254c91fcb1
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2019-11-25 10:52:33 +00:00
Christian Kandeler
72ca179633 QtSupport: Add a QmlDebuggingAspect
... and make use of it in the qbs build configuration.
We cannot use it for qmake yet, because the build config there still has
a custom, non-aspectified widget.

Change-Id: Iacf902a2d9384d0074b10fdc98e082fa906fb6d6
Reviewed-by: hjk <hjk@qt.io>
2019-11-25 09:46:41 +00:00
Leena Miettinen
3228d2626f Doc: Update info about Clang tools
Change-Id: I86fecea5e5bc6d1b514cca4b8ad7a865cbf87c7e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-11-25 09:45:36 +00:00
hjk
5795dc24c7 Valgrind: Minor code simplification
Change-Id: I64b218d76f4c65686a346bf884ceb8323b62f9f1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-25 09:39:21 +00:00
Henning Gruendl
f80b676e4a QmlDesigner: Fix sticky popups
Task-number: QTCREATORBUG-23102
Change-Id: I53a2abc67221b714e2b4ff7d09045f0b817b59d2
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-25 09:38:22 +00:00
Miikka Heikkinen
6ee83b4c19 QmlDesigner: Center on selection box when fit tool is used in 3D Edit
Instead of centering edit camera on selected object, center it on
the selection box, which includes child objects.

Change-Id: I7315a4bcfffc74e72a2b21d0a04fc99ee9f4f3c3
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2019-11-25 08:48:08 +00:00
Nikolai Kosjar
e0af519d1a ClangTools: Fix clazy plugin invocation with recent clazy II
The enable-all-fixits option was also removed:

    05c9ccade0

Change-Id: Ide64e80a7ed8ee828fe4973fbf74bbaa8d3a09b8
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-11-25 06:24:02 +00:00
Orgad Shaneh
cf8099f901 VCS: Replace addButton with addReloadButton
It's the only use, and this is a special option that deserves its own
function.

Change-Id: Ic69be5973b452d3a1d506fab3623d4a9b84f8452
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2019-11-24 16:22:27 +00:00
Alessandro Portale
d65c61ffcb McuSupport: Fix name of McuSupportRunConfigurationFactory
Was a remainder of initial clone&rename action.

Change-Id: Ifd06626cf2c895a1e20289ebd7ce711432f0a23a
Reviewed-by: hjk <hjk@qt.io>
2019-11-22 17:25:55 +00:00
Miikka Heikkinen
389f96b0ee QmlDesigner: Implement group selection boxes in 3D edit view
Object's selection box now includes the bounds of all of its
descendants. Selection boxes of immediate children of a selected
object are also drawn.
Individual/group selection buttons also now work as expected.

Change-Id: Ice7ef9a536e32c6bb6da70fe23bf0a38e72c14f8
Fixes: QDS-1210
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-22 14:02:48 +00:00
Miikka Heikkinen
9dac42f153 QmlDesigner: Implement fit selection button in 3D edit view
Shortcuts for scale and move were also updated to correct ones.

Change-Id: Iffcad0c81475553003962e65dc059879a237546e
Fixes: QDS-1235
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-22 14:02:32 +00:00
Miikka Heikkinen
c7120bde92 QmlDesigner: Implement axis helper on 3D edit view
Axis helper shows up on top right corner of 3D edit view.
Clicking on axis helper arms zooms camera on that side of the selected
object.

Change-Id: Ibd81a933036f7965f825e3dc97ad7156da62e14c
Fixes: QDS-1205
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-22 13:57:43 +00:00
The Qt Project
6d98db0d80 Merge "Merge remote-tracking branch 'origin/4.11'" 2019-11-22 12:22:04 +00:00
Alessandro Portale
b619c60ff7 CMakeprojectManager: Use Utils::ElidingLabel in GeneratorKitAspect
Don't stretch the kit options page horizontally more than required.

Change-Id: I8eb3855ae48a8a172741b1c42f79b9e05cc7eb42
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-11-22 11:35:07 +00:00
Christian Kandeler
142d4ddb28 QbsProjectManager: Let users provide a default install root
Fixes: QTCREATORBUG-12983
Change-Id: I016d298aaf8abc0d96267115225ab825bdd039e9
Reviewed-by: hjk <hjk@qt.io>
2019-11-22 11:34:19 +00:00
Miikka Heikkinen
7a46dc620e QmlDesigner: Fix build error
Change-Id: I53d425d0b6f4e66c09bd988bd188218cbf51a99c
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-11-22 11:11:22 +00:00
Alessandro Portale
1b89d4ba53 McuSupport: Rename package key QtMCUSdk -> Package_QtForMCUsSdk
...final name. Forever.

Task-number: QTBUG-80242
Change-Id: Id9fe7001738e2fd5f4f08c3cd02a78dbf9c45e7d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-11-22 11:06:09 +00:00
Alessandro Portale
2a7a908233 McuSupport: Only (re-)generate kits when on Mcu options page
... less surprises, like for example user is on the Kits page, edits an
existing kit, and that gets overwritten when pressing "Apply"

Change-Id: I2d936b757cb5c891a087854805fa2f056834185f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-11-22 11:05:53 +00:00
Miikka Heikkinen
0b510f173e QmlDesigner: Implement selection box to 3D edit view
Change-Id: Ib0b13ecd7946e3b7da8ed06d4f5965e06e51a152
Fixes: QDS-1210
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-22 10:48:48 +00:00
Miikka Heikkinen
dbfdacecf4 QmlDesigner: Fix issues with MouseArea3D deactivation detection
Existing mouse grab is now released when MouseArea3D is deactivated
or set to no longer grab the mouse. Various gizmos were also set
to follow MouseArea3D's dragging property instead of keeping track
of drag themselves.

Change-Id: I49f968f20b26eb222fc8635b943e9144073fb164
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-22 10:48:35 +00:00
Miikka Heikkinen
3dd5e089b1 QmlDesigner: Add UX approved light icons for 3D editview
Light icons have a color overlay that indicates light color.

Change-Id: I5f6d80f63d0916dd7cb7b2d5345d586aacd550ef
Fixes: QDS-1209
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-22 10:48:22 +00:00
Miikka Heikkinen
4c73b4629c QmlDesigner: Some fixes to edit 3D after UX review
- Slightly larger cam plane rotate ring to avoid overlap
- Scale tool is always local
- Little more transparent and borderless light/cam icons when selected
- Center light/cam icon on the object

Change-Id: Icb24d89fb3ea852b139677aebe797881a12e474a
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-22 10:48:08 +00:00
Miikka Heikkinen
77cb514a79 QmlDesigner: Implement better camera navigation in 3D edit view
Edit camera is now controlled as in Qt 3D Studio:
ALT + left button orbits camera.
ALT + middle button pans camera.
ALT + right button zooms camera.
Wheel zooms camera.

Task-number: QDS-1206
Change-Id: Ia72644073d172b00483ceed8bcc5ffb8dce68741
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-22 10:47:42 +00:00
Nikolai Kosjar
668cd2091a ClangTools: Fix clazy plugin invocation with recent clazy
As the no-autowrite-fixits option was removed with

  c5d0a2d016

our clazy invocation is incorrect and results in the usage being
printed.

Change-Id: I104273da8722f00c3df0d69d2b57c68fc9d3c1e6
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-11-22 09:35:28 +00:00
Nikolai Kosjar
818f2d0c5c CppTools: Fix race condition when opening projects for tests
The ClangTools plugin tests open a project and immediately trigger a
build afterwards. We checked whether CppModelManager got already data
from the project manager, but this alone was racy for the mentioned use
case as e.g. the QbsProjectManager might still be in parsing mode and
thus the build was not triggerable. Check for the parsing state, too.

While at it, simplify the code by using QTest::qWaitFor(), which also
takes care of posted events.

Change-Id: Id298695b2e67578def42275bac4ea31f4a39edf2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-22 06:50:42 +00:00
Eike Ziller
4e6142c932 Merge remote-tracking branch 'origin/4.11'
Conflicts:
	src/plugins/autotest/testresultspane.cpp
	src/plugins/cmakeprojectmanager/cmaketool.cpp

Change-Id: Iade695ac9cab8bf3e3a1abd6e2c71f4a19132ac0
2019-11-21 22:18:35 +02:00
Alessandro Portale
e53e0a808b ProjectExplorer: Use Utils::ElidingLabel in EnvironmentKitAspectWidget
Utils: :ElidingLabel re-elides on resize.
Change-Id: I62709da60e7ab0156a33f373b236f71d1795d48f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-21 17:04:32 +00:00
hjk
fd8afd564f CompilationDatabase: Avoid an unneeded cast
Change-Id: I8f6d0d83b25738c164e6e29c317840058fdd8bfe
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-11-21 15:00:59 +00:00
hjk
e94e1f116e AutoTools: Avoid an unneeded use of Project::activeTarget()
Change-Id: I0fa1b788ddbbe96973ead65ad09b4c8742e1832f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-11-21 15:00:09 +00:00
Nikolai Kosjar
b6ed781c28 ClangTools: Simplify clazy test
...in order to not run into parse errors in qstring.h involving

  * C++17
  * >= Qt 5.14
  * stdlibc++ of gcc 5.3/5.4

Change-Id: I8c06f90a88a4dd18503a81b68433604eb3bc9556
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-11-21 14:17:21 +00:00
Cristian Adam
a646d0af26 Documentation: Add documentation how to build Qt Creator with CMake
Change-Id: I36617ce09301165f2e18a7524a18283264957ac6
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2019-11-21 13:59:20 +00:00
BogDan Vatra
7e8e6bcba1 Android/Qmake: Execute clean on architecture changes
Change-Id: Id0e1465e7ec7f6675cbf9d986352e811e6d31bec
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-11-21 13:42:22 +00:00
Christian Kandeler
6913947986 QbsProjectManager: Switch to an out-of-process approach
That is, do not link to the qbscore library anymore. Instead, use the
JSON-based API.
Advantages:
    - We can build Qt Creator with qbs support without qbs being present
      on the build machine.
    - Smaller memory footprint for Qt Creator, as the qbs build graphs
      are now being managed by a separate process.
    - Potential crashes in qbs will not kill the Qt Creator process.

Fixes: QTCREATORBUG-20622
Task-number: QTCREATORBUG-22904
Change-Id: If7d344b0ac65a99ff0a3a3db215d61b8d903e47e
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2019-11-21 13:32:18 +00:00
hjk
c2127c9ec4 ProjectExplorer: Introduce and use a Target::buildSystemUpdated signal
Change-Id: I497d46866146600a1ed9162bd720c574ee4d4769
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-21 13:08:06 +00:00
Sergey Belyashov
35321d82e4 Update Russian translation
Change-Id: Idb0d3ab7aaf49cb050e246ec8324ab2c1add8057
Reviewed-by: Anton Kudryavtsev <antkudr@mail.ru>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
2019-11-21 12:42:30 +00:00
Cristian Adam
fac8a4179a CMake: Build fix for qlitehtml when submodule was used
Change-Id: If82d46a761b9c59a2d945d723df575e66bd9c5a8
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-11-21 11:22:18 +00:00
Alessandro Portale
f8f6f53960 McuSupport: Add optional color depth (bpp) property to McuTarget
...include that in kit names and add it as "QUL_COLOR_DEPTH" CMake
parameter.

Change-Id: I14ba7ce465c54d525683be2660d2e24b6ecfed6c
Reviewed-by: hjk <hjk@qt.io>
2019-11-21 07:49:10 +00:00
Alessandro Portale
b738a9d02d McuSupport: Reduce omnipotence of McuTarget's constructor
... add some setters for optional properties.

Change-Id: I4e1814c36f8294af86bf30d8538f450bc7f70b2b
Reviewed-by: hjk <hjk@qt.io>
2019-11-21 07:48:25 +00:00
hjk
738bbf1a87 ProjectExplorer: Introduce per-buildsystem setRootProjectNode
Currently diverting to the original Project::setRootProjectNode.
Idea is to focus on the BuildSystem <-> generated tree relation.

Change-Id: I8b20173e364713f0919cf4f8b76a2f79ef8770bb
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-21 07:40:22 +00:00
hjk
7dec498323 ProjectExplorer: Make more use of available convenience functions
Change-Id: I53089c5e2138b1c9943d0dbff3857a2dff8ea233
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-21 07:40:07 +00:00
hjk
c9fe463fee Qbs: Remove unused QbsBuildStep::qbsProject
Change-Id: Ifd47683d1e61e5126d873a38172904692953e367
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-21 07:39:21 +00:00
hjk
76a85d9af4 QmlProject: Clean up RunConfiguration
Change-Id: I635b86c53ca72e82a52cf0002b9269ee15e1958e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-11-21 07:38:56 +00:00
Alessandro Portale
cd4fe07708 Android: Use numerical options for remote chmod call in uploadGdbServer
androiddeplyqt does not deploy gdbserver anymore, since Qt 5.14.
Therefore the gdbverver deployment of Qt Creator is triggered for all
devices, some of which do not support the symbolic chmod parameters
(e.g. +x).

Change-Id: I66e9fabeb0da4a1a3693c655a085d81c15f9d263
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2019-11-20 16:34:11 +00:00