Commit Graph

44633 Commits

Author SHA1 Message Date
Nikolai Kosjar
bab230313d TextEditor: Clean up RefactorOverlay::paintMarker
* Rename variables for readability
* Use const

Change-Id: I74d44a5075738b1aef28a97f647431848564544a
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-02-09 08:43:45 +00:00
Nikita Baryshnikov
b34b019c10 ProjectExplorer: Remove metatype registration macro usage
in places where we do not need it. Also removed metatypedeclarations.h

Change-Id: I406891ff9b87e88112ae6317c479f5fab83625c8
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-08 15:36:35 +00:00
Eike Ziller
e307b7eecf QmlProfiler: Avoid QtConcurrent
QtConcurrent runs everything on a global thread pool, which means that
calls of QtConcurrent::run/map/etc can block each other.

Change-Id: Ia7a61b5ae1e0919113205a83a43caa1f27015732
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
2016-02-08 15:36:11 +00:00
Orgad Shaneh
d4816850f0 Git: Return QByteArray in synchronousShow
Will be used by Grep

Change-Id: I9346707eef2fe55085b0edf090e117fe45afe8bf
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-08 14:49:06 +00:00
Orgad Shaneh
71166d06d0 Git: Minor cleanup
* Remove unused includes
* Remove QObject qualification
* Use a raw pointer for widget instead of QPointer. It is owned by GitGrep.

Change-Id: I4e2c9878289ed3491bfd7b0565a683bc01e485f3
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-08 14:49:02 +00:00
Marco Bubke
974070d2c8 Clang: Use MessageEnvelop instead of QVariant
QVariant has unwanted dependencies so we provided our own simpler solution.
We want to support move only types and calling the copy constructor as you
move the value in and outside. This copying is adding unwanted overhead
too.

Change-Id: I2e27a7924868efe81e8b8ff3415499c9fa22c2bc
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2016-02-08 14:11:44 +00:00
Ulf Hermann
c3bbf389d9 QmlProfiler: Make flame graph view compatible with Qt 5.4
Change-Id: I88495cb51f1f28e168290137930aaf949e83b4c5
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-02-08 13:52:35 +00:00
Orgad Shaneh
f611403e83 TextEditor: De-virtual executeSearch
Git Grep is now implemented as an extension, instead of by inheritance.

Change-Id: Idec79ec167a3ca35d87deb2d0e16e134f093b67f
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-02-08 13:26:04 +00:00
Alessandro Portale
9d9f003e0f Clang: Distinct warning/error icons
Similar shapes, but hollow.

Change-Id: I72f39d1bc701c28c8bc0b038f646904efe1e67b0
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2016-02-08 12:41:28 +00:00
Orgad Shaneh
8754cab9aa Todo: Support find in pane
Change-Id: I9788a81395d55b54e1e25c9315a07965fffd37ee
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-02-08 11:38:39 +00:00
Tobias Hunger
babb93a682 CMake: Fix WS issue
Change-Id: Ic3f59f4c9a5337c1189696fde8fe49ba711265f3
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-08 11:14:38 +00:00
Tobias Hunger
33465ce2be Use Utils::TreeView in EnvironmentWidget
Change-Id: I43c0a39d102d3cf569b4a3c073af393a0a15c68a
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-02-08 11:08:27 +00:00
Christian Stenger
4a3b63c1d9 AutoTest: Remove unused code
Change-Id: I54a4666ab4619059fc5ad7a2597e10344c376a5b
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2016-02-08 10:27:02 +00:00
Nikolai Kosjar
ea67bdb823 ClangStaticAnalyzer: Ensure to pop up the issues pane on errors
...at the end.

For cases where msvc parses/compiles fine but clang not, the issues pane was
not always shown in the end.

Task-number: QCE-62
Change-Id: Iab979b664e37dc7b35c2418566a7af74a4907829
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-02-08 09:37:23 +00:00
Friedemann Kleint
e6a572e07a Extension system: Extend error message for invalid test functions.
Output the list of available test functions.

Change-Id: I86578b9eeaa2f4cd5782de7ea2d90fae06e22542
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-08 09:31:49 +00:00
Christian Stenger
5f69a505ec ClangStaticAnalyzer: Fix flaky tests
The same problems we had on Windows (started() emitted before
QSignalSpy::wait() called) occur also on OS X.

Get rid of the QSignalSpys completely and watch out for the signal
emissions manually.

