Commit Graph

76686 Commits

Author SHA1 Message Date
Jarek Kobus
91f4ee7644 PeripheralRegisterHandler: Drop unneeded if condition
Amends 53e8f8c761

Change-Id: Ic27941cd2cb6725a7cd97f1ea5ea73bd4bc44ad0
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-22 12:17:22 +00:00
Jarek Kobus
2d8ae7bbd9 ProjectExplorer: Avoid using sender()
Add a m_defaultRunConfiguration field as a helper
when executing m_runActionContextMenu handler.
Don't store the data inside actions - use lambda capture
instead.

Do also some cleanup of unneeded () after lambda capture.

Change-Id: Ic9f4bc82681ed5a7de0b588f6e360ee02ce4f275
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-07-22 12:15:38 +00:00
Jarek Kobus
f516770281 KitAspectWidget: Use Utils::Guard in subclasses
Change-Id: I5bffdb1139151a87fcad48d255729da54d33de51
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2022-07-22 12:12:27 +00:00
Jarek Kobus
30b815700e TaskWindow: Avoid using sender()
Remove some unneeded Utils:: qualifiers.

Change-Id: I9abdd009089d273ebbe4a3b1662f09997565416d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-22 12:05:28 +00:00
Jarek Kobus
f9a3fcb660 RunSettingsWidget: Use Utils::Guard
Change-Id: I1c77fe4f0ce0d28ab9d011045c64630387eaf7b8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-22 12:02:34 +00:00
hjk
39a89b3d06 Gitlab: Simplify dialog layout
Remove several cases of unneeded nesting of boxes of the same kind.

Change-Id: Id9e03c0ea98839d5549e07bb3966496505cb880a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-22 12:02:31 +00:00
Jarek Kobus
063efbe693 Guard: Make it possible to lock/unlock manually
Use it in some KitAspectWidget subclasses.

Change-Id: Ie683d5af6a44d0042456418af729a3d718396803
Reviewed-by: hjk <hjk@qt.io>
2022-07-22 12:02:19 +00:00
Jarek Kobus
3f05594db1 QbsProjectManagerPlugin: Avoid using sender()
Change-Id: I20a72623c8208c3c4b52997bf3d96d10a95ea60b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-22 11:59:18 +00:00
Jarek Kobus
2eb682802f ActionContainer: Avoid usind sender()
Change-Id: Ic83179de74943a20de6abf516aa43a5cf034de65
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-22 11:59:01 +00:00
hjk
59fde5be05 BareMetal: Fix startup
Task-number: QTCREATORBUG-27972
Change-Id: I16c6b07c33736f087ea805994fe51a9c109c5d95
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-22 11:49:39 +00:00
Piotr Mućko
ca9e652716 McuSupport: Use env variable as package's primary value
Use env variable value as primary source before values from settings
and fallback value from JSON.

Change-Id: I0c0a4c2cdac65a075d9f38aa1557a9d303b30a5e
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Dawid Śliwa <dawid.sliwa@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-07-22 11:43:33 +00:00
hjk
23d9ef1adb RemoteLinux: Convert to Tr::tr
Change-Id: I1c541d392992fb37acecbb98f331e01d7b73fbc7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-22 11:11:48 +00:00
Jarek Kobus
aabf9e4fef SimulatorOperationDialog: Avoid using sender()
Change-Id: Ib45839bfa7b5e62a9546643a4a94c975884ce8cd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-22 11:07:27 +00:00
Jarek Kobus
2da897f60b DiagnosticView: Remove unused field
Change-Id: I0f423c70c7868547547313e85fa27b6640a39f5c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-22 11:06:21 +00:00
Jarek Kobus
67b26a8987 CMakeGeneratorKitAspectWidget: Remove unused m_ignoreChange
It's always false, so no-op.

Change-Id: Ie3a4de8ddaf98aff97c1672e696db21356110af2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-22 11:05:56 +00:00
Jarek Kobus
d4d5cc3a7d QmakeKitAspectWidget: Use Utils::Guard
Change-Id: I312ba87cb7e198dbbbdca1b8f9c114bb3deb2b19
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-22 11:05:36 +00:00
Jarek Kobus
3071524607 ClangToolRunWorker: Avoid using sender()
Change-Id: I299fa6464b77aed3852d3b5a7ce4817678d5f369
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-22 10:56:59 +00:00
hjk
14c5390ffc Android: Inline androidsdkmanagerwidget.ui
Change-Id: Ic20b209d92371184fdb458d1835852b6c042ad69
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-07-22 10:21:34 +00:00
hjk
50e53b3e63 Android: Inline androidsettingswidget.ui
Change-Id: Ib30810b182eabd3d7f58691f3c3023151408ae04
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-07-22 09:53:33 +00:00
Thomas Hartmann
63200ff771 QmlDesigner: Prefer autodected kits and use replacment kits only as fallback
In QDS we want to priotize the kits we provide as part of the installation.

