Commit Graph

53124 Commits

Author SHA1 Message Date
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
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
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
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 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
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
Orgad Shaneh dc8d0f048a Suppress noexcept-type warnings also in qbs build
This amends commit 68589a3fbc.

Change-Id: Idf0e296f7549e8aea7109e0c877e27032b99e9b8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-10-30 10:53:50 +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
Leena Miettinen e5959c4bdb Doc: Add links to JSLint Error Explanations
Task-number: QTCREATORBUG-19166
Change-Id: Ia9856529a0bd79450eadb348396f270ebb7d563e
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2017-10-27 14:03:40 +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
Leena Miettinen fa2e768eae Doc: Describe limiting build output in the Compile Output pane
Change-Id: I1302d0554c8fd8d866a6280c45374802bd08f64d
Task-number: QTCREATORBUG-2200
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-10-27 11:38:10 +00:00
Leena Miettinen 24a3f266c5 Doc: Describe changes in the sidebar views
The project, file system, and outline views are automatically
synchronized with the item active in the editor.

The File System view has a new navigation menu for moving to
computer, home, or project.

Change-Id: I5cb25e860d3aeabae8a51c935100b3acd5ea357f
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-10-27 11:37:49 +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
Christian Stenger 35b7dfc37e Doc: Document known LLDB issue
Task-number: QTCREATORBUG-19055
Change-Id: I6d1ea5ab132704e14e9ca89348bdcd0010bfd00b
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2017-10-26 10:21:37 +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
Eike Ziller dd60923713 Packages: Deploy styles plugins (new in Qt 5.10)
Task-number: QTCREATORBUG-19150
Change-Id: I6673437a6f1bc322f7b40c10f98982a54aca1306
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-10-25 14:00:29 +00:00
Orgad Shaneh 175afabbd7 Cdb: Do not crash if no device is set
It still fails with a soft assertion, but at least doesn't crash.

Task-number: QTCREATORBUG-19160
Change-Id: I3779f64e752abf9d3779219552a4a1be648f1dea
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-10-25 13:27:19 +00:00
Orgad Shaneh c0bffe1db5 ProjectExplorer: Add compiler path when running GCC
Running it from another directory without having its directory in PATH
fails on Windows because it cannot find libwinpthread-1.dll.

Change-Id: I96b976942ace48120b69001f5dddd573195bdfb4
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-10-25 10:49:32 +00:00
Eike Ziller 1a1681bbcc TextEditor: Work around linguist issues
lupdate has issues with resolving non-trivial uses of "using namespace"
(QTBUG-64007)
Move "using namespace" directive to a place where it is better handled
by lupdate.
Also use TextEditorWidget instead of *Private as the context.

Change-Id: I7d3bb8e1bc493196e47085827be31f97e0dce7b8
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-10-25 07:13:45 +00:00
Eike Ziller ab1107c497 ModelEditor: Fix another const vs non-const iterator mismatch
Change-Id: I9101b26d8c18ec73fe122ec334299202a76d24b4
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-10-24 16:08:53 +00:00
Orgad Shaneh cf72850cc3 ProjectExplorer: Remove unused context menu for subproject
Revealed by bae73e7246.

Change-Id: I93e098f595981f31233aeea366709fb428669ccb
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-10-24 15:02:20 +00:00
Eike Ziller 125604c80c ExtensionSystem: Work around linguist issue
lupdate has issues with resolving non-trivial uses of "using namespace"
(QTBUG-64007)

Change-Id: I1edbd74ecc97476b961fd3c741f1a3d3f22a2bf7
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-10-24 14:36:16 +00:00
Eike Ziller 4d0bf8a093 Android: Fix translation issues
Add missing Q_OBJECT macros

Change-Id: Ic2b01374e4426a7c90e9a8b4c3676e00c200300d
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-10-24 14:36:06 +00:00
Eike Ziller 50e9c18c6a CMakeProjectManager: Don't use typed enum where it is unrelevant
It confuses lupdate (QTBUG-36589), and is totally unrelevant in this
case.

Change-Id: I65444fcdb62b7d95de9f22025272508aa3bf272e
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-10-24 14:31:35 +00:00
Eike Ziller 19bb8e34f8 ProjectExplorer: Fix translation issues
Add missing Q_OBJECT macro, use sensible contexts, and use "simpler"
namespace resolution (for QTBUG-64007)

Change-Id: I2417a7a40e8ba0ff4bfdff34d2a4c57d8dcdeb00
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-10-24 14:31:15 +00:00
Marco Bubke 68589a3fbc Disable GCC warning for noexcept
GCC >= 6.4 is generating warnings for function signature with noexcept. In
C++ 17 noexcept is part of the function signature. But the warning is
catching cases where a changed signature is not a problem, because it is
a template it self.

Task-number: QTCREATORBUG-18959
Change-Id: Ia6fa79c10e16d8c96a53c849ea15dcec94538fbe
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-10-24 14:24:08 +00:00
Christian Kandeler 9a493f8b83 Fix using (local) custom run configuration with non-Desktop kits
For targets such as remote Linux, we would run all run configurations on
the remote device, even "custom run configuration", which is explicitly
intended for running locally.

Task-number: QTCREATORBUG-19121
Change-Id: I83d6bdd8a47440047d230266845286715432604a
Reviewed-by: hjk <hjk@qt.io>
2017-10-24 12:30:01 +00:00
Eike Ziller 14e6a30ebf Debugger: Work around linguist issues
It gets confused by templates that use "class" (QTBUG-55478), and by
certain complicated namespace usages (QTBUG-64007).

Change-Id: I6029922344f6718b5893dd07daee0953366c442e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2017-10-24 12:25:09 +00:00
Tobias Hunger a646196011 Session: Fix (un)loading of projects on session change
Task-number: QTCREATORBUG-19078
Change-Id: I4f527cb3af9b9270a65da1e283e8a1f3db737531
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-10-24 11:14:13 +00:00
Tobias Hunger 4acb16272d CMake: Enable switching between different temporary CMake configurations
This got broken when moving the BuildDirManager from the BuildConfiguration
into the Project itself.

As a side-effect this patch also fixes the persisting of cmake state.

Task-number: QTCREATORBUG-19075
Change-Id: I1fc696097b09f5285e67f20885eb1fa27504990b
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-10-24 11:13:42 +00:00
Tobias Hunger 79226a66eb CMake: Fix header size in CMake configuration view
Stretch the first column, not the second:-/

Task-number: QTCREATORBUG-19128
Change-Id: I0d2e945b14b83d5449af50016fb2ef6ad19da871
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-10-24 11:11:53 +00:00
Tobias Hunger de8e139413 CMake: Show "CMake Modules" node in simplified project tree
Show "CMake Modules" node in simplified tree. That keeps all the
Qt cmake code from mixing with the real project files.

Task-number: QTCREATORBUG-19040
Change-Id: I1a12c7f64db2c06982de1c66a6e54e4d936ae784
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-10-24 11:10:47 +00:00
Tobias Hunger 3f73f3a4f4 CMake: Fix "CMake settings have changed on disk"
* Improve the UI by showing settings in CMake and the project
* Fix setting CMake configuration to project

Change-Id: I6e127344551fa00f3f7e6170465cb3dda2e4a634
Task-number: QTCREATORBUG-17555
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-10-24 11:10:30 +00:00