Commit Graph

48270 Commits

Author SHA1 Message Date
David Schulz
a1b0302014 Debugger: Add debug messages to the cdb python module
Change-Id: I53f9df68ff7918f63ffb10b8d80192c78cad3cb3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-01 09:10:16 +00:00
David Schulz
79c247eb09 Debugger: Remove unused code from the cdbbridge
Change-Id: I7199b04442d7edada2ad82707b46465d66c255a5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-01 09:10:09 +00:00
David Schulz
36bb2841af Debugger: Fix target type for arrays in cdb python module
Change-Id: I716d4993c6cb5c4e4537a92438d768eabc0450cd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-01 08:30:49 +00:00
hjk
f582c6a5a6 Debugger: Add a dumper for std::pair
Change-Id: I22b644dab9ed27d650b1e99e08f0335f7d265dfd
Reviewed-by: hjk <hjk@qt.io>
2016-11-01 08:14:23 +00:00
hjk
4f7821a71f Debugger: Disable Nim dumper auto test
Needs manual testing in the common case that the
intended crash does not occur.

Change-Id: I99de4f466df9e3a470a6bcb98b819d15da3a7067
Reviewed-by: hjk <hjk@qt.io>
2016-11-01 08:14:10 +00:00
Oswald Buddenhagen
fde9758fcb prune dead code surrounding isDeployable
no-one ever queried this state since S60 support was removed in
ae23d50576 (2012).

Change-Id: I3e05d90bb43514b4c326e124834cf9c5e89a0168
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2016-11-01 07:58:03 +00:00
Oswald Buddenhagen
3c43c35167 remove pretenses of support for DEPLOYMENT with .sources
since fa6d0f1231, DEPLOYMENT is aliased to INSTALLS, so we would have to
actually look for .sources in entries listed in that variable, which we
didn't. apparently, nobody noticed, among other things possibly because
the qt4 variant already supports .files in later versions.
also, our actual deployment code doesn't use .sources, either.

Change-Id: I990240716817118047fc9aa97eff55305fcf7eca
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2016-11-01 07:57:48 +00:00
Eike Ziller
2d6f33a92b Merge remote-tracking branch 'origin/4.1' into 4.2
Change-Id: Ic536dc74b969dce910ec6b91e5a308e97348b8bf
2016-11-01 08:44:04 +01:00
Lorenz Haas
49c6710b42 CppEditor: Fix GenerateGetterSetter for reference types
Change-Id: Iad332cf023c6bff0c7f5ae46fb56f0393c9c7b29
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-10-31 16:00:17 +00:00
Nikolai Kosjar
6e6d5b5309 ClangStaticAnalyzer: Tests: Rely on projects telling when they finished parsing
We relied on the CppModelManager to tell us whether a project was reparsed
after a kit change. While this worked, it was not guaranteed that the project
is really finished (and ready for e.g. building) after pushing new ProjectInfos
to the CppModelManager.

Rely on the projects telling when they are finished with parsing. This is more
accurate and future-proof.

The introduced signals in Project and SessionManager are (at the moment)
only for tests.

Change-Id: I1b368ec4585ffa8755eb28fac6d187cce31243ee
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2016-10-31 15:09:01 +00:00
Thomas Hartmann
f952c3ee4a QmlDesigner: Fallback to create types from source
We fallback to create types from source, if other means failed.
This can be required if the meta info is incomplete/incorrect when
a C++ type is mocked.

Change-Id: I50d45a6f9d7eba3483da10d9e1d7d6644d9aeb96
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-10-31 14:30:40 +00:00
Eike Ziller
457cfcfae9 Welcome: Fix that filter string was cleared when changing page
In examples and tutorials pages.
Since the pages are unloaded and loaded again when the tab changes, they
loose their internal state and require the search text to be kept as
state in the model (which makes sense anyhow).

Task-number: QTCREATORBUG-15901
Change-Id: I4fb05ca47f8337008c51e17cc95962a5e9e67fef
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-10-31 14:18:10 +00:00
Ulf Hermann
d012e3e4bd Clarify section about broken performance counters on i.MX6
The performance counters are broken on most (all?) i.MX6 boards, not
only on the ones from Boundary Devices.

Task-number: QTBUG-56769
Change-Id: I9e0f291be7e00df3d9d1b98c7414dfd37e265b39
Reviewed-by: Kari Hormi <kari.hormi@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2016-10-31 14:05:20 +00:00
Orgad Shaneh
4325f4facb QmakePM: Avoid soft assertion
... when a matching toolchain is not found.

Change-Id: I901bdb51f98a88b2402b12309a05e0bc5ffcaa3b
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-10-31 13:46:23 +00:00
Christian Stenger
cff2ee701d ProjectExplorer: Fix compile with Qt5.6 / gcc 4.8
Change-Id: Id1ded1679e9cde4e9cabba61dc5e6aa7aea1e7ed
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-10-31 13:21:31 +00:00
Tobias Hunger
0c0c0a6fd0 Jsonwizard: Modernize JsonFieldPage elements
QTCREATORBUG-17190 is fixed by this since initialization is fixed as a side effect;-)

