Commit Graph

66382 Commits

Author SHA1 Message Date
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
Jarek Kobus
0dcdb43ddb Fix missing documentation when built with Qt 6
The default value for readOnly property of QHelpEngineCore
changed to true in Qt 6. We need to set it to false by hand.

Task-number: QTBUG-87783
Change-Id: I6b0d4f043797463b3437a6aef673eba8e1b9c3ad
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-11-03 12:10:49 +00:00
Marco Bubke
c3873fcf40 Sqlite: Add change set iterator
Task-number: QDS-2998
Change-Id: I7bfa8af51d9d7e6122902ee132ad51019e20afb5
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-11-03 09:19:54 +00:00
Leena Miettinen
3c7ab41e9e Doc: Update info about Android Manifest Editor
Describe package names, styling, screen orientation, and
screen resolution options in more detail.

Update and add screenshots.

Fixes: QTCREATORBUG-24863
Change-Id: Ie365f6c7c634e2035a50666fe35785df56e44596
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2020-11-03 09:18:00 +00:00
David Schulz
fc39cf18e1 Debugger: fix debugger in modified python environment
We do not want to pick up any python environment variables for the
cdbext python initialization which might change the module search path,
because we already contain the needed python modules in the zip file
next to the extension.

Fixes: QTCREATORBUG-24859
Change-Id: I0d597f42042d249529309263d71b0e740e903a48
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-11-03 05:01:15 +00:00
Eike Ziller
495dee98fc cmake build: Handle turning on/off libraries the same as plugins
Previously the library targets were added, but with EXCLUDE_FROM_ALL.
This had the effect that libraries were not compiled if nothing depends
on them, but lead to various issues: It wasn't possible to manually
control compilation, and it lead to the library targets still being
exported, leading to configuration errors when building external
plugins.

Implement the same mechanism with BUILD_LIBRARY_* as with plugins,
giving complete control.

Change-Id: Idea3371d130593c5c2fdceee374021b6923db0c9
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-11-02 19:10:05 +00:00
Christian Kandeler
89644e4a06 CPlusPlus: Properly categorize usages in switch and case statements
Change-Id: Iafbbdcca23db38d82bbc5bb24a39dac2a6d0a764
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-11-02 16:03:28 +00:00
hjk
9879820864 Debugger: Fix some instructions in manual tests
Compilers are getting better at removing unused code.

Task-number: QTCREATORBUG-24819
Change-Id: I8a677a4057312e9581e520ceae9ae63a2dc8bc43
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-11-02 13:44:49 +00:00
Thomas Hartmann
536bdef0c8 QmlDesigner.Rewriter: Fix regexp
Simply 'x' is a valid property.

Change-Id: Id18edeab60bbc45abcb9ae8937e0f4f4e938279c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-11-02 13:17:43 +00:00
Thomas Hartmann
9496732db5 QmlDesigner: Fix and cleanup tests
Change-Id: Id26c3447025744619e9bc80da202aaa49be9567b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-11-02 13:17:36 +00:00
Miikka Heikkinen
f166e18bfc QmlDesigner: Fix form editor occasionally failing to load content
It seems that form editor widget gets enabled when design mode is
opened, whether or not the form view is enabled. Therefore we need to
check the view's enable state in FormEditorWidget::showEvent rather
than widget's state to make the form editor content setup properly.

Change-Id: Ie865b98bb4c9f884f9297fe32fbf7ee02455e74e
Fixes: QDS-2926
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-11-02 12:55:35 +00:00
Miikka Heikkinen
b0984dada3 QmlDesigner: Show preview for more image and picture types
BorderImage, SafeRendererImage, and SafeRendererPicture items now show
their images in navigator preview image tooltip.

Change-Id: I52c2f2ab87b3489fdfbbabe52737c5b97b0cf3fe
Fixes: QDS-2921
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2020-11-02 12:55:22 +00:00
Miikka Heikkinen
798e0e623f QmlDesigner: Fix navigator preview tooltip issues
Immediately hide preview tooltip when hovered row changes.
Tooltip follows the cursor as it hovers over the same item.
Fixed the preview image label size.

Change-Id: I16aec577bd68735873517d04eb51d21b7975f2c6
Fixes: QDS-2908
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2020-11-02 12:55:07 +00:00
Miikka Heikkinen
95c27ea4c8 QmlDesigner: Remove "locked" auxiliary data instead of setting it false
Since absence of locked property implies it is not locked, simplify
the auxiliary data by just removing the locked property instead of
setting it to false.

Also remove unused private method ModelNode::removeLocked().

Task-number: QDS-2915
Change-Id: I27904514f168c28138b6311278f60565fc810f00
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-11-02 12:54:39 +00:00
Christian Stenger
873566d743 PerfProfiler: Fix test generated data
Amends 67c800af6e.

