Commit Graph

61751 Commits

Author SHA1 Message Date
hjk
c8137bdcf9 ProjectExplorer: Consolidate some Session::active* accesses
Change-Id: I47b0f6c2c60b2f7c86b6ffd1ad3df393d1321c8b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-11-29 08:39:07 +00:00
Christian Stenger
ea88ded352 CppTools: Simplify compile fix
Partially reverts 3f53db12bb.

Change-Id: I7a291550306235430ad460cdba4e0343445aa0ba
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-11-29 08:07:12 +00:00
Christian Kandeler
e70116bf67 QmakeBuildConfiguration: Make use of Qt-related build aspects
Change-Id: Ia14bb468fe75403839d8dcc8022c4f233c363f62
Reviewed-by: hjk <hjk@qt.io>
2019-11-28 16:33:20 +00:00
Denis Shienkov
2b0dc60f4f BareMetal: Share the 'channel' property for all providers
Change-Id: I619d0ced6231ab57a4ac556f50030112295c58ea
Reviewed-by: hjk <hjk@qt.io>
2019-11-28 16:13:06 +00:00
Nikolai Kosjar
202aa06d7c ClangTools/Debugger: Fix resource name clash
The two plugins plugins added resource files which were referenced with
the same name, namely

    :/unit-tests

Make the names unique.

Change-Id: If63e762663f3f61b15f826d76ffcd2eb66873db7
Reviewed-by: hjk <hjk@qt.io>
2019-11-28 16:05:18 +00:00
Nikolai Kosjar
5e4f6a9bb3 Clang: Use toolchain macros for IAR toolchain
...or if requested with QTC_CLANG_USE_TOOLCHAIN_MACROS=1.

Change-Id: I6d2f35b69393a7039271cc651aa514cdb686522e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-11-28 15:26:33 +00:00
Christian Kandeler
8a2fb30378 QmakeBuildConfiguration: Make use of SeparateDebugInfoAspect
Change-Id: I0dceadf2a6ef34187fa4107f3fc5d6831ecb7bfe
Reviewed-by: hjk <hjk@qt.io>
2019-11-28 14:48:36 +00:00
hjk
110f8491c9 BareMetal: Add a few IAR compiler extensions as empty macros
... to make the clang code model happy.

Change-Id: I7d0d4988f482ae69ed2a99cfa882e6aaf4e4ee6c
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-11-28 14:35:31 +00:00
David Schulz
73161356d5 LSP: take account of resolveTarget when checking for links
Return a link to the word under cursor when the target should not
get resolved. This results in a highlight of the text the mouse cursor
is positioned on when pressing ctrl to follow a link.

Change-Id: Iaf1ba289644ed3e3fc062b418dd2fa3bfa8da6ad
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-11-28 14:05:05 +00:00
David Schulz
11eea3aae0 TextEditor: skip update link on mouse press events
The link is updated on the release anyway. Reset the press state of
the link now after a mouse move event.

Fixes: QTCREATORBUG-21848
Change-Id: Ice7a9873b1635a1b59ba7b8f2a266bf14e28c112
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-11-28 14:04:56 +00:00
Christian Kandeler
1492284241 Build aspects: Fix some UI glitches
Add missing colons, hide empty labels.

Change-Id: Ic9753044d8dc842105d89225df45978220b0d8da
Reviewed-by: hjk <hjk@qt.io>
2019-11-28 13:36:31 +00:00
Denis Shienkov
e6e9f4017d BareMetal: Remove 'GDB' mention from the HostWidget tooltips
... because this widget can be used from any provider (not only the GDB).

Change-Id: I9d77f30f364dc63367923dc461693fc781a8a8c6
Reviewed-by: hjk <hjk@qt.io>
2019-11-28 13:22:19 +00:00
Christian Kandeler
221d356210 Qmake: Make proper use of BuildDirectoryAspect
Change-Id: I439496c85f7e0f402ab038de6a8171dd2f7d2ffd
Reviewed-by: hjk <hjk@qt.io>
2019-11-28 12:30:52 +00:00
Denis Shienkov
b31f6aa502 BareMetal: Share HostWidget for all debug providers
Change-Id: Ie1db80987c8f3cacdae49daff3969228105c08ea
Reviewed-by: hjk <hjk@qt.io>
2019-11-28 12:28:51 +00:00
Denis Shienkov
6fdbd6d784 BareMetal: Remove missed SSH dependency
... as we don't use the QtC SSH library anymore.

