Commit Graph

61511 Commits

Author SHA1 Message Date
Nikolai Kosjar
fdd3262cab ClangTools: Fix state of the "Apply Fixits" button
* Disable the button when (re-)running an analysis.
* Ensure the button stays disabled when a file is saved.

Change-Id: I1140dd3938de554ea83d33c5bb490be3468d7db0
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-10-31 14:07:38 +00:00
Nikolai Kosjar
c698a6ed0c ClangTools: Fix uninitialized variable
Change-Id: I3d703aaea0fdb61cbfb7f681eda00ff14376f9f6
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-10-31 13:52:10 +00:00
Nikolai Kosjar
21a17f489a ClangTools: Fix a bugprone-parent-virtual-call
clangtoolsdiagnosticview.cpp:286:16: warning: qualified name
'QObject::eventFilter' refers to a member overridden in subclass; did
you mean 'QAbstractItemView'?

Change-Id: Ifcff716b336324384d0164925b548f61cf460449
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-10-31 13:51:58 +00:00
Knud Dollereder
a4bff368fd Display the current frame in a dedicated control
Enable immediate dragging of the playhead after clicking into the time-scale
Rename "Curve Picker" to "Easing Curve Editor" and "Curve Editor" to
"Animation Curve Editor"

Change-Id: I0085a26d0ea510286586d89c6cddb9bbe720e49e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-10-31 11:08:58 +00:00
Christian Kandeler
3c3f7afcbc Target setup page: Un-queue another connection to kit manager
Amends 6fd29da2cb, which caused a regression in that a newly activated
target was not selected anymore, so when switching to project mode, the
build configuration was not shown without user intervention.

Change-Id: If723fe886f3e478cbdbcd7a77cd7fb71eca69813
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-10-31 09:28:13 +00:00
Alessandro Portale
7fffe8a7b1 McuSupport: Add Segger Jlink path to kit environment
SEGGER_JLINK_SOFTWARE_AND_DOCUMENTATION_PATH

Change-Id: I29a1b4f011ce9f419b46e9571a930d14438bae20
Reviewed-by: Aurindam Jana <aurindam.jana@qt.io>
2019-10-30 18:34:45 +00:00
Alessandro Portale
efe49d3d9f McuSupport: Rename "NXP EVKB-IMXRT1050 SDK" to "NXP i.MXRT SDK"
The new name is more generic, and valid for more targets.

Change-Id: I7efb3f1721ec1e88de073d5f43edff8b308f3f02
Reviewed-by: Aurindam Jana <aurindam.jana@qt.io>
2019-10-30 18:33:55 +00:00
Alessandro Portale
985cd447ab McuSupport: Change "MCU board:" => "Target:" in options page
There is also a (Qt-based) target, which is not a board.

Change-Id: Ib35b1e823a7a1c5e1f578face9fa4953b7a6d89e
Reviewed-by: Aurindam Jana <aurindam.jana@qt.io>
2019-10-30 18:33:03 +00:00
Henning Gruendl
48997e3ceb QmlDesigner: Replace UrlChooser button icon
Change-Id: I3cd84986ea77701a5d786bd7ee8115cda3df8185
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-10-30 15:10:54 +00:00
David Schulz
6fc24653b8 Debugger: prefer cdb for msvc targets
Change-Id: I4d305ae6f3b54d7f724f2cfbde6062663e3c0ad1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-10-30 13:43:42 +00:00
Christian Stenger
b2ede6ff51 Python: Check for changes before applying
Storing the python settings seems to be rather costly
and may take some time.
Perform an early return if nothing has changed.

