Commit Graph

44349 Commits

Author SHA1 Message Date
Christian Stenger
183cd8ce99 AutoTest: Use result type string also for summary items
But use a grey'ish color to explicitly mark them as summary
items as they are no real test results.

Change-Id: I7e682a7753e8467e6ec65ac09fb27a7b798d765f
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-02-08 05:39:45 +00:00
Orgad Shaneh
148e793dec Git: Prepend -e to the pattern on grep
This fixes searching for patterns that start with dash.

Change-Id: I824f64151842008a034757de6a00fd8a6cc46d72
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2017-02-07 19:57:58 +00:00
Thomas Hartmann
7b66a7427e QmlDesigner: Crash fix
Deleting or cutting the root node is not possible.

Task-number: QTCREATORBUG-17646
Change-Id: I613179c291e744c2d2f6e44ce103bcbd2afaed28
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-02-07 14:47:30 +00:00
Thomas Hartmann
f04f09e17c QmlDesigner: Crash fix
Throwing for an invalid model node does not make much sense.
I expected it returning false and that it what it does now.

Change-Id: I5c8c1a771e95a39bdb9ab7c30b4e94957464ffc1
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-02-07 14:47:16 +00:00
hjk
71007df8fd QtSupport: Simplify welcome page examples model handling further
Use the ExampleSetModel directly in the combobox, rely on normal
model reset behavior behavior for gui updates.

Change-Id: Icdb34ff0f572caaf92259530823e90bfd783b933
Task-number: QTCREATORBUG-17678
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-02-07 14:29:14 +00:00
Tim Jenssen
f16bd2433b QmlDesigner: remove empty line
Change-Id: If8ad086bed95d051661fe834a6cfb3883bed5269
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-02-07 13:05:36 +00:00
David Schulz
26397935b4 Debugger: Fix guard expression
Change-Id: I2f31c3156636a413665aef4c5e327968c26f4a33
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-02-07 08:59:44 +00:00
hjk
541dd8643d Debugger: Inline GdbEngine::write into caller
Not used in earnest since the end of CODA/Symbian.

Change-Id: Ib2d22fb247d178b091a17f9927aa911d6707d3f9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-02-07 06:58:03 +00:00
Orgad Shaneh
f77af5e336 Gerrit: Remove repo selection from the dialog
Behave like the Branches dialog, which is updated by the current open file.

Change-Id: Id106b3e4fa777bcbf08b826f4e7d52845dde57a6
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-02-06 17:00:26 +00:00
Tobias Hunger
ffbc331168 ProjectExplorer: Use makeEmpty in FolderNode::buildTree
Some lines saved.

Change-Id: I5a5e2bb150070aae48ad0ec1abb08bc2532d093b
Reviewed-by: hjk <hjk@qt.io>
2017-02-06 16:57:41 +00:00
Tobias Hunger
bd8fe1c42b ProjectExplorer: Deduplicate functionality of makeEmpty
Only one line saved, but potentially less hassle should FolderNode::makeEmpty
ever change.

Change-Id: I4dd01179a8dce9735744991c3de080739ab693ae
Reviewed-by: hjk <hjk@qt.io>
2017-02-06 16:57:36 +00:00
Thomas Hartmann
0b11ba3177 QmlDesigner: Keep result in local variable
Change-Id: I43c99bb18c1473b67fc40cda02af6cb1595c29ec
Reviewed-by: hjk <hjk@qt.io>
2017-02-06 16:19:28 +00:00
Nikolai Kosjar
50a07695bd CppTools: Report also C language back to project
...for Project::setProjectLanguage().

Change-Id: I77347c4597061fb48782c629d5ad6898028fee13
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-02-06 14:31:49 +00:00
hjk
fd2bf97f82 Debugger: Remove the "Attempt quick start option"
This was GDB-only. It complicates the startup mechanism including breaking
certain setups (e.g. users manually controlling "set auto-solib-add" in
their .gdbinit) without providing too much benefit (anymore).

Part of the potential debugger startup time improvements that were
possibly gained by the feature are nowadays available by using a
release build *without* debug info, as one of the original reasons
to not use that (making Qt type introspection hard/impossible)
is largely gone with 4.2+.

Change-Id: Iffb34e0035f39ad74b24bf025749b546f25a489b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-02-06 13:15:19 +00:00
Vikas Pachdha
dfbe52efe3 iOS: Use command's exit code to check for failure
Change-Id: I8a565cab51b22bdf0d7d2ba274306479dc0397b1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-02-06 11:17:13 +00:00
Marco Bubke
68afbbce75 UnitTest: Fix compilation for different configurations
Change-Id: I20d4217d1c33002f7e1ac084af4b0982b2f04971
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-02-06 10:23:29 +00:00
Jesus Fernandez
970e8defe7 Button text changes in Create Session Dialog
"Switch To" text is a confusing, changed to "Create and Open". "Ok"
button text changed to "Create".

