Commit Graph

68568 Commits

Author SHA1 Message Date
Eike Ziller
2ce76937d4 macOS: Fix compile warning
warning: 'NSCompositeCopy' is deprecated: first deprecated in macOS
10.12 [-Wdeprecated-declarations]

Change-Id: I471b7156e3d3111fbffd6d7a1ff99e8e847af7fe
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-04-06 12:07:55 +00:00
hjk
ba06114afa Utils: Improve handling of BoolAspects used for checked QGroupBoxes
Make the group box a registered subwidget of the BoolAspect, so it
properly triggers the necessary behavior in BaseAspect::isDirty.

Change-Id: I9f6291d87ef7ce4067e0d235de8b5be24de79a93
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-04-06 11:28:08 +00:00
Eike Ziller
4b3a746332 CMake build: Fix remaining issues with Devel package
On Linux (and Windows) we should not create toplevel files (README.md
etc) or directories (doc/, scripts/ etc).

On macOS, move the whole Devel package contents into the app bundle,
because that is installed toplevel in the Qt installers, and we
shouldn't even create include/, lib/ or any other directory at the
toplevel at all.

Since the prefix path must now point to the Resources folder inside the
app bundle, adapt build_plugin.py to also accept --qtc-path pointing to
the app bundle (Qt Creator.app) itself, and also to the app bundles
parent directory. Adapt the Qt Creator plugin project template
similarly.

Task-number: QTCREATORBUG-25414
Fixes: QTCREATORBUG-25415
Change-Id: Ic756237fb920b54b1ec95d076649ad947b39a7e8
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-04-06 10:59:27 +00:00
hjk
b63b84b83c AutoTest: Aspectify BoostTest settings page
Change-Id: I68e10a283fcd59f58c77301ef176b4347f68264a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-04-06 09:51:56 +00:00
hjk
71d3b04406 CVS: Use the new AspectContainer::applied signal
Change-Id: Icd86026a22f730fb5c7a460d5b1e38c16c5768b9
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2021-04-06 06:24:41 +00:00
hjk
2004399f38 Git: Use the new AspectContainer::applied signal
Change-Id: Ib40e206e84228e91e4816c5b91800a5611f441a1
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2021-04-06 06:24:34 +00:00
hjk
6102405a06 Subversion: Use the new AspectContainer::applied signal
Change-Id: Ie16ed5afc59a2f98f0564b9956550cdd08fa4b09
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2021-04-06 06:24:28 +00:00
Leena Miettinen
16cb026b8b Doc: Add info about finding type alias definitions
Task-number: QTCREATORBUG-25162
Change-Id: I05f0d602b2949b37edad54e32e9e17cdc3e93154
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-04-06 06:18:26 +00:00
Christian Stenger
b9e15cc459 Docker: Do not create implicit plugin category
Change-Id: Id0fc281c81bb6cc34d4b303319e17515f61fc2bb
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-04-06 04:22:25 +00:00
Christian Stenger
7d1d9a0002 Conan: Do not create implicit plugin category
Change-Id: Ic4d028c6a237a8b72058ec98d15d111fc0479425
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-04-06 04:22:15 +00:00
hjk
0be9639e6f Nim: Adapt to new AspectContainer base class
AspectContainer is now based on QObject already.

Change-Id: Ic4c10ed3ed8ca8f7f1f1c5a43a8f8cdb8d97febf
Reviewed-by: hjk <hjk@qt.io>
2021-04-01 16:21:24 +00:00
hjk
6b82af5990 Utils: Make AspectContainer a QObject
... and add a 'void applied()' signal.

I actually wanted to avoid that, but it seems to be a recurring
pattern of usage to do something on top of plain apply for all
children, like triggering IVersionControl::configurationChanged
in the VCS plugins.

Change-Id: Ib64c3147c6ba30b178237e51a3a377a291c550f2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-04-01 16:03:50 +00:00
Christian Kandeler
1e9c42d76b ProjectExplorer: Do not cut off the "file extension"
... when constructing a run configuration display name.
The target name is not typically a file name and might legitimately
contain a dot.

Fixes: QTCREATORBUG-25480
Change-Id: I7954763661d36ae20b931d6d05ef3e29b36a9fc9
Reviewed-by: hjk <hjk@qt.io>
2021-04-01 15:08:54 +00:00
Thomas Hartmann
405cf39ee0 QmlDesigner: Fix auto generated sheets
Section does not have padding properties.

Change-Id: I1a527d1ea168ec7ca7eb354b99fee879950270e7
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-04-01 14:21:41 +00:00
hjk
c24291648b Meson: Aspectify general settings
This follows suit which what is currently happening in other plugins.

