Commit Graph

64992 Commits

Author SHA1 Message Date
Christian Kandeler
df0ffd8bb8 CPlusPlus: Fix handling incomplete macro invocations
It looks very much as though the original author simply forgot to add
that return statement.

Fixes: QTCREATORBUG-23881
Change-Id: Ie93d2451bf1b491d01137285f983d657133c81c3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-17 14:40:08 +00:00
hjk
536dd779fc Core: Improve handling of long output chunks
Single chunks exceeding the limit were truncated and then shown
in a single line, potentially resulting in only a few chars if there
was a newline close to the cut-off point.

Now, don't restrict to a single line in that csae.

Additionally elide in the middle, assuming this is a better compromise
than truncating at either end.

Also, make the truncation more obvious, and mention the amount of
elided characters.

Change-Id: I850e2833e7f1f8be0f584d8e4439dd1a64f851d0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-07-17 12:44:41 +00:00
Venugopal Shivashankar
4db32606e0 Doc: Add Qt for MCUs video tutorial
The youtube video demonstrates how
to develop your first app on NXP
i.MX RT1050 device.

Change-Id: Ie706a6ff6a5395816a5ec9daef13c0baad1daf2d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-07-17 08:47:54 +00:00
Christian Kandeler
f905fcea71 Wizards: Fix function parameter type in CppToolsJsExtension
We did not notice because the JS array was auto-converted into a string.
Amends bcc2b5e08d.

Change-Id: I06ee43f78cb3081bdff0a02f8d446326a01bc2d1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-07-17 07:46:08 +00:00
Eike Ziller
a065175d58 CMake build: Fix configuring with CMake 3.10 and external yaml-cpp
CMake 3.10 does not allow using target_include_directories with
INTERFACE on imported targets.

https://gitlab.kitware.com/cmake/cmake/-/issues/15689

Fixes: QTCREATORBUG-24356
Change-Id: I2427276f0851010cda2321c45eff0628713af2ff
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-07-17 06:34:35 +00:00
Eike Ziller
ded5c64d53 Fix deployment of clazy-standalone
On Linux and macOS, clazy-standalone links against some dynamic
libraries which we need to ship.

Fixes: QTCREATORBUG-24344
Change-Id: I4946d2ae22fc9363445e6a3eecb8d9e40be5ef0e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-17 06:23:03 +00:00
hjk
cc7caee133 FakeVim: Fix case insensitivity handling for forward searching
Change-Id: I1f5b13022f3ae06916434b48cf3c6ba6d4722746
Reviewed-by: Lukas Holecek <hluk@email.cz>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-17 06:17:38 +00:00
Christian Kandeler
b20fa85bc0 ClangCodeModel: Fix race condition
... between semantic re-highlighting and document visibility update.
Make semanticRehighlight() a no-op if the document is not currently
visible, and call it explicitly on an editor change.

Fixes: QTCREATORBUG-24290
Change-Id: Ife61f61d3fb82e8b283bf93ab77d16517f6c6f9c
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-07-16 07:48:24 +00:00
Christian Stenger
52a4a83154 Debugger: Remove ConsoleViewStyle
This interferes with the general theming of the output pane
and the purpose is no more obvious.
This patch fixes using a wrong scrollbar style on the
QML Debugger Console.

Change-Id: I4dfeecb77746b345f35809dd5e1bcb27a0fcd604
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2020-07-16 04:26:14 +00:00
Christian Stenger
ec65d43b65 AutoTest: Fix auto expansion of test results
We may add items that have sub-items already, so apply
the expansion to them as well if necessary.

Change-Id: Ibff4433c5a7c0a110461e46998cd39864f4ec929
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-07-16 04:25:53 +00:00
Christian Stenger
9d16d735ab Debugger: Do not send empty message on shutdown
This triggered a soft assert in DebuggerEngine::showMessage()
and cleaning up the status bar is not necessary at all.

Change-Id: I12d3d5cbc79f178af58ecb0a5c7a3130c880bdad
Reviewed-by: hjk <hjk@qt.io>
2020-07-16 04:25:35 +00:00
David Schulz
ac2c487e2e LSP: Use document contents to collect search result texts
Otherwise search results in modified files will get wrong line texts.