Change-Id: I57071eb6e8173bf54561910259a6836a317c3485
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-02-06 10:02:17 +00:00
Orgad Shaneh
e366e135b7 Git: Eradicate Q_FOREACH loops
Change-Id: I29b6071ea244d1b3ae0701d36c90b1e93cf21fbb
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: hjk <hjk@qt.io>
2017-02-06 09:37:44 +00:00
Orgad Shaneh
e3eee3b2b9 Utils: Eradicate Q_FOREACH in algorithm.h
Change-Id: I16cbe1896091e6677341dd954f58f69db1d61530
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-02-06 09:37:36 +00:00
Orgad Shaneh
28b61a9f9c Git: Avoid repeating calls to currentState() in updateActions
Change-Id: I9352b7d9ad064e6dc4eb694a9175c8f32b5b25c8
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2017-02-05 07:45:00 +00:00
Orgad Shaneh
67933e4c1f Git: Move msgRepositoryLabel from StashDialog to GitPlugin
It's being used by many dialogs.

Change-Id: I3ef484cf8b9cc56210be1de5b4f201eb2f96ef67
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2017-02-05 07:43:25 +00:00
hjk
5b50854e57 ProjectExplorer: Use more concise code to register extra compilers
Saves some line noise and a function.

(void) new Foo(this); is not really a new pattern in Creator code,
but a bit of a new pattern for "registering things".

Change-Id: Ie1bb409ed77bc20833fc07ca14715b9ecbc9bd5d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-02-03 15:37:56 +00:00
Marco Bubke
79e73ea4ee Fix spelling of unitttest_public
Change-Id: Id90dbfe30bb1f1c147299c4ac8cd210dbe7d8b82
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-02-03 15:35:44 +00:00
hjk
8c3307a51a ProjectExplorer: Add space between treeview entries
Task-number: QTCREATORBUG-17481
Change-Id: I27c304d1a63477c6ad081dd843ec3a6e9b6b2a4e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2017-02-03 15:26:31 +00:00
hjk
f1bc4ade50 QtSupport: Do not keep hold on a list of qtVersion
Can get invalidated, and lead to a crash.

Task-number: QTCREATORBUG-17644
Change-Id: Idc704ae8833ff12abd046a667f242b672d98f9b2
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-02-03 15:11:26 +00:00
hjk
a0402dc0df QtSupport: Move built-in list of tutorials to resources
Task-number: QTCREATORBUG-17635
Change-Id: Ie1a738efe2dc6dbb217079cce508642b5c1504d6
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2017-02-03 15:09:47 +00:00
Jesus Fernandez
42e3492e1a Add a shortcut to Session Manager
Change-Id: I695387d926549fe7370b20ed3f8d8a52099a5202
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-02-03 13:55:01 +00:00
hjk
f8f7931b43 QMakeProjectManager: Shorten ProVirtualFolderNode constructor
It's only used in one code path, and the InternalNode contains
everything it needs.

Change-Id: I6bd4e2e3555b9a321bf0b93c56d5459f141be494
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-02-03 13:38:12 +00:00
hjk
31d6c3cd05 QMakeProject: Clean up qmakenodes.h
Remove unneeded things, move one-time uses to .cpp.

Change-Id: I9836a78ff697c965295d58be67530ce08c04e9d8
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-02-03 13:38:07 +00:00
Nikolai Kosjar
b1792007c7 CppEditor: Make minimized info bar icons more prominent
...by moving them further to the left in the editor toolbar.

Change-Id: I2e9b19778ea20ffc647cc80169da2f1666395c24
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-02-03 13:37:44 +00:00
Nikolai Kosjar
93fe64e789 CppEditor: Fix highlight of '#' Button for duplication case
Change-Id: Ib97f31912c9b2d619e3b92287ca8b192604f3831
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-02-03 12:00:36 +00:00
Nikolai Kosjar
dd3ba874b4 CppEditor: Disconnect lambdas
Otherwise this can lead to use-after-free access, as in:

 1. Open a document
 2. Duplicate it the editor
 3. Close current editor
 4. Modify the preprocessor directives ('#' button)

Change-Id: I3032dbbfac86ad86e08dc39e85703bc176a27ca2
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-02-03 11:59:45 +00:00
Nikolai Kosjar
38ba61ec4f CppEditor: Rework showing/switching parse configurations
* Move the combox box for switching the parse configurations out of the
  "Additional Preprocessor Directives" dialog ('#'-button) to make it
  better visible/accessible. Also, decouple the extra preprocessor
  directives from the concrete parse context since this is not anymore
  in same dialog.
* The combo box appears only if multiple parse configurations are
  available for a file.
* The first time multiple parse configurations are detected, an info bar
  is shown that points the user to the combox box. A "Do Not Show Again"
  button is provided.
* Upon selecting an entry, the preferred parse configuration is saved as
  part of the session. The setting can be cleared with the context menu
  entry on the combo box.

Follow-up changes need to ensure that the display name and/or tooltip is
unambiguous, e.g. for qbs and cmake projects.

