Commit Graph

51307 Commits

Author SHA1 Message Date
David Schulz 2317d06a80 Debugger: Add DumperOptions to the cdb fetch command
Change-Id: Ibe05f82997b57cfffb26bfb5c67681be24419139
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-05-30 08:40:33 +00:00
David Schulz 118faf1180 Debugger: Fix warnings for inappropriate debuggers
Change-Id: If463c18d1d04cdd78b6be34e98b76c8df89594f2
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-05-30 05:35:25 +00:00
David Schulz daac41338e TextEditor: Simplify TextMarkRegistry
The registry is an implementation detail and doesn't need to be exported
so move it to the textmark.cpp file.

Change-Id: Ic103b122cb20063fa4bc220bdc90cecff27054aa
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-05-30 05:01:16 +00:00
Jochen Becher c3579c9dae Modeling: Fix component model built from container nodes
Change-Id: I28f3335b7a5d95a1c587d1f80cb250c1ddd966de
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-05-29 18:59:21 +00:00
Jochen Becher 89a6ec4db3 Modeling: Add project management page to wizard
Change-Id: Ia70d397b7e9489eab35264624aa78ee63be99ca8
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-05-29 18:59:05 +00:00
Eike Ziller d2312f749d Locator: Remove years old compatibility settings reading
Change-Id: I583e0f36443887432cf61940aceefe3cadf50318
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-05-29 12:47:00 +00:00
David Schulz a26149e386 WinRT: Initialize WinRtRunnerHelper member
Change-Id: I811a47389ec22c3a57dafebf8e706b0c8880f2f5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-05-29 11:42:56 +00:00
Orgad Shaneh b8d9a6d127 VCS: Fix wrapping when settings are changed while the editor is open
Change-Id: I41a138f1e0838be833edac1b63e64a1d86575db4
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-05-29 11:03:16 +00:00
Orgad Shaneh 2584c4e180 Git: Improve branch listing in Show
* Separate local and remote branches
* List branches for each remote in a separate line
* List up to 12 branches per group
* Elide in the middle, list first and last branches in each group

Task-number: QTCREATORBUG-16949
Change-Id: If293cbd2536921261d9f420c71c2b68c8cb5bfe2
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-05-29 10:38:59 +00:00
Robert Loehning 60eb763979 Debugger: Check return of readNextStartElement()
..instead of ignoring it and then querying the same value right after.

Change-Id: I33b27a09857048a7f5088990d47d2e2ee4deb669
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2017-05-29 10:28:31 +00:00
Orgad Shaneh 46b201a613 Debugger: Fix startup when FreePortsSpec is an empty string
Change-Id: Iba961572fb60f6e47c143d4947c8ca2ac844c2db
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-05-29 09:08:47 +00:00
Eike Ziller 4b3c0ffc03 Clang: Fix highlighting of operators (==, <<, ..)
Handle all enum values that can be reported for clang highlighting
marks.

Change-Id: I07eec789902f36d70fa15f26cad0b151e2adff6e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-05-29 07:26:19 +00:00
hjk 74a96bd0a6 ProjectExplorer: Fix debugger shut down
Change-Id: Ic74470aedc6d5b9d70858e21a73df1bcdb48ac49
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-05-29 07:17:00 +00:00
Eike Ziller 68a89c29a4 Make functionality of applying mixin text styles available for everyone
Change-Id: I0e702be0572229ec96c71d0ae2b5395a3c2fb29e
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-05-29 06:54:18 +00:00
Nikolai Kosjar 6174cca5a0 Move CanonicalSymbol from CppEditor to CppTools
Needed for a follow-up change.

Change-Id: Ibb4815f3411f0d63deac8c32583178470668f67b
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-05-29 06:42:09 +00:00
Orgad Shaneh d84a6ed411 Debugger: Fix state transition warning
*** UNEXPECTED STATE TRANSITION:  "State changed from DebuggerFinished(22) to DebuggerFinished(22) [master]"

Change-Id: Iddacafbe337b95aa441aecbaf3ebf85c08a83d81
Reviewed-by: hjk <hjk@qt.io>
2017-05-29 06:22:29 +00:00
Orgad Shaneh b7e562d32b SyntaxHighlighter: Fix crash when typing a quote at line end
in a py file.

Change-Id: Icfed4db68e1183ab19dbaf83ab5c9b6083f88fca
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-05-29 06:19:16 +00:00
Robert Loehning dabab693e9 AutoTest: Move creation of DebuggerRunTool to safe place
Change-Id: I11aeba477b741717fa65b816ee3fad3f00b9b1d0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-05-29 06:01:40 +00:00
Eike Ziller 5820fbec63 Add missing override
Change-Id: I90fbe3b51074a079f08d9cfc1aa49058fb4ce3a7
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-05-26 10:02:09 +00:00
Alessandro Portale dff0c9df7a Core: Add the "resourcePath" to the global macro expander
Example use case: Multiple wizard json files want to reference a shared
resource file without using fragile relative paths.

