Commit Graph

67787 Commits

Author SHA1 Message Date
hjk
4486f78e49 Android: Check existence of debug server binary before upload
Debugging will fail later, better catch the problem early.

Change-Id: I973ff346db718e2050f5aafab068717d4e723fa6
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2020-04-29 13:31:08 +00:00
Christian Stenger
b5d41b7ab2 AutoTest: Fix tool tip handling on settings page
Remove the stray tool tip information of the ui page and
explicitly set one where missing.
Fixes that widgets without an explicit set tool tip had
the wrongly placed one as a derived property.

Change-Id: I0d8bb8a8c39590205a3559a6c66842bc2fd5048f
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-04-29 10:31:18 +00:00
Christian Stenger
4aa2598790 Doc: Add information on using Catch2 tests
Add information on creating and specifying settings for
Catch2 tests.

Change-Id: I6d658f670aa9c066076cf33315ab17302d9cf36c
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-04-29 10:31:07 +00:00
Christian Stenger
8806ae3bdf AutoTest: Fix output handling
Connect to the correct signal to explicitly react on
output coming on stdout.
Necessary as we are changing the read channel while
processing output.

Fixes: QTCREATORBUG-23939
Change-Id: Ibf62de62fb64bd9c2395f93643e39d11d5b4e0d5
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-04-29 10:30:52 +00:00
hjk
3d674f7c22 Modeling: Avoid more QStringList slicing when creating QList<QString>
Change-Id: I067d187b83e4f810c17ac1636e72f0d914d1ea35
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-04-29 09:15:27 +00:00
hjk
26b409c610 Modeling: Avoid undefined behavior
With vector based QStringList there's no sequence point between
decrement and assignment.

Drop the assignment, it's unneeded anyway.

Change-Id: Ib88008ec4e3ddada3807ca41fbcc0c981cef5fe3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-04-29 09:13:10 +00:00
Tim Jenssen
1d5b54f1c8 Merge remote-tracking branch 'origin/4.12' into qds-1.50
Change-Id: Ie6bbc48ea0ac9f2ce983825685b4e9b87ec5083d
2020-04-29 10:59:09 +02:00
Cristian Adam
f6042b257d CMake Build: Fix for building with Qt6
Qt5: :moc target is being used, and it had no alias.

Change-Id: I1350507b14089d70c64ed6632e6dcce8c4881f0f
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2020-04-29 08:57:14 +00:00
hjk
f80715a8ca AutoTest: Use QMap::keys() return type directly
Instead of a derived one.

Change-Id: Ibe6261b94d8158b8678bd2523144fd806a71914f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-04-29 08:41:24 +00:00
Vikas Pachdha
662c224bab Fix crash with sorting library items
Strict weak ordering relation for the comparison was not followed.
Using shared_ptr and removing QSharedData. The entry data is shared
between instances

Task-number: QDS-2011
Change-Id: Idfcd23b2d458f9c7cada47180cb6ab3b4b090416
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-04-29 08:37:07 +00:00
Thomas Hartmann
934a7188d6 QmlDesigner: Fix clipping issues
Always clip the instanceRenderPixmap against the bounding rectangle.
Sometimes the bouding rectangle is updated after the pixmap.
Painting outside of the bounding rectangle creates artefacts.

Task-number: QDS-1945
Change-Id: I496c4436780eb0455df968d0d30ca2682e93a9ff
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-04-29 08:36:18 +00:00
Thomas Hartmann
c01fef0a78 QmlDesigner: Fix bindings in metainfo file
Since the parser update the string
is not escaped anymore.
Which to me is the more correct behavior.
We have to remove the escape characters
ourselves.

Task-number: QDS-2019
Change-Id: I5d03e99ab87b27bfcb22170138b96e50f646e5e4
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-04-29 08:36:00 +00:00
Venugopal Shivashankar
91f696b3f3 Doc: Fix the new project template's group name
Task-number: QTCREATORBUG-23858
Fixes: QTCREATORBUG-23858
Change-Id: If4493b9c5e3b017097c52797f14f3bc507275e61
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-04-29 08:33:44 +00:00
Eike Ziller
8f9ac46e2a Use new filter engine with Qt 5.15 also when building with CMake
Amends 9ca7326d90