Change-Id: I5fb75e23d7d6add632cd07c732131b4f9793d345
Reviewed-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-04-01 12:11:17 +00:00
hjk
0c5036e307 Conan: Move closer to now-default settings construction
Change-Id: I04078070de9831c1de94d400a7723f4efe0e0a8d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-04-01 11:53:38 +00:00
hjk
283ef97384 Nim: Aspectify NimSettings
Change-Id: I3954bec762fb3f5d3426663108ff493f140f1b5e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com>
2021-04-01 10:25:48 +00:00
Christian Stenger
f48586b8d8 Utils: Clear button storage after their deletion
Change-Id: I26650c645de67f5b1577f7c3a665f28397a64eec
Reviewed-by: hjk <hjk@qt.io>
2021-04-01 09:27:30 +00:00
hjk
cfae2812e7 Utils: Fix enable update for explicitly disabled StringAspects
The generic update that is triggered on all major interactions
did not take a explicitly set disabled flag into account.

Change-Id: I026bc0817ce534e92cfdd631beebcb80ddf7e6dd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-04-01 09:26:48 +00:00
hjk
968d083631 Utils: Introduce a SelectionAspect::volatileChanged
Analog to BoolAspect::volatileChanged for cases when the availability
of some other aspect, line edit, ... is governed by a specific state
of a combobox.

Change-Id: I5c7903dde21ab997e799568b20a01308a25c4397
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-04-01 09:01:00 +00:00
hjk
19d078bb5c FakeVim: Use new IOptionsPage convenience functions
Change-Id: I739fe152a4f642a19c90be71bbe5adbc8747f402
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-04-01 07:44:22 +00:00
Leena Miettinen
44cd41a85b Doc: Update info about Figma export options
Update the name of the "SVG Path Item" Studio Component.

Change-Id: Ic7bfd96d89a2c8291f778f3cf8b60f879ac178c8
Reviewed-by: <kama.wojcik@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-04-01 07:25:08 +00:00
Leena Miettinen
6a52894900 Doc: Describe new UI control project wizard templates
Users can use wizards to create stylable check box, dial,
slider, and spin box controls.

Task-number: QDS-3407
Change-Id: I51cd03d6f571e56e5d01cad4959da7bc4958e2b1
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-04-01 07:24:54 +00:00
Leena Miettinen
919b46d9b9 Doc: Update info about Qbs build configuration
Task-number: QTCREATORBUG-25162
Change-Id: Ifa419041d1633058d12a7b7bf04de4a0bd312f3a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-04-01 07:19:24 +00:00
hjk
adad221aa2 Git: Fix a condition
A 'true || ...' was used while testing aa69415ac7 and was accidentally
committed.

Change-Id: I07d56035e93944e20cf1d2f5808ce3cbff1c5d5e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2021-04-01 07:13:45 +00:00
Tim Jenssen
2fc05c056f studiowelcome: fix crashpad awareness
Splashscreen shows some information text
if that define is set.

Change-Id: I272eb470b8c2493577a50451a3c11832254b16b8
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2021-04-01 04:36:40 +00:00
Mahmoud Badri
392c466b20 QmlDesigner: Fix used imports not working correctly
The existing logic (in qmljsinterpreter.cpp) for updating used imports doesn't work correctly. It takes into consideration items that are not
part of the currently open document. Fixed by checking current model
items in the document and updating used imports based on it.

Fixes: QDS-3785
Change-Id: Ia50c3c7e7ca41b9bca0d69e7c2e253f29892933e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-03-31 18:14:22 +00:00
Tim Jenssen
719dc7ed89 crashpad: fix install crashpad_handler
USE_SOURCE_PERMISSIONS only works for directories

Change-Id: Iff80e7914766cf48af05aac7fbe6c6e6e900fb48
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-03-31 17:18:28 +00:00
hjk
ed2fba8f58 Docker: Simplify DockerOptionsPage setup
Change-Id: Id850de98968c7cb80c813a6fa8cd48543de24fd6
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-03-31 15:44:46 +00:00
Cristian Adam
ca430f2a8b CMakePM: Copy the header file name to clipboard after adding class
Fixes: QTCREATORBUG-25212
Fixes: QTCREATORBUG-24301
Change-Id: Idf6104548223f6d26820bc395ee60c1a8c794c6d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-03-31 14:39:10 +00:00
hjk
cbc26f5dce AutoTest: Aspectify CatchTest settingspage
Change-Id: I281891fecdcd97e4ec450a795d51981cfb47ef69
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-03-31 12:10:45 +00:00
hjk
e87e70dcf6 QmakeProjectManager: Fix settings default value
Amends b569258748. The change dropped the special setup of
m_warnAgainstUnalignedBuildDir and fumbled when flipping the
the internal value for m_ignoreSystemFunction/m_runSystemFunction.

Almost back to the first patch: Keep the value under the name (and meaning)
"RunSystemFunction", but flip it for internal storage and user display.

