Commit Graph

32962 Commits

Author SHA1 Message Date
Tobias Hunger
bd87b09072 VcsBaseClient: Remove unneeded member
and small cleanups.

Change-Id: I9db6d7d5de32acd2ec1d757f27e4e3095dd5b1eb
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-22 15:42:12 +01:00
Hugues Delorme
9b13e407ee VcsBase: use Qt5 new connect syntax
For VcsBaseClient and VcsBaseEditorParameterWidget

Change-Id: Ib80110c904ee0d1153bc1c602c385f9cb8b0be50
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-22 14:29:13 +01:00
Hugues Delorme
4b5d2ccef7 Vcs: in VcsBaseClient use functors to create log/diff parameter widgets
Also API of VcsBaseEditorParameterWidget was changed to take benefit of C++11 lambdas.
Slot executeCommand() is no longer virtual and only fires signal commandExecutionRequested().
The Vcs client just has to bind a lambda to this signal instead of some boiler-plate code
like keeping track of the arguments of diff/log with "struct XxxDiffParameters", etc.

Change-Id: I347c97d84a8324e9c661df4e6d9a6075980b020f
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-22 14:28:35 +01:00
Tobias Hunger
e29a49ca24 VcsBase: Sprinkle with auto
Change-Id: Icd1e1ec16b1ff918162d3c6f564348d47177ffc7
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-22 14:19:24 +01:00
Tobias Hunger
8538839847 Svn: Sprinkle with auto
Change-Id: Ib4bf4f856b32be91918bd68a62b74bd93a7755e0
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-22 14:19:20 +01:00
Tobias Hunger
78303bddf5 Perforce: Sprinkle with auto
Change-Id: Ic9a721a4e7d1f517f1c2dd9a48d2421aecda5190
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-22 14:19:16 +01:00
Tobias Hunger
2ce93c2b7d Mercurial: Sprinkle with auto
Change-Id: Id2a4adb5c4759e64affed8c5988feb58389ec1ea
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-22 14:19:13 +01:00
Tobias Hunger
03c9b935de Git: Sprinkle with auto
Change-Id: I13886e17ee49702a69450e0f0b7d161cdfed1385
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-22 14:19:09 +01:00
Tobias Hunger
b0a4921b5b CVS: Sprinkle with auto
Change-Id: Ia75fef66615dfe8a7fe8fb6b170fac550b3cfa83
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-22 14:18:07 +01:00
Tobias Hunger
32c93d2643 ClearCase: Sprinkle with auto
Change-Id: Ia003b873cf4802df506ab6090dbb93858d7526d0
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-22 14:18:05 +01:00
Tobias Hunger
d2da1a94ff Bazaar: Sprinkle with auto
Change-Id: Ie87de7eeeba6988870c8c35eab67be576f4e60a5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-22 14:18:01 +01:00
Tobias Hunger
a6e1e38858 TaskList: Sprinkle with auto
Change-Id: Icb7f4ca4cd3d373770981a75a62120a92e853f44
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-22 14:12:40 +01:00
hjk
b01a46f946 Debugger: Re-compute L&E after manual dumper reload
Change-Id: I78a8ddc2b25aae48a792d80657b00f34abe9a1fd
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-22 13:29:12 +01:00
hjk
61c49a122f Debugger: Initial shot at native Qml-and-C++ debugging
Only for GDB now, requires a debug build of Qt, not feature complete.
To enable it, run with QTC_DEBUGGER_NATIVE_MIXED=1 and press
the 'oo' button in the debugger toolbar.

Change-Id: I28aac9db13f7067e03cc364b89cc8046fa213dae
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-01-22 12:39:02 +01:00
Fawzi Mohamed
73a9bea51d qmljs: do not rely on future.isCanceled to be sticky
Change-Id: I92f32b9cbea1ddb1660895264f853068c31af4cd
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-01-22 11:37:26 +01:00
Daniel Teske
fc3abe9984 ProjectTree: Make project loading fast again
Change-Id: I4a84579311a606d442805acbac2793e8b5ddf515
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-01-22 11:13:59 +01:00
Daniel Teske
e1da2d8d98 KitConfigWidget: Only emit autodetectionChanged if itactually changed
Ups. I verified that the crash is still fixed.

Change-Id: Ibb3a72bab79eb433ff426c90a60b33cc6a6d873b
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-22 11:13:52 +01:00
hjk
cca1030432 Debugger: Add python command to add dumpers
More flexible than hacking on the C++ side. Also registers
the custom dumper path to make it reloadable like the
"built-in" dumpers.

