Commit Graph

50929 Commits

Author SHA1 Message Date
Nikolai Kosjar
9861a58400 CppTools: Prioritize project parts with selectedForBuilding=true
...when selecting one for the editor document.

This flag is only set by the QmakeProject.

Change-Id: I648886e12148bd1ebeccca52d9faaf4b528597c9
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-19 09:21:19 +00:00
Orgad Shaneh
c8c532a0e6 Use shallow clone for binary artifacts
The repo is deleted anyway right after the files are copied.

Change-Id: Iec4ae3ca45e94c95a911f245bded36025d3f799b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-19 09:14:11 +00:00
Nikolai Kosjar
0718f536a7 CppTools: Show ProjectPart::selectedForBuilding in inspector
Change-Id: I8a662565eb5e12fd3dbabf00427f34c98030a55e
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-19 08:36:59 +00:00
Orgad Shaneh
8728fb078e Project: Clone binary artifacts via http
git port is sometimes blocked by firewalls.

Change-Id: I8e53b119ec3401532a9da578b64d112250962f46
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-19 08:09:54 +00:00
Orgad Shaneh
6d33f9d72a Support Python3 in deploy scripts
Change-Id: I3a25306ed6babdbae09dcb0f8bc2c5c337d36415
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-19 08:09:46 +00:00
Leena Miettinen
6175b2f404 Doc: Update accelbubble example to use Qt Quick Controls 2
Change-Id: I946e9cb31517f602ce07fe1967a87bfdf9bd79b0
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-16 16:08:56 +00:00
Tasuku Suzuki
48adeb1a82 Wizards: replace string literal to QQmlExtensionInterface_iid
Change-Id: I36c4c2e98f2b6bd807a6e19398ba8ad2406ccf09
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-16 15:16:55 +00:00
Nikolai Kosjar
602c873d3e CppTools: Reparse editor documents after active project change
Change-Id: I010709c866291bf59c27f4a05765e1ab0efd28af
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-16 13:56:31 +00:00
Nikolai Kosjar
bd66d5ac05 CppTools: Remove some duplication
Change-Id: I8c84660b28c3e76b2cedd08ff3b44a38583f38a0
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-16 13:56:26 +00:00
Nikolai Kosjar
5421615070 CppTools: Rename updateHelper -> updateImpl
Change-Id: If1a1fb97aa2bcfad186c013f2b2cc4b94c66001e
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-16 13:56:21 +00:00
Nikolai Kosjar
566ab175b3 CppTools: Prioritize project parts from active project
...when selecting one for the editor document.

Change-Id: I85066aaa0862870cb2db2fb2cb40c2b2c23b2cac
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-16 13:56:16 +00:00
David Schulz
b8b6f348e0 Debugger: Add dumper for msvc std tree iterator
Change-Id: I39a655d04f1c24448c3db65dca5097a9b482b5d9
Reviewed-by: hjk <hjk@qt.io>
2016-12-16 13:43:57 +00:00
David Schulz
79ae56f52b Debugger: Add msvc dumper for std unordered set and map
Change-Id: I8d1e7e08bbc55a2ce89311dcd23d9b9792e22e1e
Reviewed-by: hjk <hjk@qt.io>
2016-12-16 13:43:51 +00:00
David Schulz
1c558ae7a7 Debugger: Use direct memory access for std tree types
Change-Id: I98acf000c612831401c01a0a30ed50c18d92c8c5
Reviewed-by: hjk <hjk@qt.io>
2016-12-16 13:43:45 +00:00
Nikolai Kosjar
e691a5e96c Clang: Fix test ProjectFileKindsMatchProjectPartVersion
Change-Id: I9b2470f36ea8f6b5882ac10f28f3a05cbe890801
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-16 13:42:58 +00:00
Nikolai Kosjar
ce1c6b2258 CppTools: Extract ProjectPartChooser
...and put it under tests.

Change-Id: Id4bd2391abd1dfdc23640e871453558566cb0693
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-16 13:40:23 +00:00
David Schulz
be7afaab27 Debugger: strip const before checking for __int64
Otherwise an "__int64 const" type isn't adjusted properly
before the lookup

Change-Id: I8e78a2273692bab164baa8ab80d921f841845b0d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-16 12:10:24 +00:00
Tobias Hunger
119222fb79 Nimproject: Fix memory leak
Change-Id: I5093b7028cd7e8c7e405358041704c6442009339
Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-16 11:51:14 +00:00
Christian Kandeler
f7712a9c61 Update qbs submodule
To HEAD of 1.7 branch.

