Commit Graph

32962 Commits

Author SHA1 Message Date
Tobias Hunger
f1ac9cd56d DiffEditor: Remove some empty destructors
Change-Id: Icd81940f4f91bf78e9e34c2ab5bb2c0a72c831bf
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-30 10:39:33 +00:00
Tobias Hunger
83e8a6cb27 DiffEditor: Convert more connects to Qt5 style
This helps me a lot in understanding where the signals go:-)

Change-Id: Id6ed6fccc4ca6852887b7e140deeea60252fe062
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-30 10:39:01 +00:00
David Schulz
828ea4916c Editor: Keep the focus when closing editors.
Task-number: QTCREATORBUG-13637
Change-Id: I7b57760ac3bcbede1c39d8f9f5d3728d2877153e
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-01-30 10:21:10 +00:00
Thomas Hartmann
8e16697c66 QmlDesigner.PropertyEditor: Adding QmlAnchorBindingProxy::isInLayout
Change-Id: Iee07466c5bbd3acf1c265683f4960d20e58e285c
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2015-01-30 10:05:20 +00:00
Nikolai Kosjar
ba20d638cf C++: Add cplusplus tools to qtcreator.qbs
Change-Id: I19e31ec13a6f726eff5938bca191c251abb50b4d
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2015-01-30 09:56:39 +00:00
Montel Laurent
0df6780176 Convert to new connect api
Change-Id: I80aad51340bcde953763dec36cf989d6e19d4cd0
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-30 09:40:20 +00:00
hjk
c3f5bfe322 Debugger: Modernize WatchWindow action handling
Change-Id: I4b3356a85d0e6127939a1a10d0432fc488ab098c
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-29 23:39:34 +00:00
hjk
f5af022aaa Debugger: Remove unused code in WatchModel
Change-Id: I34464bf435dcf87eb375b8c1e79e29ad4f8050b4
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-29 23:14:25 +00:00
hjk
63eac4385a Debugger: Remove WatchModel test code
Model structure is tested in the base class now.

Change-Id: I84653eb105425646e83dc898f63b8cd2f0401f25
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-29 23:13:17 +00:00
Montel Laurent
c701506348 Use new qt5 connect api
Change-Id: I7841baa54c9861275269981892e18d6b8fa58f3b
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-29 21:16:33 +00:00
Christian Kandeler
6feaa8b373 qbs build: Derive QtCreator app from QtcProduct.
So we inherit e.g. the cpp flags defined there. (Currently, compilation
fails because cxxLanguageVersion is not set for this product.)

Change-Id: Id66f2f6cdc7ba2155c820fd9aa77bb6ea9ecf0b7
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
2015-01-29 16:11:58 +00:00
Orgad Shaneh
20454b895f C++: Minor cleanup in tools project
Change-Id: I7506b30a1f6ac064511b047dfe5b90814e6d5212
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-01-29 16:03:43 +00:00
hjk
eafde22e16 Debugger: Handle extra dumpers with LLDB
This generalizes part of the previously GDB-only code paths

Change-Id: Id32798073e3c8bcb23bfedf463bebc866c8275e2
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-29 15:42:31 +00:00
Ulf Hermann
39a1293e71 Timeline: Load category labels asynchronously where possible
This further cuts down the initial loading time by a large margin and
can save some memory.

Change-Id: I8c3240d3137461229fa5576ad33c0d77b28776e0
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-01-29 15:21:02 +00:00
Ulf Hermann
7e976569ea Timeline: Load row labels asynchronously where possible
Loading them all at once and keeping them around all the time wastes
memory and time.

Change-Id: I088e0f955a93f94fa460ca17583123eb4d317da9
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-01-29 15:20:55 +00:00
Ulf Hermann
c6628f7ee3 Timeline: Add exception for parenting ranges with equal start times
Also, in contrast to the 5 previous times this piece of code has been
broken and fixed, this time add an elaborate comment about the problem
and a test case to check for future regressions.