Change-Id: I0405f7278e28eb75d83fdd4a861f5a5c32d97a0e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-22 10:55:36 +01:00
Eike Ziller
fbcff211c3 EditorManager: Make placeholder text API 'module-private'
Since locator is actually part of coreplugin, and it is the only one
supported to set this currently.

Change-Id: I7f310a29f6d157f3a494fa774216772e48853dc4
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-01-22 10:30:21 +01:00
Alessandro Portale
77f584b90f Progress bar: Using @2x warning/error icons on High-DPI systems
Change-Id: I7c6829462c627638da0b8452a17cdf179ac71087
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-01-21 22:54:47 +01:00
hjk
e17fb8ffc1 Fix crash in insertSideBarWidget
Change-Id: I7c35fe859b0364a7cd9cc5c4be6af60ab27cde17
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-01-21 16:33:35 +01:00
Eike Ziller
58feec49bf Make "close view" buttons more consistent
Use the same icons that we already use for editor splits.

Change-Id: Ice052f637968918a15b16e00a39c5dbc06948dbc
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-01-21 15:02:55 +01:00
Orgad Shaneh
c24ffc4dee C++: Expand arguments in nested function-like macros
Task-number: QTCREATORBUG-13219
Change-Id: I319fe39d696ccc28230d421b1395faf4dd452b03
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-01-21 13:23:38 +01:00
Tobias Hunger
5460250281 VcsBase: Make VcsConfiguration page more dynamic
... again making it more useful for the JSON wizard

Change-Id: Ic7a454c4efc93eb48a44ab2a37ecd39f8c6f3ba7
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-21 12:24:11 +01:00
Nikolai Kosjar
df1bbb07d1 CppTools: Extract base class CppCompletionAssistProcessor
As as side effect, this also brings some more pragma completions for the
builtin-in completion engine, e.g. "pragma once" or "pragma omp atomic".

Change-Id: If3ef22076c331c653b78a87cfff836c1da38c8fb
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-01-21 12:19:12 +01:00
Nikolai Kosjar
6d22df7d3f CppTools: Rename CppCompletionAssistProcessor to InternalCpp...
We will introduce a base class with the name
CppCompletionAssistProcessor.

Change-Id: I74a39d0b14d4ee30d7bd7675ad968e83f377de7f
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-01-21 12:18:51 +01:00
Tobias Hunger
01699e9f25 JsonWizard: Allow for wizards without generators
The Checkout wizard will not feature any generator.

Change-Id: I05900309a5ea8a638493ab0fa5499759bcdc181f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-21 12:11:18 +01:00
Orgad Shaneh
8bb176d2ec C++: Do not compare flags when matching types
Trust the matcher to do the job.

Task-number: QTCREATORBUG-13564
Change-Id: I4ff14608a1ce12d3f4424242e50ba71233ac9bfd
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-01-21 12:05:32 +01:00
hjk
c47dd737b0 BaseTreeView: Modernize connections
Change-Id: Ie8de8a5c59f16a22419d1ee8382ef151a65d0b07
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-01-21 10:42:06 +01:00
Nikolai Kosjar
aa5dbe7793 Clang: Clean up ClangCodeModelPlugin
Change-Id: I4a5a91ff91cb0ec2f8eec647c45c42d8c8faa758
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-01-21 10:39:46 +01:00
Nikolai Kosjar
2cfbf20a0b Clang: Compile fix for CLANG_INDEXING=1
Change-Id: Id095832a388ad4aac1657b762bdb8c9f667744d9
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-01-21 10:39:08 +01:00
Tobias Hunger
db215dcf69 VcsBase: Add Js Extension for querying VCS configuration state
This enables JSON wizards to check for that.

Change-Id: If6bfc580b37f712168b707ac51412df8f1cbbf25
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-21 10:16:56 +01:00
Takumi Asaki
0efe82475f qmljs: fix message
Add missing comma.

Change-Id: I1828389f209c1ba369596a6b509a9c586db1e79a
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
2015-01-21 10:11:21 +01:00
Tobias Hunger
fd3076a4eb Wizard: Use Qt5 style connects
Change-Id: I2507c9edebf3bc46f703cd026cfb5eb824c36ebd
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-21 10:03:57 +01:00
Nikolai Kosjar
046f510e19 CppTools: Fix revision check in CppLocatorData
Bug was exhibited by running e.g.

 ./qtcreator -test CppEditor,test_quickfix_MoveFuncDefOutside_FreeFuncToCppNS \
   -test CppTools,test_cpplocatorfilters_CppLocatorFilter:CppFunctionsFilter-WithNamespacePrefix

