Commit Graph

42629 Commits

Author SHA1 Message Date
Ulf Hermann
6a7a45881f Timeline: Don't add and remove batch roots
Every time a batch root is added or removed the whole scene is rebuilt.
Instead of using the "visible" property we can collapse items to a
height of 0 in order to make them invisible while keeping them in the
scene. This avoids the rebuilds.

Change-Id: Icc6dddb8c8f892a37ef4ed5bced501e5f1658d80
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-09-01 10:23:33 +00:00
Ulf Hermann
b054fd8542 QmlProfiler: Clean up the state widget
Ultimately we want this as jobs for the progress manager, but let's
get the logic right before. The state widget should not estimate
profiling times and it doesn't have to keep local copies of all the
state the model and state managers already have. Also, we need an
additional indication for "waiting for application to send data", as
that can take significant time.

Change-Id: I3677dea4b0561bc83a7bc3c196ce0854c5624f12
Task-number: QTCREATORBUG-12958
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-09-01 10:17:22 +00:00
Ulf Hermann
1caa899b8d QmlProfiler: Make sure timeChanged() signal is queued when needed
It can be triggered from a thread loading trace data. This triggered
the warnings about QObject::startTimer and QObject::killTimer and was
generelly unsafe.

Change-Id: Iee1f5f29a49147a20b1f5c826f85b6713fcb8a45
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-09-01 10:17:17 +00:00
Ulf Hermann
599c5a034a QmlProfiler: Avoid overflowing the progress range when loading
The ProgressManager can only deal with at most (1 << 31) / 100.

Change-Id: I03c61839fa5b9dab56b99f98a63ed7ab8b340c09
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-09-01 10:17:12 +00:00
Ulf Hermann
0a34352473 Timeline: Make all the colors in the selection range alpha blended
Changing an item from alpha blended to solid or vice versa forces a
full rebuild. The difference between solid and 0xfe alpha won't be
visible.

Change-Id: I4da47870fc465449f0354a18fc87717c569be812
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-09-01 10:14:21 +00:00
Ulf Hermann
ce092d3f30 Timeline: avoid rebuilding of text nodes
Using an array of strings as model has the unfortunate effect that all
text nodes resulting from it are rebuilt whenever anything in the
array changes. Using a number as model only triggers a rebuild of
everything when the number changes.

Change-Id: I8a762e78eb75b282f46641a6cba6eff43c8ebfd5
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-09-01 10:14:13 +00:00
Marco Bubke
e8e45ca102 Clang: Don't show a warning for unused macros anymore
Change-Id: Ia816476ed577d7060d752e74e5be2c2f1ebb7f12
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-09-01 10:04:19 +00:00
Robert Loehning
a80f4d179b Squish: Verify shown filenames when adding C++ files
Change-Id: I1e6c944a70c4f44d4f1b3e5cb7b6b6c8421ba453
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-09-01 09:44:41 +00:00
Robert Loehning
652ff8efeb Squish: Add test for creating new C++ class
Task-number: QTCREATORBUG-14949
Change-Id: Ie42471f174eaacab2810eec12c2af4201a9374fe
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-09-01 09:44:28 +00:00
Orgad Shaneh
15578266e4 ProjectExplorer: Add missing tooltips for zoom buttons
Change-Id: I3d4aa81f8b1e39b89954fa36e8352c06bbef4e9a
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-09-01 08:58:48 +00:00
Orgad Shaneh
9e60bec3a2 Core: Fix scrolling with the mouse wheel for zoom-enabled panes
Change-Id: I2961b386c84391851c1b4f140e3f0153f9cc299f
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-09-01 08:33:58 +00:00
hjk
cfb2b2186e Debugger: Fix removal of breakpoint marks in disassembler view
Task-number: QTCREATORBUG-14973
Change-Id: I6dfceefe6d8b1404c2a553dbeebd7dccefa1a624
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-09-01 08:16:53 +00:00
Eike Ziller
44a8e937e3 Provide a way to override file name case sensitivity.
Change-Id: I47ed4f590e5f25380c2052fa77eae3f0d315c5d3
Task-number: QTCREATORBUG-13507
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-09-01 08:12:17 +00:00
Eike Ziller
701f939092 OS X: Make file system be handled as case insensitive by default
Task-number: QTCREATORBUG-13507
Change-Id: Ia524950646ae1ff9d177876728c306b2bb909215
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
2015-09-01 08:12:01 +00:00
Christian Stenger
e10ba2e289 Clang: Fix missing includes and compiler warnings for MSVC2013
Change-Id: I88d371a5997576bfd29aedc38353df9ea3a3faeb
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-09-01 07:22:46 +00:00
hjk
cda1f94b18 Debugger: Remove queued commands in GDB engine
Instead, always pipe them into the GDB process, even if the inferior
is not stopped. The original need to hold back commands until
the inferior is stopped seems to be long gone.