Change-Id: I2babf7c6e98d7ab12ee53362229f30f6d9e5d7d5
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-01-29 15:20:48 +00:00
Ulf Hermann
153bbd1f52 Timeline: Elide category labels if they get long.
Change-Id: I1f03cba1cc7a8be5d744b4d8f918ce6cd41f2612
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-01-29 15:20:42 +00:00
Ulf Hermann
d5b4ffb2b2 Timeline: Make label parsing declarative
Like this the labels are also updated initially and when the model
changes. Also, use the more generic label "[unknown]" instead of
"<bytecode>" to replace empty descriptions. Even in the QML case it's
not always bytecode.

Change-Id: Iea0dc36eb9061c928f2cb9706adaaa3b4bab7811
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-01-29 15:20:36 +00:00
hjk
bea159a701 Debugger: Some parser code consolidation
Change-Id: Icd3afb632cb935fdd95f13db91c9c11a3dea732e
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-29 15:09:12 +00:00
Montel Laurent
0d0a6d119a Use new qt5 connect api
Change-Id: I6c0d4ec60759b3c2fedac3e6649b7ec5102a6487
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-29 14:29:30 +00:00
hjk
1eb507afbd Debugger: Simplify calls to parseChildrenData
Having access to the expanded inames doesn't make a difference.

Change-Id: Ic833f647c2c135f213dd621e28a9be98809e0b04
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-01-29 14:16:13 +00:00
Ulf Hermann
ec7062d08f Timeline: Don't anchor delegate items
Apparently the parent is not always defined and we get warnings about
that.

Change-Id: I574d68c2668fef53af9422049143a0decf05286f
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-01-29 13:55:29 +00:00
Kai Koehne
582ad0fc3f Allow tweaking of environment for external tools
Task-number: QTCREATORBUG-4995
Change-Id: If8a6f6715165cf12809ae9c2a3a629bc4f464c16
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-29 13:21:26 +00:00
Nikolai Kosjar
739cc9f053 C++: Clean up dev tools
* Move cplusplus-frontend to src/tools
* Make them depend on libs/cplusplus instead of building that lib again
* Put the binaries into bin of the qtcreator build directory
* Unify *.pro files
* Build them all if BUILD_CPLUSPLUS_TOOLS is set

Change-Id: I8f9cd731625cbf9f41d5f6464c6cd946ffd6e141
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-29 13:07:05 +00:00
Montel Laurent
c001e98da8 Port to new connect api
Change-Id: I603fc2e3fda624c913e432d5059c86d96c3e2c3b
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-29 13:00:02 +00:00
Christian Kandeler
f567565d26 CppTools: Filter out "bad" symbols when collecting compiler defines.
Not all defines make sense for non-compilation purposes.

Change-Id: I7c5dd5aaa6de5c8916dfc10eb54ae49efa22959d
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-01-29 12:12:42 +00:00
hjk
2f855643a3 Debugger: Use direct access to WatchItems in LLDB engine
Change-Id: If431c9b03113d1958e18d23edf7e6433ca5922de
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-01-29 11:48:45 +00:00
hjk
7f6dbbb3f6 Debugger: Use direct access to WatchItems in PDB engine
Change-Id: I4229cab0304160f1b47ee17f25fa7d30414bbe85
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-29 11:32:59 +00:00
hjk
39ab4b3783 Debugger: Use direct access to WatchItems in GDB engine
Change-Id: I6b9735de1855203ce0586c4ee0c8991a13fb0bad
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-01-29 11:32:00 +00:00
hjk
c1c1221a0d Debugger: Make WatchItem accessible to engines
Change-Id: I1586a4c4f11cc4d622a6e164875f5b6ee2e1eb18
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-01-29 11:15:50 +00:00
Orgad Shaneh
8b5dcc13c5 Replace QFileInfo::fileName() with FileName::fileName()
Change-Id: I4852ff215abf25649fc5eac1e922ae901839ca3d
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-29 11:15:43 +00:00
Montel Laurent
6fd0d4ed33 Todo: Remove executable attribute from source files
Change-Id: I79f534cf54fe7d55d05324a3bb4afb4fb098b4af
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-29 10:35:16 +00:00
hjk
a6e9f032e3 Debugger: Use Utils::TreeModel for watch window
The circle closes, that's where the code came from.

Change-Id: Ic36ab61ec8886c9a2747aeb29a7245df3ef0b6c4
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-01-29 10:32:32 +00:00
Christian Stenger
401d66764c DiffEditor: Compile fix for Qt version less than 5.4
Introduced with ae6730d76d.