Change-Id: I4e8cf430fd9ad922357b581b862b7e491c035977
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-03-31 12:05:36 +00:00
hjk
1d04466628 Autotest: Use LayoutBuilder for QtTestSettingsPage
Change-Id: I6f454bedbe0f1d2b9a1a14c146e35bcf41752533
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-03-31 11:56:36 +00:00
hjk
4cc6fef901 Utils: Merge BaseAspects and AspectContainer
They were quite similar, largest difference was the ownership of
subaspects, which is now handled by a bool property.

Change-Id: Ib3f2f20b9a84ef40ea8a9eb59da9c89c9a281750
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-03-31 11:56:04 +00:00
Christian Kandeler
0378f51719 qbs build: Install package-manager data
Amends cc0fa86ffd.

Change-Id: I56bb490f2e7b971f7d25255a4ee824b39c4d1ba9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-03-31 11:11:46 +00:00
Leena Miettinen
943f468762 Doc: Update screenshots and UI text capitalization for IncrediBuild
Change-Id: Ibc58a1dea78fdaabf1ebcef48d4f307556f962f0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-03-31 10:25:56 +00:00
Leena Miettinen
d241832e07 Doc: update info about qmake build configuration
Change-Id: I40e7491b079ae879d97b595fb2d440b92a11d66b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-03-31 10:25:45 +00:00
hjk
d8770be95e ProjectExplorer: Aspectify Default Build Properties page
Change-Id: I3341ced5597f5b891b66da77e074fdf3217327ea
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-03-31 10:06:04 +00:00
Christiaan Janssen
5dcf2ba0fa McuSupport: manage kits for different SDK versions side-by-side
Task-number: QTCREATORBUG-25044
Change-Id: I6fbadd1e4192e9958ec4bb1a5bbbfe82c168fc2d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-03-31 07:30:08 +00:00
hjk
a202301918 Autotest: Partially aspectify autotest settings
This only handles the storage side, all gui/layouting is left for
follow-up changes.

Change-Id: I0f2b6dc82e5d4374528c8a72610a5afe264a72b1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-03-31 07:29:24 +00:00
Christian Stenger
f98510960e QmlDesigner: Fix missing include
Amends bd9a61fa27.

Change-Id: I890c0766931064f665aee9b6a705d4d7ce9a1e71
Reviewed-by: hjk <hjk@qt.io>
2021-03-31 07:13:17 +00:00
Leena Miettinen
49c7f21891 Doc: Reorganize info about build settings by build system
Change-Id: Iaee9cc581f76a45cc10c9ae8cba601889320be86
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-03-31 06:53:14 +00:00
Cristian Adam
8d54fb22bc GitHub Actions: Update ccache to version 4.2.1
Also display the ccache statistics as separate step and not
at the end of the build step.

ccache clear

Change-Id: Ia8b2ae4b73f2070ab6cf14ab704e5fc4200d49de
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2021-03-30 17:32:02 +00:00
Alessandro Portale
105d65b19c WebAssembly: Always use system environment to run em++ -dumpversion
On Windows, we would start with a clean environment just with the emsdk
environment added in order to run "em++.bat -dumpversion".

That fails for some emsdk versions for reasons unknown. Let's reduce OS-
specific special casing and instead use the system environment as basis
everywhere.

Change-Id: I143fe6193528390e17ee0a62936ad03d2c5a109e
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-03-30 13:59:03 +00:00
Christian Kandeler
98012fb89d Unit test: Fix qbs build
Change-Id: I6046fe9b99e288dcd14a763bce9c337ab45c2eb5
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-03-30 11:15:09 +00:00
Christian Kandeler
392d9038f8 QmlDesigner: Fix qbs build
Change-Id: I7dbbf49d96e80deab2e7ce002fb1ac08f7548228
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-03-30 11:14:44 +00:00
Leena Miettinen
0a792d3b9d Doc: Fix instructions for styling buttons in Login UI tutorial 1
Fixes: QDS-4051
Change-Id: I7d9f9fa0666feb9f81b8f3468e09a29b5dbd10d3
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-03-30 11:04:32 +00:00
Leena Miettinen
d1228a6f39 Doc: Describe detaching changed Figma component instances before export
Task-number: QDS-3338
Change-Id: I86e7c057a2e97ecd30b84e6f4b52d230fda80c5f
Reviewed-by: <kama.wojcik@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-03-30 11:04:07 +00:00
David Schulz
33359883f2 Fix qbs unittest build
Change-Id: Ifb7f564217921c9907dd7e300bc1c31ad7ae1536
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2021-03-30 10:25:00 +00:00
Aleksei German
d815751824 QmlDesigner: Fix for Form Editor color roles
Change-Id: I429842fa875c89201aa7f273a35d3e7dde4666ed
Fixes: QDS-4062
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-03-30 10:14:50 +00:00