Commit Graph

67787 Commits

Author SHA1 Message Date
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
hjk
d26d9250b2 QmakeProjectManager: Use StringAspect for effective qmake call
... in QmakeStep.

Change-Id: Idf8ef37f99e08cd3462af4e4dd2b1639f82694df
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-11-05 16:08:45 +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
hjk
3ab54e91b1 QmakeProjectManager: Use ArgumentsAspect in qmake step widget
Change-Id: I7e12a571841f85f80c6439d5e7e834ff7c53305d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-11-05 14:59: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
hjk
b1d3eee42d ProjectExplorer: Set focus to TargetSetupPage when shown
This ensures the "Configure Project" button can be activated
with <Return>

Fixes: QTCREATORBUG-20720
Change-Id: Ia20848cf2b4a1a2fcd33f9652a9a09796fd85c54
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-11-05 12:52:22 +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
hjk
95c13eecda ProjectExplorer: Fix typo in ArgumentsAspect documentation
Change-Id: I634e0126a3286df8343b061a2056f97f10ce67f1
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-11-05 12:33:23 +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
hjk
08f3696f21 ProjectExplorer: Add shortcut to "Configure Project"
Note that this does not work with 'Return' immediately, as the focus
is usually on the left tree view in that situation. <Tab>, <Return>
work.

We can try to switch the focus by default in a separate patch if
that is wanted.

Task-number: QTCREATORBUG-20720
Change-Id: Iffbf7f2c1493947b847fd9c89e86b4de56a65543
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-11-05 10:19:47 +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
Alessandro Portale
aadc28a924 ProjectExplorer: De-duplicate two overrides of ToolChain::makeCommand
They originally were identical, but already started diverging.

Change-Id: I977f0e54d1ba308bbeddd775ac0e903f6f359234
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-11-05 09:58:36 +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
Nikolai Kosjar
888ea6bbbb CppTools: Take "-include" files into account
Fixes: QTCREATORBUG-20602
Change-Id: Ibfc518fc64ed75f93265db800558ec1d2e424bb4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-11-05 08:49:24 +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
hjk
c05ad9a951 Debugger: Allow copying only selected lines in stack view
Fixes: QTCREATORBUG-24701
Change-Id: Ica81a4e96bc5d888efca4307f91ebdca2488003a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-11-05 08:39:21 +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
Alessandro Portale
c5544c30f2 WebAssembly: Fix Qt 5.15 for WebAssemby ABI detection
The Qt 5.15 for WebAssembly binaries published via the Qt SDK installer
have a different binary format. Like in previous versions, the static
libraries are in the "ar" format. However, the packaged .obj files, from
Qt 5.15 on, have the '∖0asm' magic number.

Fixes: QTCREATORBUG-24891
Change-Id: Idc6004dfc0949280a1d5f257c462d094fa51f5a6
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-11-04 10:24:50 +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