Change-Id: I77f56ba1b6cf7c23a9cdc3cc2e90cb8a2c6cbeb3
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2016-12-16 11:47:16 +00:00
Thomas Hartmann
a42c49982f QmlDesigner: Adding positioner icons
Change-Id: I609ea06cb0fce2c6201cee8e87db84a15913924a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-12-16 11:28:59 +00:00
Friedemann Kleint
467c478dda Abi: Detect MSVC2017RC as MSVC2017
The binaries have a minor linker version >= 10.

Amends change 0a9414d467.

Task-number: QTBUG-57086
Change-Id: Ib9493bc3f87e6100377632b85991ce94f3025f28
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-16 11:02:27 +00:00
hjk
90a4ff723b Debugger: Remove need for debug builds in some dumper tests
Not needed anymore.

Change-Id: I206c2ae4e93306f8dc4fcea0dab727f769ad739c
Task-number: QTCREATORBUG-16908
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-16 10:17:00 +00:00
Christian Stenger
62118e9d78 Valgrind: Move some memcheck auto tests into plugin
Due to changed dependencies it is nowadays necessary to have more
of the plugin infrastructure at hand. Moving memcheck related tests
to be able to execute them as QC plugin unit test.

Change-Id: Iab492b3cb87728425b950ca9387edf292d895350
Reviewed-by: hjk <hjk@qt.io>
2016-12-16 10:04:56 +00:00
Leena Miettinen
8daa7cc6e6 Doc: the Auto Test plugin is enabled by default
It is no longer experimental.

Change-Id: If6fefc0ebe04289a1049086ffcc8f84532ae6ab1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-16 09:29:36 +00:00
Christian Stenger
29555235bc ProjectExplorer: Fix compile for gcc 4.8
Change-Id: Id5324b8bddeccc43446aefe7d7fefb232ed9fa21
Reviewed-by: hjk <hjk@qt.io>
2016-12-16 09:20:10 +00:00
hjk
996a697094 Debugger: Fix QObject property extraction in namespaced Qt builds
Bail out on error results as early as possible.

The accessor always exists in libQt5Core, but it can't be found
when using a wrongly mangled name. Use the right one, and add
another sanity check before actually using the function.

Change-Id: I57975be188ca6b03836c0968e59d9603b0eecf27
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-16 09:00:03 +00:00
Eike Ziller
a6b34bd38b ClangCodeModel: Make DisabledByDefault instead of Experimental
Update documentation accordingly.

Change-Id: I3309815ce23cfa8c941717883a7e0e312b7d9a5f
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-12-16 08:56:32 +00:00
hjk
fc01d0ac46 Debugger: Use new shared result reporting infrastructure
Unify the watchPoint() interfaces, move the combined
implementation to the DebuggerEngine base.

Change-Id: Ic93aa760e7258197aed5eb7bfea257a40012cccf
Reviewed-by: hjk <hjk@qt.io>
2016-12-16 07:41:43 +00:00
hjk
5c2a7b57e4 Debugger: Mimic parts of lldbbridge in gdbbridge
Make code more similar for later sharing.

Change-Id: I260e10ba1b613dfcebc45bb1a268b6fcebbde353
Reviewed-by: hjk <hjk@qt.io>
2016-12-16 07:41:34 +00:00
hjk
a61b6dfc57 Debugger: Move command flags to debugger command
Also, remove the need to mark GDB Python commands, detect the
need to use MI on the presence of non-Pythonic letters in
the command (space and hyphen).

Plan is to reuse even more almost shared code between engines.

Change-Id: I4e00debb07f2482637930675a28f464666b59553
Reviewed-by: hjk <hjk@qt.io>
2016-12-16 07:41:17 +00:00
hjk
c2eada278e Debugger: Fix Window grabbing on GDB
Needs to make namespace detection work without valid frame

Task-number: QTCREATORBUG-17326
Change-Id: Ia7c7017db4ef384d4f246e11a5601d01f4f366f1
Reviewed-by: hjk <hjk@qt.io>
2016-12-15 17:22:18 +00:00
James McDonnell
6c8d6c97e5 Prevent QNX tool chain demotion
Change-Id: Ia355cf80131e36e806781665c4926769a1b144f8
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-15 17:06:26 +00:00
hjk
b99cb464fa Debugger: Add convenience function to pass lists of strings
... to *bridge.py and adjust surrounding code.

Change-Id: I398ecf10a6b9c76ebf5683d2f3a6c28b57343663
Reviewed-by: hjk <hjk@qt.io>
2016-12-15 16:53:24 +00:00
Andre Hartmann
1bce506552 Add macros for current run configurations executable
Accessible by CurrentRun:Runnable:FilePath etc.

Task-number: QTCREATORBUG-12201
Change-Id: Ia8cde111507d8fd755d43f935fd2d319dfb73a67
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-15 16:34:53 +00:00
Tobias Hunger
347db259f8 MSVC: Report failures to retrieve environment for MSVC
Report failures to retrieve the environment of MSVC compilers as
a build issue. This is way more visible than the qWarning() that
used to be the only indication that something went wrong.