Change-Id: I092126c6605b046f250999b8ff04d11e685297c2
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-02-08 09:06:53 +00:00
Alessandro Portale
5bed03ffd8 QmlDesigner: Improve Section collapsing animation
Making the height animation work. Synchronizing height animation and
arrow rotation.

Removing the well meant fading, because gives the impression of a lag
rather than an intended animation.

Change-Id: I97924c715476df72ff903d38277730ca0e02e80d
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-02-08 09:01:20 +00:00
Orgad Shaneh
5db0ef191e Git: Do not report canceled for Grep when no results were found
Change-Id: Ib1916c345bd345ee3dd5179c84bb259c2992303e
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-02-08 08:07:58 +00:00
Orgad Shaneh
9117b28eb1 VCS: Fix find in output pane
It is instantiated in several locations. Move the find support to its ctor.

Change-Id: I77b05eff2889d0b8b801eef38d701ca4af3eefda
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-02-08 08:03:30 +00:00
Orgad Shaneh
215654b574 AutoTest: Fix execution of Gtest
Change-Id: I7e358b31eea41e1896a43c5efb9a9336ec127c33
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-02-08 06:38:02 +00:00
Marco Bubke
5c10c5ff24 Clang: Fix indention in ClangPreprocessorAssistProposalItem
Change-Id: Iffe01fe06d3fbed192e3f1875431337c49147800
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2016-02-05 13:28:54 +00:00
Christian Stenger
3f760bad1f AutoTest: Avoid temporary storing of QMap
Change-Id: I099ffb6931947f72ad242e858d82a109a0da85f9
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2016-02-05 13:12:06 +00:00
Christian Stenger
6ebd3cc7e8 AutoTest: Trigger onPartialParseFinished directly
Change-Id: I291712b5820c5bf84ee92621bc91497ec4264709
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2016-02-05 13:12:01 +00:00
Christian Stenger
02e188c3fd AutoTest: Trigger signal by QFutureWatcher
The finished signal might be triggered before the started.

Change-Id: Id23612553fdd19de2ddbee72b20b4e85448e1611
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2016-02-05 13:11:57 +00:00
Christian Kandeler
53483fd82f Fix qbs project file for json library.
Change-Id: I45e5427e406973bfa880832ed32c41c92fe3a0d1
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-02-05 12:27:41 +00:00
Orgad Shaneh
9a723a0c98 Utils: Fix indentation in ShellCommand
Change-Id: Ia93d5f50c4ea1e130ddfafe763fe0bd5cc95fad1
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-05 11:55:39 +00:00
Orgad Shaneh
36d5bc1e98 Git: Use VcsCommand for Grep
* Logs the command in the Version Control pane
* Simplifies the client code

Change-Id: I398d57ab12ed6ba6bab1878934b929083f0bf6cb
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-05 11:55:20 +00:00
Tobias Hunger
6bf90bb793 EnvironmentKitInformation: Print nicer
Print the environment variables in the tool tip nicer.

Change-Id: I3d8d40f470dc552125901e237734b24d34b38608
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-05 11:47:49 +00:00
Tobias Hunger
999a8d0516 CMake: Polish CMakeKitInformation
Change-Id: Ifc22c5ad41449ce6597b604746f25cab86662425
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-05 11:47:37 +00:00
Tobias Hunger
5404f9c480 CMake: Remove static defaultValue method from CMakeKitInformation
There is no need to expose this.

Change-Id: I164f1e787b742d330282125320b54a5b2ecb6134
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-05 11:47:23 +00:00
Tobias Hunger
eafb667066 KitInformation: Make defaultValue take a const Kit *
There is no reason not to.

Change-Id: I4accb0b690173d93ad6f4c9dd0bce66d8de75faa
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2016-02-05 11:35:20 +00:00
Christian Stenger
7f61a590ab AutoTest: Do not pass pointers without owner between threads
Change-Id: I40e86716d1dd7c8a84e759e792042b84571fc2aa
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-02-05 09:09:31 +00:00
Eike Ziller
d362abf1e2 runAsync: Support functions without QFutureInterface parameter.
Change-Id: I8e387d683eceab642ddd3fac90a2a5f407a868dc
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-05 08:57:49 +00:00
Friedemann Kleint
51d4e56e5d MsvcParser: Factor out shared functionality.
Factor out functions for handling jom/nmake messages and determining
task types.

