Commit Graph

44349 Commits

Author SHA1 Message Date
Alessandro Portale
af17830d79 QtSupport: Use FancyLineEdit as Welcome Page search filter edit
FancyLineEdit has fancier features than plain QLineEdit.

Change-Id: Ibec542641abdf0e8f762bf7bfc6a5bac2fd056e5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-11-03 08:22:12 +00:00
Eike Ziller
ba0faf229a Remove external tool for "sort text"
We now have Edit > Advanced > Sort selected lines

Change-Id: I948718a1be432e00b2646b29f173894a51691164
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2017-11-03 07:30:52 +00:00
Orgad Shaneh
e9b4d3a48a Rename CamelHumpMatcher -> FuzzyMatcher
Change-Id: Ia8a2eeb985bcdd500b4faf9605e5092a52dad372
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2017-11-02 21:35:03 +00:00
Hugo Holgersson
fc2bb852fd TextEditor: Clarify the UI hint of the "Declaration" style option
This setting currently only styles function declarations so let's
make that clear to users by updating the visible description
and renaming it to "Function Declaration".

If we ever implement variable declaration styling, we need to
again update the name + UI hint to reflect that capability.

Change-Id: I1d9579d2915d5e69f92fb045ecdb641a79351112
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-11-02 16:56:11 +00:00
Ivan Donchevskii
58e8904856 Clang: enable clang tidy and clazy in code model
Set QTC_CLANG_PLUGINS_LOAD env variable to get diagnostics
that come from libclang plugins.
This functionality works after the patch is applied to
clang repository and clang is properly built with it.

Task-number: QTCREATORBUG-15157
Change-Id: Iefeee4dd115f3f43ddc6ed79452a1135e653def6
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-11-02 10:25:28 +00:00
Christian Stenger
aab634ff15 Revert "Qmake: Make finding pro-files fast"
The patch broke defining the correct executable for qmake based
projects. Loading more complex projects (like QC itself) did
end up failing to run any executable out of the box as the
executable name was always wrong.
This reverts commit 21b0e7c37e.

Change-Id: I471c9963bd739b74e48286e1bde00f7222b90c8b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-11-02 09:45:25 +00:00
Orgad Shaneh
bacfc28a36 CppTools: Match also function arguments in locator
Useful when there are several overloads for the same function.

Change-Id: I325bda7d2fdf4108f71a61d5473cd55310c51c28
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-11-02 09:26:17 +00:00
Ulf Hermann
7af341fe56 RemoteLinux: Add support for QML Live Preview
Change-Id: I86a0a7943505c61499dc0bb392f75f122cfbacdd
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-11-02 09:18:50 +00:00
Eike Ziller
2d5d62fdbc Restrict suggested file filters to registered supported mime types
When using File > Open File or Project, and with Save As.
It was containing all mime types registered in Qt Creator, including the
default one from freedesktop.org, most of them being not interesting.

Task-number: QTCREATORBUG-17913
Change-Id: Ic5e49b27b566eb41419240b78a6cd99b233aeb07
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-11-01 15:17:39 +00:00
Tobias Hunger
2a651bf477 GccToolChain: Invalidate caches on toolchain changes
Change-Id: I91a69631d0417beb35574a5725da6b5a5e411113
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-11-01 15:14:48 +00:00
Eike Ziller
56afef9e93 Modernize InfoBar code
Use more algorithms, use range based loops where needed

Change-Id: I1fec57df18d93c86242e3ba7f8108f77c7e7112f
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-11-01 14:52:11 +00:00
Eike Ziller
58942de965 Remove use of global state from InfoBar
It is initialized by the core plugin anyhow, so give it enough
information there to avoid accessing the global state later.

Change-Id: I39e7a9f32ef5c7930faf9ba751e75bebf57b507e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-11-01 14:51:57 +00:00
Tobias Hunger
b6d0ca203e GccToolChain: Make macro cache bigger
16 entries is tight alrealdy for Qt Creator, so leave more room to avoid
retrievivng the same information over and over again for bigger projects.

Change-Id: I92239df2449cec20d1dbd9aaae98d88c08d2a241
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-11-01 14:21:26 +00:00
Tobias Hunger
3529e785c4 CppTools: Make create* methods return something
Change-Id: I20cfdaef23e9b7c48c9d3b4f27157e771fd9bc7f
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-11-01 14:19:29 +00:00
Tobias Hunger
a65630ef8c CMake: Pass C toolchain on to the project model
Change-Id: Ice833d9b180d7bac109c7cdf9e63fdba0bbce86e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-11-01 14:19:10 +00:00
Knud Dollereder
4baa34ec60 Assign the stylesheet to the tab-bar that contains the timeline
Change-Id: Idd0e16bd6557bff7fd956e60b8b991b35feb5ea0
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2017-11-01 13:29:39 +00:00
Tobias Hunger
5897cd1f24 AbiWidget: Use QSignalBlocker
Use QSignalBlocker instead of blocking/unblocking manually.

