Commit Graph

61704 Commits

Author SHA1 Message Date
Christian Stenger
652a6da4b3 Baremetal: Fix missing semicolon on Win
Change-Id: I6a2195c680411242a90e86d5be0c2e956ac807c1
Reviewed-by: hjk <hjk@qt.io>
2020-01-28 07:01:52 +00:00
Denis Shienkov
de2fc39aa1 BareMetal: Fix Keil toolchains detection on Windows
A problem is that a latest installed toolchain overrides a previous
installed toolchain. In this case a previous toolchain will be skipped
from the search.

We need to fetch an information from the 'uninstall' registry entry,
which describes all installed toolchains.

Change-Id: I662e2696900909607d5ce618a728804e3683c856
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-01-27 12:48:00 +00:00
David Schulz
5f1fd0caee LanguageClient: keep the project on client reset
It won't be set again when restarting the server.

Task-number: QTCREATORBUG-23497
Change-Id: I28b4c4f9169a2de94d7ea7f6712c3900fd7099ee
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-01-22 11:55:18 +00:00
Christian Kandeler
b59785c4b5 GenericProjectManager: Fix crash updating deployment data
Fixes: QTCREATORBUG-23501
Change-Id: Ia36fe567edf26c293a8db2446d1ee2344b96433e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-01-22 08:59:14 +00:00
Leena Miettinen
c16e205a77 Doc: Describe saving Clang-Tidy configuration as a file
Fixes: QTCREATORBUG-23223
Change-Id: Ia78220bb959e9bafb9101e3f130ab75180c1b816
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
2020-01-21 13:22:20 +00:00
Robert Loehning
68fbd15299 Squish: Remove old hack for the Mac
Change-Id: I8655b8fe5a1a448995a3798fd587a01919129434
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-01-21 10:20:07 +00:00
Christian Stenger
4979b5286e Android: Fix compile for gcc 5.3
Change-Id: I535b5873390910ca2a9963c70ed2912820c1df0e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-01-21 06:36:55 +00:00
BogDan Vatra
12c74e6664 Handle Qt < 5.14.0 androiddeployqt settings file
This file is needed by cmake projects.

Fixes: QTCREATORBUG-23306
Change-Id: Ie0ffd325ca01ac5638620c258d5e8ed5bbd3259e
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-01-20 17:18:36 +00:00
Christian Kandeler
07544d4e07 Android: Fix crash when Kit has no Qt
Change-Id: I419bbb68d1d39fa88ca02fb644218ea78216c1ad
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2020-01-17 12:14:12 +00:00
Christian Kandeler
f1b2120ccb QbsProjectManager: Fix setting qbs.architecture for Android
- Use values that qbs understands.
- Make sure qbs.architecture(s) is set also with no Qt present.

This was broken in 6b31f9cf23.

Fixes: QTCREATORBUG-23489
Change-Id: If7bf8862b850defa04e8f45eace99e08388d780f
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2020-01-17 11:44:01 +00:00
Leena Miettinen
81dfdea37c Welcome: Fix links to Qt Widgets and Qt Quick tutorials
...in Tutorials tab. The source files were moved to Qt Widgets module.
This means that the links will be broken if you are using a Qt Creator
version earlier than where this fix lands with only Qt versions
registered, where the docs are still in qtdoc.

Fixes: QTCREATORBUG-23486
Change-Id: I75b4e8fc475be648790d13466a37250cd649adc9
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2020-01-16 12:59:42 +00:00
Eike Ziller
db39b76c4c Add .tag file for COIN
When COIN retrieves sources, it writes the commit SHA there

Change-Id: Ibe9c1c3594e9b5451211b0ec1598c4a8ca1c54fd
Reviewed-by: Antti Kokko <antti.kokko@qt.io>
2020-01-16 10:07:30 +00:00
Eike Ziller
92a39e8d86 iOS: Fix retrieving USB serial number with macOS 10.15 SDK
When building without explicit compatibility with oder macOS versions
(-mmacosx-version-min), the Apple headers use a different value for the
constant that is used to retrieve the USB serial number, and that just
doesn't work for some reason.

