Commit Graph

67787 Commits

Author SHA1 Message Date
Alessandro Portale
16421d08d3 README.md: Use anchor links to "Getting LLVM/Clang..."
Finding a heading in the quite long README.md is challenging. If you try
to build with LLVM, you already have enough challenges. Use anchor links
to the "Getting LLVM/Clang for the Clang Code Model" heading.

Change-Id: Ie0b29cf2f0ad3331666be1f322de840db697cc7b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-01-04 20:47:43 +00:00
Alessandro Portale
b5037eb8cf README.md: Turn URL to prebuilt libclang into a link
Change-Id: I53ff97da00d5e1671c6af9444ed20d82a28e33dc
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-01-04 20:47:40 +00:00
Lukasz Ornatek
f5a49e6b0b Implement adding images in the rich text format to the annotations
Task-number: QDS-3306
Change-Id: I8372c3d10ad5beb1ec52d8d3d45a3f963711a63c
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Michael Winkelmann <michael.winkelmann@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-01-04 16:48:12 +00:00
Jarek Kobus
72f850df3a Open type hierarchy from Type Hierarchy editor
Make it possible to open type hierarchy for different
class selected from Type Hierarchy editor.
Make it available under context menu or on double click
on class name (single click opens the class in cpp editor window
as before). Double click doesn't expand / collapse items anymore
(expanding available when pressing the visual arrow).
Make navigation to editor more up to date - e.g. when linked location
changed in meantime (source file was edited), it tries to find
linked symbol quickly again (we introduce a small delay, up to
100-200 ms, depending on source file).

Change-Id: Ifb4fd58e853589a17cd14be465b3a7695fa48193
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2021-01-04 13:58:47 +00:00
hjk
c427a0d281 CMakeProjectManager: Code cosmetics
Change-Id: I102f0c6104a36b0637e7e713ab4b06b2b97984fc
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-01-04 12:55:12 +00:00
Eike Ziller
9277c58e42 Do not pop up general messages pane
General messages pane should only be opened on direct user interaction.

Task-number: QTCREATORBUG-24430
Change-Id: Ib4c72b1bb07c27aabc74eb62c56061d5548b677d
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-01-04 12:49:11 +00:00
BogDan Vatra
7a6bfbcfbe Allow the user to add custom parameters to meson
Don't use QtCreator's autogenerated native-file if the user passed a
custom one or a cross-file.

Change-Id: Ic1793df2578b6f5295cad88f0dc003666e5f16c1
Reviewed-by: hjk <hjk@qt.io>
2021-01-04 12:47:26 +00:00
Eike Ziller
efa0f74645 TextEditor: Do not pop up general messages pane
General messages pane should only be opened on direct user interaction.

Task-number: QTCREATORBUG-24430
Change-Id: I62f6849ca5a32f0a75c5a91a667ee704d3632d1a
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-01-04 12:45:37 +00:00
Bernhard Beschow
c01c69fc99 Nim: Fix some nimble paths
Change-Id: I78a66d17931316d9baec5f2857cae12a6a62ab2c
Reviewed-by: hjk <hjk@qt.io>
2021-01-04 12:08:58 +00:00
Bernhard Beschow
f607f125f1 Nim: Remove unused method
... and its associated attribute along the way since it is not needed any longer.

Change-Id: I25a8c5fd9ee45de10b3764805c4df0500a5fd6cf
Reviewed-by: hjk <hjk@qt.io>
2021-01-04 12:08:48 +00:00
hjk
34798b3efd ProjectExplorer: Introduce and use a new MultiSelectionAspect
Only provide the minimum functionality to make it usable
for the target selection in Make steps.

Task-number: QTCREATORBUG-25088
Change-Id: I6458a0bd544d2fff596df3240c69e05d7bdea14b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-01-04 12:00:46 +00:00
Alessandro Portale
faec8f09cb QmlDesigner: Remove unused "split editor" icon pngs
The handling of form editor and code editor are now done via the docking
system, the png are unused.

Amends: 1a8c802f56