Change-Id: I509e83f503d2af31a7464df893e0e4e69e99a277
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-10-30 13:21:29 +00:00
Robert Loehning
aad5fb339d Squish: Update QmlJSEditorWidget
Change-Id: I783849086d59d51d51dfbc560e3d6c8e298ccd71
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-10-30 11:39:36 +00:00
Thomas Hartmann
c3ab0150e7 QmlDesigner: Append forced nodes also if filter is inactive
Change-Id: Ie7575a4da5b5dee9a69fa7226d1b65dc5ce574ee
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-10-30 10:20:04 +00:00
Thomas Hartmann
17dbc74cca QmlDesigner: Avoid reflection when setting values from puppet
When editing values in the puppet we did not take reflection into account.
This means that any changes we did from the puppet for notified back
from Qt Creator. Since those notifications are asynchronous this leads
to various issues especially when more than one axis (property) was modified
at once.

This patch avoids reflection. The notifications are 'flagged' and then
ignored in the Qt5InformationNodeInstanceServer.

While a node is moved we ignore any changes to that specific node.

Task-number: QDS-1191
Change-Id: Ic74e22ea71832ce12321f9085a7296c2a7d9893d
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-10-30 09:46:35 +00:00
Christian Kandeler
70373fbf1a Toolchains: Better out-of-the-box support for the Intel C++ compiler
- Make sure it gets auto-detected on macOS, where the -dumpmachine
  option, while present and documented, doesn't print anything.
- Do not call it "Linux ICC", as it's also available on macOS.
  There is no danger of confusion with the MSVC-based variant,
  as the respective UI elements are not present on Windows.

Fixes: QTCREATORBUG-18304
Change-Id: Ibe70c618cf28ecfb105efefc3fe2b79814a0f0ce
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: hjk <hjk@qt.io>
2019-10-30 09:35:46 +00:00
David Schulz
5fcfe159cf Debugger: adjust resetting the symbol server after cdb update
The cdb symbol server can currently only be cleared by setting the
symbol path via .sympath command and an empty string.

Change-Id: I013b106856d87dbc2de0fdcaa876fd6d9378fb63
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-10-30 09:29:04 +00:00
David Schulz
6664d78ded Python: detect virtual environments for documents and projects
After opening a document or project the directory hierarchy is looked up
for a Scripts/(activate && python.exe) on windows or bin/(activate &&
python) on unix. This is the usual structure of python virtual
environments. If such a folder is found add the python from that folder
to the list of configured interpreters in the settings, set it as the
current interpreter for the project and try to open the corresponding
language server.

Change-Id: I038c309ea2988f9370194330d250d1515beac0a0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-10-30 08:46:12 +00:00
Miikka Heikkinen
519fc4ec72 QmlDesigner: New arrow mesh for edit3D view
Change-Id: Iefe2de026fc386ed910949a98a0157bd59d8e62b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2019-10-30 08:40:33 +00:00
Eike Ziller
4b450804fb Fix CMake build
after f15a323663

Change-Id: I6d46b9747251e2ae16967e1c8826d580fa7548d4
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-10-30 08:10:08 +00:00
Henning Gruendl
f15a323663 QmlDesigner: Add align and distribute feature
Change-Id: I99c57036c25e4aaf73f2c6014523da5da9d3cd21
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-10-29 18:56:27 +00:00
Robert Loehning
40fb68d18d Squish: Remove outdated comment
Change-Id: I4aeee19ada28ad536994d3b6ec164429b3fc90c4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-10-29 18:17:46 +00:00
Kai Koehne
36ef280db5 Set QGuiApplication::applicationDisplayName property
This is used in user-visible strings e.g. in the analytics plugin.

Change-Id: I5942e915bccba01eb2c3d7049e2b789fff9e890a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-10-29 14:40:28 +00:00
Miikka Heikkinen
47f54dd101 QmlDesigner: Add camera and light gizmos to 3D edit view
A small icon and a placeholder mesh are displayed at the location of
the lights and cameras in the scene, to provide a way to see and
interact with them.