Make sure we use a value for the constant that works in all cases.

Fixes: QTCREATORBUG-23460
Change-Id: Ie7de52a49a41c2ad33b2a6d2410414a9f1f05b1e
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-01-16 09:41:42 +00:00
Leena Miettinen
5f8fe92105 Doc: Describe collecting LTTng data and converting it into CTF
...for viewing in the Chrome Trace Format Visualizer.

Based on a QtWS19 talk by Milian Wolff:
https://resources.qt.io/qt-world-summit-2019/lttng-for-full-stack-tracing

Fixes: QTCREATORBUG-23471
Change-Id: I173aa68e7198c7f13aecb73f28000af02d7ec0ed
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
2020-01-16 08:42:20 +00:00
Orgad Shaneh
5872c60a45 Dumper: Fix syntax error
Change-Id: I8e611b1cb358872d9e0c7302ed8a4d3e0b7d9f3c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-01-16 08:41:59 +00:00
Christian Kandeler
e8a5dcee49 SSH device: Ensure ConsoleProcess respects terminal settings
Fixes: QTCREATORBUG-23470
Change-Id: I0ac67226ee482814cdde44e518651e672be4e0eb
Reviewed-by: hjk <hjk@qt.io>
2020-01-15 13:13:27 +00:00
Eike Ziller
0908447e4f More changes for 4.11.1
And make subheadings better readable in pure text by using
underline-style headings for first two levels.

Change-Id: I9986e884db882000d670afc728a9728495308d15
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-01-15 10:48:11 +00:00
Eike Ziller
82d830e5d8 iOS: Guard against failure to retrieve device UID
It should not happen, but if it happens, Qt Creator should not crash.

Task-number: QTCREATORBUG-23460
Change-Id: Id25b53ff24d7e1726efc344dc6318c32073ee75c
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2020-01-15 08:20:10 +00:00
Orgad Shaneh
833d278dce QmlPuppet: Fix MSVC warning
implicit conversion changes signedness: 'QFlags::Int' (aka 'int') to 'const unsigned int'

Change-Id: I3d906ca079f3f25ceb1e3b8010f0540ae0236081
Reviewed-by: hjk <hjk@qt.io>
2020-01-15 08:10:42 +00:00
Orgad Shaneh
ba20c9134a QmlPuppet: Fix GCC warning
qt5informationnodeinstanceserver.cpp:115:71: warning: narrowing conversion of ‘keyEvent->QKeyEvent::modifiers().QFlags<Qt::KeyboardModifier>::operator QFlags<Qt::KeyboardModifier>::Int()’ from ‘QFlags<Qt::KeyboardModifier>::Int’ {aka ‘unsigned int’} to ‘int’ [-Wnarrowing]
  115 |         QPair<int, int> data = {keyEvent->key(), keyEvent->modifiers()};
      |                                                                       ^

Change-Id: I2f97e9ce11202cee386c2c6b4902c689e3411e30
Reviewed-by: hjk <hjk@qt.io>
2020-01-15 07:28:32 +00:00
Eike Ziller
c22a840b10 CMake build: Fix version number in library file names
Make it compatible with the qmake build, with just the major version.

Change-Id: I3134b21b4775e7e83d135652dd66a51f3bdf91ab
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-01-14 15:39:10 +00:00
Friedemann Kleint
7d096c4828 Fix errors in qtcreator_tutorials.xml
Use &amp; instead of &, fixing errors like:
ERROR Could not parse file as XML document (:/qtsupport/qtcreator_tutorials.xml):160:116: Expected '#' or '[a-zA-Z]', but got ' '.

Change-Id: I49e0846628a2291ce2d256c1a2668e0ad1c954b0
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-01-14 11:51:49 +00:00
Christian Stenger
fefdbdfcd8 Debugger: Do not waste CPU when using LLDB
Fixes: QTCREATORBUG-23311
Change-Id: I5b1c40663c7977322e806af2e0393a3730e70049
Reviewed-by: hjk <hjk@qt.io>
2020-01-14 10:02:13 +00:00
Friedemann Kleint
499115fd94 QtSupport/Example list parser: Improve error message
Output line, column and message.

