summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* QmlDesigner: Remove superfluous codeqds/v3.1.0qds-3.1Thomas Hartmann2022-02-251-6/+0
| | | | | Change-Id: I0f2c746130b768844307798007fc1192e0dd2939 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Fix crashThomas Hartmann2022-02-251-0/+1
| | | | | | | | | | If the StudioWelcomePage is used, then SessionPage is not created and m_projectModel is initialized in the constructor of SessionPage. Task-numnber: QDS-6332 Change-Id: If64bfcb42bc2616d68456aa08bb4c03a4f9e15f1 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* StudioWelcom: Slight increase in margin in SplashScreenThomas Hartmann2022-02-251-1/+1
| | | | | | | Change-Id: I5ea3642134ea9ff76e9dc40cc0319933c26f9fc1 Reviewed-by: Brook Cronin <brook.cronin@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> (cherry picked from commit 44aba26a47aa922328f568c06e976b1b9bd49048)
* crashpad: disable calling crashpad_handler on arm64Tim Jenssen2022-02-241-0/+7
| | | | | | | | | | Currently, the none arm handler binary is hanging and needs further investigation. Maybe a complete universal build will fix this, and we can enable it again. Change-Id: I60b5623d8dda500a3be3efd095f91a9609600324 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
* CppEditor: Catch another project pointer access from a threadChristian Kandeler2022-02-247-10/+21
| | | | | | | | | | | Amends 33108795d6. Fixes: QTCREATORBUG-27044 Change-Id: I53d716355b0784841fd8d965c8af14fe321c33de Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* ProjectExplorer: Introduce device://<deviceid>/...hjk2022-02-241-0/+9
| | | | | | | | | | | | | | ... to identify a device in a file path. For use from the sdktool. This is an addition to the pre-existing way to identify devices using e.g. docker://<id> or ssh://<ip>/ Change-Id: Ice5481eab550b2fe39eda4c6d74d9c46fa6b6626 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* QmlDesigner: Fix imported meshes don't appear in a model's sourceMahmoud Badri2022-02-241-1/+1
| | | | | | | | Fixes: QDS-6329 Change-Id: Iec70492d8dfce4f8a0ce05cbd16991f70b9eb985 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* WinRt: enable plugin on Windows 11David Schulz2022-02-241-1/+1
| | | | | | Change-Id: Ie935b1baaa4331499143de4eb3fb9bd57b38c347 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* LanguageClient: track all created diagnostic marksDavid Schulz2022-02-243-20/+19
| | | | | | | | | | | | Removing a block results in taking marks of that line out of the document, but does not delete those marks. So we cannot rely on iterating over marks of a document to delete all marks for a specific file. Instead save all marks from text mark creator for a file path and iterate this list to delete diagnostic marks. Fixes: QTCREATORBUG-26585 Change-Id: Idc41fce5de4ade68f4a29c23ba02844701b44d3c Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* QmlDesigner: Fix path when importing a 3D model inside a componentMahmoud Badri2022-02-231-5/+3
| | | | | | | | Fixes: QDS-6319 Change-Id: Ia9dbdf9a2d32eaf996cca2ba84e89ca8111dab1c Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Android: don't stop deployment if the kit's ABIs list is emptyAssam Boudjelthia2022-02-231-1/+1
| | | | | | | | | | | If for some reason we cannot get the list of kit's ABIs or it's not set, don't stop the deployment because of that, let it continue and fail later. Fixes: QTCREATORBUG-27103 Change-Id: I973e5ffdca1e8fb6af3f6e6438969b38b8e375c8 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Android: Differentiate between same devices connected via usb and wifiAssam Boudjelthia2022-02-231-1/+9
| | | | | | | | | | | ADB allows connecting the same device via USB or WiFi, so we need to make sure the name of the wifi which appears as a different device, make sure it does mean something instead of "Name2" as proposed by default by QC. So this adds the term wifi to the name to make it clear. Change-Id: I5923ca2430c8b51ae2525744dcc1f803ab976b35 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* QmlDesigner: Fix crashThomas Hartmann2022-02-231-1/+2
| | | | | | | For some files rootFormEditorItem() can be null. Change-Id: I71672e4d43bfd086011f6a6cb3c93572f6ba0a05 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* QmlDesigner: Rename views for consistencyThomas Hartmann2022-02-231-1/+1
| | | | | | | | | "CurveEditor" -> "Curve Editor" Task-number: QDS-5852, QDS-6325 Change-Id: I709b54c338708f4387d0d1cb4b928d8eebbfb3be Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: hjk <hjk@qt.io>
* Fix more warningsChristian Kandeler2022-02-239-14/+9
| | | | | | | Found by compiling with clang Change-Id: Iec0ed8aa8b6a742a5a3996a6c19c410e209fb048 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Fix lupdate issuesEike Ziller2022-02-236-34/+74
| | | | | | | | | | | | When updating translations with cmake --build . --target ts_de (or other language ID) - Qualifying with unknown namespace/class ::PluginSpecPrivate - <class> lacks Q_OBJECT macro Change-Id: Ic42d8dffea935e6b10e59223bdedb9a8a4dcf446 Reviewed-by: hjk <hjk@qt.io>
* CMake project converter: Enable only if project is old formatTapani Mattila2022-02-232-2/+37
| | | | | | | | Task-number: QDS-6250 Change-Id: I41ca02ff76e53cb7470056b2f956b05d2027e773 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Optimize setResourcePath()Thomas Hartmann2022-02-232-0/+7
| | | | | | | Only update the resource path if it is actually different. Change-Id: Iaabe3129c9a094a6166a17cd9cba56c123221fba Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
* Fix newly introduced warningsChristian Kandeler2022-02-238-180/+12
| | | | | | Change-Id: I0b9cf3496d536e1173fbd6587e5b491305eb876c Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* QmlDesigner: Remove superfluous updateThomas Hartmann2022-02-231-2/+0
| | | | | Change-Id: I3bc4fc4b480e9cb895357580968c6568e7150cbb Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* LanguageClient: show snippets only completion proposals againDavid Schulz2022-02-231-1/+1
| | | | | | | | | | | | This reverts commit 5f1e6b15bf6d2af24ab4b5b500e6ba36a79600e7. We already prevent inserting snippets in some unwanted contexts in ClangdCompletionAssistProvider::createProcessor. Fixes: QTCREATORBUG-27051 Change-Id: I292d2816b366df6f0d0b070b7d732c199742fc7e Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* CrashPad: Remove the 1 crash per hour limitationMahmoud Badri2022-02-231-0/+1
| | | | | | | Change-Id: Ie7634012f15059fd204cb03e37afd3d63d7bfb29 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* ClangCodeModel: Fix more false output arguments with clangdChristian Kandeler2022-02-233-0/+15
| | | | | | | | | For some reason, we never checked the actual matching AST node for const-ness. Change-Id: Icb58ba169d82e1ec02c9ff8d17f0170f0a78f99d Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
* ClangCodeModel: Don't highlight streaming operator args as outputsChristian Kandeler2022-02-233-2/+20
| | | | | | | | | ... with clangd. As with operator++ etc, it's immediately obvious to a developer which arguments are modified. Change-Id: Ia2b15d5eef7848b7ed284f8d544f039fe2927292 Reviewed-by: David Schulz <david.schulz@qt.io>
* QmlDesigner: Clear assets search when adding assetsMahmoud Badri2022-02-231-0/+2
| | | | | | | | Fixes: QDS-6195 Change-Id: I80c078d3b182bfa76980191bd875d76cb5683854 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Nanotrace: Fix compile on LinuxChristian Stenger2022-02-231-0/+1
| | | | | | | When using older compilers with Qt5.15. Change-Id: Ib3d05efaa22b22af202fec8940f774af0029ca24 Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
* Update qlitehtml to latest masterChristian Stenger2022-02-231-0/+0
| | | | | | Change-Id: I22fe7e28a0d2ba4848585ec62e1ac3ec904aaff9 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Android: Fix crash on exitv7.0.0-beta2Alessandro Portale2022-02-231-3/+5
| | | | | | | | | m_adbDeviceWatcherProcess can be 0 if Android is not set up. Amends: c43ba1ae329937db62c4824311fe017b68b6033f Change-Id: I90aef197c098f279a6bd3adb0485df74b8be1961 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Monitor Android devices in non-polling methodAssam Boudjelthia2022-02-224-145/+212
| | | | | | | | | | | | | | | | | Use ADB's track-devices command to watch for device events which would replace the current polling method with a timer. For AVDs, a QFileSystemWatcher is used to watch for changes in the AVDs home folder which would allow updating the AVDs only when a change is done like edition, deletion, start, stop, even from outside Qt Creator. This method would also make device updates faster, instead of unexpected waits due to timer use. Task-number: QTCREATORBUG-23991 Change-Id: I08a92252c99c02bc111e597d671f2350817458c7 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* StudioWelcome: Download examples to home on macOSThomas Hartmann2022-02-221-2/+5
| | | | | | | Task-number: QDS-6305 Change-Id: I7e80ec6a8d5d79b75412fee975efaedd92e048d0 Reviewed-by: Henning Gründl <henning.gruendl@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* CMake project converter: Automatically open new project after creating itTapani Mattila2022-02-222-17/+34
| | | | | | | | Task-number: QDS-6249 Change-Id: I5ba1a396c7812a6aa736751fd0e7d7155d2de2d8 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Remove DesignerActionManagerView::instancePropertyChangedThomas Hartmann2022-02-222-8/+0
| | | | | | | | | This can be pontentially very expensive and the notifier should not be required. Change-Id: Idf1096fb69efb08196b192596353bf544783d23c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Track if QDS was opened from QtCThomas Hartmann2022-02-225-1/+14
| | | | | | Task-number: QDS-6315 Change-Id: I4109e9c98ff5c27b4096b1af32ae945aec10c123 Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
* Move dynamiclicensecheck.h to QmlDesignerThomas Hartmann2022-02-224-7/+7
| | | | | | | | Change-Id: Ic49a18a6ed164d3878e69d157edd83773c93959c Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* QmlDesigner: Center on item on initializeThomas Hartmann2022-02-221-0/+1
| | | | | | Change-Id: Ib68c2b1a651497f9092d390b1a5b3a59c85d21ce Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
* QmlDesigner: Do not mark document as dirty if zoom changesThomas Hartmann2022-02-221-1/+2
| | | | | | Change-Id: I85824f695a77d107dfa1f6c8d7d3a8dbeb6bae43 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
* QmlDesigner: Rename custom className property to classNamePrivateInternalThomas Hartmann2022-02-223-9/+21
| | | | | | | | | | This property is used for the class name, but "className" could be also used by the actual application. Task-number: QDS-6309 Change-Id: I752fafbcae434a8b2b96646e2473b6fedd93a160 Reviewed-by: Henning Gründl <henning.gruendl@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* McuSupport: refactor McuPackageChristiaan Janssen2022-02-2212-406/+408
| | | | | | | | | | | | | | rename 'type' to 'toolChainType' in McuToolChainPackage 'addToPath' and 'relativePath' set in McuPackage constructor put McuToolChainPackage methods together in same source file 'detectionPath' type changed from QString to FilePath renamed boolean getters Task-number: QTCREATORBUG-26897 Change-Id: If59c299901a169d08efa8f39614ef7c6d48d44ed Reviewed-by: Piotr Mućko <piotr.mucko@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* LanguageClient: send exit notification after failed shutdownDavid Schulz2022-02-221-6/+2
| | | | | | | | Despite receiving an error in the shutdown response continue to exit the server. Otherwise we end up with an unusable client. Change-Id: Iacff38699cb4e5bcc5610eba1654047bf7f8ce80 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* QmlDesigner: Introduce dependencies for importsThomas Hartmann2022-02-222-1/+27
| | | | | | | | | | | | QtQuick3D is added as a prefix dependency. This means that if any import, that starts with QtQuick3D is added we add QtQuick3D first. Task-number: QDS-6199 Change-Id: Ic105bf0fb53a7beaa80be69f99e6bc55edd140c1 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* LanguageClient: forcefully delete client after timeoutDavid Schulz2022-02-222-0/+9
| | | | | | | | | | If the client does not react within 20 seconds on the shutdown or exit message delete the client. Task-number: QTCREATORBUG-27064 Change-Id: I9680242e471989ea820c4e28d28c500c27a20bb7 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* LanguageClient: Do not assert on opening the same document twiceDavid Schulz2022-02-221-3/+1
| | | | | | | | | Just silently ignore a second open. This is now consistent with LanguageClientManager::openDocumentWithClient that also supports calling it multiple times with the same document client combination. Change-Id: I6e8eaf312805cd4e82070209b414d63433158360 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* QmlDesigner: Fix project path inside imported subcomponentMahmoud Badri2022-02-223-15/+13
| | | | | | | | | | | When user goes inside a Qml that is part of an imported component, project path is not accessible. This commit fixes it. Fixes: QDS-6201 Change-Id: I4efff48399e487b586b10383f19c2d6877714dc9 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Add preview of pure 3D component in form editorThomas Hartmann2022-02-226-3/+83
| | | | | | | | | | If the root node is a 3D node we show a preview similar to the state preview in the form editor. The size of the preview is hard coded as (640, 480). Change-Id: If7f96522b093c17422fa38102bffe11ede016063 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* ProjectExplorer: get clang cl version via windows apiDavid Schulz2022-02-221-0/+6
| | | | | | | | If it fails fall back to executing clang-cl --version. Change-Id: Ia344f6eceb1ad2117dc2f7dc7f91b79daa2235ce Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* McuSupport: move auto-kit-creation option to McuSupportOptionsChristiaan Janssen2022-02-228-49/+39
| | | | | | | | | It was part of McuPackage, and only used by the SDK instance. Task-number: QTCREATORBUG-27093 Change-Id: I9d9eaac621e9997129c227fae3ac88b502ba4340 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* LanguageClient: do not disconnect client from everything before deletionDavid Schulz2022-02-221-1/+1
| | | | | | | | Otherwise cleanup code connected to QObject::destoyed might not be executed. Change-Id: I12bf2b614cf0d216b2f2c0762cc153b4bb845e1f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* qds: make code reusableTim Jenssen2022-02-213-32/+73
| | | | | | | Change-Id: Ic11917f8a442a1ed15482a1ea492a7cef9f2a7ff Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Mercurial: Fix saving of settingshjk2022-02-212-2/+5
| | | | | | | | Fixes: QTCREATORBUG-27091 Change-Id: I59297993f19c60a9eaf67910638818ffd17b4ff8 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* QmlDesigner: Add new workspacesThomas Hartmann2022-02-211-1/+1
| | | | | | Task-number: QDS-6234 Change-Id: I839459c18fd0937615d97c7b74584e97300b430b Reviewed-by: Henning Gründl <henning.gruendl@qt.io>