Commit Graph

47434 Commits

Author SHA1 Message Date
Henning Gruendl
bfa1524b36 QmlDesigner: Paint single/multi signal label
* Add single signals to the already painted single event labels on
  FlowView transitions
* Add signals to the already painted multi event labels on selected
  FlowView transitions
* Move function from signal list implementation to QmlItemNode avoiding
  redundancy

Task-number: QDS-3586
Change-Id: Ic504acfb1a7afcc9bde6f43ed811e9fc2f2443ab
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-01-27 12:26:07 +00:00
Eike Ziller
b585f24257 Add "File Name Index" locator filter on Windows
Using the freely available "Everything" tool that creates a global
file index and also provides a command line tool for accessing it.

Change-Id: Ieade7a8c0dd94695dabbd5f95b1f86e0d950d62e
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-01-27 11:38:01 +00:00
Eike Ziller
d1803f84e1 Add "File Name Index" locator filter for Linux
Using the "locate" tool.

Change-Id: Ic752b2d17e4874b95432510597ff33d5e3f967c5
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-01-27 11:37:57 +00:00
Eike Ziller
a4db238590 Make spotlight locator filter based on external process
As preparation for making it available on other platforms.

Change-Id: I9af5be2f73b1d535936972e6efb3d3e5a4d61c81
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-01-27 11:37:44 +00:00
Eike Ziller
df6967a897 Merge remote-tracking branch 'origin/4.14'
Change-Id: I6e67f23464fc14dda5a659004f0aa360d6f5d25f
2021-01-27 12:28:47 +01:00
Jarek Kobus
59718d7c4e Check if the document ptr is not null
Avoid a crash when double click in hierarchy view
after the session has been changed or when the filename
changed.

Change-Id: Iebd7a99c220737262c79ade43c4ee8d11dcc037f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-01-27 11:17:33 +00:00
Christian Stenger
9acde4f261 Fix a couple of cmake issues for testing
Correct expected paths, defines and dependencies.

Change-Id: Iae3fa708957e352012d0a6bb9cf97713b9a5c35e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-01-27 10:52:39 +00:00
Jarek Kobus
388fd31db8 Remove unused field
Change-Id: I7637171d9793a621d53be2c4da098eba246732f1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-01-27 10:06:41 +00:00
Marco Bubke
70f50b3503 QmlDesigner: Bump up database version
We change the database schema.

Change-Id: I2715f47995374fe3d17ba97af9287af198c28959
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-01-27 09:44:47 +00:00
Jarek Kobus
672797cd05 Don't toggle "Disable in subdirectories" checkbox on every change in Gui
Rename the "checked" arg into "disabled", for clarity.

Task-number: QTCREATORBUG-25274
Change-Id: I652d769d4a0737787e90debde2ffaa28e8cd1870
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-01-27 09:22:09 +00:00
Christian Kandeler
d9e5d079be ClangCodeModel: Relax completion result filtering
... in connect() calls.
The logic was: If we are in a place where a signal is expected and there
are signals among the completion results, then we should consider only
signals.
However, in e.g. a member function of a QObject subclass, there are
always signals in scope, even when we expect a class name. So we need to
allow class names as well.
Amends a79b0c6558.

Fixes: QTCREATORBUG-25153
Change-Id: Id3bbaaf4f8eefefe36cfc91e5959d3ef5ad28071
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-26 15:55:41 +00:00
Cristian Adam
242f2dbeaa CMakeProjectManager: Use buildDirectory instead of "."
When issuing cmake --build "." as an user I don't get to see which build
directory is being actually built.

To make things worse in project settings the build directory field is
disabled and cannot be copied.

Change-Id: Idf862ba1df68cde55e9785c934f67393da6c1616
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-01-26 11:32:47 +00:00
Christian Kandeler
2604a8e485 ProjectExplorer: Use already-open visible editor, if available
... when following links from the issues pane.

Fixes: QTCREATORBUG-13961
Change-Id: I799e34f8fa789ef824b3b4aa2a075c938d6f1271
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-01-26 09:55:10 +00:00
Christian Kandeler
7a6aa75032 Fix various warnings about unused variables and functions
Change-Id: I430b87ab0afa8bf32115d44e8acb94271988d229
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-26 09:53:17 +00:00
David Schulz
eab9dc8ff2 LanguageClient: send client signature help capabilities
Change-Id: I5b45c6842cd53e1be43f3630a9a2ca12b69f70fd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-26 05:41:54 +00:00
David Schulz
71c2443bb0 LanguageClient: Fix dynamic registered signature help
Change-Id: Ie7427f4a0aede5c933995610d03791e837ad39e4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-26 05:41:40 +00:00
David Schulz
c5ba98b0ed Core: skip text file size warning
... if the size exseeds our harcoded text file size limit and it is
opened in the binary editor anyway.