Change-Id: I282166bce811b6777088cd0dcde31dd8da785e2b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-07-22 09:32:15 +00:00
Eike Ziller
20e241737e Fix regression with permissions when running app locally
Amends 3efa0f3961

The code path for running locally in some cases modifies the environment
(to support SUDO_ASKPASS), or the command (to support privacy settings
on macOS), but this was overwritten again after the above change.

This lead to e.g. the Qt camera example just crashing on macOS, instead
of the OS asking the user for permission to use the camera & microphone.

Change-Id: I41192bac736e4b07eb3530b37e35ad02a79e20a5
Reviewed-by: hjk <hjk@qt.io>
2022-07-22 09:30:16 +00:00
Jarek Kobus
e9a0d06867 DebuggerKitAspectWidget: Use Utils::Guard
Change-Id: I42407c110971f97599295f5d2be7652e512d3c72
Reviewed-by: hjk <hjk@qt.io>
2022-07-22 08:58:00 +00:00
hjk
249d8585c4 Android: Compile fix
Change-Id: Idd42fbb2b05f5d68de66f08a63b41b921ef8a315
Reviewed-by: hjk <hjk@qt.io>
2022-07-22 08:55:48 +00:00
hjk
a7636d8d5c Android: inline addnewavddialog.ui
Change-Id: Ib90981f8fb60b637deb03da5466f7aaa49369104
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-07-22 07:46:02 +00:00
hjk
b8a6d72137 Utils: Make Layouting::Group { .. } less weird
It had a implicit vertical layout leading to unneded layout nesting
in quite a few cases. The price is an added Column { ... } in those
places where the implicit vertical layout was sufficient before.

Change-Id: I3ae1f03f9c1d691bd0c563b0447edd03ee02bbd2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-22 07:43:23 +00:00
Mats Honkamaa
87212ba639 Doc: Update Loader3D documentation
Task-number: QDS-6972
Change-Id: I61259f4baef7f7607ab7d1dd9c8124e5ae3274c4
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-07-22 07:42:17 +00:00
Daniele Bortolotti
dcb9cd9062 McuSupport: update default MCU project template
Task-number: UL-5879
Change-Id: I4b760f1e377a0ccf1f938ff99aa5680e4e49e2cd
Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-22 07:19:04 +00:00
hjk
01376a62b0 Qnx: Use LayoutBuilder for settingspacge
Also, simplify the setup: No row-in-row, use form for form-ish stuff
instead of two columns.

Change-Id: Ia5ec44cbace97ff664db11bc05aa052fa5d1a966
Reviewed-by: Rafael Roquetto <rafael.roquetto@qt.io>
2022-07-22 07:05:37 +00:00
hjk
e8ac0ec79b Qnx: Modernize a bit
Drop unused Q_DECLARE_TR_FUNCTIONS and QObject, C++17 namespaces, ...

Change-Id: Iea5351cbd7e3d434f3ff7123fc385aeb16c1adf9
Reviewed-by: Rafael Roquetto <rafael.roquetto@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-07-22 06:54:05 +00:00
Cristian Adam
ba01ae974c setup_android: Update to JDK 11 and NDK 22.1
Tested with Qt 6.3.1 and Qt Creator 8.

JDK 11 was needed for gradle, which requires at least version 11.

Change-Id: I9010de1e89efb59a2ec485ff2cff783d5832b680
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-07-21 20:54:20 +00:00
Jarek Kobus
60c185b60a SymbolsFindFilter: Avoid using sender()
Change-Id: Ibd0a63802c44823f70890666dd8e0073eb4caf59
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-21 16:18:59 +00:00
Jarek Kobus
a64ca6d071 CppFindReferences: Avoid using sender()
Change-Id: I8db77d9c4fecbb89875128555050a4dd5a248a42
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-21 16:07:21 +00:00
Alessandro Portale
afe0b5a42d Utils: Use FilePaths alias instead of QList<FilePath>
Change-Id: I2eb0956377e46a34e73208b301eb662704a25e8b
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-07-21 16:05:38 +00:00
Marco Bubke
c56c3ea024 QmlDesigner: Provide TypeTraits for type getter
The type traits contains already information like if the file is a file
component etc..

Task-number: QDS-7327
Change-Id: I7713840fd1107046e8a6710c0ca493dc54edf823
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-07-21 15:54:57 +00:00
Marco Bubke
ab30e8fe06 QmlDesigner: Rename TypeAccessSemantics into TypeTraits
We can save more data into that enumeration but the name should reflect
that.