Change-Id: Ie12606ed18397d5b296d9c89ef8ce0c31e3991f3
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
2015-01-29 08:25:33 +00:00
Orgad Shaneh
6728741702 CppEditor: Be more strict about quickfixes that were not triggered
in tests

Change-Id: I1f4b4c7a1f4068a83d385e74d75a482b5effdb0c
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-01-29 08:11:53 +00:00
Orgad Shaneh
d2b5136a50 CppEditor: s/testFile/testDocument/
Change-Id: I5e7cd4998fe1ab5aa649f27d06710582f5c77453
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-01-29 08:09:04 +00:00
Nikolai Kosjar
bc3b1250a5 C++: Compile fix for cplusplus-update-frontend
Change-Id: I43035114806bb0eb5772bdc591a8cb2864dc2423
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-01-29 07:58:53 +00:00
hjk
ed2a84c822 Debugger: Prevent LLDB choking on extra dumper paths
Change-Id: I230a05274e95430162c3f2d05de5d93bf4985b4e
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-28 17:21:42 +00:00
hjk
d7f364f915 Debugger: Generalize Locals&Expression tree item parsing
An intermediate step to move the engines one by one to direct
WatchItem construction.

Change-Id: I563582498c4eeb3d604dfa046722133ab6d24650
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-28 17:10:44 +00:00
Orgad Shaneh
885c8f8f66 C++: Use cr/lf on Windows in cplusplus-update-frontend
Change-Id: I6d607177b12ef4f55cfbaa2c0e339216627906ec
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-01-28 16:22:28 +00:00
Nikolai Kosjar
3b0836274d C++: Correct src/libs/cplusplus dependencies
There is no dependency to languageutils, but we now depend on cplusplus
since we use/call Utils::FileName and Utils::FileDropSupport.

Change-Id: I18ca659ec3023a146e9e358e33dabbf9805fb6ce
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-28 16:16:40 +00:00
hjk
999a11a745 TreeModel: Fix model back pointer propagation when adding items
Only the top level entry was handled so far, but we might add
items with subitems.

Change-Id: I55084a1f595f4982bd37168e71b144b17eee63b1
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-28 16:09:50 +00:00
hjk
706c826bc1 TreeModel: Make item flags configurable in "group header" constructor
Default to 'editable' (not selectable), intentionally changes behavior
in the Kits, Compilers and Debugger option pages, but brings it more
in line with Qt version.

Change-Id: I71739a5d61c9980fc6da729dcb59b0900047f066
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-28 16:09:38 +00:00
Tobias Hunger
ae6730d76d DiffEditor: Convert more connects to Qt5 style
Change-Id: Ie1da8e093bd28f0a2ad0fe34b860008a7484ed5f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
2015-01-28 15:22:15 +00:00
Nikolai Kosjar
9bdb2a69be C++: Tools: Remove superfluous QT_NO_CAST_FROM_ASCII
It's pulled in by including qtcreator.pri.

Change-Id: Ief408b586d81780187392afbcadc0aea497e55aa
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-28 15:02:14 +00:00
Christian Kandeler
5496631ca3 Update qbs submodule.
To HEAD of master branch.

Change-Id: I122490c50ac7ca2abd0dabe63875e6e17ad83602
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-01-28 14:08:57 +00:00
Tobias Hunger
0ed08bdfdf Git: De-noise code
Change-Id: Ibcae2f432b3a9262e9c7c23cf2d8f9ca018cd771
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
2015-01-28 13:35:08 +00:00
Tobias Hunger
bdae49c474 DiffEditor: Use Qt5 style connects
Change-Id: I051b2128620bf0317b359852007463c6601ceaca
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
2015-01-28 13:35:05 +00:00
Tobias Hunger
d527b11daa DiffEditor: Save a little space by reordering members in Controller
Change-Id: I3051979a2ada5650021370667e8979eb25d0467f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
2015-01-28 13:35:02 +00:00
Tobias Hunger
d8d93b7282 Retrieve output from journald
Qt nowadays logs into journald in some setups, so retrieve the output
from there and put it into the application output pane.

Change-Id: Ia2199a1420e1d80541f2f455e242d0b473922125
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-28 13:11:59 +00:00