Commit Graph

4987 Commits

Author SHA1 Message Date
hjk
a33ed283b5 Debugger: Add a dumper for TNimNode
Change-Id: I62f1a0b07bac22bcc34a47b9848d3c92f25d31f0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-12 10:47:46 +00:00
David Schulz
646b3bd553 Dumper: Fix std map dumper for msvc
And potentially for QNX.

Change-Id: I77f1c9803ff5441394a3d446720a928b12777e6a
Reviewed-by: hjk <hjk@qt.io>
2016-10-12 10:13:43 +00:00
hjk
449a11775a Debugger: Strip references from type displays again
Change-Id: I4b4f48194fad8cd331e9f281b14044e5262b49be
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-12 07:50:01 +00:00
hjk
c938b8d4db Debugger: Always initialize currentNamespace guess
This shouldn't be necessary but the task indicates otherwise.

Task-number: QTCREATORBUG-16965
Change-Id: I6df28c96e0acb3cd3eea56a5a931b36fbd85dcea
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-12 07:35:06 +00:00
hjk
cb7fb51313 Debugger: Fix QML extra stack loading for GDB
Change-Id: I702bb8f183e93fe25857115225fa55607ffb1674
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-12 07:04:56 +00:00
Thomas Hartmann
f175d0c589 QmlDesigner: Add ExtendedFunctionButton to layout flags
The layout flags are a little bit special,
but the users expect a "reset button".

Task-number: QTCREATORBUG-15616
Change-Id: Ie16c4a6c565107179d1dee4a88d25c65849842bf
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-10-11 11:04:49 +00:00
Thomas Hartmann
cba20b9e37 QmlDesigner: Do not allow to export attached properties
While this might be technically possible, I consider this
bad practice and see now reason to allow this.

Change-Id: I1b25e0e4f7c7925005a608e1cb98f5abe240fd50
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-10-11 11:04:35 +00:00
Thomas Hartmann
72ee54a928 QmlDesigner: Allow easy export of single properties
The name is idPropertyName by default, but can be changed
using the dynamic properties editor.

Adding missing qsTr().

Change-Id: I363222620d1ce81c23619e1bc4449ef50357b88b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-10-11 08:23:34 +00:00
hjk
60e4cec473 Debugger: Make createType more flexible for namespaced Qt
Use '@' in type names as replacement for the namespace,
similarly to what the auto tests do.

Change-Id: Idc074f8d47a31cb942a35f3d4fe364d806f9610e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-10 13:53:55 +00:00
hjk
a476da65cc Debugger: Use single quotes in qttypes.py
Change-Id: If5ab0a836fa46465d81ca4c6ea6392c6870be42a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-10 13:53:44 +00:00
hjk
0722b82560 Debugger: Start standardization on single quotes for Python strings
Looks a bit cleaner.

Change-Id: I0bda173a4a8e12419d2b5914b83b54162a453927
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-10 09:58:21 +00:00
Eike Ziller
21258bac46 Merge remote-tracking branch 'origin/master' into 4.2
Change-Id: Ibc8b4de34e6790854d23b829c96a1a128ea0e6a4
2016-10-10 09:25:10 +02:00
David Schulz
832be2ecb8 Dumper: Add MSVC standard string dumper
Change-Id: Iaea8123b3b8aeebd931c5f837ed10f0fba6b23f7
Reviewed-by: hjk <hjk@qt.io>
2016-10-10 06:45:08 +00:00
hjk
e149c0dac9 Debugger: Fix LLDB's field size reporting
Use the field's type size if the reported field size is 0.

Change-Id: I7db49507d0ea7358b6db27dfa206f2b079bbf876
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-10 05:19:10 +00:00
Christian Stenger
71a449a1e8 Dumper: Fix typo
Change-Id: I3f9e9b2b38d4a8af68a6d79bf3c63572ca160db8
Reviewed-by: hjk <hjk@qt.io>
2016-10-07 14:42:53 +00:00
hjk
27e03e6fb6 Debugger: Do not run engines twice
There seems to be race in the LLDB setup on Linux. Work around
by not doing serious work twice to be able to use the test at least.

Change-Id: I387a57d3c66e6c4209bd424af9be16f17acb98fa
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-07 13:06:27 +00:00
hjk
6b2665a180 Debugger: Consolidate dumper state setting
Move all the currentFoo initialization to DumperBase

