Commit Graph

66760 Commits

Author SHA1 Message Date
hjk
81c4d59346 FakeVim: Fix use of implicit QChar(int) constructor
Change-Id: I79a778a1e32dae8b2c1f7d49d4c4e655cf51b1fb
Reviewed-by: Lukas Holecek <hluk@email.cz>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-11-06 14:59:33 +00:00
Leena Miettinen
df15c95fe9 Doc: Fix navigation for the Images topic
Change-Id: Ic47bab541276817ff29d5f4fa04c46cc3ebb1e87
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-11-06 14:45:47 +00:00
Leena Miettinen
750bddf286 Doc: Describe image properties
Describe the properties of the AnimatedImage, BorderImage,
and Image types.

Fixes: QDS-2850
Change-Id: I0f31f75454fb20442ddedc41f6613aeb3168cecd
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-11-06 14:24:34 +00:00
Leena Miettinen
0d01ff7f68 Doc: Add data model, view, and delegate properties
Describe using Qt Creator/Qt Design Studio to edit data
models.

Move Path View and Svg Path docs to the new topics using
\include files.

Fixes: QDS-3030
Change-Id: I1ea09e133a4f1fe20c6e89a6323158eb1ce16c33
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-11-06 14:15:23 +00:00
Christian Kandeler
4ad078b73a CplusPlus: Try harder to find a class
... when looking up a member function for categorization.
Contrary to our expectation, the first entry in the lookup results is not
necessarily the best fit.

Task-number: QTCREATORBUG-24894
Change-Id: I1ba6dbebeecd8c4a24fa53194996271339018d9c
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2020-11-06 13:45:38 +00:00
Assam Boudjelthia
d604d5da18 Android: fix passing ANDROID_SDK_ROOT for CMake
Task-number: QTBUG-87991
Change-Id: I70ed0709caf339324af8c233f311a2db2945006e
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
2020-11-06 10:58:32 +00:00
Christian Kandeler
06b653879f ModelEditor: Guard project pointer in queued connection
We cannot assume that the project pointer is still valid when event loop
execution continues.

Fixes: QTCREATORBUG-24893
Change-Id: I9a3f7a3fae45a04054da6f81c1c8e3181f658de4
Reviewed-by: hjk <hjk@qt.io>
2020-11-06 10:56:13 +00:00
Henning Gruendl
6a1f51b195 QmlDesigner: Add button to component specifics
* Add a button to component specifics for simpler access to the
  component. Currently it is only possible to access a component via
  the context menu "Go into Component" or shortcut F2.
* Add image template
* Fix other templates
* Cleanup component specifics and introduce nested sections

Task-number: QDS-3062
Task-number: QDS-2358
Change-Id: I6b245b013fbf4b960509b0a357ae62d20e0383cc
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-11-06 09:52:29 +00:00
Miikka Heikkinen
50405d7153 QmlDesigner: Fix 3D material preview when QtQuick3D is not imported
3D material preview is not dependent on QtQuick3D import in the open
QML document, so we can enable it even when QtQuick3D is missing.

Change-Id: I5cb35ef403599704684ebe87c81cd949f828ad00
Fixes: QDS-2912
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2020-11-06 09:21:33 +00:00
Henning Gruendl
f2883c19b1 QmlDesigner: Add lock feature support to 3D editor
Added lock feature support for 3D editor. Also refactored the hide
support, since the two use largely similar logic.

Task-number: QDS-2915
Change-Id: I627848f3a3a73881427a03aeec6793fd26a1885a
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-11-06 09:19:05 +00:00
Aleksei German
3d78fef4ef QmlDesigner: Rotation Tool
- Added Rotation Tool to Form Editor
 - Rotation Tool is activated on items corners
 - Supports alt and shift modifiers
 - Works with MCU projects
 - Uses new rotation icon

Task: QDS-2881