Change-Id: I7be4b27ebc5b250da3a3a0050de8646bcfcd010b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-15 06:56:38 +00:00
David Schulz
8541650096 Debugger: disable load qml stack action for cdb
Since collecting the qml stack relies on calling functions it has a high
risk of getting stuck in that call at least with Qt 5.15. Never the less
I added the correct function in the cdbextension so when the action
get's re-enabled in the future we already start with an updated
extension.

Task-number: QTCREATORBUG-22209
Change-Id: I535f8db5a64ae48b4163d9b67e133cc3de338432
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-14 12:44:15 +00:00
David Schulz
cda204aa34 Cdbext: Fix fetching partial variable
Avoid calling PyValue::childCount as it expands the values in front of the
partial variable recursively. This outdates scopeEnd as it is fetched
before the items are expanded, which again results in a too early return
from that function.

Fixes: QTCREATORBUG-24108
Change-Id: I0848cde88c6ff8019a4ab22ac1153598c20e563d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-14 12:44:00 +00:00
David Schulz
2ad3a02150 QMake: highlight REPC qmake variables in pro files
Fixes: QTCREATORBUG-24346
Change-Id: I07b8533b58233f15224341d1e9544f21a4fc2047
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-14 12:43:44 +00:00
Orgad Shaneh
b4d5ab2fb5 README: Bump LLVM version in build instructions
Change-Id: I3321d422f109f8f9c96adef2f944415ce2ec9569
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-07-14 08:15:25 +00:00
Eike Ziller
eac46f7f24 Bump version to 4.13 beta2
Change-Id: I836987b4c4e28c65cb67c2efba595ed92d071b6a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-07-14 07:54:02 +00:00
Christian Kandeler
69c8221885 GCC Parser: Recognize lines with "cc1plus"
Change-Id: I73a548b58c96fe944a80e36ee72ea9d3965ca6dc
Reviewed-by: hjk <hjk@qt.io>
2020-07-14 07:47:51 +00:00
Eike Ziller
f4af71a3dd iOS Device: Show some more information in device options
Show iOS device name, identifier, OS version and cpu architecture.

Task-number: QTCREATORBUG-23016
Change-Id: I5fff2986a173800dabc585f17830cc242e436457
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-07-13 12:00:25 +00:00
Eike Ziller
72bf4cd15f iOS: Fix slow debugger startup on devices
We need to pass the path to the device symbols, that Xcode downloaded
for the device's OS version, as the sysroot to the debugger. Otherwise
debugger startup is very slow.

We already tried to do that, but it looks like, depending on the
devices, this path can contain an architecture specific part, e.g.
"iOS DeviceSupport/13.5.1 (17F80) arm64e" instead of just "iOS
DeviceSupport/13.5.1 (17F80)". It can still be just the latter, so we
get the devices architecture information, try the architecture specific
directory first, and fall back to the architecture agnostic name as
before if the former doesn't exist.

Fixes: QTCREATORBUG-21682
Change-Id: I2efdbfda0282f1cf0f8d10bd4e5217a298027fcf
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-07-13 11:55:33 +00:00
Christian Kandeler
bc517e6d92 GccParser: Recognize "required from" as a continuation marker
Change-Id: Iaea98cbccc6aa95e7eeaab23a2ef85a3eaa4b2e0
Reviewed-by: hjk <hjk@qt.io>
2020-07-13 11:54:29 +00:00
Eike Ziller
d3583256ba Changelog: It is Catch2 with a 2
Change-Id: I74b1c29fb0b0e1f865dedde2b3af0fb606ecbad2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-13 09:51:01 +00:00
Eike Ziller
92cd8e6005 Android: Use re-usable "copy and ask for overwrite" callable
Change-Id: I73779b5eaeebbd44fa6333f067adf220ddd77be4
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-07-13 08:22:04 +00:00
Eike Ziller
7496136992 Utils/copyRecursively: Avoid copying of copy helper instance
The function took a const reference to a std::function. When passing
some other callable object, this leads to a copy, which is bad if the
callable is supposed to carry along state.

Change-Id: Iedc22644fb0f314b15de0eaaa7c0b2e73dd30f38
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2020-07-13 08:20:40 +00:00
Christian Stenger
df49d6e40d AutoTest: Persist check state to project settings
Make it easier to switch between projects and restore
the former check states of the found test items if
we have these information.

