Commit Graph

68211 Commits

Author SHA1 Message Date
Christiaan Janssen
af24cad00f McuSupport: update dependency paths of kits if changed
Task-number: QTCREATORBUG-25488
Change-Id: I529b6243b799e35db5e9804087e4ed20224cb024
Reviewed-by: Dawid Śliwa <dawid.sliwa@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-04-14 09:59:39 +00:00
Eike Ziller
555dbac851 Merge remote-tracking branch 'origin/4.15'
Change-Id: I613b60f7d5cfca19ed611b3777548738d7bd7d67
2021-04-14 11:33:16 +02:00
David Schulz
4f9ed8d620 Dumper: Fix qobject name dumping for Qt 5 again
Amends: e05fe66f4b

Change-Id: I244017a63216a6bbc89d9f211eec7d7def27beb4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-04-14 09:28:45 +00:00
Eike Ziller
7716067994 PasteSelectDialog: Fix after refactoring
Don't compare int with QString - which even compiles with Qt 5 (but
luckily doesn't with Qt 6).

Amends 123133841e

Change-Id: I347568c89658896a2e094610dbf1700ff84d81c5
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-04-14 07:02:23 +00:00
Johanna Vanhatapio
39d4577d76 Doc: Update the Creating Components topic
Fixes: QDS-4110
Change-Id: I6fde0e36a8c74a0c9e1f56b9ce225444c921b74f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-04-14 06:40:29 +00:00
Johanna Vanhatapio
fef8ebf46b Doc: Describe Context Menu Commands in Library
Fixes: QDS-4061
Change-Id: I4f19450cd03f7f2da7e9064a1bf8519e4ccfc3c4
Reviewed-by: Miina Puuronen <miina.puuronen@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-04-13 16:33:32 +00:00
Leena Miettinen
1057942d00 Doc: Describe option for selecting ABI:s for Qbs Android builds
Task-number: QTCREATORBUG-25162
Change-Id: I385556b2ec94bf10d7432886880fcbba96239eb9
Reviewed-by: Raphaël Cotty <raphael.cotty@gmail.com>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-04-13 15:35:22 +00:00
Mahmoud Badri
d3f2394e8f QmlDesigner: Don't update sub component manager when adding a module
It seems there is no need to update it and it is an expensive
operation.

Task-number: QDS-4008
Change-Id: I5dd8427f73a6ce755b017f6d284b72acb31ed7d5
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-04-13 14:02:39 +00:00
Tapani Mattila
03aed5c5a6 Prevent QtColorButton crash with AnnotationTableView
Task-number: QDS-4068
Change-Id: I56c130e0d252f6926a64d0d0c37d3b482d2dbbc5
Reviewed-by: Michael Winkelmann <michael.winkelmann@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-04-13 14:01:26 +00:00
Eike Ziller
34cd28aac0 Debugger: Fix compilation with Qt 6
Amends 7ccd9d6943

Change-Id: I8567a1238b9cc770c2a5ec551a06ef64a1164a0a
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-04-13 12:33:22 +00:00
Eike Ziller
82bb6a3c72 CMake: Fix "Jump to File" with special characters
Fixes "Jump to File" from the context menu and the ctrl+click navigation
for files that contain special characters.

Fixes: QTCREATORBUG-25572
Change-Id: I7c26c6d517ced26f803c2224f0c09397f373b3b5
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-04-13 12:32:29 +00:00
Christian Stenger
8dbb741bbe Unittest: ClangSupport: Fix cmake build on Linux
When building debug with tests this surprisingly failed
due to missing include.

Change-Id: I238dc1d1e4aca790c07a37f0d65973da693bed99
Reviewed-by: hjk <hjk@qt.io>
2021-04-13 10:53:42 +00:00
Eike Ziller
e160c962ac EditorManager: Do not save defaults to settings
And remove some legacy settings reading from Qt Creator < 4.0

