summaryrefslogtreecommitdiff
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-1713-158/+165
|\
| * Merge remote-tracking branch 'origin/10.0'Eike Ziller2023-05-1713-158/+165
| |\ | | | | | | | | | | | | | | | | | | Conflicts: coin/instructions/build.yaml Change-Id: I697b0107e75c6259989247de2180437d7987ff37
| | * Doc: Hide text and links that only apply to Qt Creator Manual10.0Leena Miettinen2023-05-171-0/+2
| | | | | | | | | | | | | | | | | | | | | ...from the QDS manual. Change-Id: I24be3b656922b1c10643f6ef274f1fa91c8330df Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
| | * German translation: CVSEike Ziller2023-05-161-80/+80
| | | | | | | | | | | | | | | | | | Change-Id: Iac295e700edf365b06b01bbb3a20c2f2f190a5ab Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Robert Löhning <robert.loehning@qt.io>
| | * SquishTests: Update tst_create_proj_wizardRobert Löhning2023-05-152-6/+13
| | | | | | | | | | | | | | | | | | Change-Id: Id17f5d1a68da7fe7c9f45dc5b62ab3fe1039f753 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
| | * SquishTests: Make suite_tools Python3 compatibleRobert Löhning2023-05-152-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | Except for tst_designer_edit which needs a bigger update. Change-Id: I8300a9491ec34b4d8deeed39f02fc59281cc20c9 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| | * SquishTests: Fix using invalid paste IDsRobert Löhning2023-05-151-3/+3
| | | | | | | | | | | | | | | Change-Id: Ibc48506ff1632cbfe8d662cd00ed057af7d16a6a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| | * 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>
| | * German translation: VcsBaseEike Ziller2023-05-151-36/+36
| | | | | | | | | | | | | | | Change-Id: I7b9dc7a2e6868481ab900b56acce2a084b203bd9 Reviewed-by: Robert Löhning <robert.loehning@qt.io>
| | * Registryaccess: Fix defined but not used warningBjörn Schäpers2023-05-121-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In file included from .../src/plugins/debugger/registerpostmortemaction.cpp:6: .../src/shared/registryaccess/registryaccess.h:26:21: warning: 'RegistryAccess::autoRegistryValueNameC' defined but not used [-Wunused-variable] 26 | static const WCHAR *autoRegistryValueNameC = L"Auto"; I don't think using static in a header is a nice thing, inline would work, but we have constexpr which implies inline. Change-Id: I7b872e65a554a9a9feb39845717c5dba7ba6777c Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
| | * Merge remote-tracking branch 'origin/9.0' into 10.0Eike Ziller2023-05-122-11/+4
| | |\ | | | | | | | | | | | | Change-Id: I4264592dbf3a8bf105ad507cb4496777cd0e92b3
| | | * Coin: Switch to the new packaging tools scripts location9.0Patrik Teivonen2023-05-122-11/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Script location is changed from qtsdk.git to tqtc-qtsdk.git. Adjust the coin instructions to use the new location. This change should be picked to all the branches in use. Task-number: QTQAINFRA-5506 Change-Id: I78abb36781cfaaff72870c297ba152066ac5f385 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
| | * | 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>
* | | | Qt Quick Application Wizard: Unify Qt version combobox entriesAlessandro Portale2023-05-171-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "compat" variant, which was around for a long time, had a Qt version combobox with entries following the "Qt x.yz" scheme. This change adds the Qt prefix also to the combobox of the new wizard. Fixes: QTCREATORBUG-29126 Change-Id: I4cd59f09248ba487077c2dcdd0828222311dd9a7 Reviewed-by: Robert Löhning <robert.loehning@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>
* | | | ScopedTimer: Make it possible to provide optional message stringJarek Kobus2023-05-172-24/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When optional message argument is provided, both macros print the message instead of __FILE__ and __LINE__ info. It helps to ease the identification of the exact place in code when many macros are added - custom message may be more informative that the file and line location. Change-Id: I7a3ccbdaca2858b44dcbd51a8f9330160dab73e9 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
* | | | Tests: Build text tests with Qbs as wellChristian Stenger2023-05-172-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Amends 1a98dda5c417e892cadbedb656829cf2ba4d1d0a. Change-Id: If563437141ac75bb2b72a9d550d1fb507a89e63c Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | | | 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>
* | | Utils: add Position::fromCursor with testsDavid Schulz2023-05-173-0/+40
| | | | | | | | | | | | | | | | | | Change-Id: I1cd989eaf7e75bc04f171989f9f9fe932402abef Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* | | CheckableMessageBox: Simplify checkbox setupEike Ziller2023-05-171-9/+1
| | | | | | | | | | | | | | | | | | | | | | | | If the dialog is shown, the checkbox must be unchecked, because otherwise the dialog would not have been shown. Change-Id: I34e8034975baef710997e0cdb3c7d2f8b0c94cd2 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* | | 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>
* | | CheckableMessageBox: Make semantics of bool value clearerEike Ziller2023-05-172-6/+6
| | | | | | | | | | | | | | | Change-Id: I06a43ab986e6f028cf07ea5e9700c831a591cbf2 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* | | Fix Qbs buildChristian Stenger2023-05-174-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Amends f84199f8b70bb03b66a0dbac3ff4dcdb56094d20 and reverts 796cfceb3a27337e2f613624a8c223761fdd44b8. Change-Id: I7eb686c012bd99cddf36aa16219e3f33de2b15b2 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | | 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>
* | | CrashHandler: Fix missing updateMarcus Tillmanns2023-05-171-13/+14
| | | | | | | | | | | | | | | | | | | | | The change to CheckableMessageBox was missed. Change-Id: I8b7fe1230bcf483f9e5371b878d862aff422d925 Reviewed-by: hjk <hjk@qt.io>
* | | Tests: Add a test to feed shells via stdinhjk2023-05-171-0/+16
| | | | | | | | | | | | | | | | | | | | | Change-Id: I7e19537d0a3015aeb329849758cc92da17a67606 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | | 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>
* | | Tests: Fix Qbs buildChristian Stenger2023-05-173-0/+3
| | | | | | | | | | | | | | | | | | | | | Amends f84199f8b70bb03b66a0dbac3ff4dcdb56094d20. Change-Id: I6a233aca13f9908451748c20c1804fa2851043aa Reviewed-by: hjk <hjk@qt.io>
* | | Utils: Unify CheckableMessageBox and make it look more nativeMarcus Tillmanns2023-05-1723-640/+492
| | | | | | | | | | | | | | | | | | 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-1749-112/+205
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Utils: Allow a BoolAspect to adopt an external buttonhjk2023-05-172-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will be used by the apply machinery and allows more complex setups than the automatically generated internal CheckBox button. Change-Id: I237a9283253f11bcb76e0366a0b6c5a0346fdfd8 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@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>
* | | Utils: Add minimal Flow layout support to layout builderhjk2023-05-162-0/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It will be used in the CppCheck option page. The de-facto copy of utils/flowlayout.{cpp,h} is intentional to keep the layout builder usable stand-alone. Change-Id: Ibda3ece2aeb3cbb1badaf6083b52ebb63b6524ac 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>
* | | Utils: Introduce a FilePathAspecthjk2023-05-162-0/+30
| | | | | | | | | | | | | | | | | | | | | A shallow wrapper around a StringAspect with a suitable operator(). Change-Id: I0a5e121565d03573faa5c3f4085d72db2b9c3774 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | | Terminal: Fix exiting of conpty terminalsCristian Adam2023-05-161-1/+3
| | | | | | | | | | | | | | | | | | | | | QMetaObject would complain about not knowing about the HANDLE type. Change-Id: Iae240bed37c892561eaacdc1d22cf4ae0173df29 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* | | ProjectExplorer: Remove some pointerage around KitOptionsPagehjk2023-05-164-22/+9
| | | | | | | | | | | | | | | Change-Id: Ib1736a80739c6052372896bac03aa324fd807151 Reviewed-by: Christian Stenger <christian.stenger@qt.io>