Commit Graph

45053 Commits

Author SHA1 Message Date
Alessandro Portale
04a68518c9 Themes: Make theming of the menu bar optional
Inspired by numerous user feedback, I want to turn off the theming of
the menu bar for the new flat theme, and make it look like in the
default theme. At the same time, I want to leave the "dark" theme as it
currently is.

This patch adds a theme flag FlatMenuBar and turns it off for the new
theme.

Change-Id: I9bba056a27fab7a634b45324e3fe8cd26f50df74
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-14 11:00:44 +00:00
Ulf Hermann
b6c1e58f58 ExtraCompiler: Parent extra compilers to plugins
Previously the extra compilers were never destructed. As any plugin that
registers an extra compiler factory has to depend on ProjectExplorer, it
will delete its factory before ProjectExplorer is unloaded. So, removing
the extra compiler from the list on destroyed() is safe.

Change-Id: I22fbe662a5704c0294512b8774acb85745c1cbe5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-14 10:55:34 +00:00
Ulf Hermann
ee729091fd Timeline: Scroll the main view when its width changes
This updates the scrollbar and the zoom slider to the new realities.

Change-Id: Iedcbf839332b4e5cb2d59917b0f822feb11b0d44
Task-number: QTCREATORBUG-15843
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2016-03-14 10:07:16 +00:00
Christian Kandeler
0bb8d52269 QbsProjectManager: Rework parsing/rule execution logic again.
It does not seem to be safe to update CPP data etc and then continue
with rule execution. So now we do it like this: We execute rules if and
only if no target artifact data is present, and updates are only done
afterwards.

Change-Id: I580918a8ec434b2c59bd044506c3a8e961c6b674
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-14 09:48:34 +00:00
Orgad Shaneh
12574a4c74 Core: Fix memory leak
Detected by memcheck

Change-Id: Ic6e1ae6735ebea252858682e1a269f86166a9aa4
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-03-14 09:46:47 +00:00
Orgad Shaneh
32f95a3493 QmlProfilerExtension: Initialize all members in FlameGraph
Use C++11 member initialization.

Change-Id: I6b2ed5c82854eadd15f97d7753cc6e0cc727ee5c
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
2016-03-14 09:44:28 +00:00
Orgad Shaneh
b427ac706b Core: Initialize all members in FindToolbar
Use C++11 member initialization.

Change-Id: Ib4db2fc9354658a0a4969c18f2857678cb49bdae
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-03-14 09:43:27 +00:00
Francois Ferrand
3044d0f7cb Autotests: show failed test count in panel badge.
Change-Id: I4e747530460ebe07c6589c7562a32cd35c60b8bf
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-14 09:36:38 +00:00
Orgad Shaneh
41059acc18 Changelog: Add some entries
Change-Id: Icb61b6748e597568416dd6419b93e0829afc1ecb
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-03-14 09:36:37 +00:00
Orgad Shaneh
62570e1640 CMake: Fix crash when changing build directory several times in a row
Change-Id: I349e72a321f1a0cdcbce4f948c363336815ef3f3
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-14 09:33:26 +00:00
Orgad Shaneh
a7d89e6bc8 QtSupport: De-noise generators
Change-Id: Ic6148e9de36b67cb3142ab0ccca4b8cdd920cf95
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-03-14 08:51:05 +00:00
Christian Stenger
f34bb5e81c AutoTest: Avoid using costly containers
Replace several occurrences of QMap with QHash as we often do
not care about the order and use iterators instead of fetching
keys or values to iterate over them.

Change-Id: I5061a7e7e60fe259ac2aa31915f338a373e278d3
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-03-14 08:46:28 +00:00
Orgad Shaneh
58654c134e GenericHighlighter: Update from latest KTextEditor source
Change-Id: I84b783df1eaca9e162e50f23e1da8fa0afa9666d
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-03-14 08:34:33 +00:00
Orgad Shaneh
5da9055706 GenericHighlighter: Support new default styles
Introduced in KTextEditor commit f80e12bedca0d8f682aebc450d1b6d66550010ce
(version 4.100, 2014 Mar).

Change-Id: Ib3614077b3bf5f4254266ec79d0abdbb486fd685
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-03-14 08:34:27 +00:00
Orgad Shaneh
3eecd80064 GenericHighlighter: Annotate styles for formats
And reorder the IDs insertions by the enum order.

Change-Id: Idad8e8635772eacbb54b15d78dcd9ab93618fbba
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-03-14 08:33:39 +00:00
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