Commit Graph

56382 Commits

Author SHA1 Message Date
hjk
cc198547e9 Debugger: Replace module polling in gdb by handling notifications
Explicit polling is still available and accessible as fall back in
the gui, but is at least in theory not necessary anymore.

Change-Id: Ifd184fb88bdbf5de53f5776e2c94a03f8ad44a06
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-08-30 12:07:20 +00:00
hjk
2d631c7a0b Debugger: simplify GdbEngine::handleAdapterStartFailed
Both branches did effectively the same.

Change-Id: Iebfc3ace62acd3bd6f73fb1ee8573d8e884237c3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-08-30 12:07:03 +00:00
Tobias Hunger
97b7dce264 ProjectTree: Take const Node* to look up project based on node
Change-Id: I79e6008c93f7adcf295031767ba6f6d931cb8ae0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-08-30 11:02:12 +00:00
Ivan Donchevskii
5c658ac968 Beautifier: Move formatting tools to TextEditor
Formatting is moved from Beautifier plugin to formattexteditor.h/.cpp.
Diff and Differ classes are extracted from DiffEditor to Utils
to prevent extra TextEditor dependencies.

This change will make possible to use formatCurrentFile
and similar functions not only from Beautifier code.

Change-Id: Ic5ca668afe88f4e9376d49e6bd3594807172b0dd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-08-30 11:01:08 +00:00
hjk
7777df42cf Debugger: Only hide, not destroy toolbars when switching perspectives
May save a few cycles for re-creation and re-layouting flicker
when switching back.

Change-Id: Ifc29adb008d2fa0966f68fe45b3258e6dd199d08
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-08-30 10:16:38 +00:00
hjk
7c547eba9b ProjectExplorer: Add an option for automatic generation of runconfigs
Default to 'on'.

Task-number: QTCREATORBUG-18578
Change-Id: Ib430542b00d93138827fe8930db6a4e5a03c014c
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-08-30 10:02:33 +00:00
Venugopal Shivashankar
24cabc6dbb Wizards: Fix minor language issues in the project templates
Change-Id: Ia999054ecbc674d2bb920ca78f5fb758055a8140
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-08-30 09:23:30 +00:00
Eike Ziller
d457604de1 Update change log for 4.8
Change-Id: I7493aaed9b7819dee5bdcf67b33f4298e0ca46b3
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2018-08-30 07:10:31 +00:00
Eike Ziller
8e05783019 Merge remote-tracking branch 'origin/4.7'
Change-Id: I4332eba9f1f66fef185359c79c4d96420d8b78ca
2018-08-30 08:31:25 +02:00
Sergey Morozov
db85693690 AutoTest: Create tree item for each failure
Introduce special location item for this purpose.

Task-number: QTCREATORBUG-20967
Change-Id: Icb6c6ec8ff9d2e4e8e3d13834427bae50d74bd2a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-08-29 16:57:05 +00:00
hjk
fa4693fd29 Debugger: Fix insertion of backend generated breakpoints
Change-Id: Ifb46995a787c111620b5270b2b60e4e7f39eb552
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-08-29 12:20:07 +00:00
Christian Stenger
7ba5bddded Doc: Correct license header
Change-Id: I5324b4a8ee23a7203591e0c35875027d8ac93e0d
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
2018-08-29 12:11:06 +00:00
Ivan Donchevskii
4a6ad6c849 Clang: Do not replace class completion with constructor completion
Both completion kinds have the same name. Do not merge them
together when looking for constructor overloads.

Task-number: QTCREATORBUG-21010
Change-Id: I4c851033d63ad4e242b6179491f1fba00af466f6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-08-29 11:54:34 +00:00
hjk
9492066a31 Debugger: Identify a breakpoint's requested parameters with preset data
This removes the ability to have different enabled/disabled states
for the same breakpoint in concurrently running engines, but make
the behavior less surprising.

At least currently people *do* expect breakpoint changes in a running
engine to persist after the engine dies.

Change-Id: I911594765b24f2ce58f6747ae5ecab3e608882b8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-08-29 11:06:26 +00:00
Marco Bubke
6386cd54eb Utils: Add container wrapper for setUnionMerge
It works with contiguous arrays like std::vector but it is not so useful
for other containers anyway. Use the iterator interface for std::array.

Change-Id: I9f5dd665d38ca642bbd81e1925445127ea579c22
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-08-29 10:54:58 +00:00
hjk
a68e8c5b69 Debugger: Move session load/restore handling
... to breakpoint and watchhandler.

More modular this way.

