Commit Graph

75521 Commits

Author SHA1 Message Date
Piotr Mućko
6a8a6d937c McuSupport: Create freeRTOS package from JSON
Adjust test JSONs.
Write unit tests.
Adjust existing package creation to support freeRTOS package.

Example JSON:
"freeRTOS": {
    "cmakeVar": "FREERTOS_DIR",
    "defaultValue": "$QUL_BOARD_SDK_DIR/rtos/freertos/freertos_kernel",
    "envVar": "IMXRT1064_FREERTOS_DIR",
    "id": "NXP_FREERTOS_DIR",
    "label": "FreeRTOS SDK for MIMXRT1064-EVK",
    "optional": false,
    "setting": "FreeRTOSSourcePackage_IMXRT1064",
    "type": "path"
}

Change-Id: I25ca9f732cd3a54eebb23b73b7950e11976c0f68
Reviewed-by: Dawid Śliwa <dawid.sliwa@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-08-25 07:51:52 +00:00
Marcus Tillmanns
b2b6577d5c Lldb: Use qtHookData to retrieve Qt version
Adds caching of Qt version information.

In case that qVersion() can not be found, use qtHookData[2] to retrieve
the Qt Library version number.

In case that also fails, we now use self.fallbackQtVersion instead
of just returning 0x50200.

Previously debugging apps in the iOS Simulator would fail to correctly
detect the Qt Version, as qVersion might be optimized out, especially
for very simple applications.

Change-Id: I9183c1e9793bd899f296a231c693cd5bc146ab96
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-08-25 06:24:15 +00:00
Thomas Hartmann
1bfd078071 QmlDesigner: Fix crash
Tracking the target with a QPointer in case the target gets deleted.

Change-Id: I9cca4a5017b7fc77941fd46653847a00363c060e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-08-24 19:31:21 +00:00
Thomas Hartmann
ae872359d0 QmlDesigner: Render state previews for StateGroup
Render previews for all state groups in the document.

Change-Id: I89d9c43a53eb3d9844b863278395fd9098a07772
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-08-24 17:58:23 +00:00
Thomas Hartmann
8e65e2815c QmlDesigner: Add NodeInstanceServer::allGroupStateInstances()
Change-Id: I26b20976746c3790d679a63db209fb535eb58382
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-08-24 17:58:08 +00:00
Thomas Hartmann
80922268ab QmlDesigner: Implement ObjectNodeInstance::stateInstances() for StateGroup
Change-Id: Ia6e239530d399da34ab63253762e3ebd2a79f4db
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-08-24 17:57:55 +00:00
Thomas Hartmann
f3e9fbd748 QmlDesigner: Do not set state property on QQuickStateGroup
The state is determined by the state view.

Change-Id: I3b76b25c618d4f860f13d2e005d88d93a660fbc0
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-08-24 17:57:18 +00:00
Thomas Hartmann
0e23845618 QmlDesigner: Always skip when condition
There is no reason to set the when condition ever.

Change-Id: I4c6b5ca04cdb7ba62f833225c6878da83a02abaf
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-08-24 17:57:03 +00:00
Alessandro Portale
9cb21d2879 tracing/Qbs: Turn crash in tst_flamegraphview into a failure
Don't crash if qml scene instantiation fails (e.g. when built with Qt 6
and Qbs). Just fail the test.

Change-Id: I444a6a68382c5acc9ca9faf9ce7c489a87fa5c98
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-08-24 15:51:50 +00:00
Piotr Mućko
ae69073fc1 McuSupport: Add override keyword to McuPackage::setPath()
Change-Id: Ib982d9e9da4dd6e9ae0d5f87ae29d884c556ebbb
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-08-24 15:26:51 +00:00
Yasser Grimes
cd36947561 McuSupport: Handle projects with "-" in their name
Using "-" in a McuSupport project's name will result in errors. This
commit fixes that by changing the occurrences of "-" with "_" in the
templates used for generating the project.

Task-number: QTCREATORBUG-26512
Change-Id: I7e65e3992bf1fa139d008ff5c2221a1098c12b92
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Piotr Mućko <piotr.mucko@qt.io>
2022-08-24 15:26:07 +00:00
Artem Sokolovskii
2d375eb776 ClangFormat: Move override checkbox to global settings
Moved override checkbox to global settings groupbox.

Change-Id: I70c97486a61f69274d059edc5095fe02c86fb04d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-08-24 15:11:40 +00:00
Eike Ziller
d3354d1999 Optionally show locator popup centered
when using the menu item or shortcut.
Turn on with "Open as Centered Popup" in the "filter" menu in
the locator input field. Default is off.

Change-Id: Ic1e0d2188aba924d25fe5b6f0048ae8c3adf1aa8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-08-24 12:40:16 +00:00
Thomas Hartmann
83e1e4c2d6 QmlDesigner: Ignore properties when making document as modified
Change-Id: I659fc3e035c4b98500e700779e4e2a2627a18eb2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-08-24 08:28:43 +00:00
David Schulz
60f5275edf Client: rerequest document highlight if server is unreachable
Makes sure the highlight is properly updated and prevents assert in
Client::sendMessage.