Task-number: QTCREATORBUG-24762
Change-Id: Ie492787b78a19e9eb41650e36cbcd59b366deca7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-04-13 10:43:06 +00:00
Eike Ziller
4552552bc1 UpdateInfo: Do not save defaults to settings
Task-number: QTCREATORBUG-24762
Change-Id: Ie5fb6492847532b659fd7e0799b30f716c2c15fe
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-04-13 10:42:54 +00:00
Christian Kandeler
226c03c1eb ClangTools: Give a hint to users as to why we didn't do anything
Task-number: QTCREATORBUG-25565
Change-Id: I27cb0e5bc2a02a88ddf1d42b996e45840d6c1385
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-04-13 10:12:57 +00:00
hjk
38b4536090 Utils: Introduce a BaseAspect::setEnabler(BoolAspect *)
A convenience method to tie the enabled state of an aspect to some
other bool aspect, to be used e.g. when settings item availability
depends on some check box.

Makes it harder to miss one of the three necessary steps.

Change-Id: I8c120bb6846aea2a503614f7c73fa57a149cab41
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-04-13 09:59:58 +00:00
hjk
ef108d7a06 Docker: Add DockerDevice and a simple run config
The "Docker Container" runconfig executes 'docker run <image>' without
further attributes, and "works" with docker's hello-world example image.

Change-Id: Ib9417d238ac0757db16be1fc21af40c81db02f05
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-04-13 08:54:17 +00:00
hjk
162d551455 ProjectExplorer: Allow a device to declare that empty commands are fine
Docker allows to run a container "by itself", not needing an explicit
command line.

Change-Id: I4f3992410f7f7bbcce1897a7400628ef9354043d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-04-13 08:43:48 +00:00
hjk
c4631271d4 Perforce: Merge Settings and PerforceSettings classes
Structurally more similar to what the other plugins do.

Change-Id: Ic664277b089ebf60241fc8627353721e0e2f3002
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2021-04-13 08:08:44 +00:00
Matti Paaso
15162cda4a Add product dependency for selecting correct branch for VMs
Change-Id: I2c690825f7d1d19a34f3e1dbc08970ca2167594d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-04-13 08:06:37 +00:00
Christian Kandeler
413b83ddf9 QmakeProjectManager: Fix possible crash on project document reload
... while a parse is going on.

Fixes: QTCREATORBUG-25137
Change-Id: I02a914332ef120caee044139581e1901b4537bff
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-04-13 08:04:56 +00:00
hjk
f7310dd8fb ProjectExplorer: Add a RunConfiguration::setRunnableModifier()
To override RunConfiguration::runnable() behavior without the
need for subclassing. Will be useful for the docker plugin.

Change-Id: I9e8511faa95355038b08c3e3be24429d66a5253f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-04-13 07:43:33 +00:00
Leena Miettinen
5b219abe9e Doc: Fix link to B2Qt Installation Guides
Fixes: QTCREATORBUG-25566
Change-Id: Iabaaa4537a3d4cc02956407068e65e68629cef04
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
v4.15.0-rc1
2021-04-12 14:17:47 +00:00
hjk
454e8a31e2 Analyzer: Base ISettingsAspect on Utils::AspectContainer
Change-Id: Ib4c19d0cb167911dc50d989771dd53f3569db087
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-04-12 13:15:13 +00:00
hjk
8eb74080ab QmlProfiler: Aspectify settings
Only four simple values.

Adapting qmlprofilerconfigwidget_test did not seem desirable,
as in the aspectified state this is hidden in the base aspects
implementations.

Change-Id: I933a8ca065169c61b7f25f109e0b7a0e6d21cb33
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-04-12 11:29:16 +00:00
Eike Ziller
89acd38b40 macOS: Adapt build_plugin.py for possibly branded application bundle
Change-Id: I0d9860db78c2f617f5e8631064b271c0207f01de
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2021-04-12 09:38:06 +00:00
Christian Kandeler
b88b73d9c1 ClangFormat: Sprinkle some more magic pixie dust
Apparently, we can prevent clang-format from removing line breaks by
adding an empty comment at the end of the line.