Change-Id: I4eb36abbb61f3356ebdeb199f4245fd7465cc88f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2020-04-29 08:24:28 +00:00
The Qt Project
38da0ecee9 Merge "Merge remote-tracking branch 'origin/qds-1.59'" 2020-04-29 08:05:31 +00:00
Denis Shienkov
02b9d9b7a2 BareMetal: Auto-detect IAR toolchain for Renesas 78K architecture
This patch implements auto-detection for the 78K toolchain,
provided by IAR Systems:

 * https://www.iar.com/iar-embedded-workbench/#!?architecture=78K

Change-Id: Idef5e8982984c0cf24c120d31af0f6cee210694b
Reviewed-by: hjk <hjk@qt.io>
2020-04-29 08:05:27 +00:00
Denis Shienkov
e4b889802e BareMetal: Auto-detect IAR toolchain for Renesas RX architecture
This patch implements auto-detection for the RX toolchain,
provided by IAR Systems:

 * https://www.iar.com/iar-embedded-workbench/#!?architecture=RX

Change-Id: I3f00ca525fef8b0ce989f1e0f97857446d04449c
Reviewed-by: hjk <hjk@qt.io>
2020-04-29 08:05:10 +00:00
Denis Shienkov
d5f107bb54 BareMetal: Auto-detect IAR toolchain for Renesas RH850 architecture
This patch implements auto-detection for the RH850 toolchain,
provided by IAR Systems:

 * https://www.iar.com/iar-embedded-workbench/#!?architecture=RH850

Change-Id: I15f54026b052be7b84a96f9c43a32b83ea499f38
Reviewed-by: hjk <hjk@qt.io>
2020-04-29 08:04:47 +00:00
hjk
04d0e09568 Modeling: Avoid QStringList constructor when creating QList<QString>
This avoids slicing, is shorter, and will do the right thing no matter
what the QList/QVector/QStringList discussion will end up with.

Change-Id: I3e317e1677f3942aacf83401324f7022bd164823
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-04-29 07:46:13 +00:00
Marco Bubke
dacea667ed QmlDesigner: Add ChangeLanguage command
Change-Id: If79de7d04717ad81af05411e61c262b9ff70129b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-04-29 06:17:34 +00:00
Eike Ziller
fd527a4828 Fixup Core::Command API documentation
Adaptions to multiple shortcuts feature and minor corrections.

Change-Id: I70f89036f292920d894d3bb760199004fc99ade8
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-04-29 06:09:27 +00:00
Thiago Macieira
4259772314 Fix deprecation against QProcess::start splitting overload
Change-Id: I9709abb1c3734e10a7defffd1607e6d198bbf964
Reviewed-by: hjk <hjk@qt.io>
2020-04-28 18:45:09 +00:00
Thomas Hartmann
39249bd91d QmlDesigner: Fix font section
Change-Id: I48b772c5ae81fe7bfe9f5d21f0eca20954827c50
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-04-28 15:01:30 +00:00
Tim Jenssen
53d161c98e Merge remote-tracking branch 'origin/qds-1.59'
Change-Id: I8a5d7d98b4d75379fe3953fe00bdb939d1722676
2020-04-28 16:18:24 +02:00
Denis Shienkov
96934b9eeb BareMetal: Auto-detect IAR toolchain for Renesas V850 architecture
This patch implements auto-detection for the V850 toolchain,
provided by IAR Systems:

 * https://www.iar.com/iar-embedded-workbench/#!?architecture=V850

Change-Id: I89c2b2ab87f0b32af4e25e77b8a3b6381481c4cc
Reviewed-by: hjk <hjk@qt.io>
2020-04-28 14:04:00 +00:00
Eike Ziller
e9661e43cb Merge remote-tracking branch 'origin/4.12'
Conflicts:
	cmake/QtCreatorIDEBranding.cmake
	qbs/modules/qtc/qtc.qbs
	qtcreator_ide_branding.pri
	src/libs/qtcreatorcdbext/qtcreatorcdbextension.cpp

