Commit Graph

46254 Commits

Author SHA1 Message Date
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
Orgad Shaneh
9a637ba3e3 ProjectExplorer: De-slot internal class
Missed in 0bf7893415.

Change-Id: I91aeb31178bb329266f2c2c79a5e4c54e34d6473
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-06-06 10:51:18 +00:00
Orgad Shaneh
624c6fe6ee QmlDebug: Use Qt5-style connects
The heavy lifting was done by clazy.

Change-Id: I94f5c85388af1b8e06128800090222a6b64f5191
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-06-06 08:15:13 +00:00
Orgad Shaneh
d058ca6db9 QmlEditorWidgets: Use Qt5-style connects
The heavy lifting was done by clazy.

Change-Id: Ie56520a6b0676f986c04a1940ff9afef84d7092f
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-06-06 08:03:43 +00:00
Orgad Shaneh
38a13f09c2 EmacsKeys: Use Qt5-style connects
The heavy lifting was done by clazy.

Change-Id: Ib5fda624ef6d776fd238e15b562c9fc0dd6cab58
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-06-06 07:54:57 +00:00
Orgad Shaneh
a9f73d079a Todo: Use Qt5-style connects
The heavy lifting was done by clazy.

Change-Id: I6132a266f9d350dfecd7a12b03877bdcbbc31302
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-06-06 07:27:32 +00:00
hjk
4c09ead418 Debugger: Require only a valid debugger in Kit selection
Lately, Kit::isValid() defaults to also checking e.g. cmake
configuration which is pretty irrelevant for this use case here.

Change-Id: Idfe3bf4b8836a9b8974473c95048cd853276f9c2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-06-06 06:56:14 +00:00
hjk
6df0a34e99 Debugger: Add a way to copy selected values from Locals and Expressions
Task-number: QTCREATORBUG-14956
Change-Id: I2700820adf716afb784ec686297c15c48f3592f7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-06-06 06:54:59 +00:00
David Schulz
797dc11937 Editor: Skip auto completion when in overwrite mode.
Don't disable all aspects of the AutoCompleter, but just skip the auto
completion when text is inserted in overwrite mode.

Change-Id: I3f1e25882130817446c80623369ab882abaf915d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-06-06 06:34:28 +00:00
hjk
364943012b Android: Robustify settings page apply()
Change-Id: If64a56e9102efe4b8b444c3f84502a43af60d627
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2016-06-03 15:59:19 +00:00
Thomas Hartmann
b932d38e32 QmlDesigner: Fix compile
Change-Id: I457ea2ed8e012d27a9019b6978166ae2e9c192fb
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-06-03 13:06:39 +00:00
Thomas Hartmann
3a95f3f46e QmlDesigner: Crash fix
The string "id" is not a valid property name.
Calling name() on an invalid property should not throw,
since it cannot have side effects and is required for e.g.
error messages.

Change-Id: I8b199ebc14fc1d9ed5796bd1bc7f15491c1bb3ec
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-06-03 13:03:27 +00:00
Thomas Hartmann
ee5ec83199 QmlDesigner: Remove out commented code
There is no reason to keep this along.

Change-Id: Ibcc9fb80621686d5fc953e8ccdb6440b21a79335
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-06-03 13:00:44 +00:00
Tim Jenssen
6c110d3120 QmlDesigner: fix crash spaces in properties
Task-number: QTCREATORBUG-16059
Change-Id: Ie6e0fa25675e1f800315de4f22558c83b7d2bba1
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-06-03 12:34:37 +00:00
hjk
40a9463c56 FakeVim: Expand ~ in some file names
For :read and :source.

Task-number: QTCREATORBUG-11160
Change-Id: I636593a16f9e39c25585c221c5d978e842f4c1d4
Reviewed-by: Lukas Holecek <hluk@email.cz>
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-06-03 11:16:36 +00:00
Tim Jenssen
6d9782845f QmlDesigner: refactor connection editor models
- no behavior change
  - use modern Qt connect
  - moved reset method to the same location in all models

Change-Id: I5686e20a9b072e756f9bc6cc06df1377f1ca2c03
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-06-03 10:34:22 +00:00
Tim Jenssen
ad23e7a9ad QmlDesigner: move delegates to an extra file
Change-Id: Iaeba3ff7dcfc93a632a93aabc89953781a2a7139
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-06-03 10:20:30 +00:00
Tim Jenssen
11997e08bc QmlDesigner: move compareBindingProperties method
Change-Id: Iaaeb7d4b43030e9c2efce50ff5463b670ee25fe7
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-06-03 10:12:23 +00:00
Arnold Dumas
e8cce2a3bd ValgrindFake: Use Qt5-style connects
Change-Id: I9d4fcf45b1424cd84b836ae3b883f23709300b95
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-06-03 10:08:44 +00:00
Tim Jenssen
eac3beb4ac QmlDesigner: move model roles to header
Change-Id: Ib84c4049ba688159449dd1a88b5d2a046b5ff337
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-06-03 10:08:00 +00:00
Tim Jenssen
2d20b6953e QmlDesigner: modernize code
- no behavior change
 - use lambdas instead of extra slot functions
 - rename the comboboxes to the right names

Change-Id: I707bfb359d6bab805e05b514b3395db8d959ee81
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-06-03 10:04:56 +00:00
Ulf Hermann
7ecd0763b9 QmlProfiler: assert that connections are AnalyzerConnections
... before accessing them as AnalyzerConnection

Change-Id: I6f6111ca3b0dede93ac85fbcb5ffbfcf3c7b19aa
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-06-03 08:45:01 +00:00
Ulf Hermann
7d5d026244 QmlProfiler: Remove useless dtor
Signals will be disconnected by QObject dtor anyway.

Change-Id: I193fa207e02b8f91258d165f0a7eacb0ccc4b9df
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2016-06-03 08:44:52 +00:00
Ulf Hermann
c3a873b906 QmlProfiler: Add some consistency to input events model
Methods that are public in the base class should also be public in the
derived class. Also, the accepted() method takes a type, not an event.

Change-Id: I086d382ffc2e71c7efda56b0dbf341942986582c
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2016-06-03 08:44:43 +00:00
Ulf Hermann
b4462c2553 QmlProfiler: Don't consider invisible flame graph items selected
Technically they can still be selected after hiding the category they
belong to, but we shouldn't show the details window then.

Change-Id: I4f667a397dbe258a302e65b1fb8e4e6eb723c441
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2016-06-03 08:44:26 +00:00
Ulf Hermann
3684585839 QmlProfiler: clear model manager only after saving the notes
The notes model wants to resolve IDs from timeline models when saving.

Change-Id: I02c6038c8519101f36db95183bfa05d01a531b97
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2016-06-03 08:44:18 +00:00
Ulf Hermann
c81ed0bf9c QmlProfiler: Send the correct end events when restricting to range
Clamping the timestamps and then sending the original events doesn't
make a lot of sense.

Change-Id: I42a42968d0188acb040649483d642c6b3f3e1038
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2016-06-03 08:44:11 +00:00