Commit Graph

67787 Commits

Author SHA1 Message Date
Federico Guerinoni
3b995f7623 Remove export for class as TODO
Change-Id: I6ffe7b291a63d4f191528185505b02da6c0c9901
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-03-30 07:13:39 +00:00
Eike Ziller
27f6e838ee ClangTools: Add "Analyze Current File" to Tools menu and context menu
Add the action to "Tools > C++" and the C++ editor context menu.

Task-number: QTCREATORBUG-23348
Change-Id: I650e4d10e07ba227c6f89ab660ce7fa81263172e
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-03-30 06:16:37 +00:00
Eike Ziller
99cd623fa7 QmlDesigner: Fix crash when selecting ISO icon
On macOS. Never use dynamic_cast over library boundaries - it may or may
not work, depending on compiler/platform.

Fixes: QTCREATORBUG-23773
Change-Id: I889d35f336ff80e2b1ae3cbe921f7de2fe541bd8
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-03-30 06:10:44 +00:00
Oliver Wolff
faad83d5a3 Android: Make sure that to be accepted licenses are visible to the user
If Qt Creator is not run in fullscreen or the user's resolution is too
small it is possible, that the licenses which have to be accepted are not
visible when the according message box is shown.

In these cases we scroll down to the SDK manager so that it's obvious that
the licenses have to be accepted there and no additional message box will
be shown.

Task-number: QTBUG-79664
Change-Id: Ic24bd8c4457a43011b4035b659063dd45b321bcc
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-03-28 09:25:07 +00:00
Venugopal Shivashankar
68b6b0dd4d Doc: Update the project template screen capture
Also, reorganized the list of project templates
based on the latest UI.

Change-Id: I72f903909946d29ee3c181c926c2857a6da25a5e
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-03-27 16:21:43 +00:00
Leena Miettinen
582b4bd0ae Doc: Update images on the front page
Store the source files in SVG format.

Task-number: QDS-1851
Change-Id: Ife601967b4dffe10c8e48f31365da2d8df9357f9
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-03-27 15:59:27 +00:00
Miikka Heikkinen
ea5b098bc1 QmlDesigner: Fix ItemLibraryEntry serialization
When data is read from QDataStream into Qt containers, it is simply
appended/inserted into the container rather than completely overwriting
the container contents. This isn't desirable when reading an
ItemLibraryEntry object from data stream, as the assumption is that we
want the entry to be exactly what was originally stored into the
stream.

Task-number: QDS-1815
Change-Id: Ifaee244b2b4e7326b6f10fde3faeb5218f505ee2
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2020-03-27 14:40:34 +00:00
hjk
78235d63b4 Autotest: Slim down TestFrameworkManager interface
- sort frameworks at insertion time
- apply the 'static' pattern
- inline code from convenience functions that are only used once on
  the caller side

Change-Id: Ic4a46ad9487c58b4dfd61658a6fccebb88a428a9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-03-27 14:16:48 +00:00
hjk
77c4caf4ea Autotest: Keep track of generating framework in TestTreeItem
... and TestConfiguration. This allows dropping code that
reconstruct framework ids and framework lookup by id.

Change-Id: I0bb1e6e135376e21f96b9fab7971aa097787e483
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-03-27 14:11:11 +00:00
Unseon Ryu
38a7bfe4eb Fix for Pane not being visible in the form editor
Task-number: QDS-797
Change-Id: I4b06aa0e09f78fdd3bb9531cf21441bdae3ee2a5
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-03-27 10:53:08 +00:00
Christian Stenger
223281222d TextEditor: Fix regular expression to wildcard workaround
The used functionality turned out to do not what was expected.
Fix this by a simpler but more correct way.
This silences lots of warnings while running QC when using the
minimum supported Qt version.

Change-Id: I7c659c3cf6c1c090e992822f91bb644eec651ec9
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-03-27 10:01:05 +00:00
Oliver Wolff
a4be1e8b66 Android: Check for usable JDK version in settings
sdkmanager only works with version 8 of JDK specifically. We should warn
the user if a different version is used.