Change-Id: I7b5c04bd256caee9e20b353392eda49a301137e3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-11-01 12:54:55 +00:00
Tobias Hunger
21b0e7c37e Qmake: Make finding pro-files fast
Finding the right pro-file was surprisingly slow. Make that fast again.

Task-number: QTCREATORBUG-19131
Change-Id: I4b5a8887cb13c36273a553f935a00d87cee4a7b5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-11-01 12:54:25 +00:00
Christian Kandeler
9e32603c3d QmakeProjectManager: Support wildcards in INSTALLS again
This functionality was (accidentally?) lost in some semi-recent
refactoring in the pro file evaluation code. Note that only the "*" and
"?" globs are supported.

Task-number: QTCREATORBUG-17935
Change-Id: I9ade940f4dbf9c5836cd8b5fab2d85d10f42ad9a
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
2017-11-01 11:27:40 +00:00
Jarek Kobus
96aeabd0a6 Add folding to Side-by-side diff editor
Add folding for files and chunks.

Change-Id: I76476351e88f0b3e71e3cccbca0fa17b02c26226
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-11-01 09:13:17 +00:00
Christian Stenger
f0c2c2cf17 ProjectExplorer: Fix compile for Qt <= 5.9
Change-Id: I91371af7733d71cc3f3bcef3caab06a2fde4fd48
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-11-01 07:34:56 +00:00
Orgad Shaneh
0b76a8864c Merge remote-tracking branch 'origin/4.5'
Change-Id: I7bc3615fb4bbafffa9636d731d8840445352b592
2017-10-30 21:44:13 +02:00
Orgad Shaneh
92c1659df2 CamelHump: Prefer plain match over camel hump
For example:
Matching "lit" against "LiteralTable" should highlight "Lit" and not "Li"
and "T" from Table.

Change-Id: I8a0a9d0b0b90403745e85b1d3d20deaa551416eb
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2017-10-30 19:38:57 +00:00
Benjamin Terrier
4c62cbd6dc Add detection of MSVC 2017 Build Tools
Rename detectCppBuildTools() to detectCppBuildTools2015().
Add detectCppBuildTools2017(). Like the 2015 version the detection is
based on the presence of a .bat file because there are no entry in the
Windows registry, but it relies on the VisualStudioInstallation
structure like other Visual Studio toolchains.

Task-number: QTCREATORBUG-19053
Change-Id: I875bd466a3009574696fb7ebe54cdc5ff9bcb921
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-10-30 13:59:21 +00:00
Tim Jenssen
30d123e2ec Wizards: add IconListField
- reuse some code from ComboBoxField throw an abstract ListField class
 - ListField can handle more data like: icon, trToolTip
 - fix disabledIndex in ComboBoxField
 - adjust documentation

Change-Id: I00b6ab787fb2fad97dafff32786cf73c636c772d
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-10-30 11:55:35 +00:00
Tim Jenssen
5c5bac67a4 Wizards: add basic tests
Change-Id: I647227d458540b0271070cc56106165058929d29
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-10-30 11:53:48 +00:00
Tim Jenssen
585becbf56 Wizards: remove unused defaults
Change-Id: I001ebc7d4b18f79eec48afe08f6aaa07b1883b5b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-10-27 15:21:38 +00:00
Tobias Hunger
1406bbeec7 GccToolChain: Log what gets reported to code model
Change-Id: Ic6a0252f6109393a2aab8ea96db9a9b583c25394
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-10-27 15:11:44 +00:00
Tobias Hunger
d8b25ad1d4 GccToolChain: Unify handling of language options
Change-Id: I06896d2b8b0561726d607f4bfaeb5b3ec8e065ee
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-10-27 15:11:36 +00:00
Tobias Hunger
bc3d4d86fa GccToolChain: Improve retrieval/caching of compiler data
* Use one template to implement both Caches
* Use shared_ptr to the caches. This is necessary to not crash
  when the toolchains get deleted while the compiler is being run
* Pass language to header path retrieval code and use that information
* Add unit tests for cache used by the toolchain

Change-Id: Ic31e7c4c1ed8158af7f2cdfda8104255efb06aea
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-10-27 15:11:28 +00:00
Christian Kandeler
50047466ab Update qbs submodule
To HEAD of 1.10 branch.

Change-Id: I9eefebdb98a9d68a286b2c8bc309864566a1867d
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2017-10-27 14:43:31 +00:00
Nikolai Kosjar
5ba40cb7fb Clang: Require LLVM/Clang >= 5.0.0
...for the code model parts and declare 5.0 as the supported version for
the clang static analyzer.

Adapt versions and tests, remove code assuming clang <= 5.0.

LLVM/Clang 5 was released on 07 Sep 2017.

Task-number: QTCREATORBUG-18931
Task-number: QTCREATORBUG-18657
Task-number: QTCREATORBUG-17187
Task-number: QTCREATORBUG-14881
Change-Id: I53b00258ca06a1d2e57f9379dacc54b310687295
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-10-27 14:21:19 +00:00
Christian Kandeler
3d5731c1d6 Fix qbs build
Change-Id: Ia0655f95bf2e6e18e5627682bc50954aaa61568e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-10-27 13:31:15 +00:00
hjk
81677fca97 Debugger: Move GdbEngine connections to constructor
In constrast to the LldbEngine this did properly disconnect
on restart, but moving it to the constructor avoid the need
to disconnect and follows the intended pattern.