Change-Id: I4a45481fcc2bfde67b164bd7274fb7b2a12cb7ac
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-08-29 09:38:38 +00:00
Thomas Hartmann
37dbc7ba85 QmlDesigner: Export ModelMerger
Change-Id: If1ecda6d1aab7eea3a634700a065b95b00d5c4b2
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2018-08-29 07:57:41 +00:00
Thomas Hartmann
26b16e52ab QmlDesigner: Add icons for AnimatedImage
Change-Id: I11878b08262187cabdc818eb3ff7936a730513bc
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2018-08-29 07:57:31 +00:00
Ulf Hermann
8ef4964168 QmlProfiler: Don't scan the whole file system in rewriter test
QLibraryInfo::location() returns one string. Iterating over that gives
us the individual characters, beginning with '/'. Running that through
FileName::fromString(), gives us "/", and feeding this to
ModelManagerInterface::importScan() is not funny.

This has to be backported as the sheer volume of files to be scanned
makes the tests time out.

(cherry-picked from commit af8bd12387)
Change-Id: Ib4293437ab83da8ed10a696fba2c30f5c51c8124
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-08-29 07:34:26 +00:00
Christian Stenger
b5b366f562 Debugger: Fix possible nullptr access
Change-Id: I8a764375f3d62f644b4621d41d82afbcdbdd9415
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-08-29 05:50:38 +00:00
hjk
893146b8b6 Debugger: Split ToolTipManager into per-engine parts
Change-Id: If2e601a91ad2a0e5ba30916a5d1f2312ecff944f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-08-28 14:14:21 +00:00
Christian Kandeler
faccb8fd71 qbs build: Fix highlighter engine autotest
We link against the TextEditor plugin as of 601eebd832, so don't pretend
anymore that we are the plugin.

Change-Id: I8afdce57ceffdcbf965e16e7a24c0a9ab6d7d234
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-08-28 13:06:32 +00:00
Leena Miettinen
e1e1790402 Doc: Update locator information
- Use QML code in examples and enable the hiding of
  C++-specific information by using defines.
- Update screenshots
- Update info about "Filter Configuration" dialog

Change-Id: Ia2ca4220a46308c6f480965153ac1002f9790054
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-08-28 10:26:25 +00:00
Ivan Donchevskii
efe7c56e62 Clang: Do not add -undef to ClangCodeModel arguments with clang-cl
Clang-cl behaves similar to MSVC and the parsing is more proper
without -undef specified.

Change-Id: Iee37fca3401000edb3e77e8a99dcb85ae6e70ab3
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-08-28 10:23:34 +00:00
Leena Miettinen
21b2c1d04a Doc: Update information about checking QML and JavaScript code
The error messages and codes are displayed when you write code.
The JSON information is unrelated and was moved further down the
topic.

Added a screenshot of checking QML code.

Used defines to mark C++ specific parts.

Change-Id: I08a122727200208474036adec56afd6235b56d6a
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2018-08-28 09:40:47 +00:00
Thomas Hartmann
91a0280394 QmlDesigner: Add alternative shortcut for macOS to reload property sheet
Change-Id: I4e823e39812b06f7131c610a0ac259df722b5b12
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2018-08-28 09:37:12 +00:00
Eike Ziller
bd59472f40 Perforce: Fix warnings and modernize
Change-Id: Id43718869aaf2bc24e6a6614bcddcc35715502fe
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-08-28 09:04:20 +00:00
Ulf Hermann
75db89d92e Tracing: Wrap pointers we don't own in QPointer
The notes model might get deleted before the renderer.

Change-Id: Ic7b0ee73bd96e63b19e05b1a374baaf28c6f47fc
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2018-08-28 08:57:54 +00:00
Ulf Hermann
3008255bb5 Tracing: Make notes in TimelineModelAggregator mutable
When the notes model is deleted, it becomes null. The notes model
belongs to TimelineTraceManager, not to TimelineModelAggregator.

Change-Id: I0ef9312620e08c06d31bc65976a887af0ca90c33
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2018-08-28 08:36:45 +00:00
Eike Ziller
93a6dd0c67 Fix editing of custom executable path
When editing the path for a custom executable run configuration, the
text cursor would jump to the end every time anything is typed. This
makes changing a part inside the text very cumbersome.

This happens because the executable aspect registers a "display filter"
that transforms the input to native separators.

Solve that issue generically for the path chooser by resetting its text
cursor position after the path has been set, if the input field has
focus.

Change-Id: Ic0a178e942da8df1e53b5d90c78a5bf1675865c2
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-08-28 08:12:12 +00:00
Leena Miettinen
f06f9122d7 Doc: Add screenshots for QML code completion
Use defines to hide C++-specific info from Qt Design Studio
Manual.

Change-Id: Ia1a0f730f8999e5b6f1dfe69779729bb90c46a1d
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-08-28 07:31:17 +00:00
Ulf Hermann
4ecc46626b FileInProjectFinder/Debugger: Use Utils::FileName for sysroot
Change-Id: Id937f927ba6137fd04f742f31d1b260afbe42db4
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-08-28 07:27:30 +00:00
Orgad Shaneh
767137157e VCS: Consolidate submit editor actions setup
Change-Id: I36754779b6a9aa35de705b368daf8c2a1de058c6
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-08-28 07:26:14 +00:00
Orgad Shaneh
f1f506b479 VCS: Remove unused unregisterActions functions
Change-Id: I4c7a0dfc93f27f93cdbd84d7e027e63db05341e8
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-08-28 07:26:02 +00:00
Orgad Shaneh
6e59d31095 VCS: Capitalize commitDisplayName
To be used by the submit editor.

