Commit Graph

50019 Commits

Author SHA1 Message Date
Nikolai Kosjar
986f08b225 ProjectExplorer: Fix a bugprone-argument-comment
gcctoolchain.cpp:667:35: warning: argument name 'target' in comment does
not match parameter name 'originalTargetTriple' [bugprone-argument-
comment]

Change-Id: Ia486759521b274102d52df9276507a0d72e10e89
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-01 07:16:20 +00:00
Nikolai Kosjar
5218a661a3 ProjectExplorer: Fix a bugprone-suspicious-missing-comma
Change-Id: I40f4eb235970ebb4aeb9ac004bd5ca1c5af7a4c3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-01 07:16:05 +00:00
Michael Winkelmann
9985d623a4 PluginManager is not moc'ed automatically
This leads to a linker error in ExtensionManager because symbols
generated by moc are missing. This caused by an issue with CMake 4.10 /
AutoMoc and Q_OBJECT in a documentation comment.
Instead, headers of PluginManager are moc'ed explicitly.

Change-Id: I2dd655c48d0bf90e178e46655eaa0f2dc1ed8b0a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-10-31 15:44:46 +00:00
Alessandro Portale
e2f82cd57f McuSupport: Add path to shipped clang to build environment
Task-number: UL-1109
Change-Id: I0a79c597c3d4d0377fc6b3da9a8362d70dee85d5
Reviewed-by: Aurindam Jana <aurindam.jana@qt.io>
2019-10-31 15:17:35 +00:00
Alessandro Portale
907c35dc00 McuSupport: Enable and preselect usage of the shipped JOM (on Windows)
- Set CMake generator to "NMake Makefiles JOM"
- Add ICore::libexecPath to environment path
- Set the environment for the run configuration

Change-Id: Ie7b2dc1513b366911b429d77cc4a1954be531075
Reviewed-by: Aurindam Jana <aurindam.jana@qt.io>
2019-10-31 15:16:26 +00:00
Aleksei German
28d2134d46 QmlDesigner Ignore design mode switch
Added combo box in settings that allows user to
turn off automatic switch to design mode for .ui.qml.

Change-Id: I83007494c0e7861e1dd2987393815b1321880c5c
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-10-31 14:31:29 +00:00
Christian Stenger
4d390bfce9 ProjectExplorer: Correct updating targets
A kit may get updated in a way that it now can be
used or has more capabilities than before.
(e.g. setting or changing the Qt version of a kit)

Change-Id: Id4c65fa2d8c334b0ef7d819a70a8df4b6a349a6d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-10-31 14:25:05 +00:00
Nikolai Kosjar
abb0babc58 ClangTools: Fix using correct run settings
Change-Id: Ibf545719bb67857c3ecaaedf2435caa15d592e03
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-10-31 14:07:53 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
Denis Shienkov
0a7b9db9b4 BareMetal: Handle missed stdout error generated by IAR linker
Change-Id: I767363697dc56d9314ff6c34605a907807975864
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-10-28 09:43:23 +00:00
Denis Shienkov
83c6a4d922 BareMetal: Improve IAR parser code a bit
It is makes sense to move a handing code of each
regexp to the separate method to simplify maintenance.

Change-Id: I59d9c23ec1c1c4dabb8de8eb295353b4df072a33
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-10-28 09:43:09 +00:00
Thomas Hartmann
d6b29a89ec QmlDesigner: Add transactions to NodeInstanceView::valuesModified()
Transactions bypass the rewriter and one transaction is one step on
the undo/redo stack.

Change-Id: Icd782389f74bde2b14432b8f854f29bad49a9104
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2019-10-28 08:57:14 +00:00
Tim Jenssen
51991e3a3e WebAssembly: fix crashes
Change-Id: I9a2a44c85a254628f119eb041036492bc3022cdf
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-10-28 06:55:14 +00:00
BogDan Vatra
e3904f3b13 CMake: Add Android Multi ABI support
Change-Id: Ia5b3fcda29705fefca85833ebc28b4154defba5f
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-10-28 05:47:53 +00:00
Christian Stenger
b6aa4e2370 LanguageClient: Avoid problems with old settings
Empty file pattern entries may end up in a match everything
state, so remove them if they are still present inside old
settings.

Change-Id: Ic388522aa152265b5d10a9e334acd3e7b7032be7
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-10-26 12:35:23 +00:00
Thomas Hartmann
a9e9100481 QmlDesigner: Use fuzzy compare for floats
This fixes a soft assert when comparing floats.

Change-Id: Id1626ab0ad2d777e6b67983210becdc8a32a95d2
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-10-25 14:12:46 +00:00
David Schulz
95bd328c31 Python: export Interpreter generator
Change-Id: I591bd6c14706e1699f028a9a3a6dfd9b89eec66a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-10-25 12:50:46 +00:00