Change-Id: I1fa0b3da6b20b27ce3e2f66442751ab31e21904b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-01-14 10:01:53 +00:00
Leena Miettinen
9d038362b2 Welcome: Update links to QtWS19 talks in Tutorials tab
Add links to new talks and remove some to older talks.

Fixes: QTCREATORBUG-23406
Change-Id: Iee33afb616072f4d6d7c4dc554873942f10153f7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-01-14 09:07:06 +00:00
David Schulz
69bc021380 Doc: fix ui text from settings dialog
Change-Id: I6c085cf8d555821850ade56785ce1181a09ce078
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-01-13 15:02:00 +00:00
Henning Gruendl
4a0da87a76 QmlDesigner: PropertyEditor Controls 1 cleanup
Change-Id: I52b83d50a99a7ff24718ed3d99f9ad7cb4415565
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-01-13 14:03:13 +00:00
Eike Ziller
c2398e3067 Prepare for Notarization on macOS
Applications need to be signed with "hardened runtime" for notarization
to be possible

Change-Id: I05eaef8ad32e2f3c56baea82969da8bc891a6afd
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-01-13 08:29:23 +00:00
Leena Miettinen
df60a47cdd Doc: Describe using the binding editor in the Design mode States pane
...to create when statements

Change-Id: Iec56f6aa76478ca1ffc9803df3dffd4cd7196e65
Reviewed-by: Aleksei German <aleksei.german@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-01-09 14:05:37 +00:00
Henning Gruendl
4ad3cdc115 QmlDesigner: Fix tooltip license header
- Fix tooltip license header
 - Remove gui-private from qbs and pri, no longer needed

Change-Id: I80bffccca825be2940dac8b0e07d2861e2f8b3d8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-01-09 11:47:40 +00:00
Eike Ziller
a4055f382c Add changes file for 4.11.1
Change-Id: I4fceef356ff83bcd4bf1e282eaad427feaf80038
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-01-08 19:13:55 +00:00
Marius Sincovici
9165119819 Debugger: Check if m_perspective is valid before using it
When debugging a remote machine using ssh, if the ssh connection returns
an error before other workers are fully started, and it will call
destroyPerspective(). Then the other workers will call setState() when
they are in EngineSetupOk and then in EngineRunRequested.
Before calling select() method check if m_perspective is valid.

Fixes: QTCREATORBUG-23415
Change-Id: Ib174015b1d11cdaa5f59e7ccb012b849d49672f1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2020-01-08 18:00:47 +00:00
Christian Stenger
04b3c56a2b CMakePM: Fix license header
QC uses GPL nowadays.

Change-Id: I6229deb09fadb1f7b1b210ba17ac4d0f3858023d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-01-08 14:10:13 +00:00
Christian Kandeler
4b62f2ebd3 ProjectExplorer: Do not access output window from non-UI thread
Amends b4022f90d5.

Fixes: QTCREATORBUG-23442
Change-Id: I9ef369193f32b06c29f43ed7484cb120e1dfc892
Reviewed-by: hjk <hjk@qt.io>
2020-01-08 11:42:41 +00:00
David Schulz
1ab9dc9464 CppEditor: generate valid code via "Convert to Pointer/Stack Variable"
Adding a "= new <TypeName>" after converting a stack variable without
assignment or initializer to pointer.
Also remove the assignment when converting from pointer to stack
variable as this works better with explicit constructors.

Fixes: QTCREATORBUG-23181
Change-Id: I377ec32a1b66cf4b96db14cfcb4b71fb96c80c98
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-01-08 09:21:25 +00:00
BogDan Vatra
15734ac5eb QBS: Fix template for Android
CppApplication sets usesNativeCode for android which it's needed to compile the C++ part of the application.

