Commit Graph

50929 Commits

Author SHA1 Message Date
Tobias Hunger
3840685998 SDKtool: Default to C++ for newly added toolchains without a language
Change-Id: I0002c0e0a81fd44064931a437f5c4b1e3095586c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-14 14:32:40 +00:00
hjk
0e6c9d26f1 Debugger: Fix pointer arithmetic in dumper framework
Task-number: QTCREATORBUG-17428
Change-Id: I1e3a682a6f412af51e191dc783b89ff266020e3b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-14 14:23:37 +00:00
hjk
26331f771a Debugger: Avoid messagesboxes on the same topic at the same time
Task-number: QTCREATORBUG-16971
Change-Id: I625f04cbd8f609c66597450dbad22ebc6eadcfe5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-14 14:10:14 +00:00
hjk
c16d350539 Core: Return some handle when creating an AsynchronousMessageBox
User code might want to keep a QPointer around e.g. to prevent
double instantiation of some box, or delete it automatically
after a while.

Change-Id: Iaa994c2abf321c35ffb3bcb0050d72939c55d941
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-14 13:54:41 +00:00
Aleix Pol
0c20e582e4 [Linux integration] Install desktop and appstream files
Installs the appstream's appdata file into the correct location and with
the correct name. Fixes the contents to conform to the standard.
Installs a desktop file because it's both required by appstream and by
desktop environments. Note this was currently patched in by
distributions.

Task-number: QTCREATORBUG-17335
Change-Id: If1425ec9fbd0c639550852a8d6e1f15a6b9d77ef
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-14 13:31:43 +00:00
Tim Jenssen
04391a0c2a QmlDesigner: increase puppet timeout in debug
Change-Id: I3cddf27284a744db861705fab10d410ffdb23281
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2016-12-14 12:46:11 +00:00
Nikolai Kosjar
c82d372a41 CppTools: Ensure that the C++ project part is the first one
...for a given file in the ambiguous case (CppModelManager::projectPart).

There are several places where the first one will be preferred if there
are multiple project parts associated with a project file.

Change-Id: Ic01ea06277bc10f872238dcc181a55532b5783be
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-14 11:34:57 +00:00
Ulf Hermann
aca290b2e0 Timeline: Fix include for Qt 5.6
With Qt 5.6 we have to #include <QtQml> in order to register QML types.

Change-Id: I65faaf61960260806ef022f48f912d96c7e73f01
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-14 10:24:24 +00:00
Friedemann Kleint
0886860976 Output language in warning about missing toolchains
No tool chain set from kit "Qt 5.8.0 (msvc2015_64)".
becomes:
No toolchain set up in kit "Qt 5.8.0 (qt-58)" for "C".

Change-Id: I21b8f166baba85936a082a8943cc2ae74835771e
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2016-12-14 09:45:25 +00:00
David Schulz
0cadb398a5 Debugger: Add environment variable for cdb extension path
Change-Id: I6d7710ad3f4ba8b9dd32928c06d36191e63e9d3b
Reviewed-by: hjk <hjk@qt.io>
2016-12-14 08:10:16 +00:00
David Schulz
03963ae31d Debugger: Directly access memory for msvc std::string dumper
Change-Id: I9c1a0b1dfd49dc4278ef20dcb5968d49be712673
Reviewed-by: hjk <hjk@qt.io>
2016-12-14 06:43:50 +00:00
Filippo Cucchetto
41f6bedce3 Nim: Schedule a project rescan when new files are added or removed
Change-Id: I2b5a769e0d5e77ce2dd72e0637c0cbcd8f14875e
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-13 21:22:09 +00:00
Filippo Cucchetto
3d8f42097b Nim: Simplified project scan by removing QFutureInterface
Change-Id: I60a0d3354083215661def0acd4c26c1ece00dea7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-13 21:21:52 +00:00
Alexander Drozdov
dfaf01614d CMake: make project file system tree scanner persistent
Project source tree is a same for all build configurations so it is
a good idea to keep it persistent between CMake runs, configurations
switches and so on. It safes a lot of time for big projects.

Move more operations to the scanner thread:
 - Nodes filtering: skip .user files on top level of the project, skip
well-known extensions and octet-streams: In most cases these are not
required to be shown in the project tree.
 - Nodes sorting

Fix small memory leak: we have .user in the scanner result. After this
node filtered out, but is not feed (old code at the
BuildDirManager::generateProjectTree()). Now .user file skips during scan
without memory allocation at all.

Allow user manually rescan project tree by call Build -> Rescan project
tree. It runs CMake and Tree Scanner together: in most cases only CMake
run requires but time to time (VCS update) full rescan also required.

Change-Id: I4a6e6c897202da557509291c79932dd7751860e5
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-13 21:16:56 +00:00
Orgad Shaneh
1bbba3b48d TextEditor: Sort input keywords
std::binary_search expects sorted input. Do not trust the caller to pre-
sort the entries.