Change-Id: I9e9773704187291524ad7b605bfdddd83ef5b19d
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-02-03 11:58:27 +00:00
Tobias Hunger
9ac96339ff CMake: Keep project configuration table visible at all times
Keep the project configuration visible at all times. This way users can actually
add settings, even when the configuration fails.

Task-number: QTCREATORBUG-17628
Change-Id: I0a342e0cba1dd720661a171818e0d91415ef5703
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-02-03 10:39:06 +00:00
hjk
39a8442f80 QMake/ProjectManager: Simplify QmakeProFileNode::applyEvaluate
... and remove ProjectNode::removeProjectNode, as this was the
only remaining user.

Change-Id: I2c53392a8e9dacf956270d652525b62ba4c9e0a4
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-02-03 10:09:38 +00:00
David Schulz
0ef5463ed7 CdbExt: Add dumper support for new std container
std::multiset
std::unordered_set
std::unordered_multiset
std::unordered_map
std::unordered_multimap

Change-Id: I72ac9a96d64d85ca6c914acdbf626fba731c587a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-02-03 08:28:58 +00:00
Christian Stenger
062edcaa94 Fix compilation using Qt5.6 on macOS
Change-Id: I94c16668d8fd64c0974f7f1c459a1c46e1cbc9e3
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-02-03 08:10:59 +00:00
Orgad Shaneh
c0378e086b Fix build
operator% is defined in QStringBuilder header, which was unincluded in
32b628e16b.

Change-Id: Ib028485ed4e7d6362df1df5d678cb8009ac3c67c
Reviewed-by: hjk <hjk@qt.io>
2017-02-03 07:29:00 +00:00
Jarek Kobus
32b628e16b Remove unneded includes of QStringBuilder
Change-Id: I2f9690d9374b44731926a1a1532994e877809e26
Reviewed-by: hjk <hjk@qt.io>
2017-02-02 15:26:54 +00:00
Nikolai Kosjar
b250c073b5 Core: Fix memory leak in InfoBarEntry
Use like

    InfoBarEntry info(id, text);
    info.setShowDefaultCancelButton(false);

leaked the infoWidgetCloseButton.

Fix the memory leak and improve the API to avoid inconsistent state.

Change-Id: If2e06a8a5239e4f902a883da82122c3a27df48a6
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-02-02 14:47:10 +00:00
Nikolai Kosjar
e2e78c6a5d CppTools: Distinguish between ProjectFile::{unclassified,unsupported}
There was no way to determine whether ProjectFile::classify() was run or
not. Now, ProjectFile::classify() returns ProjectFile::Unsupported
instead of ProjectFile::Unclassified.

Change-Id: I660d0e42044bdefcac38058c6f4a3425983a6d93
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-02-02 14:46:13 +00:00
Nikolai Kosjar
cfa25be0a4 CppTools: De-duplicate printer of ProjectFile::Kind
Change-Id: I66d2841ac76a73ef7c6548b98438d5c7b3acc4c3
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-02-02 14:21:37 +00:00
Nikolai Kosjar
352e916498 CppEditor: Use Qt::UniqueConnection
Change-Id: Id5a2237b64e4b3c944dc1e83ab7631a25cff5daf
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-02-02 13:29:04 +00:00
Nikolai Kosjar
69bc252e9d ProjectExplorer: Rearrange some statements
There is no need to set up an environment before the cache check.

Change-Id: Ie3cd7b470d364a318624745c9a9c491ec78470cc
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-02-02 13:28:57 +00:00
David Schulz
0a5ac41b23 Debugger: Add debug output for parseAndEvaluate
Change-Id: If5ed128d32c2dff6880a78cc9a5ee535e094da7d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-02-02 13:06:59 +00:00
David Schulz
bb76740691 Debugger: Use GetOffsetByName for staticMetaObject lookup
Halves the lookup time compared to parse and evaluate.

Change-Id: I8beda23f444c73816a93e38154d2ca502b701fe8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-02-02 13:06:52 +00:00
David Schulz
1b5d8a84f8 Debugger: Let the python bridge handle reference types
Create pointer and array types in the python code. Uses
the type cache which leads to less type lookup calls.

Change-Id: I970bbb04da2e8051ed66b4b12dfb62076d7f214d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-02-02 13:06:44 +00:00
Marco Bubke
8f93ec3020 Clang: Use PathString in more cases
Change-Id: I7bee469256a79b384bf7b8c1d5355f1df11c7b24
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-02-02 12:46:51 +00:00
Marco Bubke
01a96537a8 Utils: Move forward declaration of SmallString in an extra header
Change-Id: I6da1cc60d425f654a31570373eb3b4f660d5f975
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-02-02 12:46:44 +00:00
Marco Bubke
76713d6d26 Clang: Use " instead of <> for includes
Change-Id: Ife6ab8b89221dc336b93c1dba3804ba240c3e52e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-02-02 12:46:29 +00:00