Commit Graph

46280 Commits

Author SHA1 Message Date
Ulf Hermann
dd4e185eb3 Utils: Register metatypes for QProcess enums
Apparently they aren't automatically registered on Qt 5.5

Change-Id: I0932cc7c5f56019300380ebb905d67d99eb8e9d0
Reviewed-by: hjk <hjk@theqtcompany.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2016-06-08 11:44:23 +00:00
Ulf Hermann
59adfb10b5 Timeline: Make zoom control functions Q_INVOKABLE
We need to call them from QML.

Change-Id: I7f03288122318eb64af34915e7427b2eae810cb5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-06-08 11:23:26 +00:00
Tim Jenssen
db369d0fa7 QmlDesigner: use QVector as container for PropertyInfo
- This seems to be faster, but difficult to measure, was only
    1% of the starting time and tested with 100 starts

Change-Id: I0273dcd923a4c1e47510e64c0349acda93b0e286
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-06-08 10:32:09 +00:00
Tim Jenssen
4317400e3c QmlDesigner: small speed improvements
Change-Id: I8fb3f36426043ed4502ba4a8d18c677ad85a1842
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-06-08 10:31:21 +00:00
Tim Jenssen
c8bb611f5c QmlDesigner: trigger item library update after MetaInforReader is finished
- this speeds up the start of the QmlDesigner

Change-Id: I0fd5804f3aad799a93fd2c47edca8d1ca5c3c454
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-06-08 10:31:10 +00:00
Tim Jenssen
cfed8095be QmlDesigner: only reset model if it is necessary
- it was 3 times for one update call

Change-Id: Ieed98fc42a2e28487164602549eb11b87f6f2b18
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-06-08 10:31:03 +00:00
Ulf Hermann
eb948c0214 Timeline: Remove selectionIdForLocation()
Nobody needs that.

Change-Id: I83feeb55af24393a3feebfbbd4d0f085b208bb20
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-06-08 09:44:35 +00:00
Orgad Shaneh
4af5d70f8c Timeline: Use Qt5-style connects
The heavy lifting was done by clazy.

Change-Id: I3b911a44d83650901eb486d20453cb079abef629
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-06-08 09:31:23 +00:00
Tim Jenssen
172ea7aa6d QmlDesigner: avoid unused warning in release
Change-Id: I6213fd3555b28b14d23453c24b94acef5baeaf3a
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-06-08 09:30:00 +00:00
Tim Jenssen
9551e0a16a QmlDesigner: remove brackets
Change-Id: Ia434156c6a42fb89b52bc2c7410ae2b8558c9e8f
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-06-08 09:22:02 +00:00
Tim Jenssen
3a3029e671 QmlDesigner: updateSearch is also called inside updateModel
Change-Id: I1c36794f5b2d336a6194dc3ee65ad0651bf0aa95
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-06-08 09:21:57 +00:00
Tim Jenssen
792b9fe6c9 QmlDesigner: remove unused code (meego, ...)
Change-Id: I25c1bc568b2d83cc8f166a041dc56c022d5f638a
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-06-08 09:21:43 +00:00
Tim Jenssen
ef2e3914ca QmlDesigner: handle missing item library images better
- in case of missing (image) file it generated a strange path
 - warn about not existing file path while it reads it from
   MetaInfoReader, to avoid too much not existing warnings
 - add the default icon code to the image provider

Change-Id: I2ffa9b4f179b82fed73876d3ac006e40d37beae2
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-06-08 09:21:29 +00:00
Ulf Hermann
287217d5bf QmlProfiler: Add tests for QmlEvent
Change-Id: I9933d6b6225becc66f954f9d00d2ae7091d0bbb1
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-06-08 08:54:41 +00:00
Ulf Hermann
85b5810f9c QmlProfiler: Add some missing bits to QmlEvent
We want move constructor, move assignment, ==, and !=. Also, drop some
unreachable code.

Change-Id: I65f24d7ba0f146ad37ec4b7c438b47d4abc3d688
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-06-08 08:54:37 +00:00
Ulf Hermann
8bdc612b3a QmlProfiler: Add default template param to QmlEvent::number
The number type used to transfer data from the internal to the external
list is an implementation detail, and qint64 will always work. Users
can optimize the casting by choosing the same type as the external list
uses to store the numbers, though.

Change-Id: I069c31b130960519e7d27ec79a456924f7777364
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-06-08 08:54:20 +00:00
Ulf Hermann
0023c87098 QmlProfiler: Don't add junk to the end of strings from QmlEvents
The UTF-8 data stored in the event is not necessarily null-terminated.

Change-Id: Id5d4f0b50f8c7c70aa6576121905072984f1c342
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-06-08 08:49:03 +00:00
Ulf Hermann
6de290a188 QmlProfiler: Add tests for pixmap cache model
Change-Id: Ic3114f6cd205434e2a489112d070300a3c842352
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-06-08 08:48:59 +00:00
Christian Kandeler
a0f956f050 qbs build: Introduce new module "qtc".
The qtc module gathers properties that used to live in the top-level
project file. This is the first step towards making it possible to build
plugins against an installed Qt Creator ("out of source build").