Change-Id: Ib1586660c52806a6b85dcf1a059297c948e48b7a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-13 16:54:55 +00:00
Tim Jenssen
357cefe67c QmlDesigner: Cleanup DebugView messages
These messages are purely technical and relate to implementation
details. Therefore the strings should not be translated.
We keep the original method names.

Change-Id: I3f98aea7b9df3890bca097d1e6b77789204c8e19
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2016-12-13 16:32:08 +00:00
Thomas Hartmann
f96851077a Fix linkage on Windows
Change-Id: If2d776fa3bb54cc8b482d1ae85f98845e9b28dc5
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-13 15:25:17 +00:00
Nikolai Kosjar
0265442c93 QMakeProjectManager: Use ProjectPartBuilder
...as the other project managers.

This removes extra code paths, duplication and improves classification
of source files (ambiguous headers).

Change-Id: Iae05cbbc61ab2e5dd841ae617bec994e0a1e52d5
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-13 14:55:36 +00:00
Tobias Hunger
43c6e97529 ToolChainKitInformation: Remove setToolChain(kit, language, toolchain)
Replace that with clearToolChain(kit, languguage). The only use-case
for that method was to unset toolchains in a kit.

Change-Id: I8cffe39393281f424fa8e044e6b90c5cea17ac90
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-13 14:34:16 +00:00
Ulf Hermann
68f0d637a6 Timeline: Expose theme as singleton type
This allows us to look up the colors by their enum values, rather than
by strings. Lookup by string is prohibitively expensive as the whole
QVariantMap of theme values has to be converted into a JS object
repeatedly and the strings have to be converted between QString and
QV4:String all the time..

Change-Id: Id131840b1a6e1eaabbd8966d60b9baf1ebed00c1
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2016-12-13 14:26:28 +00:00
Ulf Hermann
27e9785ce8 Theme: allow taking implicitly shared copies of the creator theme
We want to install the theme as singleton in various QML engines.
QML engines take ownership of their singletons and want to delete them
on exit. In order to accommodate for this we need copies of the theme.
As all the containers in ThemePrivate are implicitly shared, it
shouldn't be a lot of effort to copy it.

Change-Id: I52391add2fe8f540c19c804945ce9d9161905b90
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2016-12-13 14:26:23 +00:00
Nikolai Kosjar
249b55323d CppTools: Fix tests test_mixed{1,2}
Change-Id: I573b6d1aa4f8abb3be0205f6467ed088c805bb6e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-13 14:14:46 +00:00
Orgad Shaneh
05d037a71a Dumper: Re-add Dumper.templateArgument()
Removed in 2244e2b26c. Required for
backward compatibility.

Change-Id: I7255002ad1d6e6b4d04f1fb2a8fa96e3eba65d6b
Reviewed-by: hjk <hjk@qt.io>
2016-12-13 13:26:12 +00:00
Eike Ziller
39ab5ffdde Move changes from 4.1.1 to 4.2.0 change log
Since there was no 4.1.1

Change-Id: Ib46673fc2ffa6a977c8eed408bc35bb41ad96737
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2016-12-13 13:24:59 +00:00
Ulf Hermann
43dbed9919 Revert "Debugger: Remove 'Context' label in debugger console"
As we can have a context again now, we should be able to show it.

This reverts commit 8679a7caa6.

Task-number: QTCREATORBUG-17177
Change-Id: I221628dc91af839be867cc1bf8dfe5d5163fd321
Reviewed-by: hjk <hjk@qt.io>
2016-12-13 13:15:18 +00:00
Eike Ziller
697b612a88 Fix tab order in find tool bar
Task-number: QTCREATORBUG-16997
Change-Id: I169d98f5d4701f74c58aec4c1d567938998c898c
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-13 13:08:18 +00:00
Eike Ziller
113b6f1941 AutoTest: Remove experimental state
Change-Id: Ia9fa7679fec7a0cce26bbcba8090edf9841dd63f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-12-13 13:06:47 +00:00
Nikolai Kosjar
56fd0daf84 Clang: Fix build
Change-Id: I279f5641f3e9a54e6d03003cd6b4e2740e54aa15
Reviewed-by: Florian Apolloner <florian@apolloner.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-13 12:44:12 +00:00
Ulf Hermann
d06a1e09f1 Theme: make relevant methods Q_INVOKABLE
Change-Id: I397d473e5414b705c3e61b4344464fb018b3f676
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2016-12-13 12:17:42 +00:00
Ulf Hermann
071b1551b3 QmlProfiler: Make sure we can handle inconsistent trace data
Apparently some versions of Qt can produce traces with unmatched start
and end events. We should not crash on those.

Change-Id: Idfb3273f02470156e9f1863c43477d0c3494e0d6
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2016-12-13 12:02:21 +00:00
David Schulz
2c98573e70 Debugger: Fix getting child value by index
Take all ancestors into account when calculating the offset
of the desired child.

