Commit Graph

67787 Commits

Author SHA1 Message Date
Christian Stenger
f0e1f951fc Core: Fix qmake build
Amends ab8f26607d.

Change-Id: I14dfe860c7414a94c45a2df2deb839665f23a2e1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-01-27 14:55:01 +00:00
Christian Kandeler
c53932ff40 Core: Fix crash with Search & Replace
Due to the use of a proxy model, we can no longer make assumptions about
the internal pointers of model indices.
Amends f3d7717b31.

Fixes: QTCREATORBUG-25278
Change-Id: Ia0225b0324897d16fe9650bf4282432278aeb63f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-01-27 14:11:52 +00:00
Christian Kandeler
ab8f26607d Fix qmake & qbs builds
Amends b585f24257.

Change-Id: I4b6781a0c8ab8dec95e934ac1a3b8cae4c991fef
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-27 14:03:23 +00:00
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
Eike Ziller
acfb2e4f2f CMake build/Linux: Fix location of separate plugins
We use GNUInstallDirs to define the location of plugins, libraries and
so on. If Qt Creator was configured with a specific set of locations,
we need to pass that on to separately built plugins even if
GNUInstallDirs would use different locations for them.
Otherwise Qt Creator cannot find these plugins.

Amends c81baf1a9c

Fixes: QTCREATORBUG-25266
Change-Id: Ib0da1428ec676fd54cb264b1aba4791b18b2c3bd
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-01-26 13:20:33 +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
Thomas Hartmann
d6e50e77cc QmlDesigner: Use boundingRect() instead of contentItemBoundingRect
The contentItemBoundingRect is typically null, unless there is a content
item.

Change-Id: Ic32deac3c2506ff05feb28399b1ccaedacb5f68f
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2021-01-26 10:48: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
Christian Kandeler
11d1b8bb4c Unit test: Add missing switch cases
Amends d8c1e51bfe.

Change-Id: Ida799fdf3ac8da78c892f4f6823009a33b65340b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-26 09:52:53 +00:00
Cristian Adam
59eff8c813 GitHub Actions: Use default timeout for download
Change-Id: I5d089410fba432e6df78d31e3920b581c6682f97
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-01-26 09:35:25 +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
b375ea484a LSP: Fix signatureInformation getter/setter
Change-Id: I555b7752aaa79b2f38e5c5ed100729d9610557b7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-26 05:41:50 +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
Cristian Adam
fae659b389 GitHub Actions: Update Qt version to 5.15.2
Change-Id: I7b841da3e0e0c820807167c5a2de57a969f11db6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-01-25 15:05:48 +00:00
Leena Miettinen
4d2bfff1d5 Doc: Describe setting canvas color for components
Change-Id: I2fcc1d45e9caddfb3d52a87cc03043249472b751
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-01-25 15:02:30 +00:00
Leena Miettinen
d784696f6d Doc: Describe zooming in Form Editor
Fixes: QDS-3627
Change-Id: I6f5b59ee3c8d287a8342c4ffb7f47f10c4013b8c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-01-25 15:02:10 +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
67a9a6beb4 Doc: Document argument of Dumper.Value.members()
Took me quite some time to figure out why my code did not work.

Change-Id: I2451745762e4d9887aa220664b06f539e92ec41c
Reviewed-by: hjk <hjk@qt.io>
2021-01-25 13:16:27 +00:00
Björn Schäpers
8e6d1f549c Doc: Remove a wrong paranthesis
This does not belong there.

Change-Id: I7630a47a52f6b97a6797856e229884cb4b11a515
Reviewed-by: hjk <hjk@qt.io>
2021-01-25 13:15:38 +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
Eike Ziller
24c03b51fd cmake build: Remove unused internal variables
Change-Id: I68ed91462c3b3c9f27c2a0a5749c373704ce467a
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-01-25 10:44:43 +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
Fawzi Mohamed
fecb0a4c83 qmljs: Suppress "package requires a version number" with unknown Qt
Assume Qt6 instead of the version creator was built against when we
cannot get the qtVersion one builds against.
This is a better default and avoiding spurious warnings for example
when building qt.

Fixes: QTCREATORBUG-24533
Change-Id: I53dc6387229c510c390b41af8866c2e9b2ece3de
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2021-01-22 20:03:54 +00:00
Leena Miettinen
aab88f5e7a Doc: Explain "Replacement kits"
Change-Id: Iceea044c1f81a20d1f3358238e38f231fb634ea7
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-01-22 16:22:30 +00:00
Christian Kandeler
bfb63acb09 clangbackend: Fix missing completion for private member functions
... when trying to complete the name of a function definition. libclang
tags such completions as "not accessible", even though we are not in a
call context.

Fixes: QTCREATORBUG-25244
Change-Id: I4b03b1a43be7a85c37c7d2b2bfe2d83112075674
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-22 14:49:54 +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