Change-Id: Iecddc4f68f605abcaad1b9072a128a247f344349
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2021-01-04 11:50:31 +00:00
Andre Hartmann
498f0939e4 SyntaxHighlighter: Fix typo
Change-Id: I6fca22438d97afde235ecb22da1083c6103021fd
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-01-04 10:32:45 +00:00
Eike Ziller
739eeec19d Explicitly state that only 64 bit Windows is supported
by our binary packages. Building on 32bit is still possible.

Fixes: QTCREATORBUG-25182
Change-Id: Ic88579bcd9bf3b6aef449e6ac3bcaa6430cd68f2
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-01-04 10:14:03 +00:00
hjk
052b0b4c92 Debugger: Re-organize std::vector and std::deque dumpers
There are indications that the std::__1:: namespace cannot be relied
upon anymore.

Task-number: QTCREATORBUG-25061
Change-Id: I54d8d2fc757b1cfc9b27f00660f2814d745f2bc6
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-01-04 10:06:55 +00:00
hjk
bb31da3937 Debugger: Give some hint on what to change if QML breakpoints fail
Fixes: QTCREATORBUG-8200
Change-Id: I464a577f14f1e0e03355b2f176e4f6e67cc8459b
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-01-04 10:03:09 +00:00
Eike Ziller
d95e1f940a Merge remote-tracking branch 'origin/4.14'
Conflicts:
	cmake/QtCreatorIDEBranding.cmake
	qbs/modules/qtc/qtc.qbs
	qtcreator_ide_branding.pri

Change-Id: I5b8d93f2f08b62626c3f3447728c64d198b601ff
2021-01-04 09:09:21 +01:00
Eike Ziller
5c7793b07b LanguageClient: Do not pop up general messages pane
General messages pane should only be opened on direct user interaction.

Task-number: QTCREATORBUG-24430
Change-Id: I526659110fc67c627cb60fe56e1f709f064667c2
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-01-04 07:30:07 +00:00
hjk
e09867d7de Debugger: Do not limit inferior output chunks to 1024 chars with LLDB
Task-number: QTCREATORBUG-24667
Change-Id: Ie59db04b0c1e46c4c06a1761eee3859ae18bcf7f
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Reviewed-by: David M. Cotter <dave@kjams.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-01-04 06:49:48 +00:00
Andre Hartmann
c12a3909bb JavaScriptFilter: Fix copying to clipboard
It seems that QStrings stored in a QVariant
can always be converted to EngineAction,
therefore this check can be removed.

The conversion then always resulted in the
value zero, which got equal to
EngineAction::Reset in commit 8d09191d2d.

While at it, forbid copying an empty string
to the clipboard, when the engine was aborted
due to a timeout.

Change-Id: Iaa4d9af52d4afd0e82f3b542d5f4e79bc8f6bdca
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2021-01-03 15:42:58 +00:00
Andre Hartmann
6ebfc77d35 Git: Add missing emit
Found by clazy.

Change-Id: I1b74f28e86a1bddf1ef4c77aa20eda1141ec8045
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-12-27 14:59:22 +00:00
Andre Hartmann
7883110e45 Git: Clarify rebase and merge actions in branch view
While merge should be clear, it's sometimes
hard to understand which branch is rebased
on top of the other.

Let's be explicit and state that in the
context menu.

Change-Id: I9755a9220a0a5930ce96893e2fad06221d449d9c
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-12-27 14:59:08 +00:00
Andre Hartmann
8c92f40db8 VCS: Add commit message verification
Help writing good commit messages by verifying
that the complete message is not too short,
that the first line (subject) is not too long
and that the subject is separated from the rest
of the commit by an empty line.

Change-Id: I296c036433767f2508630f409c0e4b4c241391d1
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-12-23 15:26:55 +00:00
Alessandro Portale
b4c1e48fdc ProjectExplorer: Don't enforce FlatModel::data's ForegroundRole
Only return a concrete color for the "pseudo disabled" state of the
node, otherwise return QVariant().

This permits the theming of the projecty tree via palette or stylesheet
(as the QmlDesigner does).

Task-number: QTCREATORBUG-24402
Change-Id: I510faf4d58a12947dd665eef6f5c9da8845fc2dd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-12-23 12:44:20 +00:00
Mahmoud Badri
084944a96b Fix Qt Creator + Coco build
param name "interface" is causing Qt Creator build fail when integrating
Froglogic Coco tools with Qt Creator.