Change-Id: Ia1514cc9c888e80be01b308e908de48980fcbdb8
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2016-06-08 08:46:00 +00:00
hjk
db9437c2e8 Generalize IDevice::qmlProfilerHost
The idea is to have a way for tools to specify what kind of
control channel they would like to use to communicate with
a device without making the choice explicit dependent on
the exact kind of tool to further decouple device and tool
implementations.

The 'hint' values are there to help the device implementation
to decide on which channel to use exactly in case there are
multiple choices. In any case, the tool is responsible to
check that the returned channel is suitable for its operation.

Currently the only choice is "QmlControlChannel" yielding
a simple wrapper around the former IDevice::qmlProfilerHost()
return value.

Other enum values may potentially be {Tcp,LocalSocket}ControlChannel
(to specify a type of transport) AdbChannel (to specify some
generic helper mechanism). It might also turn out that something
more complex than an enum will be needed, e.g. to express
a set of values with priorities or such, but I'd rather
avoid overengineering for now.

Change-Id: Id386425eb3dd2bb395065f0bdb6f67217cd40a71
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-06-08 08:16:22 +00:00
David Schulz
1e90926966 Editor: Simplify FoldValidator::process.
Change-Id: I9181c18ae5a36f5ab0027fb36cea21f4f2a5e99c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-06-08 06:14:43 +00:00
Thomas Hartmann
3aae2989b3 QmlDesigner: Crash fix
If the item did not have an id Qt Quick Designer crashed.
While we do ensure the item does get an id, we used the empty id
when refactoring later.
Now we use the generated id.

Change-Id: I71b9731270dc91537c17f6cb4fed3403d1001137
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-06-07 17:24:37 +00:00
Thomas Hartmann
75e408be47 QmlDesigner: Warn if QML file is opened in Plain Text Editor
If a QML file is opened with the Plain Text Editor,
the design mode cannot work and is not properly activated.

With this patch we warn about this and go back to the edit mode.

Change-Id: I4dc9dd957cb8f704e59563a82d4dbf31cb8307e9
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-06-07 16:33:43 +00:00
Tim Jenssen
ec05dfe972 QmlDesigner: add item library plugins path again
- This was accidentally removed by the patch which removed
    the old pluginmanager

Change-Id: I990d05555bbfe519c72a1d34cffdfc00360d88c1
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-06-07 16:33:37 +00:00
hjk
36a6585fb5 Debugger: Introduce enum for columns in breakpoint view
Change-Id: I771c7fceed31739cfe504ba660796d48fb518a5e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-06-07 14:23:14 +00:00
hjk
b001122900 Debugger: Do not abort LldbEngine too eagerly
Not all untimely requests to run a command are harmful,
e.g. reloadModules() can be triggered by visibility
changes of the modules view at any time.

Change-Id: Ie803135ff7b954eef5800b3becdc6104a61b8cb2
Task-number: QTCREATORBUG-16393
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-06-07 14:08:58 +00:00
hjk
43193ea45b Debugger: Left-elide path names in breakpoint view
Task-number: QTCREATORBUG-11089
Change-Id: I97e11957c92c4127e3b3de73699ce16b8852c891
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-06-07 10:35:36 +00:00
Tobias Hunger
0b30cad820 Nim: Fix warnings during build
Change-Id: I9201318c6bf2762c22d2a3f7778877a7db16be14
Reviewed-by: hjk <hjk@theqtcompany.com>
Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com>
2016-06-07 10:23:10 +00:00
Lorenz Haas
cd00e64e37 Beautifier: Fix code style
Change-Id: I991f47d2f6844b153cd47ac856e5a76a7a962c94
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-06-07 10:16:26 +00:00
Orgad Shaneh
09029041c9 BinEditor: Complete Qt5-style connects
+ De-slot

Change-Id: I8ca637c674119e11b9aea10e279ec2c200f584d0
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-06-07 10:15:03 +00:00
Christian Stenger
d198c4a22f AutoTest: Add Id to parsers and remove now useless enum
Preparation for introducing test frameworks.

Change-Id: Iefaa4ca9dd9af665444556afa9c6e326041cfd0f
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-06-07 09:12:12 +00:00
Filippo Cucchetto
94fdd4d900 Added plugin for supporting the Nim programming language
The plugin support:
- basic syntax highlighting
- indentation
- project management
- run and build configuration
- debugging
- code style

