Commit Graph

47434 Commits

Author SHA1 Message Date
Marco Bubke
208ebd6043 QmlPreview: Fix crash at shutdown
Seem like it get a nullptr project at shutdown.

Change-Id: I76d9f4b2b90b0641d645cb413f9ebfe678bb1c9f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-08-10 12:55:26 +00:00
Marco Bubke
e43c7fdb1d QmlDesigner: Split messaging and process for puppets
This will make it easier to implement custom puppets. The new connection
manager will restucture the code and it add a mechanism to capture data
too.

Task-number: QDS-2529
Change-Id: I5d15c3303ef1c9a3e25ba197d350e0d561ce813a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-08-10 12:53:30 +00:00
Christian Stenger
bf00fd93a2 GlslEditor: Robustify version detection
Change-Id: I91a702ecec151f8331139b21d9a1b8c0939e6e4f
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-08-10 12:43:39 +00:00
Christian Stenger
256c239ad1 CPaster: Make dpaste use SSL permanent
Change-Id: I8c3238c2efcfac1e1a4cf718e09a2f862be85b9b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-08-10 12:37:35 +00:00
Christian Kandeler
7cd9699766 CppEditor: Fix following signals/slots in old-style connects
... if the first argument is a call to a function returning a pointer to
QObject.

Fixes: QTCREATORBUG-13265
Change-Id: I12c2d07331a0c6dca56ad55c518240fd74be3dca
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-08-10 12:30:28 +00:00
Christian Kandeler
c6a56cce28 CppEditor: Do not omit the function return type
... when rewriting an argument of a refactored function.

Fixes: QTCREATORBUG-13698
Change-Id: Ifb569a290d3c46944d17a73a19400833e5ba7fe9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-08-10 12:07:54 +00:00
Christian Kandeler
d9eb3dc5a4 CppEditor: Do not re-indent existing code
... in "Complete Switch Statement" quickfix.

Fixes: QTCREATORBUG-12445
Change-Id: Ic168f5b434b81d2b5f5a0d344d6c6786a75d07a5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-08-10 12:02:11 +00:00
Christian Stenger
acadee710e ProjectExplorer: Do not pass invalid regex to match
Change-Id: I9917c9fa7a79132c253269efde90976e18f9b805
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-08-10 10:55:33 +00:00
Andre Hartmann
d273a5bc5f PathListDialog: Increase initial dialog size
Especially on Windows systems, paths can be long.

To avoid resizing the dialog on each open, just
make it larger by default.

Change-Id: I3803ee6f930e0c27f3d8841fff025d1641bb216e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-08-10 09:44:14 +00:00
Andre Hartmann
6d6938c69f CustomParsersSettingsPage: Add hint for enabling parsers
Change-Id: I55b16e8079ac4c3d495485ba23eb71b4ca2caec0
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-08-10 09:43:50 +00:00
Marco Bubke
b5d59c75a7 QmlDesigner: Fix bool handling in the list model editor
Task-number: QDS-2581
Change-Id: I47a9ed4ca55532bb7199a6c5dd4894b7adb7d05d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-08-10 09:40:34 +00:00
Marco Bubke
b4027b7943 QmlDesigner: Fix crash for list view model
There was a type, so it crashed. The code is now under tests so we cannot
break it anymore.

Task-number: QDS-2563
Change-Id: I81426a9f8a568b217b7bf9c8c261b24be14ff61a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-08-10 09:40:26 +00:00
Marco Bubke
97cc02b781 QmlDesigner: Fix typo bug
Change-Id: I074beda7dc5fa6dc2775e764983bf72e17ea90cf
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Michael Winkelmann <michael.winkelmann@qt.io>
2020-08-10 09:40:15 +00:00
hjk
2bda74b46f Incredibuild: Do not rely on metaobject classnames for build steps
The preferred interface are step ids, #include'ing other modules
*constants.h header is considered ok for siblings in the core
distribution and does not create run time dependencies between plugins.

Change-Id: I0421936068b459c1aea61e23310f860d8ed1f0d4
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-08-10 09:33:14 +00:00
Christian Stenger
63823a55ac AutoTest: Display relative path for file nodes
Using the full path for the file nodes may be quite long
depending on the location of the project.
Display its name relative to the project directory or the
parent group node instead.

Fixes: QTCREATORBUG-24374
Change-Id: I4ce57a0940008d99c51e63c2265a371a0ffe20ef
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-08-10 08:24:38 +00:00
Orgad Shaneh
354f628052 Git: Filter out commits according to active remote
... in the Push to Gerrit dialog.

Fixes: QTCREATORBUG-24436
Change-Id: I2f1ab49d9fbeb09ffb66de23d34a2facd53cb725
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2020-08-10 05:51:33 +00:00
Christian Stenger
c25a40f6ed AutoTest: Fix possible crash
Do not access list items if there are none.
Amends 502ad9badb.