Change-Id: I1f90fce77a643cab2c3fda3ee2105af53dea57a9
Task-number: QDS-1177
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-10-29 12:57:06 +00:00
Robert Loehning
4f2f86b5bf Squish: Skip testing Qt Quick 2 Extension Plugin wizard
We're not doing anything in it anyway.

Change-Id: I5d790d98c8952e6167bfe241af5490cf18622890
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-10-29 12:36:43 +00:00
Miikka Heikkinen
09a0b40a28 QmlDesigner: Optimize 3D model itemlibrary icons
Change-Id: I00fcd3b7a42a7fa97e4cc3128ddd63624205758a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-10-29 12:22:35 +00:00
Leena Miettinen
09784424df Doc: Fix link to "Build with CMake"
This seems to be in a bit of a flux. Please add keywords for the
old title when changing it.

Change-Id: I323311e6497361f72afd7b63556ab3a7337134f0
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
2019-10-29 12:08:02 +00:00
Leena Miettinen
be456bfb20 Doc: Fix links to "Styling Qt Quick Controls"
The "2" was dropped from the topic title.

Change-Id: Ifa4122bc8b717b3a6915a10c14eba30e9bbf5bd3
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
2019-10-29 12:07:41 +00:00
Leena Miettinen
49c905b941 Doc: Update information about Git
Describe viewing tags and old information in the Git Branches
sidebar view and the Archive action in the Actions in Commits
dialog.

Change-Id: I3c4c5b3ccc91657875d7ec9d14432d4ac88edd19
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-10-29 12:06:54 +00:00
Christian Kandeler
d3e6fa0f2e QmlDesigner: Fix some warnings
Change-Id: Ice9c29409b53457c20cef272b6a5dd6feb97adb3
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-10-29 11:35:38 +00:00
Mitch Curtis
1861991cec Doc: add more how-tos
Change-Id: I1694a71c3bfc7be907074701f0c8a32ab0608607
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2019-10-29 10:24:27 +00:00
Mitch Curtis
636ee3e91d Doc: rename Tips and Tricks to How-tos
This is based on Qbs' how-tos documentation:

https://doc.qt.io/qbs/howtos.html

I find this format easier to follow, both because of the phrasing of
each section and the fact that it doesn't rely on the table of contents
to list the contents, which is squished into a tiny word-wrapped
section on the left of the page in the online documentation.

Change-Id: I46a0751a55e7f34458392c56e12c2e301adde234
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2019-10-29 10:24:04 +00:00
Christian Kandeler
74d458c0da CompilationDbManager: Add support for the "/imsvc" option
Fixes: QTCREATORBUG-23146
Change-Id: I024597d67e48595472b398ed40858bee17c1c4b9
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-10-29 09:50:04 +00:00
Eike Ziller
86bd49e6ab Bit more change log for 4.11
Change-Id: Ibf23cef4ca24117931af9721664b7a57fbac90e5
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2019-10-29 09:20:21 +00:00
David Schulz
6399188090 LanguageClient: prevent accessing deleted document
By always removing them from the list of opened documents also for
uninitialized clients. Fixes crash when closing creator before the
initialize response of a language server was handled.

Change-Id: I81fb15d8d9d7bf47300a6eac373ef9db04387bd4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-10-29 08:17:41 +00:00
Leena Miettinen
70ce398602 Python: Fix UI text
Change-Id: Ia3fa732d9ed6bb880ea7721712093fbe8faa27bd
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-10-29 07:52:51 +00:00
Leena Miettinen
3db95cd694 Boot2Qt: Fix UI text
Change-Id: Ibc25722d16691ffb35cedaadba9c7049975d5836
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
2019-10-29 07:52:32 +00:00
David Schulz
63d03afb95 LanguageClient: fix memory leak
When removing actions from a widget the action is not magically deleted,
so manually delete the language client toolbar action of the editor
after the last client was shutdown.

Change-Id: I6a5a079d4a44724f92d291040925df73f7eb747b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-10-29 07:12:59 +00:00
Christian Stenger
7cec3cfc94 Scripts: Fix helper script on macOS
Broke with ca15e1ed0c.