Change-Id: I234fdd067d78966c9896f1fa85a134900bf6dec7
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-09-01 06:57:29 +00:00
David Schulz
ba2b210b83 Debugger: Fix crash when attaching to already running application.
Change-Id: Ie6b28d14c6e8c49b9d8307c528807add82d3a57b
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-09-01 06:37:51 +00:00
David Schulz
d5c29ada95 Clang: Add QDataStream includes to ipc container.
Change-Id: I6f73a1daa3e8b934896ceb6fd0c1185e24d60236
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-09-01 05:45:35 +00:00
Daniel Teske
780e70b757 QmakeProject: Show a better error message than just "Incompatible build"
Change-Id: I003e856dd5b222348bacd5acbdf9da4725864b35
Task-number: QTCREATORBUG-14021
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-08-31 15:22:05 +00:00
Marco Bubke
9e25fa9a66 Clang: Disable ClangCodeCompletionTest::testUpdateBackendAfterRestart
The integration test has to be rewritten!

Change-Id: Id06f9a3ceb54cf6836f4ca1a745e20fefc6a5391
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:02:40 +00:00
Marco Bubke
d6b75cfd47 CppEditor: Slow down processor timer for clang
The timeout was too fast so we reparsed the document far to often.

Change-Id: Ib168d3e52b48dd2325accafb340872b55e71e42e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:02:34 +00:00
Marco Bubke
09a107ccdf Clang: Change Diagnostic timer
Change-Id: Ie43d922596423e0f7507f06bfec5be4e9f5f484a
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:02:26 +00:00
Marco Bubke
7eee8061f6 Clang: Add unsaved files messages
We have auto generated buffers from ui files which are not open but have no
file representation. So we need to provide them as unsaved files only.

Change-Id: I48a426c18e06eeda2fa707864f32f293e17ac651
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:02:19 +00:00
Marco Bubke
3114780e55 CppTools: Add CppModelManager::isManagedById
Change-Id: Ica1a33b2619f64746b8671bff2856503775a40bf
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:02:11 +00:00
Marco Bubke
6e14eb6940 Clang: Rename ForCodeCompletion in ForEditor
It reflects that the translation units and projects have a tied
relationship with an editor.

Change-Id: I3c01d5776980fe079af1fdef82feded83fdf5463
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:02:02 +00:00
Marco Bubke
8ad7616420 Clang: Reparse for removed files too
Change-Id: Ibe8a3fa46bead6018a4279c3a270cb2535a7b296
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:01:43 +00:00
Marco Bubke
053e9597af Clang: Fix CodeCompletionsExtractor.BriefComment test
Change-Id: Ic01f3c361a5c81cfb96c51d6111ed6d589a76563
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:01:37 +00:00
Marco Bubke
4e18e9cdd5 Clang: Only get one diagnostic for a time out
Otherwise we can stall the backend process.

Change-Id: I854d117546ad08026be8a42854739cabad8b67fd
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:01:31 +00:00
Marco Bubke
283ddb8df3 Clang: Use timer in ClangIpcServer in the file watcher to send diagnostics
One mechanism for all diagnostic updates is better to maintain.

Change-Id: I774577bfa343162ded362977a0727a12379d1eab
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:01:25 +00:00
Marco Bubke
0267f2861d Clang: Send the diagnostics delayed
Change-Id: I6065e51d38c262cf59d977c11c6453dec85a6dfe
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:01:18 +00:00
Marco Bubke
aa300e363f Clang: Adds needs reparsing test
Change-Id: Id58a831ac7ae389f225e3eac5d376dbf78a07772
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:01:10 +00:00
Marco Bubke
d4976e1109 Clang: Avoid double reparsing
The document is now always reparsed after a change.

Change-Id: Iad1d9f78d98f75d5e873de35ac487a8dabc4fc4e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:00:48 +00:00
Marco Bubke
1a5e7b778d Clang: Send document revision with the completion request
The sent text should always accompanied by the document revision to avoid
useless the reparsing of the translation unit.

Change-Id: I4af50f277f9352f4af0cdda8a32ad76c44c1935f
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:00:24 +00:00
Marco Bubke
dc31e3742a Clang: Don't replace text if the original text is equal
A replace is changing the document revision which is triggering a reparse
of the translation unit.

Change-Id: I73863af650dd8e6d3fb3e5ab4112609ced201614
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:00:18 +00:00
Marco Bubke
f2b7371af1 Clang: Reparse only if files are changed
Includes are now watched by a file watcher. Unsaved file changes are
watched too. If they are changed the translation units which depend on
them are set to a state which require a reparse. Later the diagnostics
of this units are collected and send back to creator.

Change-Id: I2fb5c7dd6644687f22399edd8d18edd6215c9505
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:00:07 +00:00
Marco Bubke
aa6aaee510 Clang: Add brief comment support
Change-Id: I5af23b6694d3d0bf45ed0a30b4d91b350f0515df
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 14:59:50 +00:00
Marco Bubke
b278dc87ca Clang: Add diagnostics
Diagnostics are now moved to the clang backend process. Fixits are
supported too.