Change-Id: Ibf787fecd256e4f90c09b8e3061a23419feb526e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-01-08 09:00:27 +00:00
Thomas Hartmann
cd5f070844 Fix build of qmldesigner tests
NodeInstanceView is build as part of the the test and
cannot have depedencies on core or qmldesigner when build
in test mode.

Change-Id: I5f04ec7ff42fdd0704552c3e791dfabd20fc9317
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-01-08 05:44:57 +00:00
David Schulz
a163bcd8b0 Editor: always set format for visual whitespace
Change-Id: I2ab4cb9f77d649c1c7d51dec1ef11005325a4710
Fixes: QTCREATORBUG-23040
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-01-07 12:28:07 +00:00
hjk
dff4469baf Debugger: Use a more convenient way to create timing samples
Change-Id: I4ca983957c81a1f5f963a85b16a2d1b255b2cd2d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-01-07 12:14:27 +00:00
Henning Gruendl
c2c48598d4 QmlDesigner: GradientPreset cleanup
- Remove Controls 1 imports
 - Rework states
 - Utilize theme values

Change-Id: I2d7b818f450387ad0325aae41aac7f8c1b30ea5f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2020-01-07 11:59:13 +00:00
Henning Gruendl
887058f621 Fix compilation
Change-Id: I98fe164f32bbe8c65a76b853f12ce7765a1c0f7e
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2020-01-07 11:56:52 +00:00
David Schulz
f75c4ea3f1 QmlDesigner: Fix compile after bb02ab161c
and cleanup includes

Change-Id: Ia7f5bb2cb1c0ca18d5bffa3cac9ceea495592910
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2020-01-07 11:39:47 +00:00
Henning Gruendl
59f08de43a QmlDesigner: Fix tooltip build issue
Change-Id: I9513172560c7a2556cf49ed5609ce227d0d7b18f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2020-01-07 09:35:41 +00:00
Mahmoud Badri
bb02ab161c Enable common keyboard hotkey actions for the Edit View 3D
Clicking undo, redo, delete, or save keyboard hotkeys while the Edit View 3D
has focus is working now.

Additionally this commit introduces a generic command for carrying any
variant data from puppet to creator side. This significantly simplifies
and avoids the boiler plate work of sending actions from puppet to
creator side. Current commands can be ported to use this generic
command but this is not part of this commit. Also a similar command to
work the other way around could be implemented.

Task-number: QDS-1266
Change-Id: I40fdf6b215ce77402250a791ea49cbdcd2a9d6eb
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-01-07 09:16:19 +00:00
Andrzej Ostruszka
76eba270bf fakevim: fix indenting of continuation lines
Use tab settings for indenting of continuation lines from current
document instead of using default value.

Task-number: QTCREATORBUG-20876
Change-Id: Ied15226166483dc11672c930145564cf897def19
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-01-07 07:24:18 +00:00
Christian Stenger
b99a495b11 Fix qmake build
Amends 93c668926d.

Change-Id: I26a332036a2ce6ae7f29d495b9a95f516145e9c1
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-01-07 06:29:12 +00:00
Christian Kandeler
307b4fb97b QmlDesigner: Fix build with namespaced Qt
Change-Id: I1dd6da16165f4503da32bebafec6b43074442a29
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-01-07 05:48:08 +00:00
Christian Kandeler
93c668926d QmlDesigner: Fix qbs build
Change-Id: I2c3907f6368160e043a2e848e96f5cea30c407dd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-01-07 05:47:54 +00:00
Henning Gruendl
8687d65353 QmlDesigner: Remove tooltip dependency Controls 1
Task-number: QDS-619
Change-Id: I4e54ac43cd6d3052620a9e5ca48cf1fbc66c6181
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-01-06 14:45:27 +00:00
Henning Gruendl
91b491ffb9 QmlDesigner: Add error mode to ColorLogic
Task-number: QDS-1221
Change-Id: I95009dc3700f3e308280fadaea374e7ba6dfa08b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-01-06 13:25:45 +00:00