Commit Graph

80147 Commits

Author SHA1 Message Date
Miikka Heikkinen
9a72485ec8 QmlDesigner: Remove currently open component from creatable components
Fixes: QDS-8890
Change-Id: I51819beefb6983f58f472953f28a14e38f045130
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-01-27 15:05:56 +00:00
Eike Ziller
3724520499 Merge remote-tracking branch 'origin/master' into 10.0
Change-Id: I4dd2149e046d33b65e6d9c3497d0153f81fd3f31
2023-01-27 15:41:54 +01:00
Jarek Kobus
0f19fd6d0d TaskTree: Add tests for proper continuation unwinding
Change-Id: I79a077277328033b99fab6b2503621f3209c63be
Reviewed-by: hjk <hjk@qt.io>
2023-01-27 14:15:25 +00:00
Jarek Kobus
5bcb24cb71 TaskTree: Fix continuation when synchronous stop appeared
It may potentially crash when continuation unwinds on
synchronous stop. It's a similar fix to
567216bb49, this time it
fixes the continuation when not directly coming from
TaskTree::start().

The follow up commit adds a test for crashing case.

Change-Id: Idd936e42b567ff4bddab717267c62f0104bf3b62
Reviewed-by: hjk <hjk@qt.io>
2023-01-27 14:15:20 +00:00
Jarek Kobus
6b11e1d572 TaskTree: Revamp tests
Get rid of std::bind.

Enclose each data tag of processTree inside its own block,
so that "root" and "log" names are unique within each block.
This makes each block look like a pattern with filled data up.

Introduce TestData structure, so that it's harder now to mix
the order of test data in new rows.

Introduce some enums instead of bools to make more meaning
on the returned data.

Change-Id: Iffe49cf1c7f912378467ab9f9c1256003dba7b9c
Reviewed-by: hjk <hjk@qt.io>
2023-01-27 14:15:14 +00:00
Henning Gruendl
a7a4cbfe25 QmlDesigner: Fix TopLevelComboBox hover
Change-Id: I3531e010d9a13b11d2b93d1aa8f019307919268d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-27 13:52:36 +00:00
hjk
55dd933066 Haskell: Import from superrepo
Change-Id: I83c6c817c78ccbf1aee65847777f2652e19275a5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-01-27 13:30:26 +00:00
David Schulz
3a62e6d7f2 ClangTools: reduce priority of clangtool processes
Fixes: QTCREATORBUG-28719
Change-Id: I93e1db6e2494068a61fd0a877a0ef42aa0b11ae9
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-01-27 13:25:06 +00:00
Jarek Kobus
62e0b4052f Remove unneeded includes of utils/runextensions.h
BTW, spotted some other unused includes marked with yellow.

Change-Id: I364e4b6fae73a2be2cfd3a63c1100be4a91aa49a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-01-27 13:16:44 +00:00
Thomas Hartmann
c615f456df QmlDesigner: Fix FilterComboBox
The import for Controls shadowed the type of the local ComboBox.
Therefore ComboBox.ActivatedReason.Other
became undefined and this call was never executed:

onTriggered: control.compressedActivated(myTimer.activatedIndex,ComboBox.ActivatedReason.Other)

Task-number: QDS-8948
Change-Id: I8140f8e2905588687d9879a0828b28ba212c02d2
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-01-27 12:45:31 +00:00
Christian Kandeler
97976fd3cb ProjectExplorer: Refactor BuildSystem::extraCompilerForSource
Factor out backend into more generic function to easily support new
accessors.
No functional changes.

Change-Id: I715ce2842d2c63574bdf6ada0d0e32fbfd5d08fb
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-27 12:42:23 +00:00
Thomas Hartmann
94857925ab QmlDesigner: Slicence QTC_ASSERT
The selection can be empty.

Change-Id: I06856a58200893e841f99e95a02fa45acfc38332
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-27 12:40:14 +00:00
Jarek Kobus
49f3b8efd7 ITestConfiguration: Introduce testExecutable() helper
Reuse it in TestRunner.

Change-Id: I59ffd256a7e84f0d0726261496d73bc4f622d666
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-27 12:37:54 +00:00
hjk
040ef3b7d3 Docker: Use a optional<Environment> to handle the non-fetched state
Change-Id: I93ef9da6c9c7731b28f9d6fab6413ce9c4f428b4
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-01-27 12:37:51 +00:00
hjk
dab859e776 Utils: Replace Environment.isValid() with .hasChanges()
That's closer to the intended semantics. The "other" use in docker
will be changed to an optional<Environment> as follow-up to
keep this here mechanical.

Change-Id: I43ef9da6c9c7731b28f9d6fab6413ce9c4f428b4
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-27 12:37:35 +00:00
Thomas Hartmann
39434062a2 Add option to hide tools
This allows hiding the tools menu by default.
Power users can enable it again.

Change-Id: I5465f0c525bb5b4954e13cb42a941ac8b6b7cf37
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-27 12:34:29 +00:00
hjk
930cbdf68b RemoteLinux: Merge abstractremotelinuxdeploy{step,service} file pairs
Plan is to merge the class hierarchies, this is a mechanical first step.