Change-Id: I8e8bda0373ec70bda94f2fef74710d6125dfcace
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2020-11-02 10:11:13 +00:00
Alessandro Portale
dca5cb4f14 Don't animate TreeView expansions
Some styles set a QStyle::SH_Widget_Animation_Duration. An animation
does not go well with just-in-time population of the expanded content.
This change avoids that for all TreeViews.

Fixes: QTCREATORBUG-24834
Change-Id: I16ca4c61733d8875e713d7349ed6b99ba37ecf74
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2020-11-02 09:28:49 +00:00
Assam Boudjelthia
7b3accc78e Android: update ndk version
Update NDK version from 21.1.6352462 to 21.3.6528147, the most recent
one.

Change-Id: I0d5f33e78816464c6dab3303488aa353662bff47
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-11-02 08:29:45 +00:00
Eike Ziller
8e69decd69 Revert "ClangFormat: Relax the clang format file a little bit"
That change does an experiment on the clang format file without
discussing the results before. It wasn't tested and discussed on a
larger code base, and ignores tests/manual/clang-format-for-qtc.

Individual ("pre-discussion") experiments with the clang-format file
should be done in a separate experimental version instead (e.g.
somewhere in dist/).

This reverts commit 009c2745e2.

Change-Id: I5f9fa50d2ccc63807218ae5d193a3a0718956576
Reviewed-by: hjk <hjk@qt.io>
2020-11-02 08:10:46 +00:00
Lukas Holecek
4e28aed405 FakeVim: Fix deleting selection on search command-line
Change-Id: Ie01dd84cf87db2d999c10352285c0ee8366aadc1
Reviewed-by: hjk <hjk@qt.io>
2020-11-02 07:56:56 +00:00
Eike Ziller
c135f4a253 cmake build: Fix documentation generation with Qt6
qhelpgenerator moved to a separate package "Tools" which doesn't exist in Qt5.

Task-number: QTCREATORBUG-24098
Change-Id: If7d0d638d6cee27f9154141ca415fb412745d1ee
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-11-02 07:09:40 +00:00
Eike Ziller
1cd87a05b5 Fix build with newest Qt6
Task-number: QTCREATORBUG-24098
Change-Id: I8ced79ecd590dbeeb3038054e75ee0632ca37462
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-10-30 15:17:15 +00:00
Eike Ziller
d54f7b0eb2 Fix building tests with Qt6
Task-number: QTCREATORBUG-24098
Change-Id: I192245125f04f8350597bbe481d80d3f8ba0cae0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-10-30 15:15:25 +00:00
Christian Kandeler
659771f09b Debugger: Provide keyboard shortcuts for "next" and "previous"
... to applicable analyzers.
Rather than inventing separate shortcut categories for all the
analyzers, we make use of the fact that only one analyzer view is active
at any given time, and make them use the same shortcuts for consistency.

Fixes: QTCREATORBUG-20659
Change-Id: Ifa60080def0e6b32395854cff588ab3af9ea33b9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-10-30 12:20:58 +00:00
Christiaan Janssen
9cd5fb927d McuSupport: generate kits automatically on plugin initialization
Fixes: QTCREATORBUG-24354
Change-Id: I26587102bd24d1678707ca1d9160c84149e77c8e
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-10-30 11:07:27 +00:00
Orgad Shaneh
b7c72f8621 Debugger: Do not discard macros when clicking on source mapping
Fixes: QTCREATORBUG-24816
Change-Id: I7e541d3edb7601cf91064ba30059e4a8f0aa6064
Reviewed-by: hjk <hjk@qt.io>
2020-10-30 10:15:23 +00:00
David Schulz
43b25e6d99 Debugger: Fix breakpoint enabling
Change-Id: I496d0b90dd572d4f4949c98d5abe035edfba8d19
Reviewed-by: hjk <hjk@qt.io>
2020-10-30 09:51:12 +00:00
Eike Ziller
acd2aaa0f0 cmake build: Add missing rcc alias for Qt6
Change-Id: I353ded95f8ee8fd263d7a9f830cdcf662a250bd1
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-10-30 09:20:19 +00:00
Christian Kandeler
247a432f74 ProjectExplorer: Fix project window layout restore behavior
Steps to trigger the problem:
1) Start Creator with some fresh settings path.
2) Open an unconfigured project.
3) Observe a normal-looking target setup page.
4) Configure the project.
5) Close the project.
6) Remove the .user file.
7) Re-open the project.
8) Observe a target setup page whose left part takes up almost all the
   space, leaving the main project widget practically invisible.

Conclusion: The configure page does something to the widget state that
breaks the restored layout. I don't know what it is exactly.

Fix: Slightly delay restoring the widget layout.

Change-Id: Id88ea12267a7dd0fe54749c18b0761d0e873d646
Reviewed-by: hjk <hjk@qt.io>
2020-10-30 09:11:31 +00:00
Johanna Vanhatapio
18bd2314fb Doc: Reposition the All Topics link
Fixes: QDS-2961
Change-Id: Ic7f67336a3310c743c7d31ff90506ff4f6db7725
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-10-30 09:02:56 +00:00