Change-Id: I99a5357388c36aa8cce6f5f82184d6ab2a8bf6e8
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-07-13 06:26:12 +00:00
Aleksei German
8c97f870b9 QmlDesigner: Add Singleton support to Connections
Change-Id: I07eae4e381f172d7c6a23ee5b7e13273afa788b9
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-07-10 17:14:53 +00:00
Thomas Hartmann
c0d4127d70 QmlDesigner: Add remove group action
Task-number: QDS-2228
Change-Id: I4174a51b3de1c7ea82b69b85bef19e62a878aa28
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-07-10 16:30:02 +00:00
Assam Boudjelthia
5bb462e070 Android: fix app logcat not always displayed
Fixes: QTCREATORBUG-23919
Fixes: QTCREATORBUG-23177
Task-number: QTCREATORBUG-23291
Change-Id: Ib053a15f2fd8e491a581268f3630725593186a47
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2020-07-10 13:05:30 +00:00
Henning Gruendl
2fa261c132 QmlDesigner: Move zoom buttons to FormEditorWidget
* Move the zoom all and zoom selection button to the FormEditorWidget
  taskbar
* Add zoom in and zoom out actions/buttons
* Fix ZoomAction in and out direction
* Add update icon font

Change-Id: I9addba5652cafa5884450bc633a1e16087aae8dd
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-07-10 13:00:18 +00:00
Christian Kandeler
4aba3da7bd CompilationDatabase: Fix unit test
Amends be97943372.

Change-Id: Ic840f5eca8a83b5bdf3e3864e8859234472911b7
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2020-07-10 12:57:45 +00:00
Mahmoud Badri
f3bc2d609f Add/remove the simulink component when the import is added/removed
Task-number: QDS-2122
Change-Id: Ib4e2ff14ed9cfef1534f9c3edb0a8279fbabfd6a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-07-10 11:48:44 +00:00
Henning Gruendl
c898152621 QmlDesigner: Add change type name dialog
* Add a change type name dialog showing all incompatible properties
* Fix ExpressionTextField triggering twice on pressing enter
* Fix compare operator

Task-number: QDS-1946
Change-Id: Ic384f6dcce44297b43839c17874108b39af909da
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-07-10 10:10:02 +00:00
Henning Gruendl
58ea14aea7 QmlDesigner: Controls 1 cleanup
* Replace ScrollView Controls 1 with ScrollView Controls 2
* Replace TabView with TabBar and StackLayout
* Remove unused styles
* Replace Controls 1 imports
* Remove print statement in FontSection
* Fix layout width by correcting CheckBox width
* Remove TabView from QtObjectPane

Task-number: QDS-2454
Task-number: QDS-2455
Task-number: QDS-2456
Change-Id: I913d326afb012375dd5b804171cb8cd67681514c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-07-10 10:09:48 +00:00
Richard Weickelt
245c9c760f Update qbs submodule
To HEAD of 1.17 branch.

Change-Id: I9cb01480d72d3d6132c80449ac2da5e18dc6c7f4
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-07-10 08:40:15 +00:00
Eike Ziller
255609d787 Update 4.13 change log
Change-Id: I2d87a104bc0a4a90a8da644686545bc093689e0d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
v4.13.0-beta1
2020-07-10 07:03:32 +00:00
Christian Stenger
502ad9badb AutoTest: Correct completing test run configuration
Ensure all possible project parts are taken into account
when gathering build system targets.
When having multiple possible build system targets for a
test - which may easily happen e.g. when defining tests
beside the main application inside a big top-level
CMakeLists.txt - let the user decide which one to run.

Fixes: QTCREATORBUG-24268
Change-Id: Ia7b7e4148fe8e8dab55832c435f12cc78f5c2f7a
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-07-10 05:06:58 +00:00
Christian Stenger
cd1a848e16 AutoTest: Fix wrong caching of text layout
The text layout must get recalculated also when the width
of the underlying model index has changed.

Fixes: QTCREATORBUG-24236
Change-Id: I4ded56832c765320b6845cf35ad61453875dad50
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-07-10 05:06:47 +00:00
Thomas Hartmann
3db5f4a2af QmlDesigner: Output slot names in debug view
Change-Id: Iad37f28e85818228ca264f53c7757a1ff6a0e183
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-07-09 18:21:14 +00:00
Christian Kandeler
782ca5d8d8 Clang: Fix error when including float.h with mingw
Prevent mingw from trying to #include_next a private header from a path
we cannot add to our list of includes.

