Commit Graph

67787 Commits

Author SHA1 Message Date
David Schulz
6564234dd9 LanguageClient: fix dynamic registered completion provider
Change-Id: I4c770b5b59b30b22a280a526b881b3b47bc43f45
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-22 08:54:34 +00:00
Christian Stenger
5c2758b16c Conan: Fix Qbs build
Change-Id: I11661d12938ca23852ee3d43684f5bafa9225bb9
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-01-22 06:54:12 +00:00
David Schulz
eb586385b5 LanguageClient: correctly handle dynamic registered capabilities
Change-Id: Iaeacad68bbff0aded4dd029405fa28a237a65940
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-22 05:34:39 +00:00
Leena Miettinen
23d5a28968 Doc: Add docs for Conan package manager plugin
Task-number: QTCREATORBUG-21785
Change-Id: I616fdfe808fdc5490ac17e95c1554a74524b0444
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
2021-01-21 17:44:14 +00:00
Jarek Kobus
848669cee3 Read a path to conan from ConanSettings/ConanFilePath key
Introduce the ConanSettings/ConanFilePath key.
This key is supposed to be set by QtCreator installer.

Fixes: QTCREATORBUG-24968
Change-Id: Ia004a9c14a530f595843fca90f2ec6c62cd2fbca
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
2021-01-21 17:01:31 +00:00
BogDan Vatra
111624970d Group registers by type to make them easier to follow
These days the ISAs are adding more and more registers, which sometimes
are quite hard to follow. For instance if you're interested only in float
or only in system/CSRs registers you have to scroll down quite a lot for
monitor them.

Grouping them by thier type, it makes it much easier to follow each
register type.

Change-Id: I268626b3fe71aa8fa54be0999836caf03e8780ca
Reviewed-by: hjk <hjk@qt.io>
2021-01-21 15:22:55 +00:00
Eike Ziller
f1f3881cdb Fix build with Qt6
Some type issues (int vs long long, int vs QFont::Weight), no "midRef" any more.

Task-number: QTCREATORBUG-24098
Change-Id: Id39f70edc14832baaeebb2572bca5491deadaf1d
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2021-01-21 14:05:46 +00:00
Christian Stenger
c8e8285ff0 QmlDesigner: Fix Qbs build
Amends 7dc72c533e.

Change-Id: Ie8268ef1831236767e0819c452ba929cdbc593cf
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2021-01-21 13:56:48 +00:00
Christian Stenger
8c0faed1e7 QmlDesigner: Fix compile of tests
Amends 7dc72c533e.

Change-Id: I68669c81261c14295a61b803bbc9ded86c883b53
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2021-01-21 13:48:04 +00:00
Christian Stenger
6ea088c02f QmlJS: Fix handling multiple import paths into same module
It is possible to import components of different paths to fill
a module.
Take further paths into account when looking up types.

Fixes: QTCREATORBUG-24405
Change-Id: I8d6bf0a324ea9c0d1fe9d91b40857f91f00dd662
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@qt.io>
2021-01-21 13:47:45 +00:00
Marco Bubke
7dc72c533e QmlDesigner: Improve imagecache
Instead of coding some arguments to extraId(state) we provide now a
std::variant there extra arguments can be saved. Because it's a
std::variant it can be easlily extended by new structs. There is a new
synchronous interface too. It has an extra method for QIcon which saves
icons in an extra table. It would be even nicer if we would have a
mipmap image too. So we could do it asynchonously too but so far it works
only in the main thread.

Task-number: QDS-3579
Fixes: QDS-3584
Change-Id: If368d84d82308a91a5f4f037021e749c9ef868ed
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2021-01-21 13:14:28 +00:00
Michael Winkelmann
2d9d4c5446 QML Designer: Add missing export macros for annotation functions
Change-Id: Iead74cc63aad65a33e3f7d78fc88012d2c823c59
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-01-21 12:55:27 +00:00
hjk
3ffc7271e5 Debugger: Improve std::pair dumper display
And add a QPair dumper doing the same.

Task-number: QTCREATORBUG-25251
Change-Id: Iacff1889c08f7f60ec39d5d5b2b12439b8f8f5d7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-21 11:55:07 +00:00
hjk
c2e3e0419d Debugger: Prepare delayed type creation for DumperBase.Values
Change-Id: I283bcdec178e0a860bef71753cd29cc283a58391
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-21 11:21:01 +00:00
Cristian Adam
6cbdae8070 CMakeProjectManager: Support for multi-config generators
CMake has multi-config generators like:

  * Visual Studio
  * Xcode
  * Ninja Multi-Config

The first two have different special targets for "all", "install",
"package", "test" namely: "ALL_BUILD", "INSTALL", "PACKAGE",
"RUN_TESTS".

All of them need to get the build type passed via "--config <build-
type>" and not via "CMAKE_BUILD_TYPE".

The multi-config generators will use only one build directory.

