aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge remote-tracking branch 'origin/13.0'Eike Ziller2024-04-221-1/+2
|\| | | | | | | | | | | | | | | Conflicts: doc/qtcreator/src/qtquick/qtquick-live-preview-devices.qdoc src/plugins/projectexplorer/projectexplorer.cpp Change-Id: I682b330a278a329fc6294baeff6a28040abd10bc
| * ProjectExplorer: Fix copy/paste error in settings keyChristian Kandeler2024-04-171-1/+1
| | | | | | | | | | | | | | | | Amends e1b3c3e35762df83e68b02c657ef69289cf72224. Fixes: QTCREATORBUG-30696 Change-Id: Ifc0625c5ba7dadb59dfcf8af58bc190f25955746 Reviewed-by: hjk <hjk@qt.io>
* | Update recent projects asynchronouslyEike Ziller2024-04-183-36/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid blocking Qt Creator whenever it gets active or projects change, if some kind of network mapped path is in the list of recent projects. We check for existence of recent projects, and that can take a long time in that case, especially if the target is not connected. We already avoid checking on explicit IDevices, but that doesn't help for other kinds of mounted directories. Maintain an "exists" state for each item and update that asynchronously, informing all interested parties of changes with the recentProjectsChanged signal. The state is saved in the settings, meaning that projects that were not found previously start out hidden, under the assumption that the existence check is fast for them if they become available again. Fixes: QTCREATORBUG-30681 Change-Id: Ic39a88b6b5128c3ae4582a6c66fc16be4b297e56 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Tr: Some "JSON" fixesEike Ziller2024-04-181-2/+2
| | | | | | | | | | | | Change-Id: I20dd41a4a979fa35fe8696b00586096ca5c33d4b Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Translations: Fix various \n, full stops, spacesEike Ziller2024-04-182-24/+37
| | | | | | | | | | | | | | | | Add missing full stops, remove space at beginning and end, remove end lines at end Change-Id: I4ce28f578e13e100dcfbd8ef70630462faf407fc Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* | Merge remote-tracking branch 'origin/13.0'Eike Ziller2024-04-174-10/+23
|\| | | | | | | Change-Id: I0892d8e54930bb5a65dc51117b8ca7d70ce300a3
| * iOS Simulator: Fix crash when starting app while another is runningEike Ziller2024-04-161-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Qt Creator would crash when starting an app in the Simulator while another app is running, and the old app is not killed by the deployment before run. This could happen in two cases: 1. Running an app in one simulator device and starting that or another app on a different simulator device 2. Running an app in the simulator and starting that or another app on the same device without deployment In the first case, it actually doesn't make sense to stop the running app, the Simulator can run multiple devices simultaneously (this might have been different in the past). In the second case, the new IosRunner initiated a stop of the old RunConfig, and while that was in Stopping state, the app output window tried to re-use the old tab and deleted the old RunConfig. This lead to an assert in the RunConfigPrivate destructor, which only expects to be deleted when in Initialized or Stopped state, and eventually to the crash. The app output window should not reuse tabs that are not "Stopped". Fixes: QTCREATORBUG-30666 Change-Id: If46904dd487301e465e89ce7946be375ab4bdee8 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
| * PE: Allow configuration of default build dir via env variableCristian Adam2024-04-153-2/+15
| | | | | | | | | | | | | | | | | | This variable is QTC_DEFAULT_BUILD_DIRECTORY_TEMPLATE and can be set in a <project>.shared file, or in the system. Task-number: QTCREATORBUG-30557 Change-Id: Ife221b7cfe88f9a6015bd5fb61270d335f65cb79 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Merge remote-tracking branch 'origin/13.0'Eike Ziller2024-04-151-2/+2
|\| | | | | | | | | | | | | Conflicts: src/plugins/remotelinux/linuxdevice.cpp Change-Id: Iad28a1bfa4632922931d351d2fe27757cf21dec3
| * ProjectExplorer: Fix device display name value acceptorChristian Kandeler2024-04-091-2/+2
| | | | | | | | | | | | | | Fixes: QTCREATORBUG-30622 Change-Id: Idac04c9823f5e1136102be3a2ad810a6f782c0fd Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* | ProjectExplorer: De-QObject-ify ExtraCompilerFactoryhjk2024-04-122-6/+4
| | | | | | | | | | | | | | | | The QObject related features are not used any more and are not meant to be used again. Change-Id: I03ee7929e40c3cd9fd50af020dc4d38280c205d8 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | LanguageClient: Fix pre-selection of rename resultsChristian Kandeler2024-04-122-8/+23
| | | | | | | | | | | | | | | | ... for the case of aliased file paths. Task-number: QTCREATORBUG-30546 Change-Id: I2cce03529c45193c20bd3508e4dcb3dc051856fa Reviewed-by: David Schulz <david.schulz@qt.io>
* | ProjectExplorer: Make settings access more directhjk2024-04-1213-266/+310
| | | | | | | | | | | | | | A step towards aspectification. Change-Id: Iabf5e56e993449dc482d1d2ab6eeb2885243ab3e Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Use SSH port forwarding for debuggingBogDan Vatra2024-04-113-1/+12
| | | | | | | | | | | | | | | | | | This feature is needed to enable debugging on remote targes which can not expose gdbserver ports on the wild, and we must use ssh tunneling for that job. Change-Id: I6df712fd3b40790e89c79a7617a24430fde6805a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | CppEditor: Make renameIncludes() also work for moved filesChristian Kandeler2024-04-091-0/+4
| | | | | | | | | | | | | | | | Task-number: QTCREATORBUG-26545 Change-Id: I0bfe203af8f091562cdd91411dbe502fc5a76956 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* | ProjectExplorer: Always return a build folderMarcus Tillmanns2024-04-091-9/+1
| | | | | | | | | | | | | | The error handling is done elsewhere. Change-Id: Ie5fa937faf6447458117d355f1c6044c2f2d88ac Reviewed-by: hjk <hjk@qt.io>
* | ProjectExplorer: Export summary pageMarcus Tillmanns2024-04-055-18/+20
| | | | | | | | | | | | | | In preparation for other plugins to be able to use it. Change-Id: I36542e11dff5b0cc655ecee2439df6ea7c14858d Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | ProjectExplorer: Add Default Issue ReporterMarcus Tillmanns2024-04-042-4/+49
| | | | | | | | | | | | | | | | Adds a base issue reporter that checks general comaptibility between build device and project / build dir location. Change-Id: I7bfe360f758e44fdad9f471d47f14ffdd5d61853 Reviewed-by: hjk <hjk@qt.io>
* | ProjectExplorer: Add Device::canMountMarcus Tillmanns2024-04-042-0/+7
| | | | | | | | | | Change-Id: Icde98f845c3fe303d9461a0cbb0946d1ce9c8b00 Reviewed-by: hjk <hjk@qt.io>
* | RunControl: Also check for a matching runConfig when creating a RunWorkerDominik Holland2024-03-261-1/+1
| | | | | | | | | | Change-Id: Ic26b41e878ed2b8b20099b62ed1c122966165665 Reviewed-by: hjk <hjk@qt.io>
* | Merge remote-tracking branch 'origin/13.0'Eike Ziller2024-03-202-66/+66
|\| | | | | | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake doc/qtcreator/src/overview/creator-only/creator-keyboard-shortcuts.qdoc qbs/modules/qtc/qtc.qbs src/plugins/remotelinux/linuxdevicetester.cpp Change-Id: I8434e41dcfbb50f6ed032a3e0af1591eb19b79eb
| * Welcome: Design update round #2Alessandro Portale2024-03-191-65/+65
| | | | | | | | | | | | | | | | | | User feedback was gathered and in part implemented in form of a design update. Smaller fonts, icons and gaps in the projects/sessions screen and in the examples tiles. Change-Id: I69d0d9ae21ba855feceeb77d620aa5b556377808 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
| * ToolChainOptionsPage: Don't leak QMenuJarek Kobus2024-03-141-1/+1
| | | | | | | | | | Change-Id: I2d123b72a28f9aa9c566f0b186817c94e5ecacd3 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | DeviceSettingsWidget: Don't leak QLayoutItemJarek Kobus2024-03-191-3/+4
| | | | | | | | | | | | | | | | According to docs for QLayout::replaceWidget(), the returned item should be either deleted or inserted somewhere else. Change-Id: I02da36dd0d3fe7de7fa04747d26ea01620349421 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | CppEditor: Introduce per-project code model settingsChristian Kandeler2024-03-152-0/+13
| | | | | | | | | | | | Change-Id: I325cc39e60d4b1f0fba1651502d772bfb9c6a91c Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
* | Merge remote-tracking branch 'origin/13.0'Eike Ziller2024-03-144-9/+6
|\| | | | | | | | | | | | | | | | | Conflicts: src/plugins/cmakeprojectmanager/cmaketool.cpp src/plugins/python/pythonutils.cpp src/plugins/qtsupport/baseqtversion.cpp Change-Id: Ia3e35c763ff9475d17ad922718b54152209893b8
| * Do not use original ID when creating kit for vanished targetEike Ziller2024-03-131-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | If we use the same ID for the new kit as for the original, we get into problems if the original kit re-appears. This can happen when uninstalling a Qt version with the online installer, and later re-installing it. Or when changing the install settings path to a different online installation and back again via the command line or the "Link with Qt" functionality. Change-Id: Id99a3560ebed6264ad13dab5ff48945b30a8229f Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
| * ToolChainOptionsWidget: Don't leak QActionsJarek Kobus2024-03-131-1/+1
| | | | | | | | | | Change-Id: I2018c10a708c4b4bfa2402620874735da5860fde Reviewed-by: hjk <hjk@qt.io>
| * DeviceSettingsWidget: Don't leak QActionsJarek Kobus2024-03-131-4/+3
| | | | | | | | | | | | | | Amends 662aabd29f8e847abed41cce5f4bb5747502ed9d Change-Id: I353a93b3b3752d639f9fc5d45467c843bed6a604 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
| * ProjectExplorerSettingsWidget: Don't leak QButtonGroupJarek Kobus2024-03-121-1/+1
| | | | | | | | | | Change-Id: I64896287dda3df96078f7fabec4cd4437396f3f3 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Merge remote-tracking branch 'origin/13.0'Eike Ziller2024-03-123-8/+23
|\| | | | | | | | | | | | | | | Conflicts: src/plugins/debugger/gdb/gdbsettings.cpp src/plugins/perfprofiler/perfprofilerruncontrol.cpp Change-Id: I0d5b914f9d9b5499920a5db484ef77af6ae748d5
| * Welcome: Design update roundAlessandro Portale2024-03-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | User feedback was gathered and in part implemented in form of a design update: - Update dark and light tokens - Add Token_Text_Accent and use it for session/sroject names, tags, etc. - Change card hover from Token_Foreground_Subtle to Token_Background_Subtle - Remove font-style changes on hover Change-Id: Ia428d43828c9c76ea91d142356457846b932e2d6 Reviewed-by: hjk <hjk@qt.io>
| * ProjectExplorer: Fix KitManager::deregisterKitsAlessandro Portale2024-03-111-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were some problems regarding removal of the default kit: - A precondition of setDefaultKit() was violated. - The new default kit was set to a kit that was possibly removed later as well (and never updated afterwards). - The new default kit was only set if it wasn't null, leaving a dangling pointer in m_defaultKit. Also turned some checks into assertions. Amends e31a06a0f42143724ebf35aa2cc669dbcf54fbf0. Done-by: Christian Kandeler <christian.kandeler@qt.io> Fixes: QTCREATORBUG-30493 Fixes: QTCREATORBUG-30502 Change-Id: I3283f02c90d0ec84b579d7cfdf845b03663f5768 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
| * Android/ProjectExplorer: Fix crash when removing multiple Android QtsEike Ziller2024-03-062-8/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | That were configured for a project. The crash is triggered by a messy combination of the Android automatic kit creation, project window update, and automatic creation of Qt versions and kits by the automatic project importers, including a mess of the listener pattern without any atomicity. - the user removes the Qt versions - the Android plugin updates the automatic kits and individually reports the removed kits (*) - that triggers an update of the project window and an update of the target setup page (even if that is not shown, but that's yet another issue) - that triggers the project importers, which add Qt versions, which in turn triggers another update of automatic kits in the Android plugin - while that is still in the reporting loop at (*) - that leads to the crash, because the state at this point of time is a mess This minimal fix of the specific crash makes the kit update reporting in the Android plugin at (*) "more atomic", and the same for similar code in the iOS plugin. Fixes: QTCREATORBUG-30347 Change-Id: I2bea6fb735abcaa34469fc43f44aa37313f70429 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Merge remote-tracking branch 'origin/13.0'Eike Ziller2024-03-064-24/+7
|\| | | | | | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs src/plugins/cppeditor/cppcodemodelsettings.cpp src/plugins/cppeditor/cppcodemodelsettings.h Change-Id: I54937c39b06897a72a105e4e0a8b5f8a76c38e26
| * ProjectExplorer: Expand selected details widgets in target setup pageChristian Kandeler2024-03-041-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Rationale: - Selecting and unselecting should behave symmetrically. - The user is informed of and can easily change the set of pre-configured build configurations. Fixes: QTCREATORBUG-30412 Change-Id: I86e6a41c3baed280df9a694d6cf6eb631cb537f9 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
| * Core: do not activate open documents entry on right clickDavid Schulz2024-03-011-13/+1
| | | | | | | | | | | | | | | | | | If we activate an entry before we handle the context menu event we might switch into another mode. For example when right clicking on a ui File. Fixes: QTCREATORBUG-30357 Change-Id: I8de78c3a6bbd9d62e2766ccd2059ee3ee4ef0870 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
| * Welcome: Fix the hover background colorAlessandro Portale2024-02-291-4/+2
| | | | | | | | | | | | | | | | It used the wrong color token. With the correct one, the hover effect is a bit less prominent. Change-Id: I95a1f5a92f95d4055ae8bce703fdc633b122ac59 Reviewed-by: hjk <hjk@qt.io>
| * ProjectExplorer: Employ FuzzyMatcher in run config creation dialogChristian Kandeler2024-02-291-1/+2
| | | | | | | | | | | | | | ... when filtering the candidates. Change-Id: Ia95475ae3ee2a6eab2c9551ed22f97a9540d3503 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* | Merge remote-tracking branch 'origin/13.0'Eike Ziller2024-02-291-231/+451
|\| | | | | | | | | | | | | Conflicts: src/plugins/android/androidsettingswidget.cpp Change-Id: Ifcb16aa16c7bc2792de25d0ee7a22cf0e39a05f8
| * Welcome: Implement new designAlessandro Portale2024-02-271-231/+451
| | | | | | | | | | | | | | | | 2024 redesign Change-Id: I6629849921272d856f201693973a8e29c6465e94 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | Utils: Fix build with MSVC with C++20Eike Ziller2024-02-2818-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename process.h back to qtcprocess.h MSVC's "threads" standard header includes <process.h>, and that ends up including our process.h from Utils. There already was a hacky workaround in place for a similar issue with MINGW, but that doesn't work with MSVC because that doesn't have Simply use a name that doesn't conflict. Change-Id: I1159cd2096b4f2dbc4a1728d0131dd6edd30ebd3 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* | Merge remote-tracking branch 'origin/13.0'Eike Ziller2024-02-274-18/+17
|\| | | | | | | Change-Id: If752e3383b35873b696e8beca27d8838a4096c8a
| * Project Explorer: Fix quotesLeena Miettinen2024-02-271-1/+1
| | | | | | | | | | | | | | | | Use double quotes for emphasis in UI text. Change-Id: Idb34140816c8dfffaa87837055a1b76ceda09ef0 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
| * ProjectExplorer: Show full lines during compilationMarcus Tillmanns2024-02-261-11/+10
| | | | | | | | | | | | | | | | | | | | | | | | Especially on Windows with VC2022 & Ninja, the output would often display lines that ended in the middle until the next batch of output was added. This patch uses the Process facilities to only show full lines. Change-Id: I38fcb2e8cb115637d15181b39374c533db150c1a Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
| * Projects: Fix misc settings widgets if vanished targets are shownEike Ziller2024-02-231-5/+5
| | | | | | | | | | | | | | | | | | | | | | When vanished targets where shown in Projects, clicking on the project specific settings showed a blank page. There were hardcoded indices for the target and the misc settings. Get the right child for the index directly instead. Change-Id: I725d470ad04f8a227c91938efada76a757a7442c Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
| * Fix i18n issuesEike Ziller2024-02-211-1/+1
| | | | | | | | | | | | | | | | Fix some missing Tr::, and some namespace usages that confused lupdate. Change-Id: Ib5a411fc53a28a6b807600db50aacc68955ca5dc Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* | Utils: Rename HostArchitecture enumMarcus Tillmanns2024-02-221-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | Since its not only good for the Host and to bring it in line with the OsType we rename HostArchitecture to OsArch. To make it work on all Platforms we change hostArchitecture to use QSysInfo instead of using Os specific calls. Change-Id: I1a9a4c8f9faa2a504694d8288110c9ee5c483440 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Merge remote-tracking branch 'origin/13.0'Eike Ziller2024-02-191-1/+2
|\| | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs Change-Id: I2a3d92a14e4dd16897d19f7d8a8c7b0ec30d14a5
| * ProjectManager: Add a hint on how to run the testSessionSwitch()Jarek Kobus2024-02-151-1/+2
| | | | | | | | | | Change-Id: I4852d15bb3f17dd9f2495f44376f62e85046db36 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>