Change-Id: I163578297a4badb5b8c861283f0d6a44c25f124f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-27 12:30:20 +00:00
hjk
a938a82ca8 Boot2Qt: Use standard pattern for Qt version factory setup
Change-Id: I9fa8f0b38368e10ae73d068418f4bd95fc6e838a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-27 11:47:46 +00:00
Henning Gruendl
87d3056a15 QmlDesigner: Update icon font
Change-Id: Ic3b418bd1f17c0283cc9d12a8c7fee21c72c9d61
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-27 11:44:27 +00:00
Henning Gruendl
8d13ce53cd QmlDesigner: Change height of tool and status bar
Change-Id: Ife7539772bdee5d63f7d85f65f659d67f8319e4c
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-27 11:44:22 +00:00
Christian Stenger
c22b4b35e1 SquishTests: Redo open document from navigation view
For unknown reasons this does no more work on a couple of machines.
Re-doing the original approach by explicitly expanding the tree as
necessary up to the file we want to open.

Change-Id: I329e18f3e2162e381e11fb6164a448ae67def606
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-27 11:33:12 +00:00
hjk
5f359a1dff Utils: Start Environment/EnvironmentChange consolidation
The plan is now to keep 'Environment' as the concept name, but
have what is currently 'EnvironmentChange' as implementation,
as keeping a full env vs env change(set) distiction gets messy.

First step is to cut the direct dependency of EnvironmentChange
from a (current) Environment that causes circularity when moving
the implementation.

Change-Id: Id8b512b311071611b750b27af59549ce7c2ce8e6
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-27 11:24:36 +00:00
Christian Stenger
bc87abec32 Update perfparser submodule
Change-Id: Ie2621847321c64d5d489e9e1ad8b7a8015eac02c
Reviewed-by: hjk <hjk@qt.io>
2023-01-27 11:20:54 +00:00
Marcus Tillmanns
598ffc3b1c Utils: Fake root info
When trying to open a FileDialog all roots were tested for existence.
This is slow and might show ask-pass.

Since "/" can be considered always valid, we create a fake entry for it
and only test existence of remote paths if they are not a root path.

In the future FilePath should get a "isRoot()" function so we don't just
test for == "/".

Remove the fileAccess from WebAssembly devices.

Change-Id: I7a1a6e7d2025e9fd4428e4bd1d07cdbdb5680c8e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-01-27 11:13:58 +00:00
Christian Kandeler
d36ecb23df Update qbs submodule to HEAD of 1.24 branch
Change-Id: I5c6a67335460bdc8b45e3808ddff22d91cfe3671
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-27 10:52:59 +00:00
Jarek Kobus
565c56cd4a TaskProgress: Make is possible to set id for associated future progress
Change-Id: I9e3e2038289a3e2f38030deb3e63dd69babb69ce
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-01-27 10:35:06 +00:00
Jarek Kobus
ef065b8807 TaskProgress: Add setAutoStopOnCancel() property
By default it's true. When turned off task progress just
emits canceled() signal and leaves the further handling to the user.

Change-Id: Ice4456ac5ead5ca45712d1eb2c988302b273760c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-01-27 10:34:57 +00:00
Marco Bubke
9429f710da QmlDesigner: Fix missing validation
Fixes: QTCREATORBUG-28672
Change-Id: Ic8663d6c44cadbf3678ae564ec91572998d6d236
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>
(cherry picked from commit 571d822c7b)
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-01-27 10:34:24 +00:00
Christian Kandeler
0d909c353c Designer: Update C++ code model on an object name change in designer
We try to locate the old symbol name in the generated ui header and
rename the symbol in the background.

Task-number: QTCREATORBUG-1179
Change-Id: Iaf68e3922cd728cbc87d0dc97125e34b8bdaa6be
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-27 10:02:52 +00:00
Jarek Kobus
b4b2600715 TestOutputReader: Don't store test process
Test process may be deleted when reader is still alive.

Change-Id: I534d5bcebc6040305c4d937174db9444f6633df8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-27 09:52:20 +00:00
Jarek Kobus
51fed728e1 TestOutputReader: Report results directly through a signal
Instead of using future interface. The advantage is that
signal is delivered synchronously now, in contrary to when
future interface was used - it was queued into main event
loop.

Change-Id: Ic3d521c324c56b249515713c39bd09b9a924b6d3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-27 09:52:09 +00:00
Jarek Kobus
bc3ebef7ce AutoTest: Use using namespace Utils more often
Change-Id: I9d20cd3496c4719d58a977f8fd53253c86d55463
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-27 09:51:55 +00:00
Jarek Kobus
d05c5b7d07 AutoTest: Use TestResult as value type
Don't construct it on heap and don't use shared pointer for it.