Change-Id: If6963d1ef7b5a1ea6343f68c8e7ce6fb5f482f21
2020-04-28 15:48:36 +02:00
Aleksei German
7f1b42f371 QmlDesigner: Accept key modifiers while resizing
Task: QDS-2017
Change-Id: Ided02c5c6600c035ac4bfc3b857910e5850305ed
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-04-28 13:31:31 +00:00
Miikka Heikkinen
7300f6344a QmlDesigner: Fix property handling for QVector3D properties
QVector3D properties were not consistently handled. Sometimes they
were handled as QVector3D and sometimes handling expected
a subproperty (e.g. scale.x). Made handling more flexible in a couple
of places to fix various issues caused by this.

Change-Id: Iacd08b1687efc1fab35742ed1aafda9a8712756b
Fixes: QDS-1881
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-04-28 12:02:39 +00:00
Eike Ziller
05f746cfd0 Add script for building external plugins for packaging
Also turn off PCH for building Qt Creator and add some more options for
local testing.

Change-Id: Ic05099ef1dd8e8c78b174d7cd07a83b2f4a9cbb5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-04-28 11:21:19 +00:00
Alessandro Portale
6efed7140b share: Remove qtcreator/welcomescreen
Left-over from when the welcome screen was still implemented in qml.

Change-Id: I94c187d820440568e198f1fcaa09f67d2c688bcf
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-04-28 11:08:37 +00:00
Tim Jenssen
c10914204a Merge remote-tracking branch 'origin/qds-1.50' into qds-1.59
Change-Id: Ida988ba118b8e39b4dd05c53f45de6863aef8871
2020-04-28 11:56:16 +02:00
Tim Jenssen
6c2ae3519e Merge remote-tracking branch 'origin/4.12' into qds-1.50
Change-Id: I9bc1f87c3ab4a5ff0c84efa05d22763b8a1084c3
2020-04-28 11:53:38 +02:00
Leander Schulten
794f3a5f55 DoxygenGenerator: Ignore attributes in declarations
Otherwise the doxygen generation will not work.

Change-Id: I07889d84c179ec0ad931d9790f9270ebbd6d259d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-04-28 09:41:49 +00:00
hjk
1352ec636f Debugger: Simplify 'long long int' to 'long long' in display
This also fixes the StdMap test case with LLDB 9.0.0

Change-Id: I0e4580b7e64d62664a81fd75a5e142717bf3563a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-04-28 09:14:07 +00:00
Alessandro Portale
185f03cb33 McuSupport: Identify existing Kits for MCU Targets via meta data
... instead of just by kit name.

Although the Kit name is quite verbose, it is missing some of the
information needed to realiably identify Kits for MCU Targets. Use the
Kit meta data for that, instead.

This adds the color depth to the kit meta data.

Change-Id: I39bc9a681a423a4309290b0f47298dbcb83b2e54
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-04-28 08:51:41 +00:00
Eike Ziller
fc94174bf7 CMake build: Fix copying & installation of resources
- just copy & install whole directories, like the qmake build (basically)
- copy & install scripts/ only on macOS
- do not copy or install welcomescreen/ which is no longer used

Fixes: QTCREATORBUG-23907
Fixes: QTCREATORBUG-23909
Fixes: QTCREATORBUG-23911
Change-Id: I0f9016848d15b214c40f454f39c5560d1faa4f32
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-04-28 08:50:51 +00:00
Christian Kandeler
d3be54bcd1 QtSupport: Add QtTestParser to the list of output formatters
... when creating a run control for a Qt project. Now tasks will appear
in the issues pane for QtTest application output in the app output pane.

Task-number: QTCREATORBUG-22665
Change-Id: I2674f3d4f9aabc0a4db4178dcd5495b822f14022
Reviewed-by: hjk <hjk@qt.io>
2020-04-28 08:45:49 +00:00
Jeremy Ephron
7982c440d5 Debugger: Fix STL map size bug on Windows
Fixed a bug in obtaining the size of STL map with MinGW 32/64. Retrieved
the size directly rather than unpacking the size from the data (which
is not present in on Windows). Tested for compatibility with LLVM/LLDB
on macOS.