Fixes: QTCREATORBUG-24251
Task-number: QTCREATORBUG-24027
Change-Id: I18a9db130b9c2265cd208c3506d08d2e1c4cee45
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
2020-07-09 17:24:16 +00:00
Thomas Hartmann
d964e91432 QmlDesigner: Remove curly braces from states code
This is not required and looks ugly.

Change-Id: Id0e5adabaff2cd16fb8e457e93a2ee71fb323416
Reviewed-by: Aleksei German <aleksei.german@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-07-09 14:04:13 +00:00
Christian Stenger
1929c38a9f Clang: Fix handling of paths inside common pri file
contains() expects a regular expression as value, so using
a bare windows path may be a bad idea.
Beside this fix the LLVM_INCLUDEPATH which is reported wrong
already by llvm-config.

Change-Id: I95aa3e461541099aac6607c4a8db8a38f9b2b0f6
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2020-07-09 12:47:40 +00:00
Alessandro Portale
72484ae691 ClangTools: Fix icons in the DiagnosticsView context menu
"Online" instead oof "info"
Foreground-colored variant of the filter icon.

Change-Id: I88cd824632de4152b4b9153403bd0512417d46dc
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-07-09 10:01:59 +00:00
Christian Kandeler
31f427a3a6 qbs build: Fix linking ClangFormat on Windows
Apparently, the MSVC linker gets confused if an input library
("clangFormat.lib") has the (almost) same file name as an output library
("ClangFormat.lib"), even though the latter is specified with an
absolute path.

Change-Id: Ia76e60fd10e16ce8daff880f4005d40d7f20d08c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-09 09:31:30 +00:00
Robert Loehning
ddd9158b03 German translation: Avoid ambiguous shortcut overload
D clashes with "Datei".
E clashes with "Erstellen".
B clashes with "Bearbeiten".
U clashes with "Auswahl in Kleinschreibung wandeln".
G clashes with git shortcuts

Change-Id: I2d13eb45f73847526b896420510bdba196949787
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2020-07-09 09:05:14 +00:00
Christian Kandeler
4c02f807c1 MSVC: Use proper codec for vswhere output parsing
Fixes: QTCREATORBUG-24311
Change-Id: Ifeefd51ddc9f3eb738ee2649328209ed3494f9a5
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
2020-07-09 07:52:24 +00:00
Thomas Hartmann
9410c7a575 QmlDesigner: Adjust priority of template merger
Task-number: QDS-2488
Change-Id: Iac6fc179e2c28fe59c9db7e09f4989c548b3249c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-07-08 16:54:32 +00:00
Christian Kandeler
53b4d6975d C++: Fix highlighting Q_PROPERTY with template types
We override the Q_PROPERTY macro in our own header. This appears to have
two effects:
  1) The macro arguments are properly highlighted.
  2) There is no completion from libclang for Q_PROPERTY, meaning our
     own helpful snippet is the only completion candidate.
I don't understand the reason for either of these; they seem to be more
or less random effects of parsing peculiarities.

As it turns out, our macro redefinition breaks if the type of the
property is based on a template class, leading to false errors in the
code model. Removing our macro redefinition fixes the code model, but
also removes the aforementioned effects. Turning the macro into a
variadic macro fixes the code model and keeps effect 1), but not effect
2). Therefore, we also update the snippet to provide an extra string
that makes it clear this it's a helpful snippt, rather than just a
normal completion.

Fixes: QTCREATORBUG-24243
Change-Id: I4044d5e633af3ebdba36032d5efd3333b5a36214
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-07-08 14:41:11 +00:00
Assam Boudjelthia
59aa4f8033 Android: check forward port exist before removing it
Task-number: QTCREATORBUG-24155
Change-Id: I3675a63d5aa85b8d11be9021d1a79fac1390b26e
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-07-08 09:32:18 +00:00
Christian Stenger
39bd05c159 Android: Fix compile
Amends 3f655815be.

Change-Id: I19cd488322f50b0319ca18c094598f0bce4fcb45
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2020-07-08 09:11:53 +00:00
Eike Ziller
5fa442434a Merge remote-tracking branch 'origin/4.12' into 4.13
Conflicts:
	cmake/QtCreatorIDEBranding.cmake
	qbs/modules/qtc/qtc.qbs
	qtcreator_ide_branding.pri

Change-Id: Icb405079fd601619b506e5c56b6ef465bc0424bc
2020-07-08 11:01:43 +02:00