Commit Graph

45323 Commits

Author SHA1 Message Date
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
Nikolai Kosjar
098a6f5024 Todo: Remove "Settings" from project settings panel title
Change-Id: I1e611d8bece7381aa61549323dde66ccd7cc0c61
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-04-06 10:14:31 +00:00
Tim Jenssen
1553eb04b4 QmlDesigner: use default values at isSubclassOf
Change-Id: Ia31d698635a9b29a023f4d919f3741ac912923b7
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-04-06 10:04:55 +00:00
Tim Jenssen
cc1c2b7901 QmlDesigner: remove old QtQuick 1 code
Change-Id: I23d28f768647feee7f13942a1510dac2fd8d0043
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-04-06 10:04:37 +00:00
Tim Jenssen
4af9cad3dc QmlDesigner: use default values at metaInfo
Change-Id: I8e6ca24348602ade4a181c69db9c20bce547531f
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-04-06 09:56:12 +00:00
Tim Jenssen
1b5713e5d9 QmlDesigner: use new connection style
Change-Id: I938ccf902c136b89c3934aa61a6f30c9b1be9fa1
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-04-06 09:55:22 +00:00
Thomas Hartmann
684ae1c94c QmlDesigner: Adding known enums for labs controls
Change-Id: Ib798e811ca4d304f001aaa00e29be6c21c47df7f
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-06 09:44:06 +00:00
Nikolai Kosjar
c001739115 Clang Static Analyzer: Remove "Settings" from project settings panel title
Change-Id: I4586df602352f49673906738a075abdcf084e0af
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-04-06 09:37:07 +00:00
Leena Miettinen
e43d5c7455 Doc: Update info about autotests
- Describe Google tests
- Describe new options
- Add and update screenshots

Change-Id: Ibda4bdcf8a6f4fb879d11a23f378a453fdd8e6fc
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-06 09:05:47 +00:00
Christian Stenger
f862583f23 Tests: Fix crash in qml codemodel check
The test accesses indirectly the static instance of the
QmlJS::ModelManagerInterface which is not instantiated at all and
leads to a crash of the test.

Change-Id: I2b047e1ee8d679dd3764ca5c36709b599161a60c
Reviewed-by: Marco Benelli <marco.benelli@theqtcompany.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2016-04-06 09:03:10 +00:00
Alessandro Portale
984a6eca73 cplusplus: Make functions of Icons static
This avoids multiple instatiations and reloading of the same image files.

Change-Id: I4d0bb955e23c1cb817671c25bff4e74fb7b3d0f4
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-04-06 08:48:32 +00:00
Tobias Hunger
44aaec767f CMake: Simplify cmakeproject code a bit
No behavior change is intended in this patch.

Change-Id: I5c49a0a97ede443dbb25bf34b96c346a63f549d2
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-06 08:11:10 +00:00
Leena Miettinen
420d9548db Model editor: Fix capitalization of UI text
Change-Id: If4d7b569823cf5ff7f82c6fde253f039efceb017
Reviewed-by: Jochen Becher <jochen_becher@gmx.de>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2016-04-06 07:48:11 +00:00
hjk
b7d8d9ba3a Debugger: Add a QBitArray dumper
Task-number: QTCREATORBUG-15974
Change-Id: Iafb0d94f5d780b3165d8bb749429754a5de051e3
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-04-06 06:20:04 +00:00
hjk
0408aee321 Debugger: Add dumper for std::valarray
Change-Id: I80d6a11714777d813dc0a6917a4dfa826d013cb9
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-04-06 06:18:40 +00:00
hjk
5daeb5da01 Debugger: Fix LLDB operations with XCode 7.3's lldb-350.0.21.3
The output of lldb changed. Adapt our use.

Task-number: QTCREATORBUG-15965
Task-number: QTCREATORBUG-15945
Task-number: QTCREATORBUG-15949
Change-Id: Ic78593c1a7c4ae69ecf23e381cd2f23441b4829b
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-06 06:08:45 +00:00