Change-Id: I57d96a8f7bf0aea6eb11cb68d1b981808533ce41
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-01-21 09:41:38 +01:00
Tobias Hunger
21f272a8c7 JsonWizard: WS only change
Change-Id: I6f5fd3818d51ee531b92be0b78b4435d621fe0ed
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-21 09:27:34 +01:00
Tobias Hunger
b848ade48d JsonWizard: Report runtime errors from pages
Change-Id: Ia96ac950ec209fcbc82c7b49b72d0b6417b99906
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-21 09:27:17 +01:00
Tobias Hunger
749c740a4e WizardPage: Add a way to report runtime errors
This will make debugging JSON wizards much simpler!

Change-Id: I03baf4b8d954a9097c0fc4e1180e91d2afe5cc4e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-21 09:26:38 +01:00
Tobias Hunger
a3984dd751 Vcs: Make VcsConfiguration page available to JSON wizards
Change-Id: I444d1d95b87fe5c1ede04e1ae9bbe4e1e2d89bd3
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-21 09:26:06 +01:00
Tobias Hunger
6b10466b10 Core: Add some helper methods to VcsManager
Make VcsManager provide a generic way to list all IVersionControls
and to search for a specific one based on its id.

At some point we want to register the IVersionControls directly
with the VcsManager instead of going through the object pool and this
is a first step into this direction.

Change-Id: Id4ded85b29487f6d8adcd0cec1de490afae07132
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-21 09:24:51 +01:00
Tobias Hunger
5cefe1db26 VcsConfigurationPage: De-noise only change
Change-Id: I0144e9339e7dfd58b1827071e5057941ffdf17f9
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-21 09:23:55 +01:00
Tobias Hunger
36ff7e4a6b VcsBase: Move vcsconfigurationpage into wizard subfolder
I will try to move all the wizard code that is still relevant there
and then get rid of the rest.

Change-Id: I3963f53fd39ef0f84c71218eb59b05213121cc90
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-21 09:23:14 +01:00
Christian Kandeler
9dee300b67 Debugger: Fix scoping bug in watch handler.
Found by clang static analyzer.

Change-Id: Ib25232b26c314d4da4707f7903f1b75b907b241d
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-21 08:56:05 +01:00
hjk
ec187241e5 TreeModel: (Partially) separate header data from root item
Full separation does not seem possible as QTreeView assumes
all items to have equal column count.

Change-Id: Ia260924fe13ea62789923af8484f9838295355b6
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-01-21 08:42:52 +01:00
Orgad Shaneh
daac058f00 CppEditor: De-noise inspector dialog
Change-Id: Ieea1129352831b78c0dc9deee195025060b2008d
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-01-20 17:37:04 +01:00
Daniel Teske
64cc15bca4 Kit: Fix crash on removing android kits that were autodetected
To reproduce:
In the Android settings, enabled "Automatically create kits"
  -> This creates kits with autodetected set to true
Switch to the kits page to get the KitPage filled, those kits
  now appear under the autodetected node.
Switch to the Android settings and disable "Automatically create kits",
  -> This doesn't want to delete the old kits, to not throw away user
     settings, so the kits are marked as manual by calling setAutoDetected
Switch to the Kit page and notice the kits still listed under the
  autodetected node. Clicking apply enables the remove button and on
  removing Creator crashes.

Add the necessary signal emissions to setAutoDetected and several other
methods and fix the KitModel to cope with changes to autodetected.

Task-number: QTCREATORBUG-13736
Change-Id: I3d0ff247a6bfff8ace53df8535749db5c736d54b
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-20 16:24:26 +01:00
Daniel Teske
7958565c96 ProjectTree: Fix crashes on removing folder nodes
The code that invalidates m_currentNode folder nodes on removing wasn't
run due to a typo.

Change-Id: Ib7d545da4078275b2875c9a4c6246909234c8073
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2015-01-20 15:52:02 +01:00
Tobias Hunger
f3220dd408 Vcs: Delete commit message file after commit
Change-Id: I5786fb49d99c793319d28d5a14460f962f416ab5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-20 15:44:46 +01:00
Tobias Hunger
6fe3eec590 VcsCommand: Use Qt5-style connects
Change-Id: I81688ce998bf9f8d47b7d88e639699b626be90dd
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-20 15:44:30 +01:00
Daniel Teske
e7e8f2265e ProjectTree: remove unnecessary emit
Change-Id: I6631f0aec8a487095f4c6133c1c2a4dad8f810ee
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-01-20 15:26:27 +01:00