Commit Graph

54723 Commits

Author SHA1 Message Date
Leena Miettinen
56cd215c6d Doc: Describe hiding invisible items in the Qt Quick Designer Navigator
Update screenshots.

Change-Id: I8335131298d2a400403be2879f4f363d687c78cc
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2017-11-06 11:43:16 +00:00
Tobias Hunger
03e629e5f9 ProjectExplorer: Handle Macros in build directory
Macros in build directory were not consistently expanded, so building
failed (at least in qmake projects).

Task-number: QTCREATORBUG-18601
Change-Id: I7ab06a1b969866748cf4062d1c820e5830efe281
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-11-06 09:24:09 +00:00
Eike Ziller
0e1953a0f4 Add documentation to ProgressIndicator
Change-Id: I40dd1168aa7df0fd1db221c29468868abb850af7
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2017-11-06 08:48:13 +00:00
Orgad Shaneh
a6cda6dbe0 Merge remote-tracking branch 'origin/4.5'
Change-Id: I16e3bb9ee3a1e6dc6edf7a65f8a137a25cda4fe3
2017-11-05 16:49:17 +02:00
Hugo Holgersson
990ce20523 EditorManager: Sprinkle const over the window title logic
This amends 2ab5561b9a.

Change-Id: Ic7c36348e88b72d6c1fed75ca149958be332345e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-11-05 10:07:59 +00:00
Orgad Shaneh
38e9a52f6c FuzzyMatcher: Improve tests readability
Change-Id: I4fba4fd741c785a0d4b03f6e308cef3d93d6bf1b
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2017-11-04 16:12:14 +00:00
Orgad Shaneh
4300041d24 FuzzyMatcher: Improve wildcard matching
Make it equivalent to current wildcard implementation, and replace the
current one with FuzzyMatcher.

Change-Id: If83a4a8dfc7c8930bd92b49972647a519886a831
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2017-11-04 16:12:03 +00:00
Tobias Hunger
19e125ce5f Qmake: Pass on QMAKE_CFLAGS to the code model
Change-Id: I87c07177adcfd72c7852f84266feb9baf1f87e5b
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-11-03 14:07:30 +00:00
Tor Arne Vestbø
357caf3b44 Allow LLDB pretty printer to skip resolving type across all modules
The lookup is quite slow, and will hang the lldb debugger,
causing Xcode to hang too.

Change-Id: Ic6579a5de9404c0040d3d304169f18109f61d2ac
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-11-03 13:40:16 +00:00
Eike Ziller
5368da1e8b Add documentation for Utils namespace
Mostly so it can be linked to from the main page

Change-Id: I8bee8a0e05db9462025755782966f3a4e8ea27f9
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2017-11-03 12:35:13 +00:00
Ivan Donchevskii
74570e833d CppEditor: fix class refactoring crash
... when class contains functions with incorrect AST.

Task-number: QTCREATORBUG-19180
Change-Id: Ie60c27ccec6d664e7ba76b8862326dbb9576a1bb
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-11-03 12:12:32 +00:00
Tobias Hunger
1094fe5abf Qmake: Fix detection of successful parsing run
Do not report success of a qmake parsing run based on every .pro-file
having reported success. Take the top-level .pro-file's success value
instead.

This fixes e.g. Creator, which has some .pro-files that error out in
some conditions.

Task-number: QTCREATORBUG-18992
Change-Id: I888141e723da84fb780ccd84c86acc25d03f5f28
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-11-03 10:12:59 +00:00
Tobias Hunger
af572c546f Qmake: Speed up QmakePriFile::findPriFile
Avoid needless detaching in that method: The method is used less since
the Nodes no longer need to go through it. All the runconfigurations
still use it, so this change is still noticeable.