Change-Id: Ia78ecb9e7351d059c544cbda11d33af5734e2218
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-04-12 09:28:55 +00:00
David Schulz
005f0a3127 TextEditor: Fix highlighting search results at block start
Fixes: QTCREATORBUG-25570
Change-Id: I3450cfed49e07cf96c2a2a9cdfa9a0be7a05c49f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-04-12 07:27:03 +00:00
Eike Ziller
8b2c9c4596 Merge remote-tracking branch 'origin/4.15'
Change-Id: I23d25ad32c396811acad88873ac556ee13372ee3
2021-04-12 09:18:06 +02:00
Leena Miettinen
485aad6e9e Doc: Add a reference topic for the Text Editor view
Add links to the new topic.

Change-Id: I92640385feba70a56bacfe24497eeba3d8409567
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-04-12 07:06:13 +00:00
Leena Miettinen
03c48cfe2a Doc: Create topics for Projects, File System, and Open Documents
Move the information about these views to separate topics and
describe the differences between using them in Design mode or
in the sidebar.

Change-Id: Ie71edb7d270bf5c4e020f2818f9f8e0e9e505094
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-04-12 07:06:01 +00:00
Bernhard Beschow
ac61bfdc90 AutoTest: Free TestTreeItem from CppTools dependency
Makes TestTreeItem programming language agnostic.

By moving the "query" methods to CppTools, the cohesion within these
methods is improved, i.e. information crosses the AutoTest <-> CppTools
border fewer times. Furthermore, it allows the CppTools plugin to see
how its data is being used, allowing it to optimize its queries
behind the scenes.

Change-Id: I0a60140abaca1193d500605dfa2812b4d937d94c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-04-12 06:42:49 +00:00
Leena Miettinen
d51d1b21dd Doc: Describe downloading and installing examples in QDS
Some examples can now be downloaded, while others are still
delivered with QDS.

Task-number: QDS-3407
Change-Id: Ib74dce703d5e824bfbf129951c3fd624ada601b9
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-04-12 05:58:09 +00:00
Marco Bubke
3f0f289b28 QmlDesigner: Relaxe value property setter
The value.isNull() was misleading. It should only check if a value is
invalid. The null sematics in Qt are special anyway because it they can be
misleading. Most values have no special "null" value like pointers or NaN
with floating point values. QString is for example exposes it's
implementation with a pointer. Sometimes zero is reportet as null but this
not what we wanted to know. So just treat null strings as empty strings.

Change-Id: I6599f6c97f22aff83779a0b32415bf52fd64d82f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-04-09 15:52:15 +00:00
hjk
3c0d7e9c18 Perforce: Aspectify settings
Change-Id: I2074b642166f135bb4617f9e14ac3e7b895720e7
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2021-04-09 15:38:25 +00:00
Christian Kandeler
33a38394b4 Core: Consider keyboard navigation in output window scrolling logic
... by using QAbstractSlider::actionTriggered() instead of the mouse-
centric signals.

Fixes: QTCREATORBUG-25557
Change-Id: I0092fbfcb8fefb3a234bfb1592a2483bdc9e68d3
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2021-04-09 14:54:19 +00:00
Aleksei German
12645efba0 QmlDesigner: Fix for Gradient Stops
Change-Id: I657b92cb00c0eda93b8dd74a2393072cc9ae9287
Fixes: QDS-680
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-04-09 14:20:31 +00:00
Eike Ziller
bce81fd992 Projects: Create QIcons in the UI thread
Creating QIcons elsewhere is not safe because of image reader plugin
loading and the pixmap cache.

