Commit Graph

44854 Commits

Author SHA1 Message Date
Tobias Hunger
5c5e5a3aae CMake: Remove "Prefer Ninja" checkbox on CMake Tool page
This is no longer needed now that the generator is a property of the
Kit.

Change-Id: Ife35fd9207c805a4ead1e067603df1bfc77e6855
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-15 11:06:24 +00:00
Tobias Hunger
fdeef866dd CMake: Report progress during project configuration
Change-Id: Icabc4a417a67984acaad0f14c6521f103621e7ab
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-02-15 11:05:18 +00:00
Tobias Hunger
761d480453 CMake: Do not ask to rebuild after editing CMakeLists.txt files
This happens automatically now, do not bother the user with that
anymore.

Change-Id: Icc411e74ea5de42037f3718c6b75cc15772a64b9
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-02-15 11:05:12 +00:00
Tobias Hunger
c1a914197c CMake: Parse cmake errors during project setup
Do warn on errors during initial cmake run.

Change-Id: I520fdb8b83b9228ea71dcce050d1cab4c3e4f81a
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-02-15 11:05:03 +00:00
Tobias Hunger
859bf2c5ce CMake: Do not run a cmake wizard all the time
Do not push the cmake running straight into the face of the user. Do it
in the background instead.

This needs some follow-up patches to become really useful.

Change-Id: I3457178b33e3f14bdeac25005a773d17abb73b65
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-02-15 11:04:45 +00:00
Robert Loehning
692261564f Squish: Include binary editor in tests
Change-Id: I0b4fc4e0cb18dcbd569ebdba201bfb9e2596ba5b
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-02-15 10:44:47 +00:00
Robert Loehning
901d74121a Squish: Use existing tools for finding executables
Change-Id: Ic3e7f5db6d12e37f908df3290893768a5be4fa56
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-02-15 10:43:11 +00:00
Robert Loehning
6f7c4249ad Squish: Stabilize tst_CSUP06
Change-Id: I52f4c858f178cb3018e57461e2350564fbf78024
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-02-15 10:40:54 +00:00
Christian Stenger
d7caae5fa6 Core: Change shortcut for maximizing outputpane...
...and limit the shortcuts for the outputpanes.

An output pane gets it shortcut by the ordering number it's added
to Qt Creator. Depending on the number of enabled plugins we now
have more output panes than available digits.
Alt+9 (or Cmd+9 on OSX) had been used already for maximizing the
outputpane, so changing this shortcut and ensure to use only the
available digits for the outputpanes.

Task-number: QTCREATORBUG-15356
Change-Id: I41a9e3df11a1abde3ec4c5d4a13e932bec024154
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-02-15 10:33:20 +00:00
Eike Ziller
5c0b2d1b14 Beautifier: Use Utils::runAsync
Gets rid of usage of global thread pool and ugly implementation.

Change-Id: If7ca1f479bb837e61fa7f57535b7b099f09800f2
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-15 10:23:59 +00:00
Orgad Shaneh
ecdc2013cd Git: Fix tree validator in grep
Allow all non-space characters

Change-Id: I6f64392d80aed7ac560f9564d91305074ed0996d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-15 10:21:13 +00:00
Orgad Shaneh
4cf86a4f85 Git: Inline a signal connection
Change-Id: I973ad0dad22df95fccfaa0ed5190bed696233e8c
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-15 10:20:53 +00:00
Christian Stenger
38bea873d3 CMake: Fix missing include
Introduced with 18afa34587

Change-Id: Ib4e88c40439a58433ca549c78de8be5a443c2157
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-02-15 05:54:30 +00:00
Eike Ziller
dd7915acfe ShellCommand: Add missing include
It was included only by another included header.

Change-Id: Idff745a7d811c7fe0c4c791eeda884bcd4a62d98
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-02-12 13:43:28 +00:00
Tobias Hunger
18afa34587 CMake: Add CMakeConfigurationKitInformation
Add CMakeConfigurationKitInformation and supporting classes.

This KitInformation can hold CMake settings that are to be applied
for all configurations when this kit is used. It contains e.g.
the Qt version and toolchain configured in the kit by default, but
can be extended to hold more.

The UI will warn if the toolchain or Qt version set up in CMake
does not match up with those used by the Kit, but it will allow
the user to proceed.

Change-Id: I73f06a6535ce14de323130d74af83b9cb2ec0f0f
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-02-12 13:31:10 +00:00
Eike Ziller
3447f8d9f0 MultiTask: Use Utils::runAsync
Change-Id: I7df87abe6839ed1738f610df1a173a6c9eded31e
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-02-12 13:29:14 +00:00
Eike Ziller
29436c3959 runAsync: Set thread priority also when not running in thread pool
Change-Id: I527610cd1d5ed2daf66aa01073e1a001ec56641e
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-02-12 13:29:01 +00:00
Christian Kandeler
b7ee61d389 Update qbs submodule.
To HEAD of 1.4 branch.