Change-Id: I9f5e238ab1ef7165fd4fef1b0f80d4e5daa9a7e8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-11-03 10:12:49 +00:00
Tobias Hunger
0b5765d1cb Qmake: Make finding pro-files fast, second attempt
Finding the right pro-file was surprisingly slow. Make that fast again by
storing a pointer in QmakePriFileNode back to the QmakePriFile that created
it. This is save since the Nodes in the ProjectTree get nuked whenever the
tree of QmakePriFiles changes.

Task-number: QTCREATORBUG-19131
Change-Id: I4b5a8887cb13c36273a553f935a00d87cee4a7b6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-11-03 10:12:34 +00:00
Tobias Hunger
07748f540b ProjectExplorer: Fix handling of custom ABIs but AbiWidget
The AbiWidget sometimes lost changes when a custom ABI was used. Fix
that.

Change-Id: I220cc4c6072f0615c645a494130014e0a65d83fe
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-11-03 10:10:58 +00:00
Leena Miettinen
d679c8db82 Doc: Update info about Qbs options
Qbs profiles can be edited in the Kits tab in Options.
Qbs settings are now a tab in Build and Run options.

Change-Id: Ibb45ff4488cb061a50f48ec3237265ce5776fa24
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-11-03 09:03:45 +00:00
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
Ivan Donchevskii
b6ba40df00 Clang: fix libclang link directory for 64bit linux
When Clazy is installed in lib64 folder instead of lib.

Change-Id: Ifb24e09c307dab2dd2f5121bf44a17a357c1a212
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-11-03 08:01:48 +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
Orgad Shaneh
d6ff82a244 Dumpers: Fix CPlusPlus::IntegerType dumper
Change-Id: Ia21caf874f927428c27f6ad21da031b3a32146ea
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-11-02 14:04:44 +00:00
Ivan Donchevskii
a7b70d035b Clang: Patches: treat patches as binary files
Not to change line endings during git checkout.

Change-Id: I93a5229aee1dfbfa4a15c1966bdd566a371408c9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-11-02 13:43:00 +00:00
Leena Miettinen
b3ed01ca07 Doc: Describe managing Android SDK packages
Change-Id: Ida9d91806e0ffd8980ef1e9df0f933f234416188
Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2017-11-02 11:59:16 +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
Leena Miettinen
d8afb51c92 Wizards: Fix copy-paste error in Swipe view wizard description
Mentioned a StackView and a Drawer, which do not seem to be used in
the example. Also contained "with a" twice.

Change-Id: I51916b73731224cb633bd90f724ec7f4c2b89f91
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-11-01 14:38:33 +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
Leena Miettinen
130a32cbb3 Doc: Describe function for sorting lines alphabetically
Remove the information about the external sort tool, which will
now be removed from Qt Creator that we have a sorting feature.

Change-Id: I508885954a2fc7f9cbd136681a69c690c710235f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-11-01 12:32:50 +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
Eike Ziller
89de112b6f Merge remote-tracking branch 'origin/4.5'
Change-Id: I8ecbfe11801cc74baf9698edaf792451d992ed5d
2017-11-01 11:59:53 +01: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
Leena Miettinen
f2ea25f0cb Doc: Describe CMake setting groups and changing setting type
Change-Id: I4ea68fa3075caf316c2d88b94b8c48266a9879f7
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-11-01 07:54:31 +00:00
Leena Miettinen
7f9332db09 Doc: Describe using fuzzy matching in the locator
Change-Id: I443e8cc525772136e0ac749790890604c211bce7
Task-number: QTCREATORBUG-3111
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2017-11-01 07:54:08 +00:00
Orgad Shaneh
8a2adfef6c Clang: Remove outdated macro
Minimum version is now 5.0.

Change-Id: Ia75a26d28e676881b8e45832cae02826d176bd5b
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-11-01 07:47:18 +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
be673acb3e Add CameHumpMatcher autotest to qbs build
Change-Id: Ia019822ecc8d9ab1a19a17a7965fd5e9a4178bc9
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-10-30 19:39:14 +00: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