Change-Id: I9905968b7ac31d008184e343294fbd33cdb45c1c
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-11-06 09:12:49 +00:00
hjk
1dd7595e60 LanguageUtils: Fix an implicit conversion to QChar
This here looks like an actual bug discovered by having QChar(char)
explicit in Qt 6.

As the code is unused, no visible change is expected.

Task-number: QTCREATORBUG-24098
Change-Id: I890cf1634f5c6e1ed6230644cdb34e899d437878
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-11-06 09:04:40 +00:00
Eike Ziller
3ec8169137 Utils: Don't derive BaseAspects from QList
Use composition instead.
Exporting classes (on Windows) that are derived from QList doesn't seem
to work with Qt6, and it can be argued that composition is to be favored
anyhow.

Task-number: QTCREATORBUG-24098
Change-Id: Icc18fac6680fa09e50b60ed676265e85ee00a89e
Reviewed-by: hjk <hjk@qt.io>
2020-11-06 08:59:15 +00:00
David Schulz
30b6147e80 Debugger: fix dumper for msvc release builds
... for std::vector and std::string.

Change-Id: I5c823b6c1b7b510344eeea4e1d5db0791d5c8e53
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-11-06 08:13:35 +00:00
Eike Ziller
e101e83f84 Do not try to deploy QtQuick1 imports
We don't ship them with Qt Creator since a longer time now, and in Qt6
they are completely gone.

Change-Id: I7c6b1da1782cb641e17b2d1c7ff764dd81e15ee6
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-11-06 06:57:10 +00:00
Andre Hartmann
86a5f81414 Git: Fix initial focus in LogChangeDialog
Make it possible to use the cursor keys
without having to click into the list first.

Change-Id: I47861a5a1df7cbfe65a020299b0455e5833492d5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-11-06 06:27:21 +00:00
Christian Kandeler
bf53fc292d Utils: Fix qbs build
Change-Id: Ic8dc9240b0d2bcb1af82373f657fc4ef759cd14c
Reviewed-by: hjk <hjk@qt.io>
2020-11-06 05:41:48 +00:00
Christian Stenger
f2b5c29494 Tests: Fix linking of test project
Avoid fail to link when using Qt5.15.1 and MSVC 2017.

Change-Id: Ief4edce7490c4828c46033c7a055acb6173c94e1
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-11-06 05:22:02 +00:00
Christian Stenger
52c48ed232 CMakePM: Improve error output handling
This avoids a soft assert for a missing description
and correctly prints the error on the Issues pane.

Change-Id: Ieaeacf404b4a5b323bac215af72877480f627cf8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-11-06 05:21:41 +00:00
Assam Boudjelthia
33b06f5b81 Android: avoid adding ANDROID_ABIS to the project file
Use buildSystem::property()/setProperty() to keep track of the
selected ABI and avoid polluting the *.pro file with it.

Task-number: QTCREATORBUG-24674
Change-Id: I5516a77c9f2d1a8975045e1d7c383e72c52db9d7
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2020-11-05 17:08:46 +00:00
Jarek Kobus
291991f1d2 Compile fix in serialize_container when building with Qt 6
After bfc6e2d69d2514f7b4e889d08475972eb2f340a6 in Qt 6
we have a different signature of QList::append when QList
is instantiated with a pointer to type (T *). After the change
we get QList<T *>::append(T *), and before we got
QList<T *>::append(T * const &). This breaks the code in
serializer.

In addition, get rid of warning: "use of function template name
with no prior declaration in function call with explicit template
arguments is a C++2a extension". In order to fix it, we explicitly
declare the full function signature and let compiler choose the
right overload of attr() function template.

Change-Id: I4132a1307faa9a6bd1b585251a6bb5189a0b1764
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-11-05 16:59:55 +00:00
Eike Ziller
d24c34c747 cmake build: Disable refactoringbackend and pchmanagerbackend
Disable the libs and executables if not needed by either the plugins or
by the tests.

So far in the cmake build the ClangRefactoring and ClangPchManager
plugins were disabled by default, but the backend executables were still
built. With this change the executables are not built if the plugins are
not enabled, like it is the case in the qmake build.

