Commit Graph

44349 Commits

Author SHA1 Message Date
Ulf Hermann
12f160b1f3 QmlProfiler: Add tests for FlameGraph
Change-Id: I1eadb2675e16fcc61e073ea1a730ab065456f964
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-06-01 09:23:22 +00:00
Ulf Hermann
652846c5c7 QmlProfiler: Add test for debug messages model
Change-Id: Ie6872646c09a89a417379a3e1f551526234ab26a
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-06-01 09:23:18 +00:00
Ulf Hermann
1fc9bcc025 QmlProfiler: Rename QmlProfilerNotesModel::add()
The parent class has a public add() method which has to be qualified if
the child class has a protected one.

Change-Id: I6d61d6123618fc0b5065893656b36559aa5298be
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-06-01 09:23:12 +00:00
Ulf Hermann
09b1fe3f20 QmlProfiler: Drop some unreachable code
The model manager will make sure that the flame graph model doesn't get
any events it doesn't accept.

Change-Id: Ibe6e06c558d138cebe6be5dbc76e8f51e9e1fd95
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-06-01 09:20:46 +00:00
Ulf Hermann
4436a1c7f2 QmlProfiler: Add some more consistency to flame graph model
model.parent(someFirstLevelItem) should return the invisible root item.
Methods with default parameter in the base class should also have a
default parameter in the derived class. As rowCount() is Q_INVOKABLE
columnCount() should also be.

Change-Id: I62a0ec6f91d01581fd47a43c97af63c58cdd13fa
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-06-01 09:20:34 +00:00
hjk
7dce6bb4f2 BinEditor: Raise size limit to 32 GB
The determining limit is now the Qt api with int values for line numbers
and scrollbar positions, giving us <= 2^31 lines with 16 bytes each.

Change-Id: I266e5bdf358b377c6e27bc2be300a0f6a60e6f68
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-06-01 08:47:51 +00:00
hjk
58f25a3260 ClangStaticAnalyzer: Start tool directly in test
Removes the only user of DEBUGGER_EXPORT void runAction(Core::Id actionId)

Change-Id: Ia26577e07ccc8a556882d99d6dd9f9c29c3bc883
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-06-01 08:45:17 +00:00
Orgad Shaneh
3ac867c8eb ExtensionSystem: De-slot
Change-Id: I725fc3be32eb5c723426376c59a344f4fc19443f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-06-01 08:07:49 +00:00
Ulf Hermann
58ecaa475c CorePlugin: Delete navigation(sub)widgets when deleting the mainwindow
Otherwise we might leak them on shutdown.

Change-Id: Id7274e6ee67b11fa9ff43b22fc6d5e62da55933f
Reviewed-by: hjk <hjk@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-06-01 07:44:11 +00:00
Lorenz Haas
3af36134d1 Beautifier: Make all tools MIME restrict-able
The newly introduced auto save option is restricted to user definable
MIME types. The underlaying tool's restriction, however, is only if the
current editor is a cpp editor. This patch makes the tools also MIME
types restrict-able. In addition the auto save functionality is now only
applicable if the file matches the auto save MIME types as well as the
MIME types of the chosen tool.

Change-Id: Ic430b4a07341647e6c8e95d2b802a17db1637a36
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2016-06-01 07:41:37 +00:00
Jake Petroules
069714b832 iostool: Print ALL error messages recognized by MobileDevice framework.
Now uses APIs instead of raw strings, and so is future-proofed.

Task-number: QTCREATORBUG-16328
Change-Id: I45f8042dee4293bd40e204002c164eb99ac754df
Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-06-01 06:29:56 +00:00
Orgad Shaneh
eb17b224ad QtSingleApplication: Use Qt5-style connects
Change-Id: Ibc2d88e79ecc6790099ae01fe81ea843d8d68b18
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-06-01 06:29:23 +00:00
Orgad Shaneh
4ed9b68fbf Aggregation: Use Qt5-style connects
Change-Id: Ifee501f2da7d2834f6ce8a63f85e9fab9c683b5d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-06-01 05:51:32 +00:00
Orgad Shaneh
9370e863f8 ExtensionSystem: Use Qt5-style connects
Change-Id: I94f7dceff0cd53249406e9a4ec6b3b776bf00ab0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-06-01 05:50:29 +00:00
Orgad Shaneh
8641a5e956 Macros: Use Qt5-style connects
The heavy lifting was done by clazy.

Change-Id: I0154e09c1a9e028f3a80772c4c07751f4e282091
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-06-01 05:49:45 +00:00
Orgad Shaneh
34a7ff07b7 Main: Use Qt5-style connects
Change-Id: I7619495818728f7b7196c5f8447bf446eedef248
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-06-01 05:35:25 +00:00
Orgad Shaneh
8de20c9d6c ExtensionSystem: Revive manual test
Change-Id: I24c627e964afa33883bde571960ed390b07be985
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-06-01 05:34:28 +00:00
Victor Heng
48423414f6 JsonWizard: Check widget visibility when determining if it's mandatory
The wizard is unable to advance when a mandatory field is hidden. Assume
a hidden widget is not mandatory.

