Commit Graph

45323 Commits

Author SHA1 Message Date
Tobias Hunger
859b218059 CMake: Small improvements to the CMakeConfigItem
* Add a method to more easily get values from list of ConfigItems
* Cleanup message signature

Change-Id: I728b7c8f5c382fe4a9bf2e3b8636d63db3d07881
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-11 14:57:40 +00:00
Eike Ziller
05ade413ce Add changes file for 4.0.0
Change-Id: I5aab23208b53dca221bccb4a42759db44aaae0d6
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2016-03-11 12:41:21 +00:00
Christian Kandeler
fdc552bda6 QbsProjectManager: Fine-tune project parse result handling.
And add some log output to help with debugging.

Change-Id: I806aee8b34ee8d90bdd40fa8d9ac2cd313485c28
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2016-03-11 12:36:43 +00:00
Eike Ziller
9f15f70723 SettingsDialog: Modernize
Change-Id: Ia49293754b971c568eb48a577465266a2883a42f
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-11 10:44:27 +00:00
Eike Ziller
343242a988 SettingsDialog: Do not create widgets when looking for page with ID
For pages that are not delayed additionally by an OptionsPageProvider,
we can just look for the ID without creating any widgets.

Task-number: QTCREATORBUG-15848
Change-Id: I118aa4713e76c8a43df7abad9f846e68105c659e
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-11 10:44:16 +00:00
Eike Ziller
7cc1ee395d ProjectTree: Use Utils::equal
Change-Id: Id95f97a61e2ec5d3e0e9b2f3d1e28adfb1002df0
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-11 10:44:00 +00:00
hjk
a1926727cd Debugger: Compile fix
Change-Id: I6a2019898ad2259c78ec19c6914ddc689f6ef40c
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-03-11 10:16:28 +00:00
Robert Loehning
3b9f1659eb Squish: Update type of VCS log
Change-Id: Ia7359be2061a752a3e6957405b0150cd604b3bc7
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-11 10:08:40 +00:00
Tobias Hunger
972ea4cba0 ExtraCompiler: Run extra compiler in a thread
and make sure there are not too many of these threads
running at any time. This stops the massive process
startup when loading a project with many UI files, etc.

Task-number: QTCREATORBUG-15795
Change-Id: Icfcddd80d04e36b61ecafbbefe5a1a8b7ea02ec6
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
2016-03-11 09:49:25 +00:00
Christian Stenger
119a7dfd20 QmlProfiler: Fix running state
If a run finished not by using the 'Stop Profiling' button the
Application Output pane still handled the respective tab as running.

Change-Id: I283bea73fe9df86a89e6130ad6737a86e1dc0341
Reviewed-by: hjk <hjk@theqtcompany.com>
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
2016-03-11 09:48:30 +00:00
Ulf Hermann
3a2691c663 QmlDebug: Support multiple messages per packet
Sending multiple messages in a packet can dramatically reduce the
protocol overhead. QmlProfiler messages are only 26 bytes long, on
average. The "CanvasFrameRate" name, which is prepended to each packet
is 15 bytes long, not counting extra bytes for length information.

Change-Id: I67087cefc1f6bd72ba960414672b048015179869
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2016-03-11 09:31:55 +00:00
Orgad Shaneh
e75b88cd7c Valgrind: Do not open a terminal for callgrind control
Change-Id: I22892d43abc341703a2d046dc1d3b9bf4b736394
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-03-11 09:26:06 +00:00
Ulf Hermann
b62ae63fc2 QmlProfiler: Rewrite "tooltip" window of flame graph view
Having the window "run away" from the mouse is pretty unintuitive. Use
the familiar dragging paradigm from the timeline view instead. Also,
show notes and source locations there.

Change-Id: I15c4aee2d6c08d5f20e101b436129abe66789d3b
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2016-03-11 09:19:26 +00:00
Ulf Hermann
0b7c63d69f QmlProfiler: Fix note support in flamegraph view
The model didn't really support it and we didn't have any visualization
for it. Now the events with notes or binding loops get an orange border.

Change-Id: I903f1d42afaf3567484b615b22381d38fc81b9b5
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2016-03-11 09:19:21 +00:00
David Schulz
443e75ba69 Debugger: Warn on Inappropriate debugger.
Change-Id: Ib8777277032c5bd062ffaabd6281b6402576d0fe
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-03-11 09:13:08 +00:00
Christian Stenger
7ea179d0db ClangStaticAnalyzer: Fix running state
If a run finished Application Output pane still handled the respective tab
as running.

Change-Id: I0bc7e1f61b68e700a875538bdd1c63c18bec8df3
Reviewed-by: hjk <hjk@theqtcompany.com>
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-03-11 09:07:25 +00:00
hjk
48fb9e1855 Debugger: Move main splitter creation to DebugMainWindow setup
To allow other mode main windows to re-use the perspective
concept.