Change-Id: I9a5727c1f6b76c0282de159251803f6ff5e76eb4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-10-27 12:09:55 +00:00
hjk
f318dcde4b Debugger: Move LldbEngine connections to constructor
Doing it on startup duplicates the connections on re-run.

Change-Id: Idccd039b4a005a96b9a20d99e663fc636b2e67c9
Reviewed-by: Filipe Azevedo <filipe.azevedo@kdab.com>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-10-27 12:09:49 +00:00
hjk
5f09b3234e ProjectExplorer: Make RunWorkerPrivate::runControl const
It's not meant to ever change after contstruction.

Change-Id: I912b58dfb70b40c9763b902650d2c657c28ccc5c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-10-27 11:57:36 +00:00
Robert Loehning
b095dec478 Use specific members of QVariant instead of template
Change-Id: I8c18b71d093ad19a312f1890f6b240fb61c986ba
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-10-27 10:25:00 +00:00
Robert Loehning
beb91cb84b CustomToolChain: Remove unused variable
Change-Id: Ia1faadee2c5d789c2d7ca9542ebfc77b4269d935
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2017-10-27 10:24:21 +00:00
Marco Bubke
4911d5bea3 Utils: Add predicates for comparison to constant values
Many STL algorithms have value version. So you can only use a predicate:

std::stable_partition(std::begin(list), std::end(list), [](int entry) {
     return entry < 20;
});

With this predicates you can write it in a shorter form:

std::stable_partition(std::begin(list), std::end(list), lessThan(20));

The find helpers are moved to predicates too.

Change-Id: I791b3105ca84ef7c5a519d22589a91b5548cf3e4
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-10-27 09:28:07 +00:00
Tobias Hunger
7a7a12cef2 CMake: Fix build directory
Fix use of build directory vs. workdirectory in tealeafreader and servermode
reader.

Change-Id: I593579f7ad4facd64cf201368cacc4d3a8414fbf
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2017-10-27 09:07:10 +00:00
Orgad Shaneh
6138bc3d41 TextEditor: Fix proposals matching
The regular expression must match the beginning of the string.

Broke by 95310b28f3.

Task-number: QTCREATORBUG-19170
Change-Id: Id95751e35ff48792333745d07a07da50af703f8f
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2017-10-26 18:06:29 +00:00
Daniel Engelke
c27d0bb1cb Add filter box to kit selection in target setup dialog
The kit list gets quite long when having multiple qt versions installed.
To prevent having to search through the whole list when wanting to
select kits, a filter option based on kit names has been introduced.

Change-Id: Id533eb62680de69e956396fc4624b61a8c2de909
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-10-26 12:52:41 +00:00
Tim Jenssen
2f3acee4e0 Wizards: add a warning about unsupported keys
- parseData methods check that there is no unknown key is used
 - showing the name and type might be useful in warning and error messages

Change-Id: I1371bb3af1ad48ed4b85260f3b1309cdba1cb71f
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-10-26 11:32:03 +00:00
Ivan Donchevskii
a701ca8342 ClangRefactoring: return ProjectUpdater
Change-Id: Ie90a8acf8ec9641ae9349679da278a3055b79d9e
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2017-10-26 09:48:16 +00:00
David Schulz
2d437325b8 TextEditor: Restructure TextEditorWidget::extraAreaPaintEvent
Change-Id: I832168226bfe254f0540ca1a947bf16170494549
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-10-26 08:32:55 +00:00
Nikolai Kosjar
09ca12bbde Clang: Remove not existing files from *.qbs
...after merge of the change from 4.5 that provides *.qbs files for
clang libtooling components.

Change-Id: I696a72b3f6b111fb1ac8ff7ab5f5471e24aafe69
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-10-26 08:30:50 +00:00
Marco Benelli
f12e095fd4 Qmljs: check pointer to ModelManagerInterface
Task-number: QTCREATORBUG-19152
Change-Id: I3c511d15af943cc92c35a3c3d823080415940780
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
2017-10-26 08:18:36 +00:00
David Schulz
0981636943 HighlightScrollBar: Modernize overlay painting
Change-Id: I59da9b106204e27b202b08d0502052f3697c71a0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-10-26 05:56:35 +00:00
Christian Stenger
16f2ea10bd AutoTest: Limit search for test tree items
If searching for a test tree item matching a GTestResult
we can safely limit searching to the subtree holding
GTests only.

Change-Id: Iae27c5a48f24a2e59fc4ccd0c2917520fc22b053
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-10-26 05:24:48 +00:00
Eike Ziller
a3d845815a Fix build error after merge
Change-Id: Idc8bd0cece32fa2095598cef931a369f35d6be11
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-10-25 19:29:52 +00:00