summaryrefslogtreecommitdiff
path: root/src/plugins
Commit message (Collapse)AuthorAgeFilesLines
* WebAssembly: Prevent null pointer accessHEADmasterAlessandro Portale2023-05-171-1/+2
| | | | | | | | | The detector.device can be nullptr Amends: cacc4aeede245ddc92a196e99fb1e66458d4403c Change-Id: I5b9b6aa722c8e6e8a96d05cdf2f1b214735db858 Reviewed-by: hjk <hjk@qt.io>
* Merge "Merge remote-tracking branch 'origin/10.0'"The Qt Project2023-05-174-10/+11
|\
| * Merge remote-tracking branch 'origin/10.0'Eike Ziller2023-05-174-10/+11
| |\ | | | | | | | | | | | | | | | | | | Conflicts: coin/instructions/build.yaml Change-Id: I697b0107e75c6259989247de2180437d7987ff37
| | * ClangFormat: Fix clangformat ignores configuration fileArtem Sokolovskii2023-05-153-8/+9
| | | | | | | | | | | | | | | | | | Fixes: QTCREATORBUG-29145 Change-Id: I6950151aaab9df51cfdd0af0ad9cf3c7b35c0636 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
| | * CMakePM: Stretch the CMake parameters column on resizeCristian Adam2023-05-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makes sure that the CMake parameters columns are properly stretched when Qt Creator window is being resized or maximized / restored from maximized state. Fixes: QTCREATORBUG-27257 Change-Id: Ifb4d439fb758dcc5b2593be917ba35e9c79f2840 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | | ClangCodeModel: Let user decide how to do the header/source switchChristian Kandeler2023-05-174-4/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While clangd's AST matching can find source files at any location, it also has a number of annoying bugs that break the functionality for some users. This patch brings back the previous "try built-in first" logic, but also lets users choose their preferred backend. Task-number: QTCREATORBUG-29175 Change-Id: I6b854ed05652e6468509e5748a83a8f9bf76fc20 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* | | FakeVim: Maintain highlighting on splithjk2023-05-171-1/+18
|/ / | | | | | | | | | | | | Fixes: QTCREATORBUG-28914 Change-Id: I4e0b82e49bd97f19eb513f21e1dc405ea9f0700c Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Core: Fix item view findChristian Stenger2023-05-171-2/+9
| | | | | | | | | | | | | | | | | | ...when there is only one matching item and we are starting search from there. Change-Id: Icfffd37d9330c83058fb81356762e72b183f24e8 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* | Use new FilePathAspect in a few more placeshjk2023-05-177-16/+11
| | | | | | | | | | | | Change-Id: I910a802255c8d54a31313dcccb0d1a48ec577b7a Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | Separate session loading from project managerEike Ziller2023-05-177-171/+180
| | | | | | | | | | | | | | | | | | Move the generic parts to session manager and let the project manager load its parts separately. Change-Id: I14ee3311ab0c0f40444674b82cee1e4bb0fb9daf Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Session: Minimize direct use of reader when loading sessionsEike Ziller2023-05-176-53/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of directly reading things like the project list from the reader, add a map of "session values" in the session and read these from the reader once, then use the session to access these values while loading the details of the session. This is in preparation of separating the session loading from projectexplorer. This is similar to Session::(set)Value. We cannot use the same (set)Value methods directly though, because of differences in the handling of these values during implict and explicit default session loading. Change-Id: I9a4f38a9f958734d20d6e6eb7253f9e44ba1285e Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* | CppEditor/QmlJSTools: Remove settings migration from Qt Creator 2.3Alessandro Portale2023-05-172-87/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes settings migration from Cpp Code Style Settings migration from Qt Creator <= 2.3 to 2.3+ Let's assume that most active Qt Creator users launched a Qt Creator 2.4 or later in the last decade if they still work with their decade-old installation. Change-Id: I9c49dd9c1c0bd85e2b8c58a0d4eb6c393abf94a1 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* | Move restoring startup session to SessionManagerEike Ziller2023-05-175-110/+154
| | | | | | | | | | | | | | | | | | | | | | It needs to be done after the delayed restoring of kits, so this now implicitly depends on ICore::coreOpened coming after restoring kits has triggered on the event loop before, which is ugly, but works (and is at least guarded by a warning). Change-Id: Ie8676b1c7f4d099fb83f0f2a0f2e5677c4a0b999 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Remove include of projectmanager.h from session.hEike Ziller2023-05-173-6/+2
| | | | | | | | | | | | | | | | Users need to include that themselves if needed. Change-Id: I90f8fe2784ee395cc6a4fc43e62eedebf9f05b76 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Session: Move some settings saving to session itselfEike Ziller2023-05-173-12/+12
| | | | | | | | | | | | Change-Id: I306bb86f1fda03f9b34efd7101d405ed64076711 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* | Valgrind: Do not start valgrind if it does not existChristian Stenger2023-05-173-15/+12
| | | | | | | | | | | | | | | | | | | | | | ...and print a warning with some user hint inside the application output instead. Drive-by fix: silence a soft assert in case of a failed start of callgrind. Fixes: QTCREATORBUG-28988 Change-Id: I4fd0253e1f18489031e2f6cfa276c4df5ea4483a Reviewed-by: hjk <hjk@qt.io>
* | Utils: Unify CheckableMessageBox and make it look more nativeMarcus Tillmanns2023-05-1721-175/+158
| | | | | | | | | | | | Change-Id: I5690c16f38cfd2058e01441283bec28d44cadf75 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* | Git: Cache author and encoding for instant blameAndre Hartmann2023-05-171-6/+21
| | | | | | | | | | | | | | | | | | | | Querying both may be expensive and is only necessary when the repository is changed. Fixes: QTCREATORBUG-29151 Change-Id: I1d37f8b8708c02a8c3dc2d89fe7e331f0f416818 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* | Git: Fix missing instant blame with line foldingAndre Hartmann2023-05-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | When lines are folded (e.g. the license header), the editors lineCount() is smaller than its blockCount(). That resulted in missing blame marks for the last document lines. E.g. if 10 lines were folded, the last 10 lines did not have blame marks. Change-Id: I502afb09697fd3d6a062d3ae2321357a3e565a0e Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Solutions: Long live Solutions!Jarek Kobus2023-05-1714-14/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Short live Tasking in Solutions! Add src/libs/solutions/README.md with the motivation and hints. Move TaskTree and Barrier from Utils into Tasking object lib, the first solution in Solutions project. Tasking: Some more work is still required for adapting auto and manual tests. Currently they use Async task, which stayed in Utils. For Qt purposed we most probably need to have a clone of Async task inside the Tasking namespace that is more Qt-like (no Utils::FutureSynchronizer, no priority field, global QThreadPool instead of a custom one for Creator). Change-Id: I5d10a2d68170ffa467d8c299be5995b9aa4f8f77 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* | CPaster: Use PagedSettingshjk2023-05-176-42/+17
| | | | | | | | | | | | Change-Id: I826030f9a691c9e9c929deb1624d9705d3222e23 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Squish: Provide object pickerChristian Stenger2023-05-176-14/+378
| | | | | | | | | | | | | | | | Provide the object picker. Currently only partial functionality and limited for a debug run of a squish test. Change-Id: Ic6f765d3c76b29c732684879c2459f1e0f732978 Reviewed-by: David Schulz <david.schulz@qt.io>
* | Vcs: Use new FilePathAspect in a few placeshjk2023-05-1712-19/+15
| | | | | | | | | | Change-Id: Idc23616dd3b7bc21301471cb48e2893116b83f0d Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* | Utils: Make PagedSettings::readSettings() calls shorterhjk2023-05-1610-15/+16
| | | | | | | | | | | | | | | | | | | | Ideally, this would not be needed on the user code side at all, but there's no way to ensure the settings are read timing before sibling constructors might need it. So keep the 'poor man's two-phase initialization', but make it less intrusive. Change-Id: Ica7f6510cd05072d7286f4e85cd72c494e8f10f8 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | CppCheck: Rework settings handlinghjk2023-05-168-338/+179
| | | | | | | | | | Change-Id: Id9c9b316c5e0d39bc5fcba14951664e72d947a71 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | Terminal: Fix CellIterator againMarcus Tillmanns2023-05-161-1/+3
| | | | | | | | | | | | | | | | The updateChar() was only called when m_pos == 0. It needs to be called unless m_state == End though. Change-Id: I2c9a7c151420395d18f2846705d57129d7afc5f3 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* | ProjectExplorer: Remove some pointerage around KitOptionsPagehjk2023-05-164-22/+9
| | | | | | | | | | Change-Id: Ib1736a80739c6052372896bac03aa324fd807151 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Terminal: Fix selectionMarcus Tillmanns2023-05-161-1/+4
| | | | | | | | | | | | | | | | | | | | When moving the mouse left or right out of the viewport the selection would grow into the previous/next line without the bounding. Change-Id: Ica38eac3b306338ef24aa4abace66f110edb2aef Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* | Haskell: More compact settings/manager setuphjk2023-05-1612-165/+95
| | | | | | | | | | | | | | | | Use PagedSettings, move related parts Manager interface there, too. Change-Id: I079dad8bbbea39d2424a25867b08c34ab0234ad5 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Squish: Fix layout of server settings dialogChristian Stenger2023-05-161-4/+4
| | | | | | | | | | | | | | Broke with the overhaul of the layout builder. Change-Id: I94da9c8f6b2a67b43b8bfe08e838dbd38400c2f4 Reviewed-by: David Schulz <david.schulz@qt.io>
* | CppEditor: Add quickfix for creating a member function from useChristian Kandeler2023-05-163-73/+311
| | | | | | | | | | | | | | Fixes: QTCREATORBUG-10356 Change-Id: If7376e766f2817949259591560c74bd6fb0e0cd6 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | SpotlightLocatorFilter: Remove no-op call to setConfigurable(true)Jarek Kobus2023-05-161-1/+0
| | | | | | | | | | | | | | Change-Id: Iafc9b1f3f7e0e5e214b44ab29bbd2537a0bbb569 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>
* | LocatorWidget: Drop Utils namespace qualifierJarek Kobus2023-05-161-27/+25
| | | | | | | | | | Change-Id: Ife0fb3a5908326136531801c6d8e372ed10827a4 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Haskell: Build with Qbs as wellChristian Stenger2023-05-161-0/+1
| | | | | | | | | | | | Change-Id: Ia8f9fd3c22acc50c149594859a0471b0e58fc027 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | ILocatorFilter: Remove calls to setDefaultIncludedByDefault(false)Jarek Kobus2023-05-1611-18/+0
| | | | | | | | | | | | | | | | | | | | | | | | By default, setDefaultIncludedByDefault() is set to false, so no need to repeat it now in direct subclasses. Leave it only inside the AllProjectFilesFilter, as the DirectoryFilter superclass sets it to true. Change-Id: Ib66d112a3bfeed52315663f6898148cf5c5d88b1 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>
* | Locator: Fix style and reuse LocatorFilterEntriesJarek Kobus2023-05-164-28/+28
| | | | | | | | | | | | | | | | | | | | | | | | Fix names of private members of LocatorModel to have one common style. Reuse LocatorFilterEntries where possible. Change-Id: Icca1e396b9fafd165adf35939dd7859032f90c0c Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | ILocatorFilter: Remove prepareSearch() and matchesFor()Jarek Kobus2023-05-163-43/+2
| | | | | | | | | | | | | | | | Implement matchers() instead. Make matchers() a pure virtual method. Change-Id: I931cb9a5787bc796968cd2123e14d33002169588 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | BaseFileFilter: Remove me - I'm not needed anymoreJarek Kobus2023-05-164-318/+0
| | | | | | | | | | | | | | Change-Id: I19effcb846f57838b47352c19aec0d521e1c3ecd Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* | QMakeProject: Use PagedSettings page for optionshjk2023-05-166-115/+58
| | | | | | | | | | | | | | Also adapt to a few recent usage changes. Change-Id: I33f45fe7c2b8738280a7c81ddb9110cb8714c45a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | RunConfigurationFilter: Remove the old matchesFor() implementationJarek Kobus2023-05-161-75/+19
| | | | | | | | | | | | | | | | Since the base class vanished, rename the filters so that they have the common prefix now. Change-Id: I21c8d1f3ea3c3ad22063d7db8be72e66d449e701 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* | ExecuteFilter: Remove the old matchesFor() implementationJarek Kobus2023-05-162-57/+19
| | | | | | | | | | | | Change-Id: Ib1f001f366ef78f359d7c04cf8861ae59b9d22a9 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* | Terminal: Fix assertMarcus Tillmanns2023-05-161-4/+4
| | | | | | | | | | | | | | | | | | Trying to fetch a cell outside the valid range did trigger an assert. Change-Id: I5ac3d78aa2249d1559e7603c9e4a9bcea4d0b563 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* | CMakePM: Add action to reload CMake PresetsCristian Adam2023-05-159-7/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The CMake presets will be reloaded. The preset kits will get the CMake configuration cleared (no more CMakeCache.txt) All the kits will be removed from the project, so that the Kit configuration wizard will be displayed at the end. If a normal Qt Kit was configured, the user will get the chance to import the existing configuration (the initial configuration will be lost though). Change-Id: Ieda83098d7716913d7870b67ab522705da4ed93b Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: hjk <hjk@qt.io>
* | Vcs: Use PagedSettings for all plugin settingshjk2023-05-1519-269/+162
| | | | | | | | | | | | | | | | | | Hopefully the last structural change for a while. Settings lifetime is again tied to the plugin private. Change-Id: I221e8b8baa69422306191b48a9f034ef5b1a0dc2 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* | Mercurial: Follow the Fossil settings setuphjk2023-05-155-15/+24
| | | | | | | | | | Change-Id: I3261669991d55c6da5c80c116c2a66c8b7b0d577 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* | Cvs: Follow the Fossil settings setuphjk2023-05-153-31/+32
| | | | | | | | | | Change-Id: I3cd949fa8dad71531c54392de0402783fb314c19 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* | Subversion: Follow the Fossil settings setuphjk2023-05-155-41/+43
| | | | | | | | | | Change-Id: I967396073abbcbc3058a016d5d37fa3fc5645f8a Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* | Bazaar: Follow the Fossil settings setuphjk2023-05-155-33/+34
| | | | | | | | | | Change-Id: If711f8a43a6579c72cad1bc98ef24c3fdd83993b Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* | Git: Also use the latest settings setup approachhjk2023-05-1510-63/+63
| | | | | | | | | | Change-Id: I34a210575d02d18927c1e0f6d8ea6cb9924c563d Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* | CMakeProjectManager: Rework CMakeFormatterhjk2023-05-159-444/+175
| | | | | | | | | | | | | | Use PagedSettings, make setup more local, remove Q_OBJECT Change-Id: I9e91f9e63ed8ad15749323bd039d118562dba1a6 Reviewed-by: Cristian Adam <cristian.adam@qt.io>