Change-Id: I2502083d4c371c25a8b66e7d5d3b4fb9d8697317
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-05-24 14:23:36 +00:00
Orgad Shaneh df38b384d4 ClearCase: Disable by default
* CC is a dead system.
* The test each time a file in a new directory is opened to see if it's
managed by CC is extremely slow (it invokes a process).

Change-Id: I7c578a401a4757b0701146e11da60ac9c5f27ae1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2017-05-24 10:53:08 +00:00
David Schulz 801824fac2 WinRT: Initialize WinRtDebugSupport member
Change-Id: I1db6afcb52e500cbd1860044e5c509378929359c
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
2017-05-24 10:24:45 +00:00
Orgad Shaneh b272bf3dc0 CMake: Remove unneeded filter
The TODO was done in 1b2fc1c815.

Change-Id: I9b1ff1aeccdaa71f7ea4d75d935dd09182e39def
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-05-24 08:57:36 +00:00
Eike Ziller 636549888a Remove unused constant
Change-Id: I2bb57472826431ae1fcaa7e0b66301c9551050b2
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-05-24 08:55:34 +00:00
Orgad Shaneh 8430da3bf7 Merge remote-tracking branch 'origin/4.3' into master
Change-Id: I01ab8c85ea3372b6dce4142ddb9cf92d903ffca6
2017-05-23 23:41:40 +03:00
David Schulz d42e867f44 TextEditor: Use default values for DisplaySettings members
Change-Id: I04a58ffd25d44e144d064fe691251ea136ed8c88
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-05-23 12:07:53 +00:00
Eike Ziller b289dbde3c Fix style of visualized whitespace for various vcs editors
Blame, log and git rebase editors.

Task-number: QTCREATORBUG-17735
Change-Id: Ifd23ba7b6ccf3ef98d3026cdc8c17fd88c97797c
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-05-23 11:32:57 +00:00
Nikolai Kosjar 1a9808d393 Clang: Remove unused functions
Change-Id: I66e990dfce5196da48cdf158cf7e5a4050565670
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-05-23 10:52:41 +00:00
Eike Ziller 21a246ac38 Fix highlighting of C/C++ line continuation backslashes
The backslash itself is not a token, so we must make sure to only format
the trailing whitespace characters as visual whitespace, instead of
everything trailing.

Broke in a92694596e

Task-number: QTCREATORBUG-987
Change-Id: I4e9e84d29513ea317d7e3bde6c6b4c43749cb649
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-05-23 09:21:36 +00:00
Eike Ziller a901916710 DiffEditor: Remove dead code
It updates a local variable that is not used.

Change-Id: Id7ec92108bb3a35c9177bd3429b6f69ac23a9f28
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2017-05-23 09:00:07 +00:00
Eike Ziller d0da958f99 Fix whitespace highlighting within python comments and strings
Change-Id: Ib3c72483b42c4843efc8deb1c15eddf953c661af
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-05-23 08:50:48 +00:00
Eike Ziller 0a1376dd2c Generalize function for visualizing whitespace from CppHighligher
Move function which formats all non-whitespace with a given format, and
all whitespace in the same range with correct whitespace highlighting
(merged with the non-whitespace format), from CppHighlighter to
SyntaxHighligher.

Change-Id: I8cac306f6362e804698068a0df0292f88726264f
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-05-23 08:50:32 +00:00
Eike Ziller db11c01df8 Clang: Fix highlighting of primitive types
libClang categorizes these as keywords, so we need to check
if a keyword is actually a primitive type, and use that.

Task-number: QTCREATORBUG-17867
Change-Id: I354bb0422505ed7732a0799d9c86d3acfdeb0785
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-05-23 08:41:42 +00:00
Eike Ziller f51fbd68e1 SyntaxHighligher: Remove the need to specify format for spaces
It has all means to know itself.

Change-Id: I464c195c5ee47e5fc58414a280c166e4a332c588
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-05-23 08:34:53 +00:00
Eike Ziller cf57965ebc Simplify text format handling in syntax highlighters
Pass the mapping from custom enum to text style in form of a function,
which then can use a switch which is checked by compilers, and
avoids the need to lookup a different enum somewhere else to find
out what the mapping actually is.
That mapping is cached to keep performance as before.

Also, most highlighters created an enum just for the purpose of mapping
to text styles, basically creating duplicated subsets of text style like
enums everywhere. Instead provide a default, identity mapping from text
styles to text styles.

Change-Id: I2ea1ca702b99e36b8742dfda510b1b2753f0a1c2
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-05-23 07:47:22 +00:00
Ivan Donchevskii 762f67f729 Clang: fix completion for incomplete includes
Complete includes when one choice exists.
Fix complete in the middle.