Fixes: QTCREATORBUG-24421
Change-Id: I2982f675bba36eac98cb116acf64472a9f415977
Reviewed-by: hjk <hjk@qt.io>
2020-08-10 05:13:41 +00:00
Orgad Shaneh
be16ac2371 Git: Avoid translation of git commands
Fixes: QTCREATORBUG-24390
Change-Id: I9bb041045d6adf0ae91f6d22723846f058662275
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2020-08-07 13:32:14 +00:00
hjk
e04b9a5348 IncrediBuild: Rework CommandBuilder
Simplify interfaces. Also persist all command line settings,
make overriding default arguments explicit.

Change-Id: Ifb7e791dfc07ae9a88cfd769b9d21c5ee242e31d
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-08-07 13:02:51 +00:00
hjk
f00b088a1d IncrediBuild: Finish buildstep aspectification
Change-Id: I7135ff47e4c117bf8917cfbd7c90b1e0ba527145
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-08-07 12:45:52 +00:00
hjk
52b2ca55c9 Replace QT_USE_FAST_{OPERATOR_PLUS,CONCATENTION} by QT_USE_QSTRINGBUILDER
QT_USE_FAST_CONCATENATION doesn't do anything nowadays.

Using QT_USE_QSTRINGBUILDER is the same as QT_USE_FAST_OPERATOR_PLUS
for QStrings and enables more QStringBuilder use for QByteArrays.

Change-Id: Ibd297817c50d86661d47822799f989447249af1b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-08-07 12:45:03 +00:00
hjk
e69d90bc1a ProjectExplorer: QPointer guard for OverrideMakeflagsAspect's widget
As for the other aspects.

KitManager::kitRemoved() triggers several actions in a fragile (wrong?)
order: BuildSettingsWidget::updateBuildSettings() after
Target::handleKitRemoval() already destroyed the target with all
configurations and steps.

Having a null there is fine.

Change-Id: I2e10826c12971a25ee4cbab24ef5327fa6e47499
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
2020-08-07 10:44:29 +00:00
Christian Kandeler
68dcd02640 QmlDesigner: Fix various compiler warnings
-Wdangling-else
-Wdeprecated-declaration
-Wunused-function
-Wunused-parameter

Change-Id: Id655b6c9c043e2049e921b05619f596b3641bdbd
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-08-07 10:21:36 +00:00
Thomas Hartmann
8b04c7ff0c QmlDesigner: Warn if no properties can be animated in transitions
Do not fail silently.

Change-Id: Id8470f8b81a75dc660906ed53538e75563068527
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-08-07 09:37:57 +00:00
hjk
242af33430 ProjectExplorer: Use a real label for the extra BoolAspect checkbox label
And show a tool tip also there.

Noticeable e.g. in the "Incredibuild for Windows" buildstep checkboxes.

Change-Id: Iebabda6fb025596aa9dbc7c917c4bdbeb25a1a8d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-08-06 14:41:21 +00:00
Christian Kandeler
89eb33dd67 CppTools: Use consistent sorting in the two outlines
Use case-sensitive sorting in the side bar outline, just like in
the editor outline.

Fixes: QTCREATORBUG-12714
Change-Id: I9d8243c61fcceb6e3d7b55e3b27fa5d20accccea
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-08-06 14:04:57 +00:00
hjk
1a50b685ff Incredibuild: Introduce a CommandBuilderAspect
Covering the remaining bits in the buildsteps.

Change-Id: Ia1c51eb14c92bd377b7b5d6ddbd4658e9adc1b89
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-08-06 10:40:10 +00:00
hjk
5327b91e99 IncrediBuild: Rework BuildConsoleBuildStep
Change-Id: I7ab8bc18c229e1d748dbbc494b2ba254085c0e0e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-08-06 09:20:21 +00:00
hjk
9c930ac744 Meson: Cleanup mesonprojectplugin.*
Some unnneded code + final.

Change-Id: Ied2a29d20c624b8e5e2eefb56253b0412554ad44
Reviewed-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-08-06 07:47:43 +00:00
Alexis Jeandet
4dfb6f8c74 Meson: Add file watcher to keep QTC project in sync with introspection data
The most common case is when building triggers a new configuration process
which changes introspection data.

Change-Id: I7b23df4089898bb66a634b29809775d26011b315
Reviewed-by: hjk <hjk@qt.io>
2020-08-06 07:44:03 +00:00
hjk
632f102424 IncrediBuild: Rework IBConsoleBuildStep
- partially move towards using ProjectConfigurationAspect infrastructure
- fix display of default make arguments
- code cosmetics

Change-Id: I5ce3eb531c65b53d66411e959bcf79408418d5a1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-08-05 12:02:54 +00:00
hjk
7f2b062045 ProjectExplorer: Use LabelPlacement::InExtraLabel as default in BaseBoolAspect
Change-Id: Iba1d44bf01b7364ce3b3787528fee184872d6927
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-08-05 11:12:12 +00:00
hjk
8245cd2c52 ProjectExplorer: Add BaseStringAspect::setToolTip()
Change-Id: I120b52ef0bc3a3ad180e739df353855cca4ffb8b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-08-05 10:54:14 +00:00
hjk
74b6e90b15 ProjectExplorer: Add LayoutBuilder::addRow() convenience function
... and use it in the DebuggerRunConfigurationAspect.