Change-Id: Ie7ad54c34272867e17f6e20654f27e2fd8711fdc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-08-24 07:53:21 +00:00
David Schulz
09f0ddb50c CppEditor: fix crash in outline
Make sure the document lives as long as the generated symbol items.

Fixes: QTCREATORBUG-28091
Change-Id: I515748ab7fd198699434ac5c19585afa20df613d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-08-24 07:04:00 +00:00
Marcus Tillmanns
8b143be86c Debugger: Adds boost 1.79 dumpers
Change-Id: I2111b91fe8914afdde54edd6009691dfe32e64a4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-08-24 06:56:08 +00:00
Eike Ziller
c0a0daf588 Environment: Add convenience wrappers similar to qEnvironmentVariable*
Adds corresponding wrappers that work on
Environment::systemEnvironment(), which can be different to the
environment that Qt Creator currently runs in, depending on the settings
in Preferences > Environment > System > Environment.

Change-Id: Ib1db37d2828b686d9a3233d170612beea9d12946
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-08-24 06:46:29 +00:00
Christian Stenger
26e5e74561 QmlJS: Fix compile
Amends 8310a2f0a9.

Change-Id: I062a377c9d6f1993f23c5b7e56cca93ad6c3eac5
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-08-24 05:00:26 +00:00
Christian Stenger
79949d9ae8 Tests: Adapt QVariant dumper test
Disable QVariant holding a typedef'ed QMap for
now (insignificant).
Adapt expectations for QVariant holding a QList.

Change-Id: I188e01b2d53d17057207db06e9e848a5bfb3adb2
Reviewed-by: hjk <hjk@qt.io>
2022-08-24 04:54:50 +00:00
Thomas Hartmann
83ce87a625 StudioWelcome: Fix QTC_ASSERT
Deleting QtcProcess instance directly from
one of its signal handlers will lead to crash.

Change-Id: Ida231f29dc6a717dfe4971da9743b1fb9b225495
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-08-23 17:21:45 +00:00
Thomas Hartmann
daabcbbf73 QmlDesigner: Fix crash
isBlocked seems to be called in rare cases if the model is null.

Change-Id: Ie8fa6007a0891f4204c35600084025ca52f079e9
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-08-23 17:21:30 +00:00
Tim Jenssen
8310a2f0a9 qmljs: reduce used threads
Change-Id: I8f27037d0cfefd65f1ac060e1505328ea705a670
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-08-23 17:20:14 +00:00
hjk
20400b263e ProjectExplorer: Code cosmetics
Namespaces, white space in jsonwizard.

Change-Id: I92f724d170380cb27f478a7e43d2ea9e6b35c03b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-08-23 15:19:08 +00:00
Christian Stenger
275f2a3db8 Tests: Do not use config mode when searching for Eigen3
Change-Id: I144481821267b80404473d821ac1048ff3adeac3
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-08-23 13:54:07 +00:00
Christian Kandeler
ca00b874a7 CPlusPlus: Support structured bindings
While we do recommend clangd for modern code bases, we should still be
able to parse basic language constructs.

Fixes: QTCREATORBUG-27975
Change-Id: I189b991685a5cd5f62f2afce77878b60c895e8f9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2022-08-23 13:52:11 +00:00
Cristian Adam
9102452272 clangd: Use QtC system environment for environment variables
Users would set QTC_CLANGD_COMPLETION_RESULTS in the Qt Creator
system environment variable dialog and expect that clangd would
the be configured with the corresponding --limit-results value.

Task-number: QTCREATORBUG-28071
Change-Id: Ia7a9b6a96fabe7ba16906c547a15716f0b83f0ec
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-08-23 13:41:11 +00:00
Marcus Tillmanns
5fab54d95a SSH Device: Add SSH port to Device wizard
Change-Id: Ia4cc3b7bb0074930f32d58393651f6c961c69b28
Reviewed-by: hjk <hjk@qt.io>
2022-08-23 10:55:37 +00:00
Marcus Tillmanns
42e1714ea1 debugger: Fix dumper for std::string and unordered_multiset
Moves mac specific dumpers to separate file
Creates android dumpers for stdtypes

Change-Id: I33d28198e1a2f24fb7707313845db81e283686cd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2022-08-23 10:49:43 +00:00
Thomas Hartmann
6a3933c87a StudioWelcome: Fix QTC_ASSERT
Deleting QtcProcess instance directly from
one of its signal handlers will lead to crash!

I cannot confirm this crash actually happened, but we should play save
and delete the archive from the event loop.

Change-Id: Ie27291c9ac8b300478ed8396d25a76b343f238be
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-08-23 10:35:10 +00:00
Marco Bubke
84c1d6572b Utils: Remove variant.h
Since we are now requiring macOS 10.14 we can remove our local copy of
std::variant and use for macOS std::variant too.

Change-Id: I589d03b35fc56878b7392ffa7047a439e588fe43
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-08-23 09:51:43 +00:00
Artem Sokolovskii
17693bc415 ClangFormat: Fix list declaration
Fixed list declaration indentation.
Fixed function declaration with parameters on the new line.
Added tests for both cases.