Task-number: QDS-7327
Change-Id: I35a4e1460a6bbc63b32934828b766733a92c5ba7
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-07-21 15:54:52 +00:00
Marco Bubke
c8a4638b53 QmlDesigner: Use strict tables
Strict tables https://www.sqlite.org/stricttables.html have the advantage
of providing strict columns and fix some historical mistakes like null
primary keys.

Change-Id: I7460e4317caafaec37102ae4181d2ed3bcea5ce4
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-07-21 15:54:45 +00:00
Christian Kandeler
379340d6c2 Utils: Fix qbs build
Change-Id: I06d4d10c2aae96b7ea4e58cde1d31162ad3818c9
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-21 15:48:53 +00:00
Marco Bubke
5fb450fd02 Sqlite: Fix strict table
Change-Id: I1650e99ef24c236b2d630649f1a728de9d020190
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-21 14:03:52 +00:00
Marco Bubke
981ebfe488 Sqlite: Cleanup id handling
Because ids are now handled directly by the sqlite statement the
shortcut to take the "address" of the id is deactivated and you have to
use some special functions.

Change-Id: I869f5d1688ab4b6794fb9ed3ffcaa3978a0fc516
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-07-21 14:03:40 +00:00
Jarek Kobus
a25c22de82 EditorToolBar: Avoid using sender()
Change-Id: I1dc0871e29ea0391ed3545096051dd6f8821d3d8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-07-21 13:32:02 +00:00
Jarek Kobus
d7002235d2 SubmitFieldWidget: Avoid using sender()
Change-Id: I024f397718b6e15d62676ffe91770ed21d2be4bb
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-21 13:30:39 +00:00
Jarek Kobus
8dabadbe56 TargetSetupWidget: Use Utils::Guard
Change-Id: I8f055b523f37c89e1f62ee7748aec445b9c82a8b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-21 13:29:28 +00:00
Marcus Tillmanns
556bc48839 fsengine: Fix toLower / compare test
Fixed test on windows

Change-Id: I1652af82499e6820eb9850a3d79d3d1c5bc18614
Reviewed-by: hjk <hjk@qt.io>
2022-07-21 13:28:07 +00:00
Marcus Tillmanns
3462bc67be filesystem: Add QFSEngine for filepaths
Change-Id: Ibd0c88c69863c0877138d8cc45541530c359bd9c
Reviewed-by: hjk <hjk@qt.io>
2022-07-21 13:14:01 +00:00
Marco Bubke
a5d44fb32b Sqlite: Generalize invalid id handling
An id is now always saved as a null value and a null value is always
converted to an invalid id if you are requesting an id. It prevents
accidental conversion of null values into a id with the value of zero.
It prevent too writing of the value -1 for an id. This has two
advantages. Sqlite can optimize null values if there are only null
values following in a row. And with strict tables it is forbidden to use
a null value as a key. So there can be no accidential invalid ids
anymore in the database.

Change-Id: I5ec813f2fe8e686324eab6dd632c03d5007e093d
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-07-21 12:41:16 +00:00
Marco Bubke
09b60ffec3 QmlDesigner: Add more tests for getting type
Task-number: QDS-7327
Change-Id: Ic99e007ef1b38582505b087c982c4d775aed5075
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-07-21 12:41:06 +00:00
Marco Bubke
38c55b409c Sqlite: Support enumerations as bind and conversion parameter
The enumerations are now implicitly converted to integers and the
ValueGetter now can bind to enumerations.

Change-Id: Ia3d32cb447c77caf9c32942b426dff4d511dea59
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-07-21 12:40:58 +00:00
Marco Bubke
93d0b5a1d3 Sqlite: Make the statement conversion operator id aware
Before you had to use an constructor which is has an integer as
parameter. Like

struct Foo
{
  Foo{long long id} : id{id} {}
  Foo{TypeId id} : id{id} {}

  TypeId id;
}

Now you can write:

struct Foo
{
  TypeId id;
}

With C++ 20 we can even remove more contructors.

Change-Id: I374505a037a71339b672f5f3a57b06dcf443b4bf
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-07-21 12:40:50 +00:00
Marco Bubke
fdcb02d5e2 Sqlite: Make bind id aware
The BasicId is moved to Sqlite so the bind can be aware of id.

Change-Id: Ia71a9c31645dab40b41958dcba0d918087b8879f
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-21 12:40:34 +00:00
Marco Bubke
40d8829dd4 QmlDesigner: Add type getter to project storage
Task-number: QDS-7327
Change-Id: Ifcd15fb7a9f3c457b9bd0ed1dce428bc7033f312
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-07-21 12:40:11 +00:00