Change-Id: I0d081983262314672bcbf0f94a78502183f1f4b3
Reviewed-by: hjk <hjk@qt.io>
2019-11-28 11:52:39 +00:00
Denis Shienkov
50fec43816 BareMetal: Replace name of GDB_PROVIDERS_SETTINGS_ID constant
... with the DEBUG_SERVER_PROVIDERS_SETTINGS_ID name.

Reason is that this identifier includes not only the
GDB providers, it includes all possible provider types.

Change-Id: If545826aaf1606d33d4fec55653cd6e3ba2c5d61
Reviewed-by: hjk <hjk@qt.io>
2019-11-28 11:10:39 +00:00
Denis Shienkov
e73a187246 BareMetal: Get rid of GdbServerProvider::NoStartup mode
This mode is useless, has not sense, and complicates a code
handling. A more useful equivalent for this mode is
"Debug->Start Debugging->Attach to Running Debug Server".

Change-Id: I863dbc5c41ca82db52792a3ff2a1eae16f8e7afd
Reviewed-by: hjk <hjk@qt.io>
2019-11-28 11:09:41 +00:00
Christian Stenger
3f53db12bb CppTools: Fix compile
Change-Id: I08ceaa94d9f18b671cee23f226dcdd7db1da0429
Reviewed-by: hjk <hjk@qt.io>
2019-11-28 10:27:23 +00:00
Eike Ziller
6fc85b49fa Merge remote-tracking branch 'origin/4.11'
Conflicts:
	src/plugins/designer/codemodelhelpers.cpp

Change-Id: I78906f2fbbfd27d254589a272ebca423b0b80699
2019-11-28 08:24:10 +01:00
hjk
2059cb31f0 Qmake: Inline qmakestep.ui
In preparation of aspectification.

Change-Id: Ib60301db79f87f6e13f511a4bab57948ce46fce5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-27 16:44:16 +00:00
Aleksei German
6b1d54421e QmlDesigner Removed some debug output
Change-Id: Iaa03c5783cc76b94364eda184d439024c35c4102
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
v4.11.0-rc1
2019-11-27 16:30:51 +00:00
Aleksei German
7cf6632d7d QmlDesigner Binding Editor UX improvement
Binding Editor now shows which property type it expects.
Binding Editor now works with alias and unknown types.

Change-Id: I23d0bed3db5126de5107cf2f1f6b46485b89e1ea
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-27 16:03:12 +00:00
Henning Gruendl
2ebffd3eaf QmlDesigner: Fix RealSpinBoxInput
Fixes RealSpinBoxInput scroll behavior. Without this change the
RealSpinBox would block the ScrollView from getting mouse wheel events,
which means whenever the mouse is hovering over a RealSpinBox the
ScrollView can't be scrolled via the mouse wheel.

Change-Id: I4533e36700fc2652a9c246a0e30613c71258edaf
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-27 15:12:09 +00:00
Nikolai Kosjar
b2f5ed78e1 ClangTools: Add "go to project settings" toolbar button
With the introduction of the "Analyze Current File" action the widget to
configure the diagnostic config was moved to the project panel (Project
mode > Project Settings > Clang Tools).

As not too many users are aware of the project settings there and
navigating there involves more user interation now (mode switch, looking
for the "Clang Tools" item), add a toolbar button as a shortcut.

Change-Id: I4c864045ef41ff501d925d3175ce604def213f29
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-27 14:42:12 +00:00
Christian Kandeler
dd7f4890a2 ProjectExplorer: Introduce BuildDirectoryAspect
Change-Id: Id57d0a7901d2cec7b2d4f1fbeed6a1ecb41642cc
Reviewed-by: hjk <hjk@qt.io>
2019-11-27 13:49:53 +00:00
Nikolai Kosjar
2ca150c097 ClangTools: Fix showing diagnostics from clang-tidy on Windows
When reading file paths from clang-tidy's YAML files, ensure to
clean/normalize the file paths. Otherwise, no diagnostics will be shown
as they are not accepted by the is-file-part-of-project filter.