Fixes: QTCREATORBUG-24984
Change-Id: I8aa7ff73ce2af1e163b21a6504d26fcf95530edf
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-01-21 09:31:30 +00:00
Christian Kandeler
f3d7717b31 Core: Add infrastructure to do additional filtering on search results
... and make use of it to let users filter C++ "find references" results
by access type.

Fixes: QTCREATORBUG-19373
Change-Id: Ib5cadde1cfd235026d8e69da51daa6374808d3f3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-01-21 09:19:13 +00:00
Leena Miettinen
7f73675bc8 Doc: Fix white space errors and a typo in a QDoc command name
Change-Id: I906423f3b0b1053b965858c8bbb80ab29d49b576
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-01-21 08:55:46 +00:00
Christian Stenger
f6d4170c05 OutputFormatter: Reduce usages of DebugFormat
This is usually used in a wrong or at least misleading way.
Replace most of the usages by newly introduced GeneralMessageFormat
as most of the replaced usages just print to General Messages and
using any of the existing formats would change the layout of the
text. Except for some special debug output inside the valgrind plugin
that can use one of the existing formats which also makes it easier
to spot them and the runners which print QC internal output.

Task-number: QTCREATORBUG-24560
Change-Id: I824dc4250b2f3e4656bab8676b45c98e3407d59c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-01-21 08:18:54 +00:00
hjk
3e30c4b571 Debugger: Move initial breakpoint setting into individual branches
This avoids pending breakpoints in local attach setups now.

Change-Id: I6872a97020955180d4c3f915f6bb19c1f771f07f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-21 07:06:53 +00:00
Fawzi Mohamed
6571bd5197 qmldesigner: do not use hardcoded path in plugin
Fixes: QTCREATORBUG-24737
Change-Id: I901b205bb6df7516d3cddf4cbc6d5a445ce2fb2f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-01-21 06:52:57 +00:00
Eike Ziller
44901a3863 Find Crashpad via CMake configuration
Makes it possible to point CMake to crashpad via CMAKE_PREFIX_PATH
if it was built to <crashpad>/out/Default, or by setting individual
CRASHPAD_* variables to the sources and build results.

Change-Id: I9634fe7ab8c1e14b7e0f3ccf3415396c8dc1e71a
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2021-01-20 15:26:03 +00:00
Eike Ziller
acdb16dd4a Merge remote-tracking branch 'origin/4.14'
Change-Id: I3582c8556d54d5798404ee82c73a227c7c4238c0
2021-01-20 15:58:07 +01:00
Cristian Adam
a819903d9d GitHub Actions: Add support for download.qt.io mirroring
Change-Id: Ia64e40e69bb2e897c0098002122d3bcb7476cb7e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-01-20 14:47:47 +00:00
Christian Kandeler
a1c5dd93f5 TextEditor: Let TextMark subclasses provide a settings page
Task-number: QTCREATORBUG-25150
Change-Id: Id5bbdcf2db7afacb823140d77ebd5bc141ac7f81
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-01-20 14:17:35 +00:00
Eike Ziller
f79e4b3677 Merge remote-tracking branch 'origin/4.14'
Change-Id: Ib343adc6b761d15410d357137e4fc38040ce8d48
2021-01-20 11:13:11 +01:00
Christian Kandeler
5066ddd908 ClangTools: Add documentation for current diagnostic to tooltip
Fixes: QTCREATORBUG-25163
Change-Id: I284c50c0b9b73c74ba328624c5238368de05839d
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-01-20 10:01:29 +00:00
hjk
79ade10c4a Debugger: Add an option to show simple values as text annotations
Change-Id: I726d8559d7e28abd776ce483d5f670be5af09412
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-01-20 09:45:03 +00:00
Christian Stenger
0ed99a954b AutoTest: Document CTest support
Fixes: QTCREATORBUG-25221
Change-Id: Ie9424cc932db3eb831145b29657353a32f88e5be
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-01-20 08:33:02 +00:00
Fawzi Mohamed
c532076bfd qmljs: fix tst_dependencies
Fixed the dependencies test.

Now it makes sure that all dependencies are loaded before evaluating
the checks, otherwise a race condition in the link process (QTCREATORBUG-25240) might give problems.
This requires running the event loop to ensure that the invokeMethod
in PluginDumper::loadPluginTypes creates the futures in the model
manager.

Change-Id: I4c0dd5cc948917e2a74fd46c3b66ee3bb5370da4
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2021-01-20 08:12:21 +00:00
Jarek Kobus
700da528b8 Remove unused viewerFont() method
Change-Id: I3da752d7f96162b7cd10e74667a6a3665cb12e14
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-01-19 16:24:16 +00:00
Jarek Kobus
0fe8089214 Force repaint of litehtml help viewer when font changes
Trigger refresh_styles() and parse_styles() on font change.

Change-Id: I3ea667b2d9fb382681ffad2279823500e9e20491
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-01-19 16:24:11 +00:00
Jarek Kobus
291f46386f Add "Zoom" setting to the Help font settings
If the scrollWheelZooming is enabled, this
setting will get updated when using scroll wheel.
It will also be used when zooming in/out
by using keyboard shortcuts.

