Commit Graph

48674 Commits

Author SHA1 Message Date
Marco Benelli
f78dd2be64 QmlJs: disambiguate help lookup
The help system used to be confused by types from QtControls2, since
they have often the same name and version as the ones in QtControls.
This patch resolve the issue by looking for a number in the module
name, and then using the url found as helpId.

Task-number: QTCREATORBUG-16851
Change-Id: I48196d90b0fea5edf50751900864a39075894866
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
2016-12-07 10:50:07 +00:00
hjk
2497f5ea1d Debugger: Remove unused createBitfieldValue function
Change-Id: Ie439d9cd551c33e9c5db6c16e8d221d2c75a7218
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-12-07 10:17:47 +00:00
BogDan Vatra
52b14f24f1 Add API 25 to known APIs
Change-Id: Ia06bd8638c8939918383b8274f06fc73d9c86122
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-07 09:54:20 +00:00
Orgad Shaneh
ad04908a52 Debugger: Remove shadow variable
Change-Id: Ia2e8ad88429a682f8569070eb8c12544f929d2a2
Reviewed-by: hjk <hjk@qt.io>
2016-12-07 09:02:07 +00:00
hjk
f1a05dfb35 Debugger: Suppress putting full environment contents into logs
People are known to put things like passwords into environment
variables, and we pass the environment hexencoded to the debugged
process, so it might be overlooked when logs passed around.
Better not have the data in the log to start with.

Change-Id: If93a42a291b8b62c38d01e606cc0e49b8f2e3e95
Reviewed-by: Filipe Azevedo <filipe.azevedo@kdab.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-07 07:40:33 +00:00
hjk
d98d9025b8 Debugger: Fix environment passing with LLDB
Change-Id: Ic51a5ee1b9ef69b60279f045175be6d59b53582b
Reviewed-by: Filipe Azevedo <filipe.azevedo@kdab.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-07 07:39:44 +00:00
Christian Stenger
edc55eb7df UnitTest: Fix compile with gcc 4.8
Change-Id: Id620b803bfff7b677d7552c1a7e9aba78e17802f
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-12-07 05:38:46 +00:00
Leena Miettinen
fb147ef27b Doc: Update info on Beautifier options
Clang Format options differ somewhat from the Artistic Style
and Uncrustify options.

Also, the "Format entire file if no text was selected" is enabled
by default and also applies to Uncrustify.

Change-Id: I19d6badbd71275a185894e8c5dff96826d378afb
Reviewed-by: Lorenz Haas <lorenz.haas@histomatics.de>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2016-12-06 16:15:05 +00:00
Leena Miettinen
5d95c50bd9 Doc: Update Valgrind screenshots
The icons have changed.

Change-Id: I93150735a15228a9a21bd5586b5a633ca7f94fbc
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-06 14:46:32 +00:00
Leena Miettinen
71b27b0d8b Doc: Describe the Import button in Projects mode
Update screenshots.

Change-Id: I9bffcb3689ef4d4a4cd55161bb73ba6d25224710
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-06 14:15:29 +00:00
Tobias Hunger
81dbec7c50 Qmake: Add some breaks so that the expected OS is selected
Change-Id: I3d0184bb408125eecb6a8e728fabe593233115c2
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-12-06 13:59:13 +00:00
Orgad Shaneh
6dc5699423 Update qbs submodule
To HEAD of 1.7 branch.

Change-Id: I882be8dad05ffcd9a2f3f0c78b278bb5d94b985b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2016-12-06 12:51:04 +00:00
hjk
98e0b4b0b5 ProjectWindow: Add a buttons to import builds to project tree
... to a shortcut to the Kits setup page.

This duplicates the functionality from the context menu but can
be directly spotted.

Change-Id: Ia5c2e1208346dc7191a04fbb9c2569ccab9aab31
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-06 11:53:15 +00:00
hjk
e351c693c6 Debugger: Add a test to check the automatic expansion of 'this'
Change-Id: I90fad62442d677ba441e2e61b660cae7ebea52ea
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-06 06:16:08 +00:00
hjk
b662a59437 Core: Make initial default window wider
The new project window works better with 1280 pixel. Assume that is
a good default width in 2016.

Change-Id: I0c96db1bd279f6587e69c36ca01d1cd4f5243769
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-05 15:18:40 +00:00
hjk
6d9afdc4ff QmakeProjectManager: Compile fix after ebf8c1eaf0
Change-Id: I4e1315dd7b1cdc11a355330dcad653667967ec8d
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-05 13:18:35 +00:00
hjk
4b661c3130 ProjectWindow: Delay panel update after target adding
Parts of the machinery are not yet done when the signal
arrives, waiting for next event loop iteration suffices
to get a context enabling us to show the proper panel.