Fixes: QTCREATORBUG-25301
Change-Id: Ia22a0cd571f808d7f5c639353fdf2e548743f8ca
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2021-04-09 13:34:55 +00:00
Eike Ziller
574f9888c4 Add more change log for 4.15
Change-Id: Iaa9b9f3a3f8a6151f2dccb659460fe13730ec89f
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-04-09 13:34:43 +00:00
Jarek Kobus
f4ab1279fd Fix a possible crash in StringTable on shutdown
The issue is that when a GC() function is being executed
in a separate thread, the main thread may delete
the StringTable (on shutdown) in the same time. The destructor of
StringTable didn't check in any way that the other
thread is still executing GC() method.

In order to fix it we employ runAsync method, returning
the handle to the running task. We store the handle
in futureSynchronizer, and in destructor of StringTablePrivate
we safely wait for all futures to be finished.

Fixes: QTCREATORBUG-25417
Change-Id: I0039d6041276c521c221e8dfc3894e84e47b82a2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-04-09 12:29:31 +00:00
Eike Ziller
2800f3b51f Merge remote-tracking branch 'origin/4.15'
Change-Id: I0afcf51d354ffd73a8f2956a7f78b1e4f032677b
2021-04-09 12:42:03 +02:00
Tuomo Pelkonen
8413d6d585 QmlDesigner: change default text location to TopLeftCorner
Changed FormEditorFlowDecisionItem's default text location
from TopRightCorner to TopLeftCorner

Task-number: QDS-2508
Change-Id: I6c95ab859e7d82d94399d5249c027f5e772eb9d7
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-04-09 10:35:36 +00:00
David Schulz
86679c130b LanguageClient: update dynamic capabilities just once
Change-Id: I7149f581e55a25672dce44abc751912e02271135
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-04-09 07:48:57 +00:00
Christian Kandeler
24eb796231 CppEditor: Fix "Add Definition" quickfix for function parameters
... whose type is a template.

Fixes: QTCREATORBUG-25560
Change-Id: I1d626f9376e8802a87ca1a28099932ccbf744d47
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-04-09 07:43:19 +00:00
hjk
7471c3a378 Utils: Provide a method to set total cell span for aspects
Only row span used currently in some base aspects, can be
extended once needed.

Used in the Perf config widget to correct recent change.

Change-Id: I37fae178cbfb8d493e0232e53e877d0e317ec9f2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-04-09 07:08:22 +00:00
Christian Stenger
756a8f6175 PerfProfiler: Fix compile
Amends a3a6d1813f.

Change-Id: I1faa26a962ed5b6d698e2d24adcb216e71da9bc7
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-04-09 04:40:44 +00:00
Leena Miettinen
74c1e6ae6d Doc: Describe running apps as root user on Linux
Task-number: QTCREATORBUG-25162
Change-Id: I5db639a3cb77e1b2504b38cfda739e6892722a19
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-04-08 15:56:44 +00:00
hjk
a3a6d1813f Perf: Partially aspectify settings
Change-Id: I605bfcd94e95cce753f42528586829072aea5663
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-04-08 13:44:04 +00:00
Christian Kandeler
65db684c7d ProjectExplorer: (Re-)Add run config variables
As for the build config, we provide a global variant for use by external
tools, and one for use in the respective run configuration itself.
Also hide the deprecated "CurrentRun" variant, which was forgotten in
b55825a420.

Fixes: QTCREATORBUG-25561
Change-Id: I51aaff10301f7ff1256abf1c09ac9f5be136ab00
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-04-08 13:22:39 +00:00
Christian Kandeler
e51b2a28ea CppTools: Do not pre-select "external" files in "rename symbol" widget
It's unlikely that the user wants to change files that are not part of
the currently loaded projects, so opt-in is the right approach for
those.

Fixes: QTCREATORBUG-8561
Change-Id: I1812a3e64de66828ac07dea7bbb63acdb4dd40d8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-04-08 10:34:07 +00:00