Change-Id: Icf00b4f0e4bd73a09ebec131ef9c578154f25eec
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-11 08:08:11 +00:00
Orgad Shaneh
5b8c254665 Debugger: Set default button in Unstarted App dialog
+ set initial focus to the executable.

Change-Id: I3289e98293cffde6df5eaba844add807bafa6cd8
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-03-11 07:08:32 +00:00
Christian Stenger
325ed9a1de PythonEditor: Ensure to set environment
Change-Id: Ie216b28b7effb2d44ba507dffa07bb7f463030e7
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-03-11 07:07:07 +00:00
hjk
d7b0c41c6b ClangStaticAnalyzer: Disable start actions during building
Helps to prevent multiple starts of the tool in parallel.

Also fix a copy-and-paste tooltip error.

Change-Id: I4a7fb5e4ba17981b419420a7871b130f74e5ecde
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-03-10 15:39:23 +00:00
Tobias Hunger
d122c34c96 CMake: Add ability to force CMake cache clear
Some CMake parameters changes requires to clear cache and run CMake
from scratch. Add ability to force it from the CMake configuration
dialog.

This change based on the work of Alexander Drozdov.

Change-Id: I21d8e12eec7e1f7bca560f44c43f25e4f333fcf0
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-10 15:22:55 +00:00
Christian Stenger
361ea24629 ClearCase: Fix plugin unit tests
This function is called by QMetaObject::invokeMethod.

Broke with f62663e8e4.

Change-Id: I0efc2f24043e0313d500840e6022f3d73ca8a127
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-03-10 14:10:24 +00:00
Christian Stenger
8a239b8ffa AutoTest: Do not try to install test files
As both subprojects use files with the same name the install step
fails since using Qbs 1.5. Additionally it does not make any
sense to install these files.

Change-Id: Ib7aa9d80810f3ea3efa0df306fbce2a79cc49eac
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-03-10 14:07:33 +00:00
Tobias Hunger
024f1cf422 Qmake: Do not show "Run qmake" needlessly
Do not show "Run qmake" in the menu right after Qt Creator starts up
with no project loaded.

Change-Id: I371734e902b518b6270ca14887db14c254237ba2
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-03-10 13:30:06 +00:00
Tobias Hunger
cdf6e499c5 Qmake: Modernize code
Change-Id: I4ebedb69ae91843fd096af6f4cf225ec0c76a0b2
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-03-10 13:30:02 +00:00
hjk
5996ff0ab8 QmlProfiler: Disable start actions during building
Helps to prevent multiple starts of the tool in parallel.

Change-Id: Ibd2d0a66e7ce08ea07604f13fbee6d18a40dfc39
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
2016-03-10 13:02:06 +00:00
Robert Loehning
1b0d00ef0c Squish: Update tst_simple_analyze
Change-Id: I902e1e70bd195cf0108efdc8893927a101e93a42
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-10 12:32:51 +00:00
Orgad Shaneh
c52f278573 Git: Save only current document on Undo Uncommitted Changes
Task-number: QTCREATORBUG-15622
Change-Id: I9927a344976aa323701cad0a58550e27fa552c08
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-10 11:47:49 +00:00
hjk
2d4c144fd3 Valgrind: Disable start actions during building
This prevents multiple starts of the same tool.

Change-Id: I2df89fa4336ff649a56c4dfb1f721ac31497d396
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-10 11:22:41 +00:00
BogDan Vatra
bf3ba0f577 Don't create a QProcess object every second.
Creating a QProcess every second is very VERY expensive, making the QtCreator UI
experience pretty bad, the UI was not responsive when debugging or even when
running an Android application from QtCreator.

Thanks to Intel's VTUNE I could spot and fix the problem in minutes.

Change-Id: I6d3dc71db93e91d9846101a1877bab017df41aba
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-10 11:22:14 +00:00
hjk
6884b377db ProjectExplorer: Remove project parameter from PEP::canRun()
.. and rename it to canRunStartupProject().

It's only ever used with the startup project. No need to let
all callers retrieve it by themselves.

Change-Id: I24e56ce339bde70d96e28db51e6ddcf75c277ceb
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-10 10:42:14 +00:00
Orgad Shaneh
5834769cbf Git: Hide obsolete branches by default in branches dialog
Task-number: QTCREATORBUG-15544
Change-Id: I411c7eacd2c154cad08234c0bd22e16dfecb961c
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-10 10:24:50 +00:00
hjk
de127b1f5c Debugger: Remove unused showPromptDialog function
Change-Id: Ie8f2cc905cb5e39c5419837e298c37ed4e1ec377
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-10 10:03:33 +00:00
hjk
9fba0a6e03 Valgrind: Clean error view on run control startup again
Fixes a recently introduced regression.