Task-number: QTBUG-79664
Change-Id: I5be8d068e4ec119453654adda1a684dc65b4c631
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2020-03-27 08:55:45 +00:00
Leena Miettinen
e7fcfb74c6 Doc: Describe GDB settings
Fixes: QTCREATORBUG-10831
Change-Id: I68a68f0949c5015ad7642c9e5e005759e7412823
Reviewed-by: hjk <hjk@qt.io>
2020-03-27 08:26:03 +00:00
Maximilian Goldstein
2392f29a59 qmljs: Do not use app.qmltypes and lib.qmltypes anymore
Task-number: QTBUG-82710
Change-Id: I876ec2b8e2b668a239248511b0fbd58389098de6
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-03-27 08:17:07 +00:00
Mahmoud Badri
b9fb5b65f6 QmlDesigner: Enable setting a material's diffuseMap by drag and drop
Dragging and dropping an image from the assets on a default material
creates a texture and sets its source the the image and the applies
the texture to the diffuseMap property of the material making it
pretty straight forward to set a texture on a marerial.

Additionally dropping an image on a texture updates the texture's source
property instead of creating an image object.

Task-number: QDS-1844
Change-Id: I6906851ad070e06a17b1ef7d4321e302bb305d29
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-03-26 18:51:31 +00:00
Tim Jenssen
2246718cac QmlDesigner: why not delay it everywhere
Change-Id: Ic2df04e1e5dc6d1cbf8d01de5e3755df223976cb
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-03-26 17:00:33 +00:00
Tim Jenssen
8b0cece0ba QmlDesigner: remove unclear "clearItems" function
It calls reset this model which is destructing at this moment.
There is no need to delete the items because they are objects
with the model as the parent.

Change-Id: I32be59238ea174faf66ce62ae9cd3ab02812d283
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-03-26 17:00:12 +00:00
Tim Jenssen
91d6214b58 QmlDesigner: introduce DisableItemLibraryUpdateTimer
This is a temporary change to enable better tracing of a bug
which we have for a long time.
Be aware if this is set it can be slow down importing or open
bigger projects/files in the QtQuick DesignMode.

add this under the category [QML] to your settings file:
Designer\DisableItemLibraryUpdateTimer=true

Change-Id: I0919fe18e358e68905eb4a7f4849c6841f26a10d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-03-26 16:59:48 +00:00
hjk
f3c1751965 Autotest: Move Test{FrameWorkManager,Runner} singletons
Make them plugin-pimpl data members, removing some indirections.

Change-Id: Ie441ac94a27f07342513b0b5b1437ccfe4b5d7d2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-03-26 16:46:17 +00:00
Christian Stenger
ca82019cf0 AutoTest: Fix flakyness of plugin test
Relying on the order of tests of the underlying tree
model is bad as we order the model for the user with a
QSortFilterProxyModel.
Using non-unique keys is not wise either.
Ensure the keys are unique to have reliable results.

Change-Id: I556371d018c16e7b03a8ec85d60afc850056a94a
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-03-26 15:09:57 +00:00
Eike Ziller
bac32dc740 Merge remote-tracking branch 'origin/4.12'
Conflicts:
	src/plugins/coreplugin/dialogs/shortcutsettings.cpp

Change-Id: I1f21845350bb69268ca51bc77167a8244adce22a
2020-03-26 15:26:27 +01:00
Thomas Hartmann
9414961206 Fix example
Task-number: QTCREATORBUG-23045
Change-Id: I2cf54a4b6ede3a19d0e5273683f4969d397028ba
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-03-26 10:12:56 +00:00
David Schulz
3719b2931b LanguageClient: Resolve recursive include
Change-Id: I2d365afc71a07e08b26052798fec1ce2c1e63fe3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-03-26 08:34:12 +00:00
Thomas Hartmann
fccdc91e51 QmlDesigner: Do not allow keyboard focus on macOS for puppet
Since we integrated the 3D view no keyboard focus is required anymore.

