Commit Graph

45338 Commits

Author SHA1 Message Date
Christian Kandeler
e6a64d40ef Update qbs submodule.
And adapt to API change.

Task-number: QBS-952
Change-Id: I668d6830187f7954e7391f09ff8522422fd0d44d
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2016-04-08 10:56:29 +00:00
hjk
e9b1e493c2 Debugger: Move struct sorting logic to generic parser
Backends only have to specify whether an object members are sortable
in principle (e.g. all structs), and some numeric 'sortgroup' value
for member items (higher values are always sorted on top).

Change-Id: I10ce94580374fed48a35f058a575a1408d6801af
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-08 10:22:31 +00:00
Tobias Hunger
58c326cb73 CMake: Add a reset button to the CMake Configuration edit in Kits
Add a reset button to the CMake configuration edit dialog that is
available in the kits configuration panel. It restores the default
value for the kit.

Change-Id: I89921e2c86cbf8d9658a32fe5fa51dc2f903ff00
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-04-08 10:10:56 +00:00
David Schulz
9ceb9cd777 CdbExt: Add valarray dumper.
Change-Id: I9d05fc9217d014b011223d0739ed2267ae7ca479
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-08 08:47:30 +00:00
hjk
683131559c ProjectExplorer: Add a comment regarding the use of EnvironmentAspect
Also, make EnvironmentAspect::environment() non-virtual, it should
always be equal to base + user changes.

Change-Id: I0259894d5ac3121a840631e37baebdcfa86b198b
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-04-08 07:24:29 +00:00
Leena Miettinen
a1ac19c91b Doc: several themes are now available
Change-Id: If95159126652b862c1e9434efbe524b7ab8b6874
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-04-08 06:48:57 +00:00
Orgad Shaneh
e883650ed5 ProjectExplorer: Gracefully abort process upon ExtraCompiler delete
Task-number: QTCREATORBUG-15993
Change-Id: I9d3bf92a6c2e41bb40a01a1a613f6b98f72cf6be
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-04-07 16:49:51 +00:00
Robert Loehning
f589e8b38d More contrast between enabled/disabled state of stop icon
Now also for Default Flat theme

Change-Id: I6d0962240b2eb19dbaecc390204c1af2de533d3c
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-04-07 16:01:49 +00:00
Alessandro Portale
89ada77ea0 qmljs: Remove duplicated icons
This change makes qmljs reuse the equivalent icons from CPlusPlus.

Change-Id: I955fc0dd08282ed0556d804a59108a34e1212521
Reviewed-by: Marco Benelli <marco.benelli@theqtcompany.com>
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-04-07 15:43:46 +00:00
Friedemann Kleint
5e274c6f54 Set execute permission on all scripts.
Change-Id: I406665390406dca324c2c98dda37540b22a065df
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-04-07 15:04:26 +00:00
Robert Loehning
ca66ad3d0c Squish: Expect missing breakpoints in qml
Task-number: QTCREATORBUG-15806
Change-Id: Id7b5966a4ae6fafe979f7373718b89fdcc2b918b
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-07 14:40:59 +00:00
Alessandro Portale
adc3084b0a ManhattanStyle: HighDPI fix for ToolButton with menu
Off-by-1.5

Change-Id: I300b2ff66622443b2b20ddb49a9038417ad4d074
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-04-07 14:38:05 +00:00
Alessandro Portale
574ab3c07b AutoTest: Remove duplicated icons
This change makes AutoTest reuse the equivalent icons from CPlusPlus.

Change-Id: I01f8c30798c7f1b622469ae1f25418e9d1bd8a93
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-07 13:15:06 +00:00
Nikolai Kosjar
342e87edb8 README.md: Add license entry for src/tools/3rdparty/cplusplus-keywordgen
Change-Id: Id2f9c23bf184d533580e8d572c6616ca20d77c57
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-04-07 13:10:38 +00:00
Tobias Hunger
d90c03ee9f GenericProject: Make initial selection of files work
All files where considered to be "out-of-tree" since the base directory
was not known at the time the initially marked files were set.

Also remove the need to selectAllFiles later by making sure an
empty set of initially marked files is treated as "select all files".

Change-Id: I5b9745f8afbcc389bed7032b9e76b647f54d681a
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-07 12:05:50 +00:00
Tobias Hunger
43d571b51b GenericProject: Sprinkle nullptr over the code
Change-Id: I0f3a8f9c6717dff81642500e5defb3b442155165
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-07 12:05:45 +00:00
Tobias Hunger
e819357bc9 GenericProject: Pass base directory to startParsing(...) method
Change-Id: I59645aabac99261526808887e5fe25e575d8d79d
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-07 12:05:41 +00:00
Tobias Hunger
c76548ce29 GenericProject: Small readability improvement
Change-Id: If1ffe9c92f8f54ffd321b5ac2bf37b2b7ebf6544
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-07 12:05:37 +00:00
Tobias Hunger
977608bc5d GenericProject: Simplify code using member initialization
Change-Id: Iac260f97224c0bd440542b94ee50271be9dc2bf5
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-07 12:05:33 +00:00
Tobias Hunger
11b5dfb679 GenericProject: Fix "Edit Files..." context menu action
This was using the project file as a base, not the project
directory. So no files could get selected.