Change-Id: I0a59715fe1550f466e78cbf678622dd8dfe1783c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2016-10-07 13:04:30 +00:00
hjk
311adfeff7 Debugger: Remove output lock from cdb bridge
There's no threading involved on the cdb/python side.

Change-Id: Ibc1ad6fb5242a86450ca15f65cb57e4cae99d6ed
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-10-07 10:21:56 +00:00
Thomas Hartmann
4f2557e9cf QmlDesigner: Fix build of qml2puppet
If the qml2puppet is build for the custom Qt then
the build failed because of utils/algorithm.h.

There is currently no reason to use utils/algorithm.h
in the puppet.

Change-Id: I4fb2aa2e7df4a5087ff48318cc416b457779c96e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-10-07 10:20:23 +00:00
hjk
479b2c7c1a Debugger: Clean up misctypes.py dumper a bit
Change-Id: I028e2460f5b0e2621872993cfa111f5b20b16e7e
Reviewed-by: hjk <hjk@qt.io>
2016-10-07 09:59:22 +00:00
hjk
54ad874579 Debugger: Restrict Nim sequence dumper to structs
Change-Id: Ibf1dc490a2b93e5d9ca8949e05471043bfed9afc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-07 07:28:55 +00:00
David Schulz
a83d539551 Cdb: Introduce interface for python dumpers
Change-Id: I0ef2fd8a44232d65b0d772fd6c65230266d586a8
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-07 06:40:20 +00:00
Tim Jenssen
83e128c2d9 QmlDesigner: refactor test import code
Change-Id: I4efaaacbbf2de23b8709535a7b9a2446f0a4b90e
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-10-06 15:50:11 +00:00
hjk
e234bbd88b Debugger: Add dumper for Nim's string and sequence types
... and make the auto test infrastructure able to handle
a test. To pass the test, some Nim compiler must be
accessible.

Change-Id: I707aa72c0f3a2ea35c7131cba490cafb41617f6c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-06 13:39:02 +00:00
hjk
21ba1f7b7a Debugger: Allow explicit padding in patterns
Change-Id: I6f2302649cdbcbb9052a6898841c21301dace9e6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-06 13:11:20 +00:00
Robert Loehning
c0193701e9 Update German translations
Change-Id: I33dcbb0e98a961b1f2c75cd4a461e65daa93dd4a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-06 12:52:52 +00:00
hjk
d4ef385d59 Debugger: Improve QJSValue dumper on 32 bit
Change-Id: I18937a92d5202a58d9f3d786c6cc37f8176b2692
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-06 09:18:10 +00:00
Tim Jenssen
0ca288f518 QmlDesigner: fix a crash when there are missing imports
Task-number: QTCREATORBUG-16963
Change-Id: I0d4c2e018b4849b2a32cd77da8c2f979fd3befb3
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-10-05 14:14:11 +00:00
hjk
f036877a0d Debugger: Add internal dumper for Creator's project tree
Change-Id: Iefd439bd56f1273f0610d86ae56e43e655a0c9c3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-05 11:59:52 +00:00
hjk
6913f90384 Debugger: Ditch Dumper.stripClassTag
It doesn't seem to be needed anymore, and if it were, it'd be the
task of the back-end specific fromNativeType() functions to sanitize
type names.

Change-Id: I7c6af40aeacb2dbaaf73143e9fdcc1d866bf3f3d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-04 12:53:52 +00:00
hjk
a215bdace4 Debugger: Fix QObject property dumper for Qt 5.6.0/32 bit
Change-Id: Ie9d4fb069616464cff44909ed30d242741ef3180
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-04 12:53:43 +00:00
hjk
3d357e107b Debugger: Fix QHostAddress dumper for Qt 5.6.0/32bit
Change-Id: I527d2e4fa7c3be9fd0a38694319b47e3ebe07497
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-04 12:53:32 +00:00
Eike Ziller
ef48f5e4df Welcome: Improve performance by loading session details lazily
Task-number: QTCREATORBUG-16993
Change-Id: I94b8d68c8fea7a565b84027cb8d1cd2ab323f7e4
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-10-04 11:16:11 +00:00
Thomas Hartmann
d3b4acfae2 QmlDesigner: Allow qml2puppet to mockup C++ types
This allows Qt Quick Designer to register a component that can serve
as a mockup for known C++ components registered in e.g. main.cpp.