Change-Id: Iacff9ab5611072ca0b19788f6861f73c244258cc
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-11-27 12:47:03 +00:00
Nikolai Kosjar
3e72fd9f45 ClangTools: Fix converting old settings on Windows
As the settings keys are case-insensitive on Windows, the condition

  s->value(oldDiagnosticConfigIdKey).isNull()

in ClangToolsSettings::readSettings always evaluated to true, leaving
inconsistent settings around (new and old).

As a result, the QTC_ASSERT parallelRuns >= 1 was triggered in
ClangToolRunWorker::start() and nothing was analyzed.

Fix by using a truly different settings key after conversion.

Change-Id: I467f7d71298f240812a56dfcf7d6ca81728dee32
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-11-27 12:46:55 +00:00
hjk
684d3e40a7 Python: use new runconfiguration aspect update mechanism
Change-Id: I60807350460e75172bf4744beeb1474755ff4187
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-27 08:07:04 +00:00
hjk
300a022bcd Qdb: use new runconfiguration aspect update mechanism
Change-Id: Ib8822ac62d364bbbe8b9fd61b238c841dc39a777
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-27 08:06:51 +00:00
hjk
6b4a0ed47d Qnx: use new runconfiguration aspect update mechanism
Change-Id: Ia81313e9b08ba5569f01c4d2bbf3c26c96cc78d4
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-27 08:06:39 +00:00
Marius Sincovici
2a21ed069f Use the default encoding for new files
When new text files are created from Qt Creator, use the default
encoding from Qt Creator settings.

Change-Id: Iddfa173a70a363ec8d559d996b3fc658e15dfe57
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-11-26 20:43:17 +00:00
Richard Weickelt
60e4c62912 Update Qbs submodule
Change-Id: Ia0e9effcb6332db340c724a2f849156a4d6d6118
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-26 18:30:20 +00:00
Denis Shienkov
46afac5687 BareMetal: Get rid of DefaultGdbServerProvider
This provider was added thoughtlessly and has not any
useful functionality. A most useful analogy it is
"Debug->Start Debugging->Attach to Running Debug Server"
which completelly replaces of this provider.

Change-Id: Ib4d8db5b20cd08821c5f3e005c6b8ae5816f2096
Reviewed-by: hjk <hjk@qt.io>
2019-11-26 15:17:06 +00:00
Denis Shienkov
5dd0e745ee BareMetal: Get rid of SSH connection parameters
... as we don't use the SSH parameters at all.

Tested on the STM32 NUCLEO-F767ZI board with the OpenOCD
and the ST-Link providers on Windows host.

Change-Id: I1e21112c9058129d14ce584a804777532933a7d9
Reviewed-by: hjk <hjk@qt.io>
2019-11-26 15:16:10 +00:00
Denis Shienkov
f9634d92e3 BareMetal: Get rid of unused GdbServerProviderProcess class
We don't need in this class, because the remote GDB servers are
launches by the RunWorker.

Besides, the BareMetalDevice::canCreateProcess() and the
BareMetalDevice::createProcess() are not even gets called at all.

Tested with the STM32 Nucleo-F767ZI board using the ST-Util GDB provider.

Change-Id: I8d3770ec59738c63aa44dd39d371a1b443a81f9a
Reviewed-by: hjk <hjk@qt.io>
2019-11-26 15:15:50 +00:00
Knud Dollereder
21865fed29 Enable Antialiasing for the curve-editor
Add missing include

Task-number: QDS-1227
Change-Id: I8a7160b1a85152a721fd1b24b6dcbb541dc192c2
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-26 14:11:46 +00:00
Mahmoud Badri
8e2ef36e60 Implement 3D edit view top controls UI
Implement global/local, projection type, and default light controls UI.
Also small tweaks:
- Fixed ortho. camera near clipping
- Grid color darkened a bit
- Selection rect color changed to yellow