Task-number: QTBUG-50804
Task-number: QTCREATORBUG-15641
Change-Id: If938f13d79d20b9c5eb422bf5ac0d07c4ce533b9
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-05 08:45:03 +00:00
Christian Stenger
612f36fb3a AutoTest: Apply QC coding style
Change-Id: I79548cae407c5f7327953184977f8133885bc367
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com>
2016-02-05 06:49:51 +00:00
Robert Loehning
aa4dd98be8 Git: Always enable "Actions on Commits..."
User can provide a path to the dialog so this can be handy even without
an open project or file.

Change-Id: I1ed96fe56b6ab76ca98f8d81ef60b217e66d0661
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-02-04 20:54:05 +00:00
Tobias Hunger
226eea92de Update copyright year in About>Qt Creator dialog
Change-Id: I00d8f36151c13e9f57dc3c53fcb41c1ce0b1d64d
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-02-04 17:13:09 +00:00
Tobias Hunger
ff303ee994 GenericProject: Modernize
* Use pragma once
* Use overrides
* Clean up here and there (mostly in the headers)

Change-Id: Ib33b6a6aa1a285d281f3d8b940fe654af3941554
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-02-04 13:16:49 +00:00
Tobias Hunger
eb07fd92b2 CVS: Modernize
* Use pragma once
* Use some more overrides
* Tiny clean-ups here and there

Change-Id: I951afa8ed31c5f414d4ae872c79f80db19909ee0
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-02-04 13:16:42 +00:00
Orgad Shaneh
bc9c57756b Git: Use PathChooser for Actions on Commits
Change-Id: Id88648cd35856d2767a0ba7a09e2c9171ba22b34
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com>
2016-02-04 12:57:33 +00:00
Orgad Shaneh
558c08e2c5 Git: Hook grep into Find In File System dialog
Change-Id: I0fc77ad61c8874a21afd5b5135df4d30fa795a8e
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-02-04 11:58:29 +00:00
Orgad Shaneh
1b9b1541d3 Git: Un-slot private slots
Change-Id: If88d7e1b501daf6f0dfc696cb20e5f1eb4aa83fe
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-04 11:29:05 +00:00
Tobias Hunger
74849134f4 Bazaar: Modernize
* Use pragma once
* Remove unused member variables
* Use overrides

Change-Id: I190262143e6a51cf6882aceab64e8461202c74a3
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-02-04 10:45:13 +00:00
Tobias Hunger
063b9775a9 Autotools: Modernize
* Use pragma once
* Make sure overrides are everywhere
* Clean up code here and there
* Remove useless code from initializer lists

Change-Id: I9c285a803ea36cb32d14b3335757fd4b57f27d02
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-02-04 10:44:54 +00:00
Tobias Hunger
9b3016c2e4 ClearCase: Modernize
* Use pragma once
* Use static member initialization

Change-Id: Icec025b7c3b310286c675cef30cf01e220002ca8
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-02-04 10:40:19 +00:00
Friedemann Kleint
10e6181ccf cvsutils: Fix build with gcc 5.3.
Change-Id: I9499b688a3fe42d0d67ea82f69b0ad3c39193384
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-02-04 10:39:25 +00:00
Christian Kandeler
b41346cf5b CppTools: Add file path to extra info in function Locator filter.
This helps tremendously in the not uncommon case of the same class being
implemented in several files (e.g. for different operating systems).
Until now, users would be completely at a loss as to which of the
results was the one they were interested in.

Change-Id: I3ef8c8dc93b89e68eaf323a7ad2067b075d8cfb1
Task-number: QTCREATORBUG-11125
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-02-04 10:36:47 +00:00
Eike Ziller
b967e2c225 QmlJsSemanticHighlighter: Don't use global thread pool
And simplify the code

Change-Id: I87cc08dc276485d2e1e6934cfbc049e7870e14e0
Reviewed-by: Marco Benelli <marco.benelli@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-02-04 10:13:29 +00:00
Eike Ziller
41d4fabf34 runAsync: Allow thread priority without thread pool
Change-Id: I6d4ee8fa1bf45c7a24ff6a004b3c69007c645547
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-02-04 10:13:20 +00:00
Christian Stenger
af3029dc65 AutoTest: Avoid dangling pointer
Change-Id: I44b4aed459403ad9ea87d3213a6a355b9836b3fb
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2016-02-04 08:47:59 +00:00