In many cases those components are the interface to the C++ backend.
While the C++ components itself are not relevant for the gui designer,
the user has to be able to instantiate gui components that use such C++
components.

We use the CreateSceneCommand to forward a list of C++ types to
qml2puppet.
Those types are then registered so that the imports and object institation
works.

Change-Id: I1543912f233f9a783998f3c6a1b48981b342ee80
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-10-04 08:59:24 +00:00
hjk
7550d8977e Debugger: Add dumper for std::__1::{multi,}set
Change-Id: I3f951256db6aec4010b3829a901f83a53ce18978
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-04 07:50:40 +00:00
hjk
83b14ec359 Debugger: Fix std::map dumper for XCode 8
Change-Id: I7536d65355d69f4b8c31bc5adeb582d9b4eb1b33
Reviewed-by: hjk <hjk@qt.io>
2016-09-30 16:01:41 +00:00
hjk
da00b0202e Debugger: Use types instead of type names in dumper array handling
Change-Id: I5c4b6e0e0de077fbead467dd1b042c379c9a0dd3
Reviewed-by: hjk <hjk@qt.io>
2016-09-30 15:06:37 +00:00
hjk
9136380753 Debugger: Adjust QObject dynamic property dumper
The change from QList to QVector (d82e1d145) is in 5.6

Change-Id: I7da6442247f97bb27d4359ae2f1f759c65c2c9f2
Reviewed-by: hjk <hjk@qt.io>
2016-09-30 13:56:42 +00:00
hjk
8288d1692d Debugger: Fix std::list dumper for GCC 4.7's std lib
Change-Id: I5e43a3620223030ae526a38a0b2ea3f0c131008a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-30 13:22:01 +00:00
Orgad Shaneh
643047c296 Debugger: Support int operator for Value
Enables compatibility with <4.2 dumpers.

Change-Id: Id904a8895f130ead9cd3c46452639f100451b164
Reviewed-by: hjk <hjk@qt.io>
2016-09-29 16:24:39 +00:00
hjk
418d56b917 Debugger: Robustify nativeDynamicTypeName in gdbbridge
Determining dynamic type is a best-effort business that
tends to fail in setups without debug information.

Change-Id: Id24fc70ac15cf2957ed1c91d5782b8a7c0677bf2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-29 05:53:26 +00:00
hjk
856c347300 Debugger: Use now-standard mechanism for std::unordered_map dumper
Change-Id: Iceea7d369e53220622edb6272e72750b6512148f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-28 12:49:25 +00:00
hjk
e507af0855 Debugger: Simplify QNX map dumper
Don't use outdated compact display functionality anymore.

This should use 'putPairItem' now, but since there is no way to
check, using non-compact display only is the lesser evil.

Change-Id: I1b1f8029637f79688b9211b977a1e5d1ac90a60f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-28 12:35:12 +00:00
Tim Jenssen
462948f53e Wizards: remove Qt Labs Controls wizard
It was just a testballoon and they are living as
Qt Quick Controls 2 in newer Qt versions.

Change-Id: I9645a092dcddf498df93f13a543a6bb92d8a419d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-09-28 11:42:19 +00:00
hjk
412d7b2255 Debugger: Consolidate special type lookups in *bridge.py
Change-Id: If5f255a32f1cfde925345f4a33e6fa4de01d10d2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-28 11:37:30 +00:00
hjk
cce9159c3a Debugger: Remove now unused gdbbridge.py readCString()
Change-Id: Icbde42b9a8251550fc30eb0d24a6c812edd85431
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-28 11:37:22 +00:00
hjk
c5ee2737b1 Debugger: Unify *Dumper.childRange()
Change-Id: I58cc225efeeabe6b97cb0228b89fb4ac127ce6c9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-28 10:40:37 +00:00
hjk
27f473ab00 Debugger: Unify the dumper reload code
Instead, push backend differences into a more generic reportResult()
function.

Change-Id: I6bc34580e915b830e592680022b3499ae5eb1e57
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-28 10:40:27 +00:00
hjk
b0d6e0b374 Debugger: More V4 related dumper
Change-Id: Ifd2c5748996ce71bf4b8844ff270c41ba4a9c41f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-28 10:08:43 +00:00
hjk
615ace36d5 Debugger: Remove now unused isFunctionType in lldbbridge.py
Change-Id: I687e5f94b7ac4134f070661c428f6d6c6c509c6a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-28 09:23:22 +00:00