Change-Id: Iaa187c1c918589d9aee8325b1ef3692894f5be55
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-13 11:59:32 +00:00
Ulf Hermann
de589042c0 QmlProfiler: Fix sorting of statistics items
Enforce the presence of a sort role for all items and make sure we
don't call column() during sorting. column() can be very expensive on
large models.

Change-Id: I89555072d8ef051d6e0b4f9819159238a1a40859
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
2016-12-13 10:10:54 +00:00
Ulf Hermann
2b49c3b2b3 QmlProfiler: Avoid showing "NaNb" as memory in flame graph details
Change-Id: Ic06885d6c898036efba9b11beb13209351b2629a
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
2016-12-13 10:10:29 +00:00
Ulf Hermann
e826a461c1 QmlProfiler: Drop type from flamegraph details
It is unnecessary as it's already shown in the title, and it wasn't translated,
so it showed as "undefined: <blah>".

Change-Id: I063b78df5778d17db8849f73c470184546e0daeb
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
2016-12-13 10:10:12 +00:00
Ulf Hermann
25bb2122fe Drop manual binding on selectionLocked
There is only one way to set selectionLocked during regular operation.
The double binding is unnecessary overhead.

Change-Id: I324022a9c49e9a1936fd70371429318d207b4843
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
2016-12-13 10:10:01 +00:00
Ulf Hermann
a01d946711 Timeline: Optimize incrementStartIndices()
Don't repeatedly ask for size() and don't repeatedly dereference
items by index.

Change-Id: I9f0301e65e28dcde483230875535470290ce4876
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
2016-12-13 10:09:48 +00:00
David Schulz
16b44c80f6 Debugger: Update subtree if partial variable is requested
Instead of dumping the complete locals just dump the subtree
with the partial variable.

Change-Id: Ieac5f62efd87144bbea7a6a559d8be8d48d9084e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-13 09:58:52 +00:00
David Schulz
b352082a45 Debugger: Reuse symbol group for value creation
Change-Id: I8a850806eaec1a8d3cc1f8135519a61790fa97c6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-13 09:58:43 +00:00
David Schulz
19a6979acd Debugger: Remove unused nativeValue property
Change-Id: I6c36db6fe14e859b0686ae93a0214e0051b5af39
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-13 09:22:25 +00:00
David Schulz
22643d4524 Debugger: Add infrastructure to reuse symbol groups
Change-Id: I91eeba7438afb27f23d451c55bdff9006e0c4eb4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-13 09:22:18 +00:00
Nikolai Kosjar
02d8e2af1b CppTools: Clean up ProjectInfo
Change-Id: I5d0db45d9fdb624bb6cc55d7f04061d553f13bce
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-13 09:15:25 +00:00
David Schulz
203385482c Debugger: Initialize name buffer with correct size
Change-Id: I82ef4091413b815e0086bbe622971730865b3936
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-13 08:57:58 +00:00
hjk
4721888fa7 FakeVim: Force leaving input mode when switching editors
Change-Id: I9c871cf7b0cba027b8a0ec201dd57f1039c9f4a5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-13 08:54:12 +00:00
David Schulz
1236f0a51c Debugger: Add option to get type name with module
Change-Id: I7d58d1e750e1982cce62647aae07f1b6f5e41091
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-13 08:47:34 +00:00
David Schulz
3a00616395 Debugger: strip "const" from typename end
Change-Id: I9c841c42bbcde78362a1b9c624015175a6368c34
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-13 08:41:27 +00:00
Nikolai Kosjar
7381736cf3 CppTools: Clean up ProjectPart
Change-Id: Ia7969ceb52ffb25e7c63b24bc33b091001e9b50a
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-13 08:33:14 +00:00
Nikolai Kosjar
a10bfb8400 CppTools: Do not hardcode default language version
...instead, use the latest we support.

Change-Id: I7e7768bc4bc31de1fe0f441c03f3ab5d677d76e8
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-13 08:33:09 +00:00
Nikolai Kosjar
602ad72d42 CppTools: Refactor ProjectPartBuilder
...and add some basic tests.

Introduce the abstractions ProjectInterface and ToolChainInterface in
order to break the dependency to the ProjectExplorer. Also, some simple
logic can go there to simplify the (Base)ProjectPartBuilder.

Change-Id: I6c50a1804ce62098b87109931eb171f5c2542937
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-13 08:33:04 +00:00
Christian Stenger
95fa59dd6c Cmake: Fix regular expression
Change-Id: Ibcd5f62ace4adb4516ecaeba987eb8747996ba04
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-13 05:44:44 +00:00
Robert Loehning
b0fa868758 Android: Use numerous form
Change-Id: I4b9bb8ef1053f1dc86547f618b35746e1f9b06a6
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-12 17:24:37 +00:00