Fixes: QTCREATORBUG-15114
Change-Id: Ic806f425c2cf14632885c990bd5733a0abb17366
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-01-25 16:30:49 +00:00
Christian Kandeler
f19baeb9a5 Wizards: Extend translation support
Don't just create the ts file, but also make sure it is embedded in the
application (if supported by the build system) and make the application
load it if it matches the current locale.

Task-number: QTCREATORBUG-25079
Change-Id: Ie3a0b1975531b12acb008e8c1312dab97f158751
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-25 14:21:33 +00:00
Björn Schäpers
0b215ea822 clang-tidy: Fix parameters for call
This amends 8987996500.

Change-Id: Ia3559826a8a66e3ab977ca65a1712a2e499be6f1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-01-25 13:15:08 +00:00
David Schulz
7910dadbca LanguageClient: Do not filter executed commands
The commands provided with the capabilities are not the only allowed
commands, but the ones that can always be executed.

Change-Id: Ie005fafe2e64c334f67809c00623dec2901972c6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-25 09:58:09 +00:00
Christian Kandeler
e735e95f06 "New Class" wizard: Check custom base class for QObject parent
That is, if the user specifies a custom base class, we check whether its
constructor takes a "QObject *parent" parameter, and if it does, we give
the derived class one as well.
This is technically a heuristic, but the pattern is pretty stable in the
Qt world.

Fixes: QTCREATORBUG-25156
Change-Id: Ie64440929df61cca7258d6d692c5de62970f9a65
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-25 08:58:24 +00:00
Eike Ziller
aae3bf4ef7 Merge remote-tracking branch 'origin/4.14'
Change-Id: I516e87eed1b716ec085095c9dd4f47f04a99de7c
2021-01-25 09:06:36 +01:00
David Schulz
4f1c5bacb9 LanguageClient: fix multiple crashes in languageClient
The temporary containers are needed in some places because the content of the containers change
while iterating over them.
partially reverts: cf010911f7

Change-Id: I4d6df987b9e5382b6b18fa659b1174ca6919a02e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-25 07:42:26 +00:00
David Schulz
90746d8623 LanguageClient: fix dynamic registered hover provider
Change-Id: I48580b84c310c69ff72fba743260806bd236752f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-25 07:13:51 +00:00
Eike Ziller
422d5cf908 SilverSearcher: Don't wait 30 seconds if ag has issues
Change-Id: Iead07cdc1efdf5597ac847a2bf326668f5914b72
Reviewed-by: Przemyslaw Gorszkowski <pgorszkowski@gmail.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2021-01-22 13:56:54 +00:00
Eike Ziller
02a27a9bb6 QtSupport: Use new settings API
Avoid writing defaults to the settings.

Task-number: QTCREATORBUG-24430
Change-Id: Ic068ade0d34a66e1baf067d90d63e01b0d0e73c0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-01-22 12:28:58 +00:00
David Schulz
89f2c274c0 Tasklist: reload tasks when open task file again
Fixes: QTCREATORBUG-25108
Change-Id: Ib1096a098ab2b06ab384b31715ca32a0fd710781
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-22 11:42:55 +00:00
Bernhard Beschow
5d7f2d7444 AutoTest: Use working copy of own parser
In TestCodeParser::syncTestFrameworks(), a parser is created for every
test framework. As a result, the last parser being created would "win"
the global s_parserInstance variable, which is not predictable and
probably not intended. So turn CppParser::getFileContent() into a non-
static method, avoiding the global variable altogether.

Change-Id: I9f7560f1185bc4a3bc7b2b36e89280351998465e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-22 10:51:53 +00:00
Christian Kandeler
d8c1e51bfe ClangCodeModel: Support highlighting angle brackets
... in template declarations and instantiations.

Fixes: QTCREATORBUG-16799
Change-Id: I82bc6411ca980ecbe2a6c70ae37580166a4b89e9
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-01-22 10:48:33 +00:00
Eike Ziller
8112a00432 Cpp: Use new settings API
Avoid writing defaults to the settings.

Task-number: QTCREATORBUG-24430
Change-Id: I8e1d5a5b8ca21ef96a68a4d71a7d97d138bd186b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-01-22 09:37:12 +00:00
Marco Bubke
8443fbe3d4 QmlDesigner: Fix Qt6 build
Add more QFont::Weight workarounds. The functions have to be refactored
in the future.

Change-Id: I5658a725c6c891d65f374484147d7cb5ae150980
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2021-01-22 09:24:51 +00:00
Christian Stenger
3ead8f0432 QmlDesigner: Fix build on macOS
Amends 7dc72c533e.

Change-Id: I3415b53894eb546449c9469e174226f0a9a2cfbf
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2021-01-22 09:24:16 +00:00
Marco Bubke
9dfdc9a20c QmlDesigner: Fix macos build
Apply variant workaround for mac.

Change-Id: I1d678e4a4c8f7168d08b3eb93ad7d625d6865021
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2021-01-22 09:24:04 +00:00
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
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
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
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
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
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