Change-Id: Idfbb02a11ed570c90149a54b726beb956712e2bd
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-06-07 07:17:55 +00:00
hjk
b198d482cf Debugger: Robustify Qt version extraction
Task-number: QTCREATORBUG-15497
Change-Id: I61b52d23e0acf69e2030f8dca2691fbaa6b309ca
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-06-07 05:33:13 +00:00
Victor Heng
f0a4ad1b6c JsonWizard: Hide label when widget is hidden in Field Page
Setting "visible" of a widget (such as TextField) to false in a Field
Page hides the widget, but leaves it's label visible. Modified each
field to update it's label visibility when the widget is shown/hidden.

Change-Id: Idf20c624b6aad09a2be159e2fc697fcb24bd2bc5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-06-06 18:53:27 +00:00
Ulf Hermann
d381c6e047 QmlProfiler: Add test for memory usage model
Change-Id: I4364dd5211fee0d017e58fde8af36879d83f23a2
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-06-06 16:17:11 +00:00
Ulf Hermann
34d5322312 QmlProfiler: Don't continue memory usage ranges across other ranges
When a function returns and is called again, without memory being
allocated or freed in between, we don't want to assign any memory
events from the second call to a memory range starting in the first
call.

Change-Id: I3d5cd10381f31ff73849a5a396ad6bda7661afec
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-06-06 16:17:04 +00:00
Ulf Hermann
887a71c493 QmlProfiler: Don't confuse pixmap state
If we overwrite the pixmap state, we cannot later check it for the
old value ...

Change-Id: Ic81b9c360457b2ae3b2e1d76aeccfc5309f0782a
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-06-06 15:15:00 +00:00
Ulf Hermann
6491058e5e QmlProfiler: Clean up pixmap cache model
Change-Id: I28b32318fe66644b3fe16825efcf86a6d3f9c68a
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-06-06 15:12:20 +00:00
Ulf Hermann
c4079d6ae7 QmlProfiler: Clean up MemoryUsageModel
Don't reimplement locationFromTypeId, make methods public when they are
public in the base class, remove redundant QVariant ctors, inline
memoryTypeName() into the only place where it's used.

Change-Id: I5d780cf27c90a277c13b117c25c80ccce5a4182b
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-06-06 14:59:28 +00:00
Ulf Hermann
bcbfd93ee7 QmlProfiler: Remove QmlProfilerPlugin::debugOutput
I doubt that anyone has ever used it.

Change-Id: Icf8c6513f5cdd10a9aa790e7373df9eba7c12ef2
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-06-06 14:51:46 +00:00
Ulf Hermann
16bf9227ba QmlProfiler: Add tests for LocalQmlProfilerRunner
Change-Id: I5d770adace7096f945e6385a62383282df3e5745
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-06-06 14:51:38 +00:00
Ulf Hermann
d12b99ee2d QmlProfiler: Don't send stopped() signals before started()
Change-Id: I225c4786b8720e24085175cb1c13c662417fd9d8
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-06-06 14:51:30 +00:00
Ulf Hermann
b3fa768dfd QmlProfiler: Don't populate the file finder if there is no run config
Change-Id: I1cce87162836e0579577616956d9993f26e00a01
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-06-06 14:51:23 +00:00
Ulf Hermann
8d3937d1a8 QmlProfiler: Rename "engine" to "runControl"
Call it the same way it's called everywhere else.

Change-Id: I5e61275c264c337307643c0874b7c764c4e18118
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-06-06 14:44:35 +00:00
Ulf Hermann
bae8f22a6e QmlProfiler: Add test for input events model
Change-Id: I5af5c090312173cdfdb01f88923bfde1667e799b
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-06-06 14:43:36 +00:00
Ulf Hermann
d345755b0f QmlProfiler: Add test for flame graph view
Change-Id: I5207e03ad8955f2d291d4fc1b7e5d33b64207379
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-06-06 14:43:26 +00:00
Christian Stenger
5a3a879a4c AutoTest: Unify naming scheme for gtest related classes and files
Change-Id: Ib0739889cbc6416da3f28f1e39b197317ec8a4e6
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-06-06 13:23:39 +00:00
Christian Stenger
af81016e64 AutoTest: Rename 'AutoTest*' to reflect what it is
AutoTest* is too generic within the context where it is used.
This patch renames respective classes, members and string occurrences.

Change-Id: Ie413e4a344ddaf7892ecf248ba486defb4b9e3ef
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-06-06 13:23:24 +00:00
hjk
04a93c3bb5 CMake: Demote non-matching generator to 'Warning'
Default KitChooser behavior is to suppress kits with errors everywhere
but non-matching CMake generator settings are irrelevant for both non-CMake
using projects and analyzer/debugger tools.

Change-Id: Ie60f0f23b5c2423128304227fc573526b7ec2113
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-06-06 10:53:40 +00:00
Orgad Shaneh
c64f85cd5a QtSupport: Use Qt5-style connects
The heavy lifting was done by clazy.

Change-Id: I24cb0cd088b74364320cdd34282d7b15305a93bf
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-06-06 10:51:22 +00:00