Fixes: QTCREATORBUG-25146
Change-Id: If3fa3d44e941089a882deb44ba12dec6d00ad73d
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
(cherry picked from commit f30565873a)
2020-12-23 12:30:57 +00:00
Cristian Adam
5271a5c782 Utils: Add Qt6 to QtVersion enum
Change-Id: Idb00fde1459d00caaf263a21eecb96e6f6bd6fd9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-12-23 11:12:56 +00:00
Eike Ziller
2e261fbf60 PluginManager: Use new settings API
Avoid writing defaults to the settings.

Task-number: QTCREATORBUG-24430
Change-Id: I029224cfc69bd6de0f7e20b93e06c5fd58050d3d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-12-23 11:05:58 +00:00
Alessandro Portale
5badf2dab5 WebAssembly: Mark plugin experimental
The plugin was meant to be experimental, but was forgotten to be marked
as such.

Fixes: QTCREATORBUG-25130
Change-Id: I9286329bb960c100e96879b9bf7c00133c06dc7f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-12-23 10:17:51 +00:00
Cristian Adam
88d357e79f CMakeProjectManager: Select the expected CMakeLists.txt for targets
When using locator with "cmo <target>" do not select the deepest
CMakeLists.txt in the stack.

Fixes: QTCREATORBUG-25166
Change-Id: I25437c3ddc57b7bf12213aefa51eb5f4fd853326
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-12-22 16:08:35 +00:00
Cristian Adam
15a7e08eda CMakeProjectManager: Add "install/strip" and "package" special targets
The Ninja / Makefile generator supports these targets as seen at:

https://cmake.org/cmake/help/latest/generator/Ninja.html
https://cmake.org/cmake/help/latest/generator/Unix%20Makefiles.html

Fixes: QTCREATORBUG-22620
Fixes: QTCREATORBUG-22047
Change-Id: Id0105ae59b7d699f0da637efed4efa337769b601
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-12-22 16:03:20 +00:00
Cristian Adam
db42525e19 CMakeProjectManager: Filter out the utility targets
Do now show _autogen or _qml _deps utility targets in the target
dialog via "cmo <target>".

Fixes: QTCREATORBUG-24718
Change-Id: I26651669c3ab54f5bd4ba3f5ddb4409524be00ba
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-12-22 16:02:07 +00:00
Eike Ziller
121e563052 Update litehtml to latest master
Adds support for ordered lists.

Change-Id: I467689cdad08df297b20fbffe02d217d117ed56f
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-12-22 14:19:49 +00:00
Eike Ziller
0f9a206bd5 cmake build: Make separate debug info optional
In the CMake build in general, but still use it for
RelWithDebInfo builds with the build*.py scripts.

Fixes: QTCREATORBUG-25151
Change-Id: I8414f953278ebb395f73414c12af0ed7bd4fcdbe
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-12-22 13:02:03 +00:00
Alessandro Portale
267309b254 ProjectExplorer: Native dir in separators FolderNavigationWidget tooltip
Change-Id: I9abc43e407b70377fe398ded87518c1a5e5ccb19
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-12-22 11:08:18 +00:00
Eike Ziller
37a0ef29c0 QML: Use new message manager API
That is more evocative. Also avoid some instances of popping up the
general messages pane, which should preferably only happen on direct
user interaction.

Task-number: QTCREATORBUG-24430
Change-Id: I69bb49f84c1486fd32b2a048ca4d76dceb6a0b2b
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-12-22 08:09:10 +00:00
Kama Wójcik
03274561e9 Add label with event id list to transition flow
Change-Id: Ica6ce4424b22a91c348aab5866b4e978bf9c6173
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-12-21 11:47:22 +00:00
Knud Dollereder
3724878043 Prevent access of invalid parent properties
when retrieving the parent ids of a ModelNode

Change-Id: Ic754786e2bd3744b7a4bd67b9db385be368e5925
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-12-21 11:09:01 +00:00
Miikka Heikkinen
c2911ab7f1 QmlDesigner: Show font, audio, and shader files in assets tab
Icon for font files is a short text using the font in the file.
Audio and shader files use system default icons for those types
for now.

