Commit Graph

67042 Commits

Author SHA1 Message Date
Jarek Kobus 353edf35e5 Remove unneeded include
Change-Id: Ia2d5482a15be28c3c8a3d63ba5c73a081e6ae571
Reviewed-by: hjk <hjk@qt.io>
2021-01-05 11:40:19 +00:00
Miikka Heikkinen bab69fff77 QmlPuppet: Fix crash at puppet reset
Puppet cleanup was not handled properly, so derefFromEffectItem() was
not called for all objects that needed it, causing puppet to crash
at shutdown.

Fixes: QDS-3461
Change-Id: I22c0552fe1223789fa42b276ab377d4a9e929955
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-01-05 09:28:45 +00:00
Miikka Heikkinen 55ca28f1c7 QmlDesigner: Support .webp images in property UrlChooser
Change-Id: If1dd70a67796eaa07800059d9096731769116405
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2021-01-05 09:22:25 +00:00
Miikka Heikkinen 6e0aa98746 QmlDesigner: Allow importing assets by dragging from file explorer
Supported assets can now be imported by dragging files from external
file explorer to Assets tab in item library.

Fixes: QDS-3447
Change-Id: Id7c5a808c99e0e6b021414d4ca0541620e8d9f47
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-01-05 09:22:08 +00:00
Miikka Heikkinen d7890aa473 QmlDesigner: Add default icons for sound, font, and shader assets
Also create proper icon sizes for hdpi screens for all assets.

Change-Id: Ie082030c7fe4893f90c5a75162b509416b73e5d4
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2021-01-05 09:21:04 +00:00
Miikka Heikkinen 1547929037 QmlDesigner: Implement new asset drags
Drag image to existing image/texture type - Update source property.
Drag image containing multiple frames - Create AnimatedImage.
Drag sound - Create new SoundEffect or update an existing one.
Drag shader - Create new Shader or update an existing one.
Drag font - Create new Text or update font on an existing one.

Fixes: QDS-3389
Change-Id: I62cf964bbba7772ecbf6f1c6fadb0f9e41a86206
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-01-05 09:20:15 +00:00
Miikka Heikkinen 178ba90376 QmlDesigner: Add import support for sounds and shaders
All imported asset types are now imported to type specific folders
under the project, similar to what was already done for fonts.

Also refactored import registration a bit to reduce code duplication.

Fixes: QDS-3326
Change-Id: I2b321590a6339eae9859e9daf154341175842929
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2021-01-05 09:19:22 +00:00
hjk 14c3f5ba51 Debugger: Drop the EngineSetupOk state
Directly proceed to EngineRunRequested.

Change-Id: I8419086f554bae298624cab3b33e852e92ea54bd
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-01-05 07:40:12 +00:00
Eike Ziller fcbb4721ba Utils: Use new settings API
Avoid writing defaults to the settings.

Task-number: QTCREATORBUG-24430
Change-Id: I57193c0c07c02faf95753378bb1c8d86d18fd131
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-01-05 07:30:54 +00:00
hjk b0d2c0d45d Debugger: Drop base DebuggerEngine::runEngine()
The lines between engine setup and running have always been
blurry, so it looks more and more unnatural to enforce this
in the architecture. Remove the runEngine() call from the
end of notifySetupEngineOk, and do it on the user side.

Change-Id: I3a5e158e8b3fe9b0a288d064f798e24b2ac47f86
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-01-05 06:21:27 +00:00
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
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
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
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