Change-Id: I19bdc1a661d91b75151d3aec34ad9d584002a556
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-06-01 04:55:45 +00:00
hjk
0e158115e5 ios: Remove unneeded includes
Change-Id: I659538097bc1296fa0fa6aaa7f07122dcaa82416
Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-05-31 15:24:17 +00:00
hjk
a8eb924a2a Debugger: Dissolve AnalyzerUtils::logToIssuesPane()
If the Error + popup combo is generic it should live in TaskHub.
If it is not, end user code should decide when to popup.
Not an intermediate level.

Change-Id: I195ba8c17c5cc192ff9762ed6f45629143bcbb35
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-05-31 14:52:12 +00:00
David Schulz
3a9332812d CdbExt: Don't add version number to cdbext.
Change-Id: I23fc1669c24700f17fe985b904620497cd3293a8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-05-31 13:27:34 +00:00
Eike Ziller
876099d865 DocumentModel: Avoid deletion of entries for suspended documents
When opening a previously suspended document, reuse the existing entry
instead of replacing it. That way existing pointers to the entry are not
invalidated.

Fixes a regression introduced by 0c44156328
that lead to crashes when selecting suspended documents from the
history popup (ctrl+tab / opt+tab) with the mouse.

Change-Id: Id41cae1132e4435c8e8bbd8624eaf840b02dc31f
Reviewed-by: Alexandru Croitor <alexandru.croitor@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-05-31 13:24:49 +00:00
David Schulz
d21cd57e13 Editor: Animate automatic completed text.
This gives a clear hint that something has changed.
And gets the attention of the author in the case he didn't
expect some kind of automatic brace or quote completion.

Change-Id: I33e383db9a1e797ecb285a407e46671f41be7051
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-05-31 12:58:19 +00:00
hjk
752c2cd67f ClangStaticAnalyzer: Directly construct RunControl
This only runs directly locally, so there's currently no need to go through
the AnalyzerManager indirection.

Change-Id: Ie241b362b870e8ea0be221c501420573596e34f2
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-05-31 11:24:28 +00:00
hjk
cbbdc64e8a Debugger: Make watch model root a WatchItem
QmlEngine::pdateCurrentContext() currently relies on being able to
access the 'name' member.

Change-Id: I75675681407402667da1cb82d3589980d92554a2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-05-31 11:07:13 +00:00
hjk
0cf9b6e956 Analyzer: Move toolbar icon specification down to individual RunControls
Giving individual RunControls the freedom back to decide what they want,
even if they currrently decide to use the same one.

Change-Id: Ia2acf4b9d32d23c486339b2488611038672aba25
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-05-31 11:07:06 +00:00
Lukas Holecek
a8a1b3b573 FakeVim: Ignore external changes in insert mode
Task-number: QTCREATORBUG-16208
Change-Id: Ic357b855f740e6c86900c13f616cd58a27175413
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-05-31 10:47:24 +00:00
Eike Ziller
2de7f3e723 Revert "TextEditorFactory use rvalue refs for creators"
This reverts commit 2be30c27ac.
The above patch puts limitations on the use of the API, while
being a questionable optimization. There is no reason why it
should not be possible to use lvalues for setting the various
creators. And MSVC2013 even thinks that actual functions
are lvalues for std::function objects.

Change-Id: Ia4daa7c3367b51bd613e1ff840f0ee617d36f54b
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-05-31 10:05:34 +00:00
Eike Ziller
73bb92c5a6 Merge remote-tracking branch 'origin/4.0'
Change-Id: I89c52ca2145a43c94d3366367ba72fde605dd577
2016-05-31 12:02:13 +02:00
Orgad Shaneh
7eca0803d9 Update qbs submodule.
To HEAD of 1.5 branch.

Change-Id: If6cfb3db0150ae6d49391996a6f2a279990e130b
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-05-31 08:51:51 +00:00
Alessandro Portale
a6683575c4 Icons: Move "next/prev", "[un]locked" and "zoom" from Core to Utils
They are needed in the timeline view.
The change in qtcreator-project.qdocconf makes sure
that qdoc still finds the referenced icons.

Change-Id: I812fba8e57d06d93efc00c295467c83c08cd1784
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-05-31 08:51:12 +00:00
Ulf Hermann
e49b0670c8 QmlJS: Don't crash if the type stack is empty
Change-Id: If4e0155e8167f3edee1890dee5fd8b19623bba17
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-05-31 08:11:25 +00:00
Eike Ziller
79733e5625 Remove a few TextDocument subclasses
Which only differed in some property settings.

Change-Id: Ie844c32709ebe719a5b749fd2ef828b64086ba9a
Reviewed-by: hjk <hjk@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-05-31 07:31:29 +00:00
Eike Ziller
74558e8561 IDocument: Use member initialization
Change-Id: If4f34fa2e7bd46861db1b63bcf5362eb2ab8e1e2
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-05-31 07:30:38 +00:00
hjk
0b5c780106 ProjectExplorer: Move icons into compilation unit of there own
Follow the Core pattern and compile them only once.