Change-Id: I20faacf466bbf78dec479220c3d7b336a47bc453
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 14:59:16 +00:00
Daniel Teske
8dfa9a5dab ZOOOOM for CompileOutputWindow and AppOutWindow
Implement zooming for the compile output and app output panes.
Those windows can be zoomed by toolbar buttons or ctrl+mousewheel.
The zoom factor is synced between app output panes, but not between
compile and app output. The scroll wheel zoom can be disabled
in the settings.

While at it, fix that the AppOutputPane did not update its font
on changes to the fontsettings.

Task-number: QTCREATORBUG-12476
Change-Id: I8a1639ab3d39c24a5fc21ed82f558f3d10efc02d
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-08-31 14:59:03 +00:00
Daniel Teske
cea36f1376 Fix various context menu actions from project managers
The correct pattern is this: The actions in the build menu are supposed
to be for the startup project. They should use the global context and be
manually hidden/shown if the startup project changes.

This fixes a crash on assigning keyboard shortcut to the edit files
context menu action.

The slot connected assumed that the action could only be triggered via
the context menu. By using ProjectTree;:currentProject() the code now
works even if the project tree is not actually focused.

It also fixes that the "Run CMake" action was shown even in the build menu,
even though a non cmake project was the startup project.

Change-Id: I0bb8086d8b1078b4c71c3b5ba9d7f8596757e724
Task-number: QTCREATORBUG-14728
Task-number: QTCREATORBUG-14768
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-08-31 14:57:36 +00:00
Daniel Teske
cac53ea41f Utils::PathChooser: Allow the core plugin to extend the context menu
And then use this to add the "Open in Graphical Shell" and "Open in
Terminal" actions.

Those actions cannot be implemented in Utils directly since the Core::FileUtils
depends on the Options dialog.

This affects all PathChoosers, and there's currently no way for a PathChooser
to opt out or have a different context menu. That can be added at a later
point.

Change-Id: I22121c19d66f08785381c7e0bca5317628eb6342
Task-number: QTCREATORBUG-14736
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-08-31 14:57:09 +00:00
Daniel Teske
06483d3720 Fix "Make" build step not being updated on environment changes
Change-Id: If356830b064229d74f0b69360301c4091bcb2acf
Task-number: QTCREATORBUG-14831
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-08-31 12:54:06 +00:00
Daniel Teske
14300191a1 QmakeBuildConfiguration: Offer both Debug and Release in "Add Build"
Change-Id: Iac9749816119dab772c5b6fa34b4d998a68bcab3
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-08-31 12:53:49 +00:00
Tobias Hunger
52a52ca09f Android: Remove unused constants
Clang warns about these.

Change-Id: I002d97356dd7b6401edc577b69978d5d17a1e404
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-08-31 12:16:17 +00:00
hjk
5829b22b03 Debugger: Also show instruction bytes in LLDB disassembler
Change-Id: I9676e458153b745fc75a5da271524e73959fba03
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-08-31 11:51:19 +00:00
Christian Kandeler
513c4e0a89 Update qbs submodule.
To HEAD of 1.4 branch. Also do the necessary adaptation in
QbsProjectManager.

Change-Id: I810502c5be14ff8e93c886dae931cd4bceb81d13
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-08-31 11:43:46 +00:00
hjk
fbbb6ad820 Debugger: Don't use quotes around single chars when editing registers
Change-Id: Id45a919dba4f49e8d389bb3e77bbede5b4d98a89
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-08-31 11:10:00 +00:00
Daniel Teske
be3fc0ef0b Qt Quick UI: Add "kit environment" as a base environment for run
Change-Id: Ica4e63b4b8e56ee6d2ead0ad3a5d1b57de20009c
Task-number: QTCREATORBUG-14701
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
2015-08-31 11:02:32 +00:00
Daniel Teske
f3a0e58843 MiniTargetSelector: Sort build/deploy/run configurations case insensitively
Change-Id: Ifbb305808046ea85f1f250beef3a518842de8b01
Task-number: QTCREATORBUG-13963
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-08-31 10:24:30 +00:00
Daniel Teske
fb1360cd31 Don't parse Makefiles without Command: line
Change-Id: Ied315fda07d2ae8910aca7ce232b01c5cdc36f0f
Task-number: QTCREATORBUG-14291
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-08-31 10:24:09 +00:00
Daniel Teske
eba7d8d196 QmakeProjectImporter: Slightly tweak spec handling
The removed code had actually no effect since it changed a variable that
was not used later. Since we are looking for a kit that has a identical
spec, there's no need to pass any spec in additional arguments.

Also on creating a temporary kit, don't set mkspec if it's the same
as the qt versions mkspec.

Change-Id: Ia37317a5b6fefa603106c8761279577271f32a7e
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-08-31 10:23:58 +00:00