Task-number: QDS-3326
Change-Id: Id3d416857b8abe5d803997956dcf450ac115b179
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-12-21 10:38:54 +00:00
hjk
f2f139e90e Debugger: Remove DebuggerEngine::stateAcceptsBreakpointChanges()
Dead code since 3b5ecac238 (the end of the hybrid engine).

Change-Id: Ibb169ff657c8a88fdc52783a6a1f5b79fa0b29e5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-12-18 16:16:58 +00:00
Eike Ziller
c650c9473d cmake build: Don't install highlighting files when using system lib
When using the system provided KF5SyntaxHighlighting library,
the highlighting files are taken from the system too.

Fixes: QTCREATORBUG-25143
Change-Id: Iac0b9734bc96e1f72d1494622081da7e279e5554
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-12-18 16:13:18 +00:00
Eike Ziller
f74b317598 Fix compilation of ClangFormat plugin against LLVM with clang-cpp
The ClangFormat plugin needs to link against clang-cpp in that
case as well.

Fixes: QTCREATORBUG-25138
Change-Id: I84b1784b291d8944a9dee66ec14db32ad72ff8b5
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-12-18 15:29:45 +00:00
hjk
0edebcfa9c Utils: Pimpl BaseAspect
Change-Id: I70a7d49010c24a44dc64d20c5548c249964b78bd
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-12-18 14:31:45 +00:00
Christian Kandeler
74b773e68f ProjectExplorer: Improve issues pane behavior
... when the user clicks a link. Apparently, the (unintended?) default
item view behavior is to move the scrollbar so that the top of the
current item becomes visible, which we don't want here.

Fixes: QTCREATORBUG-25101
Change-Id: I4c99ff09ba762b7b375b0bdefd8cebfbda69b0ea
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-12-18 13:12:30 +00:00
Eike Ziller
305ca7e434 cmake build: Fix handling of test dependencies
Test dependencies are not "real" code dependencies, they just
declare that for testing the plugin the other plugin has to
be loaded, even though it is _not_ a code dependency.

Add PLUGIN_TEST_DEPENDS to add_qtc_plugin. We cannot assume
that the target exists at that point, so adapt the usual pattern.

Fixes: QTCREATORBUG-25024
Change-Id: I4165ff8df762309e0be0bfe9e8bedef796a3bf17
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-12-18 08:24:46 +00:00
Jarek Kobus
4654550ff4 Store path as FilePath instead of QString
This avoids conversions from FilePath to QString and
vice versa.

Change-Id: Ic0f610a9e90c206ff9557df6f46854e4805ce42f
Reviewed-by: hjk <hjk@qt.io>
2020-12-18 07:38:29 +00:00
Jarek Kobus
c732014821 A - (A - (B + 1)) = B + 1
Change-Id: I6ce320c0fd3958c1fef98b322bec8dbded2232cf
Reviewed-by: hjk <hjk@qt.io>
2020-12-18 07:35:18 +00:00
Jarek Kobus
be67b1ab54 Use positionInBlock in BackwardsScanner
Change-Id: I7af777f1ff4d1b93e23462ceaf8b5989b8358d3b
Reviewed-by: hjk <hjk@qt.io>
2020-12-18 07:34:10 +00:00
Christian Kandeler
b21a374136 Fix qmake build
... when no llvm-config is found.
We must only error out if the user explicitly provided a path and it
didn't work.
Amends 3e2d224722.

Change-Id: I6f81f36467571e1e05a9bab9420ee59caa9965a2
Reviewed-by: hjk <hjk@qt.io>
2020-12-17 15:28:03 +00:00
Eike Ziller
ea4a53a1aa Bump version to 4.14.1
Change-Id: I0391715109a6ac43da4b3b744a845cf914b0d0b2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-12-17 14:15:59 +00:00
Leander Schulten
771e269a3b QmlJs: Fix reformatter for template strings
Change-Id: Ie0b7909d634d1e2e735377b053f7a1c1c2518f78
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@qt.io>
2020-12-17 12:31:48 +00:00