Change-Id: I60d684ee22a746ca42b1544f8c29626c438cf589
Task-number: QTCREATORBUG-16011
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
2016-04-07 12:05:29 +00:00
Eike Ziller
afbfe18e67 EditorManager: Reset save/save as/revert action texts
The old file name was still hanging around after all files were closed.
Also reduce number of translated strings.

Task-number: QTCREATORBUG-14800
Change-Id: I437072be0f7dcd26f55a7895d20cf8fe6e3cd8b5
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-04-07 11:19:34 +00:00
Robert Loehning
25919d9020 Squish: Don't crash when missing breakpoint
Change-Id: I8eba72baa043bebc8618fbfe51fa31d7215165e7
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-07 11:11:54 +00:00
Albert Astals Cid
be94766d25 Make sure the path we add to pendingDocs is canonical
Otherwise i had a problem where we were waiting for
 /usr/share/unity8//Dash/DashPageHeader.qml
but then on QmlProfilerDetailsRewriter::documentReady we got
 /usr/share/unity8/Dash/DashPageHeader.qml
and since it's not the same qstring we didn't realize it was the same file

Task-number: QTCREATORBUG-16020
Change-Id: I3b07450438d98734fbbff9f8b7a3d9d851ed4e5d
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
2016-04-07 11:07:53 +00:00
Alessandro Portale
57f31cb89b ClassView: Remove duplicated icon
This change makes ClassView reuse the equivalent icon from CPlusPlus.

Change-Id: I2c83d8869dfdb3d8e8f229fc7cf768dee15442ca
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-04-07 11:04:34 +00:00
Leena Miettinen
1b921e95b7 Doc: Exporting SVG images in image viewer
Change-Id: Id0eb167cf7d3f28157f50f17acfda1bb3ccc534a
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
2016-04-07 10:45:38 +00:00
Robert Loehning
513cc235fe Squish: Clean up expected fails
Change-Id: I216c6f6453412e65c48ddceaf950bd1112c32a42
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-07 10:29:30 +00:00
Tobias Hunger
83ae0cb934 CMake: Mark cmake as imperfect and disable RunConfigurations as necessary
CMake does not know whether a build target was configured out of the
current build or removed entirely, so implement the relevant marker.

Mark all of the "vanished" RunConfigurations as disabled.

Also remove one unnecessary level of indirection when setting up
RunConfigurations.

Change-Id: I30a21581823b4bff5a5be29480e64423b9379983
Task-number: QTCREATORBUG-15950
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-07 09:57:20 +00:00
Tobias Hunger
c018530587 ProjectExplorer: Handle imperfect build systems
Handle buildsystems with imperfect knowledge about what they
build more gracefully.

Leave RunConfigurations around if the build system can not tell
whether or not the relevant target was configured out of the
current build or completely removed from the build system.

This patch should not change the observable behavior of the code.

Change-Id: I0ddb4bd3966d184a4b5c9818e68adb107047ed1f
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-07 09:57:10 +00:00
hjk
6ed9ac35be Debugger: Do not change LANG when starting GDB
LC_NUMERIC is enough for the float reporting problem, and
LANG is too intrusive

Task-number: QTCREATORBUG-16010
Task-number: QTCREATORBUG-16024
Task-number: QTCREATORBUG-12800
Change-Id: Ia5bc31152e2b137c6b830a232460542a3827138a
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2016-04-07 09:51:58 +00:00
Robert Loehning
30541d0213 Squish: Don't expect fail anymore in HELP02
Change-Id: Iba979f099b31a35693d0fee49de86fe6b8b3c55c
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-07 09:33:00 +00:00
Robert Loehning
78c3fcc160 Squish: Small cleanup
Change-Id: I8ca788b28612568935dcf68bc57089c0a0174fb1
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-07 09:31:57 +00:00
Leena Miettinen
322c2d012f Doc: Mention Google C++ Testing framework in overview
Change-Id: I91b81990047184539eb26b3596e216c995f0a962
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-07 09:25:15 +00:00
Tim Jenssen
33bd9b387a QmlDesigner: setType also gets defaults
Change-Id: Ibdef1f5979515e53d225d3966a4b23ce0f4d9a79
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-07 09:07:17 +00:00
hjk
bb516e49ae Debugger: Escape quotes in GDB breakpoint conditions
Task-number: QTCREATORBUG-15821
Change-Id: I81faf3d31598538c04f843694b04f938bfb61a6e
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-07 09:03:06 +00:00
Nikolai Kosjar
4a0b2039c0 TextEditor: Do not delete both quotes on backspace
...if cursor is in-between.

Hitting backspace when the cursor is between two quotes

    "|"

deleted both quotes, which is unfavorable, especially when the user
tries to add quotes by starting with the closing quote.