Change-Id: I1079f1a307d5e4b286d32570c48299d296fa3061
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-08-05 10:53:50 +00:00
hjk
2b10727625 ProjectExplorer: Make LayoutBuilder aware of aspects
Change-Id: I3091808309904eeadf5001a68438a9b501dd9fc7
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-08-05 10:53:33 +00:00
Christian Kandeler
6a5cc268d2 Core: Fix crash on exit
We accessed a reference after removing the value from the container.

Change-Id: Idfb97093b7a23ba04e5cb0582c81031f431dce88
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-08-05 10:13:23 +00:00
Orgad Shaneh
3552c95980 Git: Make Add Branch dialog wider
Give it enough space for subject-based branch names.

Change-Id: If6ace5434903553330e802ff41f92083b0aee874
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2020-08-05 08:56:08 +00:00
Orgad Shaneh
7919fd550a Git: Replace subsequent invalid characters with a single underscore
... in the Add Branch dialog.

Change-Id: I7644cba6bf58316431e2daa9db5d2c26823c2711
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2020-08-05 08:55:01 +00:00
Orgad Shaneh
14e3a379c1 Git: Suggest branch name based on the commit subject
... when the checked out commit is not a remote branch.

Fixes: QTCREATORBUG-24006
Change-Id: I175a3aedba88bd9e3b5cf298c5c161c56e9d0acd
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2020-08-04 20:23:45 +00:00
Christian Stenger
1de507a710 QmlDesigner: Replace QRegExp by QRegularExpression
Task-number: QTCREATORBUG-24098
Change-Id: I7cc6093b8275435f941bf4d9de59128570d90420
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-08-04 11:02:15 +00:00
Robert Loehning
e4c1d52e88 BareMetal: Fix article
This also unites this with the nearly same string in
simulatoruvscserverprovider.cpp

Change-Id: I48930456f038577869ffade787e549fc396c365e
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-08-04 08:18:28 +00:00
Christian Kandeler
e04577c517 PerfProfiler: Fix qbs build
Change-Id: Ic4552c6ccaf04d2d46dd736e0f5ada3e2fcda874
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-08-03 13:41:30 +00:00
Henning Gruendl
d1aabbe262 QmlDesigner: Fix change type to include signals
* Fix the change type dialog to also include checking for signals
* Add check for same type
* Add dynamic properties and signals

Task-number: QDS-2562
Change-Id: I34652e702d9051fb5a237afae584e345c731622f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-08-03 12:56:27 +00:00
Henning Gruendl
c113a7e851 QmlDesigner: Make use of states in ADS icons
* Add the on state to the tab close QIcon to have a different color in
  focused tabs
* Make the tab close icon checkable if FocusHighlighting is enabled to
  exploit the QIcon state for the color change
* Adapt the focused font color in the dockwidget stylesheet

Task-number: QDS-2558
Change-Id: I9fdfb93f0677f724336da8efdb2fb219af9c9e87
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-08-03 12:55:54 +00:00
Henning Gruendl
520c70bd8c QmlDesigner: Make use of mode for zoom icons
Add mode disabled to the zoom all button in FormEditor widget

Task-number: QDS-2558
Change-Id: Ie0da97cca5ea4c2411e21fc3cbea202397e02097
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-08-03 12:55:16 +00:00
Henning Gruendl
bb79a7fb90 QmlDesigner: Fix duplicate items auto completion
Fix duplicate items in the auto completion result by trimming the
strings. Otherwise items like "Item " and "Item" will both show up in
the result.

Task-number: QDS-2561
Change-Id: I0244fed19cf358d5c72ee169cd8ffa13672edce2
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-08-03 12:51:48 +00:00
Henning Gruendl
9d6f69abe9 QmlDesigner: Sort incompatible properties
Sort incompatible properties before showing them in the dialog.

Task-number: QDS-2560
Change-Id: I9871bc8ea488be04fcfac7b9c0f1a7cbf185072a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-08-03 12:51:22 +00:00
Henning Gruendl
9b249033d2 QmlDesigner: Set unique id as object name
Task-number: QDS-1821
Change-Id: I2021e2862797a40ea82ac4b279e33ba9e77a0dd7
Reviewed-by: Tanja Remes <tanja.remes@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-08-03 12:50:44 +00:00
Robert Loehning
64a641ec6a Use IDE_DISPLAY_NAME
Change-Id: If8ae9399a40a460b535faeec2320d1450e5099c5
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-08-03 09:13:52 +00:00
Orgad Shaneh
4bfdc125ef Git: Sort includes in LogChangeDialog
Change-Id: I7005339456057be7b9c132088f74f243d71bdbff
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2020-08-02 05:01:25 +00:00