Change-Id: Ia36977df87906c320527123f84dd1a347768b06c
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-10 10:03:23 +00:00
Orgad Shaneh
6d08c1f914 Git: Document line output in branch model
Change-Id: I723df048844cf9a803aa0c438cddf8fdcdd407ba
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-03-10 07:41:46 +00:00
Jochen Becher
bcc1786fa2 ModelEditor: Add missing namespace for class declaration
Change-Id: I4a10f540042e2730c75559dfd185682d998fe714
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-09 20:40:54 +00:00
hjk
f09f39f7e2 FancyMainWindow: Move toolbarDockWidget "property" to subclass
This was only used to accommodate the debugger main window
and is not needed in the base class.

Change-Id: Ifbe9937cd4c21f5bed2fab35b23d874f4f2dd0e4
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-03-09 15:35:12 +00:00
Robert Loehning
888e2cdfa9 Squish: Update opening of CMake projects
Change-Id: I0131d43c1d7b6d835fb2e1e6c5b5a9d27825a849
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-09 14:56:57 +00:00
Christian Stenger
86c2a44c21 Debugger: Use fixed size for perspective combo box...
...to avoid adjusting the width again and again while debugging.

Change-Id: I67f68b2d54d9f3f9a32cbf1049b4f9e9bd63e010
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-03-09 13:44:42 +00:00
Robert Loehning
f651960ed6 Squish: Update objects for debugging
Change-Id: I814de42ec153548fdbedad27a06f20515ad49700
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-09 13:21:50 +00:00
Eike Ziller
21c25bd1ae Fix disambiguated display name on case insensitive file systems
blah/Foo/bar.cpp and blubb/foo/bar.cpp should not be shown as
Foo/bar.cpp and foo/bar.cpp

Change-Id: I900606c63996eea4c11d09ff13579b6cc031a8c6
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-03-09 13:00:01 +00:00
Alessandro Portale
6ea9201f7b LocatorWidget: Fix hover effect
..by setting Qt::WA_Hover

Change-Id: If4b6e8d443a70e18796dd78b261495f2400db0f4
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-09 12:40:59 +00:00
Tobias Hunger
ccf69b3495 CMake: Fix generator kit information widget
Display was resetting to Ninja generator.

Change-Id: Iee39b40da85a5df1140d5880d674e104eed85ca3
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-09 12:11:54 +00:00
hjk
f294d3e6be Debugger: Remove one indirection in Debugger::registerAction
... and the now unused action id -> action description hash.

Change-Id: I36ad3658b52fcf32b628620b5cc2bd98bc2ac849
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-09 11:43:38 +00:00
Eike Ziller
9aee611520 OutputPanes: Fix various issues with restoring state
- maximize tool button was synced between modes,
  but the size didn't match that
- size was restored to the last visible size, even if that was
  maximized, but maximize state didn't match that

Manage the state (maximize state & non-maximized size) in the output
pane placeholders themselves. The output pane manager is only
responsible for the non maximized size setting that is restored at
restart.

Task-number: QTCREATORBUG-10992
Change-Id: I35b946bbffeef9fbf5301e34018dd0867bd902a6
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-09 11:18:59 +00:00
hjk
ea29a83095 Debugger: Do not switch to undefined perspectives
This implies switching to Debug mode and is currently triggered
by the GammrayIntegration. Avoid it as long as GammaRay has
a mode of its own.

Change-Id: I6174554610038cb66fb1bc977dc537b47941a1d8
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-09 10:17:56 +00:00
Francois Ferrand
27deb9c876 C++: fix digraph parsing for <:: exception.
According to section 2.5 from the standard:
""" If the input stream has been parsed into preprocessing tokens up to
a given character: ... Otherwise, if the next three characters are <::
and the subsequent character is neither : nor >, the < is treated as a
preprocessor token by itself and not as the first character of the
alternative token <:. """

Change-Id: Ib9cdac61e3c2243d1bc1d4471a09ae6bd839fdda
Task-number: QTCREATORBUG-13253
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2016-03-08 17:24:33 +00:00
Francois Ferrand
dc7b6ca6c3 C++: fix lexing POUND_POUND token with digraphs.
Change-Id: I9204b827c60b283cc4e6b88c810b31eb7587c7db
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2016-03-08 17:24:28 +00:00
Francois Ferrand
41b232962a C++: fix trigraph parsing in macros.
Trigraphs must only be parsed before/during preprocessing. The preprocessor
will now replace trigraphs with their standard form, and re-lexing in
TranslationUnit will not try to parse any trigraph.

Also added a few missing trigraphs: ??=, ??', ??! and ??-.

Task-number: QTCREATORBUG-13253
Change-Id: I1723ed53b00090b878c22b83b7e963b647b65f72
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2016-03-08 17:24:22 +00:00
Orgad Shaneh
9057143228 BinEditor: Fix crash on editor initialization
MemoryAgent::doCreateBinEditor calls openEditorWithContents, with empty
contents.

The BinEditor fails to handle this case, and crashes when it divides by
zero.

Task-number: QTCREATORBUG-15835
Change-Id: I8009ef991a445ef4cc192d1bda6a208d51e2b48b
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-03-08 15:22:05 +00:00