Task-number: QTCREATORBUG-14111
Change-Id: I8f08f355e34fba1b517dad9864944cb11ff5c1c2
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-04-07 08:52:55 +00:00
Orgad Shaneh
7dc2cb9d95 Debugger: Support only C++ on Windows post-mortem debugging
Change-Id: Idc759cb0a5a64fe33ea54eb4d0bf21df2a651bd9
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-07 08:46:56 +00:00
Nikolai Kosjar
309da0b475 C++: Move cplusplus-keywordgen into src/tools/3rdparty
Change-Id: I9a669497d4ec5db6ade270c272bf52a365cfc7fe
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-04-07 08:36:51 +00:00
hjk
385b0d1218 Debugger: Update breakpoint pending state with LLDB properly
A breakpoint with known locations is not pending.

Change-Id: I4da7b60b6771bbea40ce74d44518c26e6214ba6c
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-04-07 08:28:23 +00:00
Nikolai Kosjar
daf08d8702 Clang Static Analyzer: Workaround analyzing MSVC2015 projects with clang 3.8.0
Clang 3.8.0 does not detect the MSVC2015 build environment properly. Running

  $ clang.exe -v -fsyntax-only empty.cpp

shows

  -fms-compatibility-version=18 (=MSVC2013)

instead of the expected

  -fms-compatibility-version=19 (=MSVC2015)

Workaround this by setting the version explicitly for MSVC2015 toolchains. This
fixes parse issues with char16_t and friends.

We do not explicitly check for the clang version since clang 3.6.2 is broken
for MSVC2015 anyway and we do not know whether clang 3.8.1 will come with a
fix.

Task-number: QTCREATORBUG-15940
Change-Id: Ibe61af25f6d74f134cc9f9681db5a4d19ac67417
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-04-06 15:29:56 +00:00
Eike Ziller
1bf5ba8421 Custom executable RC: Warn about non-existing command.
Show the path in red with corresponding message in tool tip, without
making it a fatal condition.

Task-number: QTCREATORBUG-15998
Change-Id: I5c6ddf3e79ed4b5ff659f0cab0560fcc78f6f6a9
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-04-06 15:28:21 +00:00
Tim Jenssen
217fef2b1b QmlDesigner: fix binding is not working
Change-Id: Ic40eca09f281626428157dd94ed802c846b2f7e9
Task-number: QTCREATORBUG-15942
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-04-06 15:18:11 +00:00
Christian Stenger
6ffbb88b7b Squish: Adapt to changed tool tip
Change-Id: Ib6f01cdad6a8e54010ad455cb7e9322d6311dc12
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com>
2016-04-06 15:16:47 +00:00
Alessandro Portale
519b956668 Redone debug start/stop/interrupt/continue icons
Currently, these icons have a big "bug beetle" and a small action icon
as overlay. According to user feedback, the relevant element (the
action) has too little visibility.

This change turns the proportions around, so that the action icon is big
and the "bug beetle" is a small overlay.

Also the analyzer run icon is handled in the same way.

Change-Id: I257c66ec5892c8aabaf8a9884795ae410e793017
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-04-06 14:53:05 +00:00
hjk
4d382811f1 ProjectExplorer: Introduce a DeviceEnvironmentFetcher
Also, provide implementations for desktop and remote linux.

Change-Id: Ib02202bf1829367334035a361ac73317338cd7a6
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-04-06 14:27:12 +00:00
Nikolai Kosjar
2e1494d058 ProjectExplorer: Ensure valid target triple for known gcc toolchains
Change-Id: I4c51f05fcef727505ba0df252d1c4b71e6dc1e6d
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-04-06 14:16:49 +00:00
Orgad Shaneh
5d0b5b35b2 Debugger: Minor optimization in coredump lookup
Change-Id: I162366ce98078ba49311c96772772258e3f3dcb7
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-06 14:11:23 +00:00
hjk
24660c23e3 RemoteLinux: Fix fetching of remote environment
A QLatin1String isn't a StandardRunnable.
This fixes a regression introduced in 58be2708a.

Change-Id: I6b3bb337227631011a6bc26c938945bb0e912e62
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-04-06 13:58:08 +00:00
Thomas Hartmann
eb172fbbd4 QmlDesigner: Fix assert
Trying to serialize a QModelIndex using QVariant does assert.
Solution: Ignore properties of type QModelIndex.

Change-Id: Idca5646a472fdfce8761861f5bf889bb73340df7
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-06 13:10:04 +00:00
Nikolai Kosjar
1689425127 ClangStaticAnalyzer: Extract inputAndOutputArgumentsRemoved()
Change-Id: Ie9fbec44006775779280293661eff2ff28f2618a
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-04-06 12:07:46 +00:00
Nikolai Kosjar
2d8c58f028 Clang Static Analyzer: Extract ExtraToolChainInfo
Change-Id: I16527a4fe5a00327c97ae72f6b76a3daf86d60d1
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-04-06 11:31:29 +00:00