Task-number: QDS-1250
Change-Id: I03cf2023ee1b8a6a0768e4dbf7d6fee621a25ce2
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-26 13:42:30 +00:00
Hannes Domani
286366b13f Valgrind: Implement multiple setting profiles for heob
Task-number: QTCREATORBUG-23209
Change-Id: Ic6371e2a71f2caac56e274a9403e1220e2d15812
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-11-26 11:17:43 +00:00
Henning Gruendl
bec91cbad8 QmlDesigner: Fix editable ComboBox popup selection
This patch introduces a new state called 'popup' to disable text editing
while the popup is opened and enables text editing whenever the popup is
closed.

Task-number: QDS-1262
Change-Id: I74ad4723d2cfe81447e94c37e9ba1f0913790d97
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-26 10:48:30 +00:00
Miikka Heikkinen
05bb285b0d QmlDesigner: Offset move/scale gizmo label in screen space
Offsetting in scene space resulted in label being inconsistent distance
away from the object, depending on zoom and angle.

Change-Id: Ief555de664c042bb1a5c93af0ee7e5a1c3e7ce0a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2019-11-26 10:37:01 +00:00
Miikka Heikkinen
d076c59429 QmlDesigner: Block selection of hidden objects
If eyeball is turned off for object, it shouldn't be pickable in
3D edit view.

Change-Id: Ib9308aaaecc822f448591f249bd96ffb5d0c9c48
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-26 10:36:51 +00:00
David Schulz
6325590815 Debugger: Use std style iterator
Change-Id: I6f6593aa18ec9da768876413ef2d5169bce635ca
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2019-11-26 09:45:34 +00:00
hjk
4c1ce54d17 BareMetal: Use new runconfiguration aspect update mechanism
Change-Id: I4847481d3df603d730caf8657305877fe6b5d27e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-26 06:59:40 +00:00
Friedemann Kleint
b96bf86f18 Qt Designer: Fix some clang warnings
- Use using instead of typedef
- User member initialization
- Use nullptr
- Do not use else after return
- Delete pointers unconditionally
- Fix some integer conversion warnings
- Use auto for new/casts to avoid type name repetition
- Use = default for trivial destructors

Task-number: QTCREATORBUG-23248
Change-Id: I0a7465d3aa200b5c862bec82636d2d22ddf8297b
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2019-11-25 18:33:47 +00:00
hjk
d0c5577a7b McuSupport: Use new runconfiguration aspect update mechanism
And do not connect to buildConfigurationChanged. It's not needed,
and listens to the wrong BuildConfiguration after the first change.

Change-Id: I9d5dc8593ed5610aaf64e6717a694710a137b344
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-11-25 17:44:13 +00:00
hjk
e5f8d81fc8 WebAssembly: Use new runconfiguration aspect update mechanism
And some questions.

Change-Id: Ibedf4ffaa77390c43b36c53ff80c571a47e7ec29
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-25 17:02:40 +00:00
hjk
6cc1519964 Android: Use new runconfiguration aspect update mechanism
Change-Id: I2a05f212cbba4471d66be9537b604b4e5abbc0de
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-25 16:37:39 +00:00
Christian Kandeler
572af85224 QtSupport: Introduce QtQuickCompilerAspect
... and use it in the qbs build configuration

Change-Id: I53ef4fb8c267e2b4e033c01604bc5b7770b57777
Reviewed-by: hjk <hjk@qt.io>
2019-11-25 15:54:38 +00:00
Miikka Heikkinen
f9c1795d3b QmlDesigner: Add UX approved gradient background to 3D edit view
Change-Id: I18b976324f57cf559a43d9ff239796cf25b3cb2f
Fixes: QDS-1202
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-25 15:01:28 +00:00
hjk
9e2484052d RemoteLinux: Use new runconfiguration aspect update mechanism
Change-Id: I8f518f323e8d2437809bdffc21492e4238df10d5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-25 14:59:57 +00:00