Change-Id: I688962250b1e8595ad27b662bd96584bf30b4a2c
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-05-31 07:14:19 +00:00
Takumi ASAKI
b2f24fc0a7 CMake: Fix translation message
Change-Id: Ide60eda0b0dba8de0bd3a1675dece437857391e4
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-05-31 02:46:26 +00:00
hjk
ae19d452b6 Debugger: Move remaining Analyzer overlay icon to ProjectExplorer
It's the only remaining item and loosens the dependencies of
ex-AnalyzerBase based plugins on the the Debugger.

Change-Id: I943ac44401c440dd6d3d5c1f54f8f996accd2b4a
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-05-30 15:07:26 +00:00
Alessandro Portale
addc397073 Core: HighDPI-aware Qt Creator logo
This change makes sure that the usage of Qt Creator logo is HigDPI
aware. We use qrc file name aliases to be able to use the "@2x"
mechanism.

Change-Id: I8dbb77b6cd9a3b6ab4530b84c18e0f83a662d710
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-05-30 14:48:48 +00:00
hjk
1663b44a7f Analyzer: Move supportsReRunning() down to individual runControls
This maintains current behavior by letting all subclasses return 'false'.
This might be too pessimistic, but can be fixed on a per-tool base

Change-Id: I71ac1b1e2cc98cfb1c5b76bc7c60a3240c5d1dcd
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-05-30 14:42:22 +00:00
Ulf Hermann
c472241ad1 QmlProfiler: Don't connect() null pointers
Change-Id: Id97a5f2231608ae14d7122f168808b2e0264815b
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2016-05-30 14:34:20 +00:00
Alessandro Portale
b034481c55 Debugger: Remove now-unused Analyzer mode icons
Not needed since the merge with Debug mode

Change-Id: I19f44ef88c4c0ca41b21449beba911494dbacbfc
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-05-30 14:26:11 +00:00
hjk
8ddce2fbd4 Debugger: Disable Run in Terminal with LLDB globally
This forcefully ignores the Run in Terminal setting, i.e. debugger
starts up properly, but without the console. It a stop-gap measure
deemed less harmful than the 4.0 'start up gets stuck' behavior.

Change-Id: I015147c4db23bf91ea09001ce923fbab97eeae77
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-05-30 14:07:25 +00:00
hjk
3a6ee2c305 Debugger: Move console stub procedure creation
... to a place where it can potentially be re-started.

Change-Id: Icc7ba4512533cdef659507442eec069e073f84b1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-05-30 14:07:17 +00:00
Christian Stenger
0faf499461 AutoTest: Separate different test code parsers.
Change-Id: I7ff68be6e5442f7140d1257c7d9057434a398359
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-05-30 13:21:14 +00:00
Tim Jenssen
5f00b16f1a QmlDesigner: removed not used PluginManager
Change-Id: I549d2ec768fffb49922e8deab1a5e1a7f97e3c56
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-05-30 13:09:32 +00:00
hjk
2845d75849 Debugger: Remove AnalyzerRunControl::pause etc
Only supported by CallGrind, and still functional there.

This interface might be useful to move to the ProjectExplorer::RunControl
base class, as similar functionality is present e.g. in the QmlProfiler.

Change-Id: Ie1f8a044ace77aea7ed3c1296847cc7497bac409
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-05-30 13:05:12 +00:00
Christian Kandeler
299d93e77b QbsProjectManager: Fix crash on project unloading.
We can't just blindly delete the qbs jobs after cancelling them, as that
is not a synchronous operation.

Task-number: QTCREATORBUG-16273
Change-Id: I29787da857e70404a1be1b4bc54921f5a8ce448b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-05-30 12:53:24 +00:00
Ulf Hermann
ea0d3f9ac5 ProjectExplorer: Delete all the widgets when deleting the project tree
Leaving them around is dangerous as they rely on the tree to be valid.
When unloading the plugin the ProjectTree instance is deleted.

Change-Id: Iea6524b0c57c469045cb35f3cd2f376e579b8a57
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-05-30 12:42:16 +00:00
Tobias Hunger
8405a16179 Revert "CMake: Pass STATIC types on cmake execution"
I have missed that this change was headed for 4.0 instead
of master. It breaks the build there.

This reverts commit 0043c721c2.

Change-Id: Ia359798c2636b2b4699de9cc73484ec12a757601
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-05-30 12:06:54 +00:00
Andre Hartmann
2b2b06a6d3 SVN: Avoid uncessesary QString creations.
Commmits a5b7ba58f0
and a5720ca8af
remove some QLatinString uses.

As the subversion status strings only contains
Latin1 characters, the comparisons can be speed
up by restricting to Latin1, instead using
fromUtf8() as would be done otherwise.

Change-Id: I734691bda6f5a1214ec6b15fe6d7ed4b028fbc1e
Reviewed-by: Hugues Delorme <delorme.hugues@fougue.pro>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-05-30 11:58:31 +00:00