Change-Id: Ia56b692563848cf27db89b30bfd3439840a4dc41
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2016-02-12 13:15:53 +00:00
Tobias Hunger
335b9644b6 CMake: Remove debug output
Change-Id: I69e1fd6462f5b03bad8721b236529a12b48a2fc8
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-12 13:13:24 +00:00
Eike Ziller
b4e72c2e2b ProjectExplorer: Use runAsync
Change-Id: Ie8e188f3d2a328f24d86bde4d4d7ad01c709dc24
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-12 12:38:43 +00:00
Eike Ziller
8b4f14a8ad Android: Use Utils::runAsync
Change-Id: I632d165be4a7e1f35e6e3d7bf401d40817b17223
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-12 12:38:35 +00:00
Tobias Hunger
c7d906214b CMakeParser: Remove sub-parser setup from CMakeParser
This makes the class more applicable for later re-use.

Change-Id: Ic717dd63962b254fce639061f16b1ca8e12d8098
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-02-12 12:37:18 +00:00
Tobias Hunger
d400959d7e CMakeCbpParser: Small cleanups
* Do follow-up fixes to CMakeTool

Change-Id: Ia3c587acb85d613499e91988200d8bbae32eca3d
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-02-12 12:37:11 +00:00
Orgad Shaneh
e868357107 VCS: Reslot describe functions
They're used by VcsEditorFactory

Change-Id: I9211f406b389649bf8ff9fe7f24522026b1711d4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-12 12:32:06 +00:00
Nikolai Kosjar
b064b06759 Clang: Display also child diagnostics in tooltips
...by introducing a custom tooltip widget for diagnostics.

Locations and fixits of child diagnostics are presented as clickable
links, leading to that position in the editor or to the execution of
that fix it.

Change-Id: I83e801e22d0421dd29275e333e5dd91587885cf1
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-02-12 11:54:09 +00:00
Tobias Hunger
47a5c7f466 CMakeKitConfigWidget: Clean up code
* Use namespace ProjectExplorer
* Move around some headers

Change-Id: I31bea44a25325b5dbc436c55c3db012e22503391
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-02-12 11:42:40 +00:00
Tobias Hunger
2bcfce96ba CMakeKitInformation: Clean up headers
Change-Id: I903c6529d0df83aaef9f109cdc2650cb76392bd5
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-02-12 11:42:36 +00:00
Nikolai Kosjar
9a4284d666 Clang: Use CppHoverHandler for diagnostic tooltips
We used to call QTextCharFormat::setToolTip from the ExtraSelection to
install the diagnostic tooltip. Since this allows to set only text
tooltips and we would like to introduce a custom tooltip widget for
diagnostics, make use of CppHoverHandler, which is more flexible.

Change-Id: Ia1b2c3c50810596ce4a3a025002e6e4efd8789db
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-02-12 11:20:27 +00:00
Tobias Hunger
593ed52c94 CMakeProjectPlugin: Clean up some headers
Change-Id: I8ded721395b72bb1c1e6a563f7ebb98389d39236
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-02-12 11:12:37 +00:00
Tobias Hunger
a764bb49d8 CMake: Add CMakeGeneratorKitInformation
Change-Id: I877c248c7b93268281fc68e814e479d24b844d5f
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-02-12 11:02:16 +00:00
Tobias Hunger
c3aac7624c CMake: Parse cmake syntax errors
Improve the CMakeParser so that it picks up the most common
errors/warnings that cmake throws when running into errors while
parsing its CMakeLists.txt files.

Change-Id: Ie3774695418f13aa3869d78802c1a552e6fd384e
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-02-12 10:56:54 +00:00
Tobias Hunger
36118a5cb0 ClangBackend: Fix warning about unused member variable
Change-Id: I0608eb32f77bb677f1fecc1c75082ecf29ff1aa8
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-12 10:40:57 +00:00
Tobias Hunger
b2d537c878 CMake: Cleanup files
Change-Id: I22a20e598389bf27417bcb230dd469f8f9dfce0e
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-12 10:37:13 +00:00
Eike Ziller
61bcbd872e ClearCase: Use Utils::runAsync
Change-Id: Ib2752b2874258a9736b329b2d0ca66ca15998f23
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-02-12 09:51:20 +00:00
Nikolai Kosjar
e1b14565fa CppTools: Do not clear project state on session unload
Affected functionality was, among others:
 * Getting the correct project part when opening a file
 * Fallback project part (merged defines/includes) not up to date
 * Fallback for "Switch Header/Source" not up to date

In the early days sessions switching was probably implemented by "close
all projects of session X, open all projects of session Y". That's not
the case anymore today.