Fixes: QTCREATORBUG-25109
Fixes: QTCREATORBUG-25230
Fixes: QTCREATORBUG-23731
Change-Id: I9d22632b4c034ce236fa39dba074df4a2746ff84
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-01-19 16:24:04 +00:00
David Schulz
aa974e6816 Theme: Use dark theme by default on dark windows
Change-Id: Ieb024e01adfdce1c37948097bae85fa2488ee341
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-19 15:14:24 +00:00
Leander Schulten
8192f7f4f4 CppEditor: Make it possible to specify default values in generate constructor quickfix
Change-Id: If73b4bdad1e3878091378d800bec2f1682a55c9f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-01-19 13:48:46 +00:00
Christian Kandeler
3e2cb9d3d2 QbsProjectManager: Remove unneeded export macro
Change-Id: I4876ddce7dc350359aa554289f6806bbe4467145
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-19 13:29:18 +00:00
Leander Schulten
8082df491a CppEditor: Only generate valid identifiers in QuickFixes
Change-Id: Idcb3495f04627610eaf530dcb5d3b58429eda616
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-01-19 12:51:33 +00:00
Christian Stenger
da07d8f5c3 AutoTest: Fix some clazy warnings
Avoids potential nullptr accesses and unneeded allocations.

Change-Id: I8c13ca1dab885fc3e9a05dc7329ff592a7f0fe1a
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-01-19 12:27:08 +00:00
Vikas Pachdha
55cbe717a9 AssetExport: Export reference assets of components
Task-number: QDS-2868
Change-Id: Ib5d3875e009bde972a30b0a90216bad6ef6e38ea
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-01-19 12:23:31 +00:00
Thomas Hartmann
e2c808f576 AdvancedDockingSystem: Fix crash on shutdown
In some cases the last floatingWidget seems to be
partially destructed. Checking for the parent checks for
this case.

Change-Id: I27cb750d846e71b9ab4423700120e2c659a02adc
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-01-19 12:12:43 +00:00
Kama Wójcik
41ff60a693 QmlDesigner: Paint single event id label
* Paint red label on the arrow with event id if only one event is
  connected
* Cleanup label painting for multiple events
* General code cleanup

Task-number: QDS-3481
Change-Id: I9652c1767ccaeb07b03c35e0fd4fec41d496c210
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-01-19 11:18:01 +00:00
Eike Ziller
0fa391c7d3 Make it possible to assign global shortcut to "Show in Explorer/Finder"
So it works consistently for the project tree and when in editors.
The action ID changes from ProjectExplorer.ShowInGraphicalShell to
QtCreator.ShowInGraphicalShell.

Fixes: QTCREATORBUG-24958
Change-Id: I4c89e61997183401080dd64e66c4fec681b53241
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-01-19 07:48:27 +00:00
Christian Stenger
def68ecd2f Core: Remove wrong include
Amends cc7be5724a.

Change-Id: I1b4dfd3f4f3de92f6f97591ca7ac6ca2e17a6f6d
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-01-19 05:42:15 +00:00
Christian Stenger
dd76bd8203 QbsPM: Fix wrong dll linkage on Win
Amends 9b8be3b3d5.

Change-Id: Icce629f06cb4130981ebb2801d3ef2032c80dbb5
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-01-19 05:40:02 +00:00
David Schulz
80a1870292 Debugger: log the debugger exitcode also in hex
Change-Id: Ia9742bfa9c36c7ff4fdd965f2a32ea36a4239422
Reviewed-by: hjk <hjk@qt.io>
2021-01-19 05:38:04 +00:00
Mahmoud Badri
cc7be5724a Add Crashpad to Qt Creator and Qt Design Studio
Fixes: QDS-2748
Change-Id: I87e25682f066d167eebfd7b78c46c166e5062e11
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2021-01-18 22:08:14 +00:00
Tim Jenssen
aa404ca5c9 doc: fix menu entry
Change-Id: I21d1ba77b2f4a39756f6408e6911192237e7e54c
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-01-18 16:16:28 +00:00
Christian Kandeler
89ad72c789 CppEditor: Start renaming the new function parameter
... in the ExtractLiteralAsParameter quickfix. It's unlikely that the
user wants to keep the generic default name.

Fixes: QTCREATORBUG-25104
Change-Id: Ic354f20c27da43664bcb3c2839e981c176aaf821
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-18 16:13:33 +00:00
Fawzi Mohamed
d4d5d5db11 qmljs: fix tst_dependencies imports
update imports of tst_dependencies to newer version (for Qt 5.15)

Change-Id: I095200a2fe54a059cd2d69c76b6da08ab8e596a5
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2021-01-18 14:49:57 +00:00
Christian Stenger
122fdf6e5a Squish: Make another helper tool compatible
Change-Id: I1fc4e268e311c628b541b76ae3a948854635a4a5
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2021-01-18 14:19:30 +00:00
Christian Stenger
18d73f132e Squish: Make helper tool python 3 ready
Change-Id: I42f59a6819467209d46e3830aff6897861c548ef
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2021-01-18 14:19:25 +00:00