Change-Id: I4d836d6288465e82d694de0405965586683c1355
Reviewed-by: hjk <hjk@qt.io>
2020-04-28 08:25:04 +00:00
Cristian Adam
5dfdeec389 CMake: build fix for unittests
Change-Id: I1ead13e7b764a346ac49004ead2bf9ab6362ffb5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-04-28 07:10:11 +00:00
Eike Ziller
106e0430ed Bump version
Change-Id: Ieb662d20d5bba2e410039bcdeb2459129601187a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-04-28 06:11:58 +00:00
Tobias Hunger
9f92acf223 QmlPuppet: Fix build
You can not use a variable in a lambda without capturing it.

Change-Id: Iada3e40c70c0584c82a5c95a40f64164ca533aed
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-04-27 18:47:34 +00:00
Marco Bubke
0e1870368c Sqlite: Add Sqlite::Value
It adds a layer if you don't know if the type is integer, float or string.
It does not handle bytearrays here because so far there is no need. There
are two classes, Sqlite::Value and Sqlite::ValueView. Value owns the
string, ValueView holds only a view the string. So there is no allocation.
It is designed to hold Utf-8 string like Sqlite but it can be easily
converted in and from QString or QVariant but mind about that this is not
free. ValueView has no constructors on perpose because it would be
ambiguous if there would be constructors for the other primitives of
the Sqlite layer like "int64", "double" and "string view".

Change-Id: Ia39364eb2fc1998e5c59fdb4316add22c748507d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-04-27 18:17:11 +00:00
Philip Van Hoof
a6f69d6142 qmljs: Use Utils::onFinished instead of manual QFutureWatcher
Change-Id: Iad6b958cb87ea5d4edaa270c27fac5ffdc334bba
Fixes: QTCREATORBUG-20243
Task-number: QTCREATORBUG-18533
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2020-04-27 16:29:46 +00:00
Philip Van Hoof
ba171172e4 qmljs: Make the QMLJsPluginDumper asynchronous to avoid eventloop hangs
Change-Id: I3f6e6acaaf3781d86a0fa5fb100219f92b70f0b5
Fixes: QTCREATORBUG-20243
Task-number: QTCREATORBUG-18533
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@qt.io>
2020-04-27 16:28:09 +00:00
Christian Kandeler
b1352fb044 Modeling: Remove unused class member
Change-Id: Ic243ace9fd27920c9c16b116e3e8139c04be1057
Reviewed-by: Jochen Becher <jochen_becher@gmx.de>
Reviewed-by: hjk <hjk@qt.io>
2020-04-27 15:22:17 +00:00
Christian Kandeler
5c65b953c8 Nim: Remove unused class member
Change-Id: I29a3ea22dbaf39c14a24c34e0afd163db2a45b77
Reviewed-by: hjk <hjk@qt.io>
2020-04-27 15:20:25 +00:00
Thomas Hartmann
0a240be6bf QmlDesigner: Fix SelectionContext::hasSingleSelectedModelNode
This one should use AbstractView::asSingleSelectedModelNode.

Change-Id: I6bddd62866d50cbda087924bf55446b6cd087085
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-04-27 13:31:41 +00:00
Thomas Hartmann
cef36248ee QmlDesigner: Fix crash
Since we call updateItemSelection via a timer, there is
no guarantee a model is attached.

Task-number: QDS-1939
Change-Id: I37bf40cf3d6a057a8bc695d0d0ec73b6cf17fdb5
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2020-04-27 13:30:50 +00:00
Thomas Hartmann
18dfb7d42b QmlDesigner: Rename member
Change-Id: Ia4f249b39b14dc18def62f4d275e3fd1f9f2b0bc
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-04-27 13:27:53 +00:00
Thomas Hartmann
a0385503d5 QmlDesigner: Use proper icons in FlowEditor
The icons are part of the icon font.

Change-Id: I5f501ebf74561429738b5b2d4fd007ca22cd7e2d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-04-27 13:27:41 +00:00