Change-Id: I4c6a80e2eb219615d3ea6fcf07be7c05072c8832
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-12 07:48:27 +00:00
Orgad Shaneh
ca108a84b9 Git: Show message on fetch success
Change-Id: Ibe9f020d21a0c5eee0ba044b99c62fb181fc173f
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2016-02-11 20:47:24 +00:00
Nikita Baryshnikov
5a408f9db1 ToolchainManager: fix testToolChainManager test
fix "Auto: auto-redetect, duplicate users" case

Change-Id: I7d0ca9a3eff9f217412babf61df8bf7fdb978302
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-02-11 14:45:45 +00:00
Tobias Hunger
eb651f9fd6 Qmake: moc notes no longer are considered to be errors
Change-Id: Ifccd877d5096279f38a0084a4cb0eba0e7705d87
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-02-11 14:41:17 +00:00
Tobias Hunger
3990c1c7ed Add "-notest" option that prevents a plugin from being tested
This is similar to "-noload" and prevents a plugin from being loaded
for testing. Nice to blacklist some problematic plugins.

Change-Id: Ib273d244333a9d275969c9608e556a11b7518386
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-02-11 14:41:02 +00:00
Friedemann Kleint
eb4d1584b6 Add experimental clang-cl based toolchain.
Add new ClangClToolChain, which is autodetect by checking the registry
key created by LLVM and trying to find a suitable version of MSVC2015.

Add ClangClParser for parsing the output.

[ChangeLog][ProjectExplorer] Added experimental support for clang-cl.

Task-number: QTBUG-50804
Task-number: QTCREATORBUG-15641
Change-Id: Id34341570e935afc8ef6a104421d4abb5892176f
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-11 09:03:05 +00:00
Eike Ziller
d3c23c3330 GitSubmitEditor: Simplify update of files model
Report the commit data fetch result, including success state and error
message, through the QFuture. That also removes the need for creating a
fetcher QObject and the logic to make sure it is deleted.
Also exchange QtConcurrent::run by Utils::runAsync.

Change-Id: I9c0c03eff2eaa32f577b4599ffda58b0c09de59b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-02-11 07:16:15 +00:00
Tobias Hunger
acc2194e54 CodePaster: Fix broken connects
I broke some connects today, fix them by turning them into
Qt5 style connects.

Change-Id: I5aab2afcebbef5a5f36840352598c747d5d60477
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-10 16:32:48 +00:00
Tobias Hunger
f62663e8e4 Polish: Remove some more useless "slots" from headers
Change-Id: I9ba3b93e53e63153c1573d51c1aac53b7e088362
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-02-10 15:02:05 +00:00
Tobias Hunger
b4195d5174 Git: Modernize
* pragma once
* member initialization
* s/struct/class/
* Introduce a static GitPlugin::client() method and use it

Change-Id: Ifdcac86dd16f3cdba11d564d03e9a15f00a6afdb
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-02-10 15:01:57 +00:00
Alessandro Portale
7db0023e8c QmlDesigner: HighDpi fixes for some graphics
- Fresh arrow_down, which is used in many places
- Fresh arrow_up and some tweaks in spinbox
- Fresh graphics for "submenu", "expression and "placeholder"
- Fresh graphics for checkbox indicator
- Removed unused hover checkbox variants
- Added pressed state for checkbox_tr
- Removed radius of focus rectangle in the lineedit

Change-Id: I710ec6ac8ebf86c85a155a812e581cca88845ce3
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-02-10 14:07:12 +00:00
Ulf Hermann
6980ccf8e1 QmlProfiler: Fix Qt version comparison for connection type
The previous code would fail on Qt versions n.0 to n.5 with n > 5.

Change-Id: I7e9d512bab269137862370db86e0da19e250059e
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2016-02-10 13:35:02 +00:00
Tobias Hunger
5e81050450 Autotools: Use Qt5 style connects
* Get rid of "slots" from the headers

Change-Id: Ie12f5705a2ca92a431992a45f57193a72ea7032a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-02-10 13:32:58 +00:00
Tobias Hunger
8b46136b60 Perforce: Modernize
* use pragma once
* remove debug code
* Remove some "slots"
* Use Qt5 style connects (almost everywhere)

Change-Id: Iaa9c3bbacbb2be3c96502c52cc169ad4ec7015a5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-02-10 13:32:50 +00:00
Orgad Shaneh
84f2875f6d Git: Support tree argument for Grep
Change-Id: Ic7dfcd8bad98223d68725f1a0c1f103ad8ea4e0f
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-10 13:10:17 +00:00
Tobias Hunger
fcdb286cec Mercurial: Modernize
* Use pragma once
* Use override
* Use member initialization

Change-Id: Ibd4f3c65929932db0e44be70fd5915b921438564
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-02-10 13:08:40 +00:00