Fixes: QTCREATORBUG-25011
Change-Id: Ida4f6ec4f407c5e5b015dc2c0afff110262d9645
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-08-23 09:07:59 +00:00
Christian Kandeler
5817bdf87d CppEditor: Consider selection when requesting quickfixes
If the user has a token selected, prefer that to the actual cursor
position.

Fixes: QTCREATORBUG-27886
Change-Id: Ib32e24676510bff42292fe23e4962720fcbac4ed
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-08-23 08:37:07 +00:00
Thomas Hartmann
4bfdf9fc46 QmlDesigner: Do not assume that the active state group is the root node
Change-Id: Ifd315a7e1d8c833f612e305127911634174a8e5b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-08-23 08:01:07 +00:00
Thomas Hartmann
1fa2af4c87 QmlDesigner: use stateGroup() instead of hard coding the root node
Change-Id: I502c51f252fb8584c36a2bbd31faa7a130d19f5e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-08-23 08:00:59 +00:00
Thomas Hartmann
3682ff76d2 QmlDesigner: Do not require visual node for states
StateGroup is no visual node.

Change-Id: Ia0ff297efe2b73f42eb24e193d8e832250d77237
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-08-23 08:00:51 +00:00
Thomas Hartmann
179713ed5c QmlDesigner: Use QmlObjectNode instead of QmlVisualNode
StateGroups are no visual items.

Change-Id: Ia081c303aea6c79c750b44388a81f4b10cc1837d
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-08-23 08:00:35 +00:00
Thomas Hartmann
f4c6bf0179 QmlDesigner: Move QmlVisualNode::states to QmlObjectNode
This is required for StateGroup support.

Change-Id: I25d8f94c2a0fa9140ce8af3032bc92a7b858b9d8
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-08-23 08:00:28 +00:00
Leena Miettinen
bddac59a95 Doc: Fix arguments to start debugging Qt Quick applications
A dash was missing.

Fixes: QTCREATORBUG-28093
Change-Id: Ic7fbf8fda8d23fdc1eabf98b53240824a24aacc5
Reviewed-by: hjk <hjk@qt.io>
2022-08-23 07:14:22 +00:00
Leena Miettinen
cd87abf3fa Doc: Add commas and fix style issues
Change-Id: I10d1e11c5981704b5ae5e7690f3df036af9873b3
Reviewed-by: hjk <hjk@qt.io>
2022-08-23 07:14:08 +00:00
Christian Stenger
635865dac4 QmlDesigner: Fix compile
Change-Id: Iab57aa9b78c73773ccdb66490ff2536b2a5465fd
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-08-23 06:27:46 +00:00
Christian Stenger
13a9f6663b ResourceEditor: Fix include and Qbs build
Amends bc19a26c06.

Change-Id: I1c370c982cbb9e4b5aa7887043d097b1cce76d5e
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-08-23 05:09:35 +00:00
Alessandro Portale
d0f134aa49 Help: inline .ui files
bookmarkdialog.ui
topicchooser.ui

Change-Id: Ic5c36db648a56546ecf12ce2cb31a593732e7990
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-08-22 19:49:58 +00:00
David Schulz
95a278760a Doc: update remote CDB setup instructions
Mention the dependencies of the cdbextension and instruct to copy the
full folder instead of just the dll.

Fixes: QTCREATORBUG-27914
Change-Id: If14d331af66437bc8723fc16fc72354cccd4e0d6
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-08-22 18:13:48 +00:00
Piotr Mućko
fe9de4e205 McuSupport: Evaluate cmake variables in paths
Change-Id: I04dd77bd5420e57903afe281e6e2601782795909
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-08-22 17:36:18 +00:00
Piotr Mućko
e31016ccc3 McuSupport: Move global toolchain type mapping to function
Change-Id: Ibe11c574d3427fa7f38f1e4df30400ec3d11294b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-08-22 17:35:59 +00:00
hjk
bc19a26c06 ResourceEditor: Convert to using Tr::tr
Change-Id: Ia9a04dc76bf84e9e9078894be3459fe65fcd5fff
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-08-22 16:05:33 +00:00
Alessandro Portale
708df011b4 ResourceEditor: inline qrceditor.ui
Change-Id: Ie8ec4a7c333287c1ad6e94691ca2d988547d419c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-08-22 14:33:35 +00:00
Knud Dollereder
aea64ca1fa Add zoom slider to the curve editors toolbar
Removed the "Set Default" button from the toolbar since
it does the same as the "linear interpolation" button
and space is rare in the toolbar.

Fixes: QDS-6951
Change-Id: Ifdbf20af2e5365e9bf9b592783b872394cabb7eb
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2022-08-22 14:31:08 +00:00
Marcus Tillmanns
62bb8b9686 CppEditorOutline: Fix warning
Change-Id: I7b3d212fb2b8c8a2b9f6af9a5445ac48e6e51b9c
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-08-22 13:52:23 +00:00