To make it possible to build all the tests even though the plugins are
disabled by default, the backend libraries are still built if tests are
enabled.

Change-Id: I3b61479525e1472a55215f1b003fea9facaf9e93
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2020-11-05 15:11:39 +00:00
Assam Boudjelthia
4035fc2433 Android: update Sdk tools links and build-tools version
Fixes: QTCREATORBUG-24621
Change-Id: Id1b11452631612bc2b03af1d23cb78bc9b439316
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
2020-11-05 14:47:34 +00:00
Marco Bubke
6364692e15 Utils: Move set algorithms to Utils
So it can be used in other plugins which does not depend on clang.

Change-Id: I80b9f44609921951444e13c5fd35476c047ad579
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-11-05 13:46:02 +00:00
Thomas Hartmann
938d9d919b QmlDesigner: Only restore auxiliary data the first time
Since we only save auxiliary data when the document is saved,
we would otherwise override removed auxiliary data.

Task-number: QDS-3075
Change-Id: I22c6ea6be1ecda4b0323a58d8ce3e8963c194266
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-11-05 13:42:08 +00:00
Miikka Heikkinen
b48fc5ae4f QmlDesigner: Initialize visibility correctly for form editor items
Change-Id: I00663d2a2d5e109fde01dfec281d67552ca7ddb8
Fixes: QDS-2913
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-11-05 12:44:09 +00:00
Johanna Vanhatapio
8f69e3d317 Doc: Add the Optimal 3D Scene to examples
...and link to Creating Optimized 3D Scenes.

Fixes: QDS-3020
Change-Id: I666afca460e9e0e3afb2b612780f486a094cb45c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-11-05 10:42:07 +00:00
Christian Kandeler
7ac879a133 ProjectExplorer: Add some global variables for the active project
Fixes: QTCREATORBUG-24878
Change-Id: I401300e72a546fa53a53b9b0098956a973f8de2e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-11-05 10:00:21 +00:00
Christian Kandeler
3418f09da7 CppEditor: Do not omit template types
... when rewriting an argument of a refactored function.

Fixes: QTCREATORBUG-24892
Change-Id: Iddc6d1787155885d0a8150b1afdb4eaecd6f3a6b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-11-05 09:49:46 +00:00
Jarek Kobus
34c97ac868 Fix a build with Qt 6
In Qt 6 implicit conversion between QFuture and other types
is forbidden. Make it explicit instead.
See ff0ba7e2d7b91fd5809cb314935a1ca1a436f6c9.

Change-Id: Ie42e6b9b5047ba5eeec9f63fd03179e73f95314d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-11-05 08:46:43 +00:00
Miikka Heikkinen
8ffd3d20a5 QmlDesigner: Add support for specifying extra files to library entry
Extra files specified in the ItemLibraryEntry will be copied to the
same directory as the qml doc.

Change-Id: I6f10e7ba8114355cbf68bc4b306f0500a81dbad2
Fixes: QDS-2635
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-11-05 08:38:26 +00:00
Jarek Kobus
c0408ed52e Compile fixes with Qt 6
Change-Id: Ia5335bef6aeaff3ce12339db52d96793ff588824
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-11-05 08:14:55 +00:00
Eike Ziller
eeb9856064 cmake build: Fix disabling of documentation targets
Change-Id: I8827dcc38c908ef9e19b9a59bb9559d29b0ff77e
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-11-05 07:27:21 +00:00
Christian Kandeler
98499e7caa CppEditor: Do not offer generated QObject functions
... in "create implementations" quickfix.