Change-Id: I73fc13abfd37f207d92669c1893b7edda35ed1e4
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-08-28 07:20:13 +00:00
Christian Stenger
ff6d91e42b Theme: Fix nullptr access
On close this function gets called with a nullptr.
Amends c79f436e2a.

Change-Id: Ie7c1e8d91fc0ff26208c6f2bbc108f32d47f3608
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-08-27 15:35:10 +00:00
Marco Bubke
b2c3e683cf ClangRefactoring: Add SymbolIndexerTaskScheduler
The scheduler is managing the asynchronous tasks by using the symbols
collector manager. Every symbols collector can be used by only one thread,
so the we have to pass the symbols collector around by the future interface
to make the available again after a task is finished.

Change-Id: Ic2eeaa986c2d93978d043216c46e8cb38cea769f
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-08-27 13:46:34 +00:00
Marco Bubke
6775347cd2 Utils: Add setUnionMerge to algorithms
Utils::setUnionMerge is an extension of std::set_union. It is not assigning
but merging equal matching values. For example two project part with the
same id will be merged in one by the merge function.

Change-Id: Ia244a7c1ff84dfdbd30f7101ed1ccbfb88393c7d
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2018-08-27 13:46:21 +00:00
Christian Stenger
cd8cbed287 Theme: Fix missing include
Change-Id: Ibce98ffd867a038fc08d556ceaf7376068663d22
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2018-08-27 13:24:03 +00:00
hjk
b97e9bd429 Debugger: Make Global Debugger Log off by default
It's more a debugging aid for work on the Debugger itself
than a feature of general interest.

Change-Id: I915019e28df6cf4a5c369ab2de45959943cd4dd4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-08-27 12:47:47 +00:00
Jürgen Hunold
d2146644a6 Botan: forward QMAKE_CXX_FLAGS from mkspec to configure
Change-Id: Ibc3922a1aa6f09cca0fd7b4360cf283363cda87d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2018-08-27 11:59:24 +00:00
Ivan Donchevskii
1b4f5c0670 Clang: Fix include paths order
C++ include paths should come before Clang include
folder. Therefore parse all options for include/c++/v1,
include/c++/{version}, include/g++ and /usr/local/include.

Task-number: QTCREATORBUG-20231
Change-Id: I22c41f07d241e1e564069bb192d4fe637ff05e87
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-08-27 11:35:02 +00:00
Christian Stenger
4538227cb1 Theme: Allow compile with Xcode 8
Amends c79f436e2a.

Change-Id: I0c0def4f08412d0ede71c58b8b5a820ea5f902a1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2018-08-27 10:41:38 +00:00
Leena Miettinen
3b2a7c0b52 Doc: Reflect changes in Qt Design Studio Manual structure
Change-Id: I811c8715e02e8013c7e34c6dbf0b7a1e60205383
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2018-08-27 09:47:50 +00:00
Marco Bubke
5bd7af7a90 ClangRefactoring: Add SymbolIndexerTaskQueue
A first step for concurrent index task.

Change-Id: I9a0dba9f4a67ee605281516785697045b34e2694
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-08-27 09:17:39 +00:00
Christian Stenger
8b397d6501 Theme: Fix typo
Amends c79f436e2a.

Change-Id: I211b667b50675b8fa48bdf231146ff7e406f592d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-08-27 09:14:45 +00:00
Christian Stenger
04c39520e9 Debugger: Respect the last perspective
Switching to Debug mode did no more fully respect the last
active perspective, but instead restored it and afterwards
initialized the debugger engine and restored the
respective Debugger perspective.

Change-Id: I5ba34298f463c396b7f73e431efa76be3bcbe6eb
Reviewed-by: hjk <hjk@qt.io>
2018-08-27 09:14:33 +00:00
Thomas Hartmann
f6ddfd6265 QmlDesigner: Add AnimatedImage
Change-Id: Ib7f13c27b2250c9c1447ad4915782cd8050a740e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2018-08-27 09:02:07 +00:00
Ulf Hermann
33a0ab8943 FileInProjectFinder/Debugger: Use FileNameList for search directories
Change-Id: I8f9fa4631fda26e10e6b21abfcba9e5f74d635c2
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-08-27 08:59:11 +00:00
Ulf Hermann
e9de99f84b FileInProjectFinder: Use FileName for local part of direct mappings
Change-Id: I1855e9af95874967a0d3fc9d7a410cac12355ad2
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-08-27 08:59:05 +00:00