Change-Id: Ia523e1a6b0c1d0ef9912775a91022f28de47b54a
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2020-03-26 08:27:07 +00:00
Oliver Wolff
b04391619b Android: Fix download link for JDK
sdkmanager only works correctly with JDK 8, so we should not point to the
latest JDK release, but specifically that one.

Task-number: QTBUG-79664
Change-Id: I29dc2d26d41eed96c1abc03907ee835d70b9553b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-03-26 07:33:46 +00:00
David Schulz
03dd165474 LanguageClient: Fix setting trigger chars for function hint provider
Change-Id: Ibd9f647ea6005638a06524aeac9ea64a0632b0d0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-03-26 05:50:44 +00:00
Thomas Hartmann
1290e07819 QmlDesigner.PropertyEditor: Hide action indidactors on controls
Task-number: QDS-1688
Change-Id: Ia96a8d5229b42d9ac0be75273cadfc35b5cef334
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-03-25 18:52:48 +00:00
Knud Dollereder
20e95f2f19 Add the ability to unify keyframe handles
Task-number: QDS-568
Change-Id: I5b102423e8e166d41edf199c42305cee102e8b54
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-03-25 16:11:28 +00:00
Christian Stenger
0b7c4520cd AutoTest: Fix regression in frameworks order
Latest refactorings resulted in possible different orders
for the tree model as well as for the frameworks inside the
project wide settings.
Fix this by sorting explicitly and iterating over the list.

Change-Id: I9b673770b03732820f0ea4f902f3586abd07d51a
Reviewed-by: hjk <hjk@qt.io>
2020-03-25 13:38:55 +00:00
Christian Stenger
540ea616ec AutoTest: Fix handling of GTEST_SKIP
Fixes: QTCREATORBUG-23736
Change-Id: I3d52f3caf6b28e07d7d8d072fb33c782d33575c6
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-03-25 13:38:43 +00:00
hjk
6c1894b893 Qmake: Work around crash
The condition that's checked now triggered when playing around
with changing the JS expression that creating the default build
directory name.

Change-Id: I221be8cefb6918c10c383c23ee7cde73d3683e40
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-03-25 13:29:42 +00:00
Thomas Hartmann
02093f5ab2 QmlDesigner: Draw FlowDecision and FlowWildcard as diamond
Change-Id: Iade9c17d58354ac67ef990bd231325fad3a35fe3
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-03-25 12:28:09 +00:00
Alessandro Portale
23dc065327 McuSupport: Register Qt for MCUs .qch files
At plugin initialization and along with the creation of a Qt for MCUs
Kit (which currently happens when the user presses "Apply"), these .qch
files get registered:

  <Qul_DIR>/docs/quickultralite.qch
  <Qul_DIR>/docs/quickultralitecmake.qch

In order not to duplicate the code for retrieving package paths (e.g.
the one for "QtForMCUsSdk") from the settings, some refactoring was
done.
As a result McuSupportOptions::qulDirFromSettings() has been introduced.
It will be also used in further changes.

Task-number: UL-1685
Change-Id: I82e638e129120cdadcf2f4812f467fce34b32ec9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-03-25 12:05:02 +00:00
hjk
05a0b33146 AutoTest: Simplify TestFrameworkManager
With only four items the hash is not really needed.

Change-Id: Ifc858bc6517e4e0ff46b515a74568742897ddb11
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-03-25 11:24:06 +00:00
Topi Reinio
595085cb71 Doc: Fix more documentation warnings for Extending Qt Creator Manual
Change-Id: I3ba4e6d2f6cfa2c05c0ee7af6db70dcbb80ae725
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-03-25 11:23:19 +00:00
hjk
dd980e23f8 ProjectExplorer: Remove Target::applicationTargets()
That's BuildSystem::applicationTargets() nowadays.