Change-Id: Icbf33a4f5a900058ecc89ac125eb43313e12b74f
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-05 12:26:25 +00:00
David Schulz
c8215d4b6e Editor: Fix search result backgound for declarations
Don't add a background to a format without a background
if a mixin is applied.

Task-number: QTCREATORBUG-17314
Change-Id: Ie76fe7f69e98e9cfdfa290c40f0774dbe6f86cea
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2016-12-05 12:26:06 +00:00
Alessandro Portale
ebf8c1eaf0 QmakeProjectManager: Use "Default encoding" for mechanized editing
When performing mechanized editing on .pro/.pri files, until now, Qt
Creator reloaded and restored the file with [from|to]Local8Bit.

That broke #comments in unicode.

This change implements that the the "Default encoding" from the text
editor options is used instead.

Task-number: QTCREATORBUG-10274
Change-Id: I783fc3a2c6a2638e4603ced2eef25c2a3998e2c1
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-05 11:58:55 +00:00
hjk
c390c716d1 BuildConfiguration: De-virtualize setBuildConfiguration
... and adjust users in Nim and Autotoolsplugins.

Change-Id: I6133ca933a5a4dc4d7d9ff73c8ca7afaa51ae516
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-05 09:21:37 +00:00
hjk
532c9d49ac QmakeBuildConfiguration: Pass build dir to base setter
Change-Id: I55bd47d62ef644257b49d3423c4d43a6443564aa
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-05 09:20:55 +00:00
Christian Kandeler
f1fc8824c0 Update qbs submodule
To HEAD of 1.7 branch.

Change-Id: Ic47bfa33e826cded51369fbd35572f0d7d5cca6f
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2016-12-02 16:26:59 +00:00
Tobias Hunger
cae9f70d75 CMake: Do not forget cmake generator information on load
Task-number: QTCREATORBUG-17311
Change-Id: I3439933e396f74a092c9b46aaced0a73c33c4407
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-02 15:33:32 +00:00
Christian Stenger
983936f975 Dumper: Fix QObject detection when using procedure linkage tables
Change-Id: I3ac9889b822cb30d2ccdb6a7e2452e753cc3f2df
Reviewed-by: hjk <hjk@qt.io>
2016-12-02 14:44:08 +00:00
hjk
dc2724a3f7 Debugger: Allow QObject property extraction without debug info
Task-number: QTCREATORBUG-16908
Change-Id: I1e1e9d91a6317808610f39868383b67e5c80a9a4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-02 13:26:00 +00:00
Christian Stenger
349ad040d6 AutoTest: Limit purging of test tree to project switching
Instead of purging the current test tree on all full parses, just
purge the whole tree if the user switches the current project.
If an item can no more be found after the full parse it gets
removed anyhow.
This avoids losing the check state on any full-parse.

Change-Id: Ia7bae6ced65a69444adf0d7e2a554d90ddd5caa4
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-02 12:29:32 +00:00
hjk
2275d68373 Debugger: Switch on QObject name display by default
... and use the option to govern general QObject guts display.

This allows people to completely avoid the performance impact
of attempted QObject display and still makes the feature
more prominent for our favorite use case.

Change-Id: I1e53b6448f646ab7eea9168a3cd24c77769e6328
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-02 11:23:46 +00:00
Leena Miettinen
a9b5e518d0 Doc: Try to make the Projects mode sidebar docs clearer
After receiving user comments.

Change-Id: I525aba5121f0ce629838fa5146f44120283c7f12
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2016-12-02 10:28:16 +00:00
Leena Miettinen
1db1efa271 Doc: Describe excluding large files when indexing
...in Tools > Options > C++ > Code Model.

Change-Id: I8efda2f62a4efd5c782cc4460a3b0c3eebbd23a6
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-12-02 09:57:23 +00:00
Christian Kandeler
ce5b08d9df User docs: Describe the "Force probes" checkbox in the qbs build step
Change-Id: I467bd9bb518e38d714edf535a6e2eb6e805a6708
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2016-12-02 09:53:49 +00:00
Maurice Kalinowski
de9c2d3bf0 Fix potential startup crashes
Change-Id: Id0f03b4fa9ff6a8f0f5b0de11fe51c3729065140
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-02 09:03:01 +00:00
Leena Miettinen
e2eb591c4c Doc: Update SCXML Editor screenshot
The icons have been changed. Also create "doc versions"
of two icons that did not look good when used in doc
generation.