Change-Id: Ie8aa00e432afdf1338d4897ad211c15fef753404
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-11-04 14:19:04 +00:00
Thomas Hartmann
7899035c05 QmlDesigner: Add float as animatable type
Task-number: QDS-3041
Change-Id: Idc5001c3af1631668ac8c9b6f7e3ecc26aa0802f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-11-04 13:42:45 +00:00
Thomas Hartmann
0d6792fbfb StudioWelcome: Update tutorials
Change-Id: I7c5dad8a355dca562a7046d05dd71089f3d60d79
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
2020-11-04 13:42:39 +00:00
Christian Kandeler
de1e12f3af CPlusPlus: Correctly categorize post-increment and -decrement accesses
Change-Id: Id21c13ea58f6747c226d91aff2b00c3409faa880
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2020-11-04 13:24:33 +00:00
Christian Kandeler
a88266798f CPlusPlus: Differentiate declarations with an initializer
... from those without one, and display the former like write accesses.

Task-number: QTCREATORBUG-24894
Change-Id: I5e2d83b2a3ec4735054441c346687f97eeb039fb
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2020-11-04 13:02:52 +00:00
Christian Kandeler
cf6757406d CPlusPlus: Properly categorize usages in if statements
Change-Id: I5f6e5fa14ea51cd9e61a9e2e96c110ca618be429
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2020-11-04 13:02:34 +00:00
Eike Ziller
8527cbedcc Fix more compilation issues with Qt6
Various Windows related issues and issues with additional QML designer
components.
Don't use very generic template definitions if the type has to provide
not so generic base functionality (in this case providing a stream
operator for QDataStream).

Task-number: QTCREATORBUG-24098
Change-Id: Id0729c249d1b81e4e939fdaeb2e02b8a64e7e8f9
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-11-04 12:52:17 +00:00
Henning Gruendl
241b45005a QmlDesigner: Update icon font
* Add rotation icon

Change-Id: Id1a0ae47edc10370c44fdc39082a2cd0bc9be4cb
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Aleksei German <aleksei.german@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-11-04 10:36:28 +00:00
Aleksei German
e5783fb6d0 QmlDesigner Fix for semicolon
Change-Id: I2cf3fa6186f7baaf05d243ef4e7d67e88469b5d9
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-11-04 10:30:35 +00:00
Mahmoud Badri
1bb89a5e8d QmlDesigner: Fix font list drop down
Fix: Font dropdown is empty and doesn't show neither default nor custom
fonts.

Fixes: QDS-3043
Change-Id: I1df179a1627b3a0f9d72004b5d970f09425ab472
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-11-04 09:42:48 +00:00
Mahmoud Badri
b1920cbb85 QmlDesigner: Fix SpinBox not respecting bounds on first load
Fixes: QDS-3047
Change-Id: I82fc39b7644cb5ef83a2c0e90b3e9121915c38be
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-11-04 09:31:04 +00:00
Aleksei German
9a73a1da0f QmlDesigner: Fix for PropertyEditor in MCU project
- Fixed bug with childless items properties

Change-Id: I660dc8d82d693c7e1b3f0e94fa040d61675df6f8
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-11-04 09:30:27 +00:00
hjk
e8e5f4e7be Some Qt6 compilation
Change-Id: If31ea0ec979969b034a1b0617e0c122b2968acd7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-11-04 07:12:42 +00:00
Henning Gruendl
658803379a QmlDesigner: Fix DoubleSpinBox drag functionality
Change-Id: Ic998b16c34d0b0d81b97b5883860cfe0f892818c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-11-03 18:48:19 +00:00
Henning Gruendl
f8808f6e9d QmlDesigner: Fix SpinBox input mouse selection
Task-number: QDS-3046
Change-Id: I27c8aac145157d050cb9cb70120670c6af31bd87
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2020-11-03 18:48:02 +00:00
Assam Boudjelthia
cb34bfc493 Android: add line breaks to new AVD warnings
Change-Id: Ie533c468717674959060c7732952892086f37640
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-11-03 15:10:00 +00:00
Assam Boudjelthia
54667ae51c Android: disable Ok button for new AVD dialog if there is error
Change-Id: I626e80f540e42d726f37cd4802a14a32fa46595d
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-11-03 14:30:13 +00:00