Change-Id: Ife884234ff8716b3019f2d302598c887d1498a92
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-10-29 05:55:39 +00:00
Denis Shienkov
f8db739e0d Doc: Add mention about new supported toolchain architectures
Change-Id: Ic832eb7449af9c43bc72260e88cfa4e22e102a7a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-10-28 16:05:05 +00:00
Leena Miettinen
9b7328cc93 Update Info: Fix UI text
Change-Id: Iabd28121ea55b65fe10ad0e2dca0b4df44365b31
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2019-10-28 15:37:21 +00:00
Leena Miettinen
e9044c7eff Project explorer: Fix UI text
Change-Id: I5d3d3ada11bbbd093ebbf003b0c34564e21f38de
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-10-28 15:37:06 +00:00
Leena Miettinen
3ffee8213d Clang Tools: Fix UI text
Change-Id: Ib2f6f548bbd778e585385315174f5fecb60b7f5a
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-10-28 15:21:09 +00:00
Leena Miettinen
5b943b6e7a CMake: Fix UI text
Change-Id: I5bf6e8a67bb09500502b4d35e227354390a3be19
Reviewed-by: Leander Beernaert <leander.beernaert@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2019-10-28 15:20:54 +00:00
Cristian Adam
5649e3ec7e CMake: Configure fix for qtcdebugger
Change-Id: Ie7921fd37c60876c91e5009cd48f16ff69ba8674
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-10-28 14:31:36 +00:00
Tim Jenssen
ca15e1ed0c QmlDesigner: add 3d assetimporter plugins
macdeployqt was not enough because this is a runtime dependency

Change-Id: Idde6db46a4761288aec364cc83969a533e69816b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-10-28 12:48:56 +00:00
Christian Kandeler
0d81e90bb1 Wizards: Fix ComboBox implementation
The ComboBoxField class used the QComboBox view's selection model as the
source for the current value, which makes no sense, as the item that was
last selected was not necessarily activated by the user.

Fixes: QTCREATORBUG-23149
Change-Id: I8587dd20381e142b91f13a987e54c86b8f6237c8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-10-28 12:14:18 +00:00
Thomas Hartmann
6b17cd91a6 QmlDesigner: Use transactions in 3D Edit View
We send a ValuesModifiedCommand 'immediately' when the item is moved.
This means the 2D form editor and property editor update
while moving nodes in the 3D edit view.
The updates are 'compressed' by 100ms. This is to avoid performance issues.
The timer could be reduced to 50ms or even 10ms, but 100ms feel
acceptable at least for me.

The code was a bit refactored.
Qt5InformationNodeInstanceServer::modifyVariantValue() can be used later
to update other Vector3D based properties like rotation and scale.

There is one issue left. MouseArea3D emits 'onReleased' only after the
mouse is moved again. This delays the 'commit' of the transaction which
is annoying and can triggers bugs.

Change-Id: I834a1e2658278ff8dd39678f39e51735dee91b65
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2019-10-28 10:58:35 +00:00
Robert Loehning
523352f52d CppEditor: Fix grammar
Fixes: QTCREATORBUG-23138
Change-Id: Idc874a25a2e3c18a802350d253fbd4908cdfcc93
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2019-10-28 10:50:03 +00:00
The Qt Project
3f74b04c30 Merge "Merge remote-tracking branch 'origin/4.10' into 4.11" into 4.11 2019-10-28 10:44:20 +00:00
Eike Ziller
a546e3a9cc Merge remote-tracking branch 'origin/4.10' into 4.11
Conflicts:
	src/libs/utils/fancymainwindow.cpp
	src/plugins/projectexplorer/msvctoolchain.cpp

Change-Id: I7aaeeb4f96c95fefd4944c083c1ddf9a19cd81d6
2019-10-28 11:43:06 +01:00