Task-number: QTCREATORBUG-17190
Change-Id: I9d1f81d6cca26fcdd9ba8a49ee66e05607d6cae1
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-10-31 13:04:03 +00:00
Leena Miettinen
85bcb5b5c7 Doc: Restructure the Diff editor docs
Move the instructions for changing the default colors
to the end and add a section title.

Change-Id: I837e4d25a686d1bf7e9288a438f6321a9ae9d7ed
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2016-10-31 12:00:04 +00:00
Leena Miettinen
5570798f54 Doc: Describe new Diff editor options
You can now view unsaved changes in the current file
or all open files.

Added a subtitle and moved the image to the new section.

Change-Id: I8135dc7c9e2edc60b88d84a241f6d959ba590464
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2016-10-31 11:59:53 +00:00
Leena Miettinen
f8cf53875e Doc: Describe adding vertical guides to QML Profiler timeline
Update screenshot and move numbers around, because the time
ruler was not described before.

Change-Id: I6e13269349b847249ff6b1a9d9c8062ed55bc7f6
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-10-31 11:59:36 +00:00
Tobias Hunger
e6d553ce59 Wizards: Explicitly list sources in CMakeLists.txt
Task-number: QTCREATORBUG-17196
Change-Id: I478f2f945a6f7ee3183aa09871bccc7e475e5501
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-10-31 10:09:31 +00:00
Tobias Hunger
137695cae7 Wizards: Move cmake required version before project line
This is apparently necessary to establish policy before setting up
things.

Task-number: QTCREATORBUG-17197
Change-Id: I8b12e752e05e65b2275c0a97cf1b727f60c88cd0
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-10-31 10:09:25 +00:00
Eike Ziller
f1d3e7c8e7 runextensions: Add convenience method for result handler
Change-Id: Ibe7e62049f165276fdedcd04d8311324f6bc5d19
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-10-31 09:31:02 +00:00
Christian Kandeler
f87362990a Update qbs submodule
To HEAD of master branch.

Change-Id: I8aff6a4685fc5f900037e5703b6c2f00b1996ff4
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2016-10-31 09:28:50 +00:00
Orgad Shaneh
36ecee17fe MSVC: Register toolchains also for C language
Change-Id: I1abaecc53be9e87b88178bc044e3352ddeb5c4e6
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-10-31 09:27:20 +00:00
Orgad Shaneh
a9c967263e MSVC: Minor cleanup
Change-Id: I4aa9684e04e57a96c3fc624236c2c95817306d76
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-10-31 08:52:42 +00:00
Orgad Shaneh
1d6d799d22 ToolChain: Compare also by language
Otherwise C/C++ with the same ABI are detected as duplicates.

Change-Id: I99090b4cc776047b1ecb958242d0b4f5ecec5f0a
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-10-31 08:52:36 +00:00
Leena Miettinen
75c5afef48 Doc: Setting when property for state in Design mode
Change-Id: I3462f7c5a8ea436d979c12bc02ae1e2f063eeb4b
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-10-31 07:57:48 +00:00
Rafael Roquetto
501bf4918f Fix CDB detection
To make sure CDB is really installed on a Windows Kit, we need to assure the
'inc' subdirectory is present. Before this patch, if, for instance, the
Windows 8.1 kit is present (including a Debuggers subdirectory), but without
CDB, the first test under "32-bit" qmake will yield a false positive,
preventing the following 32-bit kits to be tested, then to fail under the
64-bit qmake test because the 'inc' directory is inexistent, finally
bringing about an empty CDB_PATH variable.

Change-Id: I1d7cf3350f4a63a556ef106faa5b3f0593dcf8c8
Reviewed-by: Andrew Knight <andrew.knight@intopalo.com>
Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-10-31 06:37:29 +00:00
Thomas Hartmann
2cab55ea1a QmlDesigner: Allow JavaScrip blocks in Connections in .ui.qml
Inside a Connections item JavaScript blocks should be allowed.

Change-Id: Ia6a08fc575a72980bd53a32249bf302b7a426266
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
2016-10-28 14:27:58 +00:00
Christian Kandeler
11dd0f4c6f Update qbs submodule
To HEAD of 1.6 branch.

Change-Id: Ideda150d8126e09fa105b3b85848f7af102a29d4
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2016-10-28 14:16:07 +00:00
Leena Miettinen
1562ec7bce Doc: Using code completion in Binding Editor in Design mode
Change-Id: I4889d6d247f6d8d8cb758c65eea917736f33262d
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-10-28 14:11:31 +00:00
Ulf Hermann
424005c911 QmlJS: Release the same documents we keep before
When rescanning imports we generally get a new version of the parent
document. When replacing the cached documents we want to release the
old ones, not the new ones. Failing to do so leads to types
disappearing from the QML code model and to leaking memory.

Task-number: QTCREATORBUG-17175
Change-Id: I3994444ac0a6cd87f9d9d0b47ab3d6015660e416
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-10-28 11:39:18 +00:00
Eike Ziller
ff21689487 iOS: Make runSimCtlCommand static
Doesn't depend on state.