Change-Id: I8b923c3e65e7df14f677e8519b08f5b2218c16a8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2016-12-15 15:26:56 +00:00
Ulf Hermann
be705a3ea1 QmlProfiler: Disable note search button if timeline is unusable
Change-Id: I4c57f99bdea365b2ade913cb6b44ddf401f47aa8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-15 10:29:30 +00:00
Ulf Hermann
cd4e104a8b QmlProfiler: Disable timeline if it's unusable
Task-number: QTCREATORBUG-16503
Change-Id: I67fe5263ebca865e5ee08571754c1bf763a305d9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-15 10:26:54 +00:00
Ulf Hermann
bba1304817 QmlProfiler: Add functions to check if timeline view is usable
We can only use the timeline view if the scene graph is rendered via
OpenGL. This can be checked from Qt 5.8 on by querying the
RendererInterface. Earlier versions of Qt can only render with OpenGL.

Change-Id: I3f77e2a4dee1f9a1df5d6b1946cf7eb05a1bad01
Task-number: QTCREATORBUG-16503
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-15 10:26:41 +00:00
Ulf Hermann
233880e99d Timeline: Check for validity of vertexData() after allocating geometry
QSGGeometry itself doesn't check the result of allocations.

Change-Id: I4533d9abbb6dd26b8bd97e2c1b3dff089d827023
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2016-12-15 10:26:25 +00:00
hjk
02dd37d30a ProjectWindow: Add a PanelsWidget convenience constructor
... combining default construction plus a single invocation of
addPropertiesPanel(), the only way it is ever used.

Change-Id: I2080e8b8fa25a2d7e429b7c18f5272466bc4eb79
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-15 10:23:01 +00:00
Marco Bubke
1e3f2eec8d Clang: Consolidate all ClangCompilerOptionsBuilder into one implementation
We used the same code in different but don't shared it. From a bug fixing
perspective it's actually not that smart.

Change-Id: Iaaffc883229e259ff77f95b5cf0a8f0d8b5117df
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-12-15 10:18:15 +00:00
Alessandro Portale
11e0eaacc3 FancyMainWindow: Limit DockWidget title popup area
Change-Id: I5f43a84e5c5ff8bf69700d6ba6f6534df001eb7b
Reviewed-by: hjk <hjk@qt.io>
2016-12-14 21:41:13 +00:00
Ulf Hermann
a7a02897e7 QmlProfiler: Clean up view initialization
As there are only two events views we can handle them separately rather
than keeping them in a list. Also, the object names and dock IDs should
match. This breaks the settings, but that shouldn't be a big problem.

Change-Id: Iac46fd7976d1e747fef4b40cead9a54e830d188f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2016-12-14 16:48:36 +00:00
Ulf Hermann
207b5315cf QmlProfiler: Remove QmlProfilerViewManagerPrivate ctor
Change-Id: I7b7845a5943f43c8166424e2ba9045bb5d1f076a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2016-12-14 16:48:29 +00:00
Tobias Hunger
26f0c7c3ca SDKtool: Enable operation on filenames again and improve help text
Change-Id: Icc447745ddbd4bd75b4805f42593e2ee1621e28e
Reviewed-by: Christoph Sterz <christoph.sterz@kdab.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-14 16:12:45 +00:00
Tobias Hunger
200e7dd437 QmakeKitInformation: Leave boot2Qt kits alone
HACK! The magic in QmakeKitInformation::setup() should be removed altogether,
but that is something I dare not do in a patch release. HACK!

Change-Id: If3f0ec9976171977c253cee531203ac3ab41c6a7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-14 14:33:19 +00:00
David Schulz
990cec3371 QmakePM: Fix build sub dir project action
Re-enable the sub dir actions from the 'Build'-menu when a none project
node is selected in the project tree.

Change-Id: I316079336850409f6cd7479310e3b3438060baf8
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-14 14:33:18 +00:00
Tobias Hunger
bbf944e373 ToolChainKitInformation: Preserve sticky bit on upgrade
Change-Id: I774fe7acc5c1a820eee4361547c034c9558fcb6d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-14 14:33:14 +00:00
Tobias Hunger
e76157d285 Kits: Upgrade SDK-Kits before trying to them up
This makes sure all keys have the expected names.

Change-Id: I063a88c705de44c4ac079d790ad865e222259b53
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-14 14:33:07 +00:00
Tobias Hunger
f2cd2ac877 Qmake: Do not consider non C++ toolchains
Do not consider non C++ toolchains when searching for a matching toolchain.

Change-Id: I2b06fd677ec3b89d0c15290ba170344629ded20e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-14 14:32:47 +00:00