Change-Id: I8b35e5ebdd2a837102fcb2826594b96914aeb1b4
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-12-02 08:34:00 +00:00
hjk
2d5e6ef232 Debugger: Fix QObject parent pointer display
Change-Id: If8b6c7415d5cd6b8e5df6c2d760b015e3077c20f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-02 06:57:11 +00:00
hjk
87e1093d59 Debugger: Fix QStandardItem test with namespaced Qt
Change-Id: I610dfddd519057c5464d89f42508108c7f8abb14
Reviewed-by: hjk <hjk@qt.io>
2016-12-01 15:28:24 +00:00
Leena Miettinen
6286d31da3 Doc: Fix typo "where" > "were"
Change-Id: I0dcbccfcbf29249149807c04f072d83fa503a895
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2016-12-01 15:13:27 +00:00
Christian Kandeler
6a03705c27 qbs build: Fix one more relative path
Change-Id: If8ad1fd77b3f79a23cb46addf56a91465d530057
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2016-12-01 14:42:31 +00:00
hjk
aba0a6b9ce Debugger: Add dumper support for libc++'s std::weak_ptr
Change-Id: Ie9041f95159e85c81f108aeff1564be136e4b7ef
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-01 14:34:21 +00:00
hjk
a7fb4cd3ed Debugger: Make QStandardItem dumper work without debug info
Change-Id: Iccdc693616558d2d224c1145eee78f903792c4a6
Task-number: QTCREATORBUG-16908
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-01 14:30:37 +00:00
Eike Ziller
c269cc1c6d Revert "Revert "Revert "Algorithms: Simplify Utils::transform implementation"""
This reverts commit defb18aef4.
This reverts commit 602f8e72be.

The refactoring of transform does not compile with
MSVC2015 Update 2. Retry when we can upgrade to update 3.

Change-Id: I8bfd6ad12c71759af4840c2615d9a8f2390fd4bc
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-01 11:36:12 +00:00
Eike Ziller
6b0495d997 Version bump
Change-Id: I25f835a66200a1f578deff65ca83aeb02c217790
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-01 11:23:43 +00:00
Leena Miettinen
0b02891b1d Doc: -1 is no longer supported in Diff Editor options
Change-Id: I83f19223cd78279a7c3946f7ffd0c85933c2a322
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2016-12-01 10:21:01 +00:00
David Schulz
54a363b36c Debugger: Move symbolgroup indices after expanding
Change-Id: I0c2078b5c780a8f8f018e72c27575825c076cdd3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-01 10:16:29 +00:00
Christian Stenger
681efe2324 Dumper: Fix std::once_flag dumper when using libc++
Change-Id: I5f320153f6ace6aecfad12f6156bba700fe7ad85
Reviewed-by: hjk <hjk@qt.io>
2016-12-01 09:23:27 +00:00
Leena Miettinen
e48c2e516f Doc: Describe Model Editor zooming commands
Change-Id: Ie2838120eab37430449f85cd2f84e773b26a5c8a
Reviewed-by: Jochen Becher <jochen_becher@gmx.de>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2016-12-01 08:55:54 +00:00
hjk
c944d08702 Debugger: Make {boost,std}::shared_ptr display more compact
After debugging through a code base that makes extensive use
of shared pointers (LLDB...) I came to the conclusion that the
display of weak and strong counts is pretty much useless and
it would be better to avoid that level in the display.

Change-Id: Ie03b05fff4f7f5b7dced2e656b404e8e7938cc25
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-01 07:50:23 +00:00
hjk
53022f01fd Debugger: Add dumper for std::once_flag
Change-Id: I8b5166fc0e7d54676b84a1b0d45c6a2793c2a37c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-01 07:09:00 +00:00
Leena Miettinen
91a82fe8b2 Doc: Describe and link to Qt Quick Controls 2
Remove info about Qt Quick Controls 1.

Change-Id: I25f4915cc33df1bca010900ba8d07ed6cc21f207
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2016-11-30 14:36:09 +00:00
hjk
ac2ceb36d7 Debugger: Split related settings
GDB's 'target extended-remote' and 'set detach-on-fork' are related,
but neither the same nor orthogonal. Better use two bools.

Task-number: QTCREATORBUG-17264
Task-number: QTCREATORBUG-16978
Change-Id: I50dfcdf8f69fadcc6dff2dcf632e4bdfe28a28bf
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2016-11-30 13:56:46 +00:00
David Schulz
bae72fcc51 Debugger: Fix MSVC python dumper for std::vector
Change-Id: I843f6195a9d51066eae57b7d383a0450fe4c56a1
Reviewed-by: hjk <hjk@qt.io>
2016-11-30 13:41:12 +00:00
hjk
3193321532 Debugger: Add a dumper for std::weak_ptr
Change-Id: I253b6d8069ecf36618aa40038da6820f52eb38df
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-30 13:37:46 +00:00