Change-Id: I6c0004bf6b6d1e30171b08e1b404d82242c42d99
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2016-10-28 10:06:23 +00:00
Ulf Hermann
c0ff0b7237 IosTool: Always listen on both IPv4 and IPv6
We don't know which protocol QtCreator will choose to connect to the
QML debug server. Currently QtCreator uses whatever "localhost"
resolves to.

Change-Id: Id41fb54e5eb975581d382767bdd125fbb9801f4f
Task-number: QTCREATORBUG-17141
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-28 09:06:54 +00:00
Ulf Hermann
779c54872a IosTool: Don't restrict the number of pending connections
Apparently a failed connection counts as "pending" for a while before
it is finally removed. The QML profiler aggressively tries to connect
with different timeouts and multiple sockets, so quite often there is
such a failed connection which then prevents new connections from
getting established.

We already enforce the limit of only one successful connection via the
SingleRelayServer subclass.

Change-Id: I441e2ed898d28f04359a9976d5b25569b8447f3f
Task-number: QTCREATORBUG-17141
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-28 09:05:39 +00:00
Eike Ziller
4f06d084fc Source packages: Fix that tar.xz was not xz but gz
Change-Id: I5379cdfe963f53cca04317ea51f544c40743db7b
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
2016-10-28 08:50:00 +00:00
hjk
bd2653fbaa Debugger: Introduce and use type ids instead of type in dumpers
Change-Id: I569d13d4f5d66cf1606b2b5d047b415659de539b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-28 08:11:38 +00:00
Orgad Shaneh
a6427453f4 Fix icons that moved from core to utils
Change-Id: Id3151b1cce2d97b2bfb6debaf3cebe53cd6d88ed
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-10-27 16:12:35 +00:00
Leena Miettinen
7b25da7e22 Doc: Describe new flame graphs in QML Profiler
You can now visualize memory consumption and allocations
of functions in addition to their time consumption.

Change-Id: I1c36019a5e3a161332a956a4b2d4aa833ea781dc
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-10-27 15:06:04 +00:00
Tobias Hunger
aa118539a4 CMake: Fix warnings about cmake configuration model
The index was handled wrongly.

Change-Id: I8a98c7a16e32798a9b7662c6c5c1683d248580da
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-10-27 15:01:53 +00:00
Ulf Hermann
10ddde4125 iOS: also process stderr to look for QML debug port
This is where the "Waiting for connection ..." message usually appears.

In general this mechanism of first replacing the port in the message
and then parsing the message to figure out that the iostool (not the
application) is actually listening is very confusing and backwards,
but fixing this is material for the master branch.

Change-Id: I73d3c5a34482403d275e6ea7a9ad59996121b02e
Task-number: QTCREATORBUG-17141
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-27 14:08:35 +00:00
Tobias Hunger
bacb0a74a0 Qt options page: Simplify code a bit
Change-Id: I70ea3134550c01f6c81f8a15d2730dc906d834a7
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-10-27 13:59:23 +00:00
Leena Miettinen
25b4e9c8ce Doc: Describe code completion in CMake editor
Change-Id: Ia8d2a5f6c13f3d1f8372e201ef65d39811589e10
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-10-27 13:23:10 +00:00
Thomas Hartmann
48537ca197 QmlDesigner: Crash fix
Editing subcomponents should only be possible for
graphical items.
Qt Creator was crashing in case the node was something else.

Change-Id: Ia0e286c666b0b485da0817678ca2048ace260c9b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-10-27 13:19:15 +00:00
Thomas Hartmann
d8eb2bf762 QmlDesigner: Fix warning
Change-Id: I751ef6b28dd57a98b1989a875d4c367f8bf50ece
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-10-27 13:19:09 +00:00
Orgad Shaneh
3de8b56d88 Theme: Remove some more unused entries
Change-Id: Ie2df7520871db21930c39fd976fa8739d354a2dc
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-10-27 12:54:22 +00:00
Eike Ziller
51e755d413 Version bump for after 4.2-beta
Change-Id: Ide9a51c899914531e9d23a2adf614d424a2746d8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-10-27 11:45:52 +00:00
Tobias Hunger
4f374d4bbf Android: Clean up Kit updates
Change-Id: Iab45062012fb91a8f62ee227af8b6a7ab94a8fed
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2016-10-27 10:36:44 +00:00
Tobias Hunger
5a2001f730 Android: Add C toolchains
This should fix kits complaining about wrongly set C compilers and
ABI incompatibility between C and C++ compilers.

Task-number: QTCREATORBUG-17165
Task-number: QTCREATORBUG-17166
Change-Id: Ia002490b471e0f5306c3a76b27158869920452ed
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2016-10-27 10:36:02 +00:00
Tobias Hunger
c777bd32bc QtSupport: Do not show Type column in Qt options page
Nothing ever fills that column, so do not bother to show it.

Change-Id: I5787aa72ee5c414fbf01ca01eed3aea20b6b7201
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-10-27 10:01:10 +00:00