Task-number: QTCREATORBUG-15710
Change-Id: Iec794c17aabc8de47f981382f4b4286b9325827d
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-05-23 07:46:26 +00:00
Nikolai Kosjar 986a518c17 C++: Handle curly braces like other brace types
Unless it balances the curly braces
 * typing '{' leads to auto insertion of '}'.
 * typing '}' skips already present '}'.
 * removing '{' leads to auto removal of '}'.

This prevents unbalanced curly braces, which are problematic for clang.
Concrete use cases are: typing of initializer lists, lambdas, function
definitions.

Task-number: QTCREATORBUG-15073
Change-Id: Iec8c6aa5aca054455c1e1bfde3a65c4fd1f579c3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-05-23 07:43:39 +00:00
Thomas Hartmann 7482d8a152 QmlDesigner: Fix resolving of source
Using the QUrl:resolve() does not work with Qt 5.9.
Since the file url is a local file and not directory this was
weird usage of QUrl anyway.

Change-Id: I2d709bc40a404b61ea3c3edbbfd1727a6ee2111c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
v4.3.0
2017-05-22 15:22:11 +00:00
Jesus Fernandez 19a178e1b1 EnvironmentWidget: Change the shortcut from &Edit to Ed&it
&Edit was conflicting with &Edit from the menu bar. To make the shortcut
more useful 'i' is used instead of 'E'.

Change-Id: I88541bec44cfe68e4b36508887597ce05867f25f
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Jesus Fernandez <Jesus.Fernandez@qt.io>
2017-05-22 15:09:38 +00:00
Tobias Hunger 2ec987ff49 Resources: List .qrc-files with the other files
List .qrc-files with the other files, even though they can be
expanded to reveal the resource files contents.

Task-number: QTCREATORBUG-18234
Change-Id: Iad05fb358c35eb81c4f74b7a0524447801981ae5
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-05-22 14:47:45 +00:00
Tobias Hunger 013642b0a7 ProjectExplorer: Fix node selection in wizard dialogs
When File>New File or Project is selected, then no node should be selected
on the summary page. If the wizard is triggered via the context menu of the
project tree, then select that node as context instead.

Task-number: QTCREATORBUG-18093
Change-Id: Ic9a14ad72c23c9a40ba2866772e0dcd5b28f9a74
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-05-22 14:47:21 +00:00
Tobias Hunger db84ad5368 SessionDialog: Fix autoload checkbox
Change-Id: I35203feb94335300933a6b940bf7807ee37e55b1
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-05-22 14:47:12 +00:00
Eike Ziller f694e4b481 macOS: Fix conflict between cancel build and DeleteStartOfWord
Change-Id: I63f9bbb6b190009e2feceeb6f3a9a8f1953fd6f5
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-05-22 14:28:39 +00:00
Thomas Hartmann c515f68786 QmlJS: Allow Loaders in ui.qml files
Loader are working in the designer and we will add more support for
them in the future.

Change-Id: Ied62d65b0eb9933b44a7833ccafcb934d4ae6fba
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-05-22 14:19:02 +00:00
Ivan Donchevskii 707170ca04 Clang: make workaround for multibyte utf8
Correct columns in clang diagnostics and completion

Task-number: QTCREATORBUG-16775
Change-Id: I7260a0e52007fe261e83492dca5d457c34476497
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-05-22 13:28:36 +00:00
Thomas Hartmann a03e04b1cd QmlDesigner: Always add the iso icons to the qrc mapping
Since the qrc scanning is now asynchronous the qrc mapping
is not always reliable. Especially the first time when a new
.qrc file is added.
To keep at least the iso icon tool working reliable we always
assume an iso-icons directory.
Since the mapping qrc to file system is one to many anyway, this is
not breaking anything.

Task-number: QTCREATORBUG-18225
Change-Id: Ibb6d77960bd643f8c1f37bebc0c0e400588d0429
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-05-22 13:16:06 +00:00
Vikas Pachdha 00167e5ab2 Android: Delete auto generated kits without valid Qt version
Task-number: QTCREATORBUG-18229
Change-Id: I55a31a12b00eefe70c224c2d9e4939218827e1be
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-05-22 12:11:39 +00:00
Christian Kandeler 34702f8441 SSH: Fix enum values
Newly introduced enum values need to get a higher value than the
existing ones of the same type. Otherwise such values will be
interpreted wrongly when loaded from settings created by earlier
versions of Qt Creator.

Task-number: QTCREATORBUG-18235
Change-Id: I0f8497352d1ef382b5c8a65db4e1dea20b6296da
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-05-22 10:51:40 +00:00
Thomas Hartmann e2a45d0032 QmlDesigner: Fix compile
Change-Id: Id37f517fb0584f8066cc0922ed1ca18901bfa7b2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-05-22 10:44:37 +00:00
Orgad Shaneh 7a3eb71cf7 ProjectExplorer: Minor cleanup
Change-Id: I9388053eafae661bb16c75917ca8cc738df8b3c1
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-05-22 10:29:14 +00:00