Change-Id: I01cf0a491e4cb289af08f529fd15c85bfcdf5493
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-03-25 10:42:22 +00:00
Robert Loehning
08e5e84c9d Android: Remove pointless line break
Change-Id: I3f8d94cb637c279d7549c819a03233cc8d4aff87
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-03-25 09:44:51 +00:00
David Schulz
b06ad16160 TextEditor: Make accidentally activating a link more difficult again
Only follow links under cursor if control was already activated when
pressing the mouse button. This amends
11eea3aae0 which just checks if control is
pressed after releasing the mouse button.

Change-Id: I90d23dd3e5ff63aac7812fad889ad9fb7c052b56
Fixes: QTCREATORBUG-23745
Reviewed-by: Alexis Murzeau <amubtdx@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-03-25 09:13:59 +00:00
David Schulz
c44681a7d2 Editor: Fix crash after resetting clangbackendreceiver
We must report back to the codeassist under all circumstances

Change-Id: Ic9519c80fb7c6b7e54419cb6fef610e3d73d23bd
Fixes: QTCREATORBUG-23708
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-03-25 08:59:31 +00:00
hjk
699407b4ba Debugger: Create central widget earlier
This ensures the showCentralWidget() call in  restorePersistentSettings()
has something to operate on.

Change-Id: I52e676517cad4e7c3c0e7ca80b8756f937c805a0
Fixes: QTCREATORBUG-23755
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
v4.11.2
2020-03-25 08:51:36 +00:00
Leena Miettinen
a7b7c31c9c Doc: Update info on Python run settings
Change-Id: Ia1da720286205bae18c7a01538430740510b9780
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-03-25 08:22:57 +00:00
Eike Ziller
a6ece1976b Add detailedText to CheckableMessageBox
QMessageBox creates dialogs that are not resizable, so extend our own
message box implementation with that feature and use it for the Plugin
install wizard.

Change-Id: I0e8a2d525894f8c2897b1e4d8ab546a856030c57
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-03-25 06:11:56 +00:00
Thomas Hartmann
cb77d33cc5 QmlDesigner: Improve painting code for connection
* Prefer horizontal connections
* Fix horizontal corner cases

Change-Id: I6867d104a1c97ef8dd8292bebe3e2a782a4ff000
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-03-24 18:32:05 +00:00
Thomas Hartmann
208fbe18c1 QmlDesigner: Implement proper connection of FlowDecision and FlowWildcard
This adds the code to draw connections from and to FlowDecision
and FlowWildcard.

Change-Id: I8f465ac70b92b26ca32eaeb45590e18e7db13693
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-03-24 17:14:23 +00:00
Thomas Hartmann
fbc177282e QmlDesigner: Relax condition
The to item can be invalid in some cases.

Change-Id: I0bd7a3f6ee2dc3aa7981ad266945cdceaaff647a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-03-24 17:14:14 +00:00
Thomas Hartmann
df1a21f92f QmlDesigner: Implement joinConnection
This flag indicates that the connections are ignoring the FlowActions
and connect the FlowItems directly.

Change-Id: I84587700e406d03ed9e30c224d93f46d2367034f
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-03-24 17:14:01 +00:00
Thomas Hartmann
df9081f38e QmlDesigner: Fix crash
Change-Id: I31c6f8ce2b506af6d16887719a39319e6946a161
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-03-24 17:13:46 +00:00
Thomas Hartmann
03aed15fe9 QmlDesigner: Paint indicator for start in flow
Change-Id: I1db165489e89bed1db22433b961caff080b87305
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-03-24 17:13:29 +00:00
Thomas Hartmann
0e2144135c QmlDesigner: Create decision and wildcard items in form editor
Change-Id: Ib33c6fc9bc22885281b7172fe52e5326b6744cf3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-03-24 17:11:48 +00:00
Thomas Hartmann
da6f5c8b7b QmlDesigner: Add FormEditorFlowDecisionItem and FormEditorFlowWildcardItem
Those items are used to represent wildcards and decisions in flows.

Change-Id: I14e55591c01aeb4105f4d0757a0ea2d00392358a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-03-24 17:11:23 +00:00