Commit Graph

45338 Commits

Author SHA1 Message Date
Francois Ferrand
ee1916fc00 Autotest: remove count from changeCheckStateAll
Change-Id: I8fa55291ba505f34236c0a36ce8d9e17db8997c8
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-14 08:23:32 +00:00
Francois Ferrand
a86dbae28b Autotest: fix indentation computation in TestResultDelegate.
Change-Id: I6e2add861658757504ec715d0e86c6f0a9119301
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-14 08:23:25 +00:00
Orgad Shaneh
697ffd45d1 GenericHighlighter: Use right styles for warning/error
Change-Id: I7007fe2d52c598be6aa00fde9b739bff28ea21a4
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-03-14 07:54:00 +00:00
Christian Stenger
659774c31d AutoTest: Disable Run buttons if projects' configuration changes
Change-Id: I62cb190fa54a9069cd1cd5a09664689485acc4cc
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-03-14 07:47:12 +00:00
Christian Stenger
bf6f1232f7 AutoTest: Use settings for test run
Change-Id: I3871d15c34f19ea87d9c6ff99a6b0a83dad16fd1
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-03-14 07:46:59 +00:00
Alessandro Portale
b01879dea8 ManhattanStyle: Fix "QFSFileEngine::open: No file name specified"
It apparently was a bad idea to let QImage load an empty string in case
of flat style. In order to fix that, we simplyfy the code by making the
images static locals in the scope for non-flat painting.

That has the additional advantage that they are only loaded once.

Change-Id: I8acb2ff09fe77cc708be2670cddaa41e23c9afa7
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-03-13 13:03:28 +00:00
Alessandro Portale
5a031f5bbe "Dark Frame" theme: Highlight the active empty document
The current active and empty document should be highlighted. That was
broken with the "Dark Frame" theme.

Change-Id: I0632f654c146492b7e7a9d61db31e2d85c3d52fd
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-13 01:11:37 +00:00
Alessandro Portale
a0fbfd3bd4 Themes: Make toolbar highlights optional
Following Diana's flat style motto "remove unnecessary lines", this
patch makes highlights and shadows in the toolbars optional, and removes
them for the new flat theme.

"default" and "dark" are not affected by this change.

Change-Id: Iadbbaa669e318406a154fed3e07890fd40f5f621
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-03-12 22:38:41 +00:00
Orgad Shaneh
cfaba1a190 QbsPM: Add missing override
Change-Id: I1101d6788c7d04940ddf4ef399d808634415e72c
Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com>
2016-03-12 22:23:14 +00:00
Alessandro Portale
b6d05436fb "Dark Frame" theme: do not force the use of fusion style
Unlike the "dark" theme, thia theme does not try to modify
the standard widgets and dialogs.

Change-Id: If85f1bc90113516750c546cbec74cd1f562683eb
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-12 21:56:16 +00:00
Eike Ziller
f5b988d507 README: Add comment on use of SQLite
Change-Id: I763389974fdb153ee3120a6e11653dee2d4ff34d
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-11 23:27:19 +00:00
Jochen Becher
4e2348a4ea ModelEditor: Fix i18n
Change-Id: I6e81e22f031055c6e700e1816653f26f196dfe25
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-11 19:27:06 +00:00
Jochen Becher
7c1057bf00 ModelEditor: Remove unfinished relation when focus is lost
Change-Id: Iee1031095845512bc69a31cbde7585e2f74ef805
Task-number: QTCREATORBUG-15799
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-11 19:26:57 +00:00
Jochen Becher
ea014b8436 ModelEditor: Disable menu item if no diagram is open
Change-Id: I95937f4533307364b6eb1fb42ab821c825883346
Task-number: QTCREATORBUG-15853
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-11 19:26:44 +00:00
Ulf Hermann
179a28f76d QmlProfiler: Choose state widget background from theme
This way we don't get white text on light grey background.

Change-Id: I632e692d0528d554e6ca90a4202d146c81d0ad66
Task-number: QTCREATORBUG-15842
Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com>
2016-03-11 16:59:09 +00:00
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