Change-Id: I51c9da405ed14d24b5f20242b4d049f9e2958f09
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-27 09:51:34 +00:00
hjk
3ff5661327 Move some FileSystemWatcher usages to FilePath
Change-Id: I72d24ae3f819e429009b0d7e42b21957f07cb00a
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-01-27 08:18:49 +00:00
David Schulz
471e67d1a6 Python: collect pip package info in another thread
Change-Id: I70a9066fddf812ce9bde5467913bb2bad98e2d0e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-27 06:27:35 +00:00
Thomas Hartmann
9dbd89af7f QmlDesigner: Set object name to suppress warning
Without object name we get a warning when saving settings.

Change-Id: Iae6fac8fdd172ee205fd6397faa7a9ec3fa0a57f
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-01-26 19:17:35 +00:00
Marco Bubke
d593a5ea9b QmlDesigner: Add midSize image to cache
There is now a mid size image in the image cache. It's logical size is
150x150, so it is 300x300 for HighDPI.

Task-number: QDS-8918
Change-Id: I6586b2e82b9e74737f46b67c441201ad4964fca0
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-01-26 17:27:32 +00:00
Łukasz Wojniłowicz
b05a34b81e Debugger: Don't try to iterate on non-existent subprinters
gobject_gdb.py puts the pretty_printer_lookup function into
gdb.pretty_printers. Trying to access subprinters of it causes the
AttributeError exception.

Change-Id: I00ce7b62866dd9c06a1f0abef0c7043ece023d34
Reviewed-by: hjk <hjk@qt.io>
2023-01-26 17:09:11 +00:00
Samuel Ghinet
aa8b011add QmlDesigner refactor: Extract FileDownloader and FileExtractor
The classes are currently in examples, but we need them in other places
as well

Task-number: QDS-8664
Change-Id: I9121a92d44bf5e2575a75a15eeaa4443a74b0a26
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-26 16:12:42 +00:00
Thomas Hartmann
236ab7e528 QmlDesigner: Use CONSTANT instead of FINAL
Change-Id: Ieb6a7d139d3e2f23ef53292c37ea7b6988a737bd
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-01-26 16:06:15 +00:00
Henning Gruendl
910a09cdf3 QmlDesigner: Fix TypeError in StudioControls
Fix TypeError in StudioControls MenuItem. Cannot read property 'width'
of null.

Change-Id: I12eb2d781874f80837e1122692e540188bcd2658
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-26 16:06:09 +00:00
Thomas Hartmann
c5cc5fe138 QmlDesigner: Silence QTC_ASSERT
This case is expected during startup.

Change-Id: I3e52b77b990833cb769bc02acaf742516d57d19a
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-01-26 15:59:05 +00:00
Jarek Kobus
585a4ad92a QnxDeployQtLibrariesDialog: Add more processes into task tree
Change-Id: I5596dc4245ca87f10e662e99351a6fca264fa11a
Reviewed-by: hjk <hjk@qt.io>
2023-01-26 15:21:52 +00:00
hjk
ab4f8b049e Qnx: Split out QNX Qt upload service test
The previous direct use of a GenericDirectUploadService outside of
deploy steps is unique in the code base and prevents collapsing the
otherwise parallel AbstractRemoteLinuxDeployService and
AbstractRemoteLinuxDeployStep hierarchies into one.

Change-Id: Ic31445f28768440b16902b51b22782102133cfca
Reviewed-by: hjk <hjk@qt.io>
2023-01-26 15:17:48 +00:00
Miikka Heikkinen
52181f0208 QmlDesigner: Add designer specifics for QtQuick3D.SpatialAudio
Despite SpatialAudio being a submodule of QtQuick3D, it is actually
implemented in qtmultimedia repository. The designer specifics for
QtMultimedia types are implemented in creator repository, so same was
done for SpatialAudio types.

Fixes: QDS-8530
Change-Id: I5a06125fa0b6910c17ca9838a35ff9c01a723056
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-01-26 15:17:19 +00:00
Alessandro Portale
f46af497e1 Translations: Prefix translation contexts for libraries with "::"
Change-Id: I0631ad6fdc9f341a162d879e54ff09fbdb74398e
Reviewed-by: hjk <hjk@qt.io>
2023-01-26 14:51:03 +00:00
Ali Kianian
757a6f2e12 QmlDesigner: Handle QmlEditorMenu in Manhattan style
* QmlEditorMenu is handled in Manhattan style.
* Icons are available for cascading menu items in macOS.
* Shortkeys hints are handled and right aligned in the menu.
* The style is customized  QmlEditorMenu.

Task-number: QDS-8720
Change-Id: Iff5ebae0dce70dade5b48a1abe4232e70d6953d6
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-26 14:33:07 +00:00
Vikas Pachdha
445e8d6dd2 Designer: Add predicate to check id collisions
Task-number: QDS-8944
Change-Id: Icaff4768fbc4bd37223bccce72e40234752c5db0
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-26 14:32:28 +00:00
Christian Stenger
cf50f3034e Squish: Use new approach for recorder
Change-Id: I9fe897b0f38f418135b39904ea16737a60248b25
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-26 14:30:27 +00:00
Christian Stenger
026d04d280 Squish: Extract common message handling
Change-Id: I078046e52fa2e3580bfa978ebe74303fb02f1513
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-26 14:30:17 +00:00