summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/qml
Commit message (Collapse)AuthorAgeFilesLines
* Utils: Rename qtcprocess.{cpp,h} -> process.{cpp,h}Jarek Kobus2023-05-041-1/+1
| | | | | | | | Follows QtcProcess -> Process rename. Change-Id: I97235a9a40cb7fd52944515b7ab878d96528f919 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Utils: Rename QtcProcess -> ProcessJarek Kobus2023-05-041-5/+5
| | | | | | | | Task-number: QTCREATORBUG-29102 Change-Id: Ibc264f9db6a32206e4097766ee3f7d0b35225a5c 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>
* Debugger: Use more FilePath in source file handlinghjk2023-03-155-16/+18
| | | | | | | | | | Needed for the double-remote case. With this we have proper breakpoint markers in the text editor for a remotely running gdb on a remotely loaded project. Change-Id: If80e4a4108a4a0bcdd7612a59e2bd695213f5ea5 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Debugger: Use more FilePaths in module handling interfacehjk2023-03-142-4/+4
| | | | | | Change-Id: Ie058b928900015d0f71776151547bf7ba32a62bf Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Debugger: add <load more> functionality to array dumperDavid Schulz2023-02-271-2/+1
| | | | | Change-Id: Ib44748fa3218788ca20a99b0a0f4cd85716dde06 Reviewed-by: hjk <hjk@qt.io>
* Translations: Fix stray QApplication::translate() callsAlessandro Portale2023-02-081-2/+2
| | | | | | | | | For references to the module-own context, use Tr::tr(). For references to other modules, use the right context name (with "::" prefix). Change-Id: I6dce8f1ceccb23c44d93f1826402cd3be8e98e5a Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Utils: Rename QtcProcess::readAllStandard* to readAllRawStandard*hjk2023-01-101-2/+2
| | | | | | | | | | | | ... and re-use the old QtcProcess::readAllStandard* names for a QString-returning 'decoded' version. For now, only use that in 'full Utf8' cases, to stay bug-compatible, the plan is, however, to employ the QTextCodecs we have already in the channel buffers. That will be one-by-one, though. Change-Id: Id209e0671920d4ea4197918e872f441254112d52 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-069-9/+9
| | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Merge remote-tracking branch 'origin/9.0'Eike Ziller2022-11-211-5/+7
|\ | | | | | | Change-Id: Idd9c2b1bf787040b7b415b7cda29035227ca1011
| * Debugger: Fix interrupting QmlChristian Stenger2022-11-181-5/+7
| | | | | | | | | | | | Fixes: QTCREATORBUG-28469 Change-Id: I421dd18e0aedbe6628d4817fddf271c1a2bfbeb0 Reviewed-by: hjk <hjk@qt.io>
* | Merge remote-tracking branch 'origin/9.0'Tim Jenssen2022-10-251-3/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/qmldesigner/components/componentcore/modelnodeoperations.cpp src/plugins/qmldesigner/components/stateseditornew/propertychangesmodel.cpp src/plugins/qmldesigner/components/stateseditornew/propertymodel.cpp src/plugins/qmldesigner/qmldesignerprojectmanager.cpp src/plugins/qmldesigner/qmldesignerprojectmanager.h Change-Id: Ib029a830ee99190bc4ea2ad75d9300bfa86b42d9
| * QmlEngine: Fix typo (hander -> handler)Jarek Kobus2022-10-201-3/+3
| | | | | | | | | | | | | | Amends 126030d079b7309a9487cd4138e40da49e617341 Change-Id: I3cec0e2984af311070ebb258b454d4e3fcec626f Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* | Get rid of unneeded includes of RunControlJarek Kobus2022-10-252-2/+0
|/ | | | | | | | | | Removed also some other includes that were marked with yellow triangles. In some cases includes of runcontrol.h were substituted with other includes, like qtcassert.h. Change-Id: Ica40f68198c7f8f70e6047acb2eddc8ef017e43d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Port from qAsConst() to std::as_const()Marc Mutz2022-10-072-13/+13
| | | | | | | | | | | | | | We've been requiring C++17 since Qt 6.0, and our qAsConst use finally starts to bother us (QTBUG-99313), so time to port away from it now. Since qAsConst has exactly the same semantics as std::as_const (down to rvalue treatment, constexpr'ness and noexcept'ness), there's really nothing more to it than a global search-and-replace. Task-number: QTBUG-99313 Change-Id: I88edd91395849574436299b8badda21bb93bea39 Reviewed-by: hjk <hjk@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-269-216/+18
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Drop Qt5: Debugger: Get rid of QOverloadJarek Kobus2022-07-201-1/+1
| | | | | | Change-Id: Ic62a3173adeffdfa78a47849cf1ceaa4f59b8091 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Debugger: Convert to Tr::trhjk2022-07-088-56/+35
| | | | | Change-Id: I5d2475c790851c68f9997ac6af72b5eaca58482d Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Debugger: Fix handling of stepping while debugging QML/JSChristian Stenger2022-06-281-2/+3
| | | | | | | | Amends 3341fa827f9fee6812b15bcb8eefb41211358958. Fixes: QTCREATORBUG-27728 Change-Id: I96398d3ebaa33b10ec90cce4df9e9af809cd29a9 Reviewed-by: hjk <hjk@qt.io>
* QmlEngine: Connect to done() signal instead of finished()Jarek Kobus2022-06-221-1/+1
| | | | | | Change-Id: Iffccd6425ff5bf3b47064b6883ecab7474a987f7 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* Debugger: Fix handling breakpoints of same file namesChristian Stenger2022-06-151-1/+21
| | | | | | | | ...while qml debugging. Fixes: QTCREATORBUG-24803 Change-Id: Ieedeb13236f8129a1f6d445de5218462c8d0676a Reviewed-by: hjk <hjk@qt.io>
* Debugger: Use QtcProcess instead of ApplicationLauncherhjk2022-05-042-37/+34
| | | | | | | ... to start the QmlEngine Change-Id: Id283a1f5d100cd65fe1f3b900114b86aca288e91 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Debugger: Remove foreach / Q_FOREACH usageArtem Sokolovskii2022-05-033-12/+18
| | | | | | | Task-number: QTCREATORBUG-27464 Change-Id: Ib49afb4d0283aeeffead6b31e1a3d0bcb9a7ae14 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* qmljs: correctly handle js string templatesFawzi Mohamed2022-03-211-0/+5
| | | | | | | | | | | | | | In most cases we do want to visit the expressions in a function template. Changing its accept0 would force those not wanting to visit it to iterate on the templates (currently a linked list), so we add a visit method explicitly visiting the expression in all the needed places. Fixes: QTCREATORBUG-21869 Change-Id: I47733544bfd32eec357810b97242608b8f7de572 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
* ApplicationLauncher: Unify APIJarek Kobus2022-03-021-1/+1
| | | | | | | | | | | | Make the API more similar to QtcProcess API. Rename: processStarted() -> started() error() -> errorOccurred() processError() -> error() Change-Id: I86d650d55a643f5999fc91e56b985f699e2d7245 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* ApplicationLauncher: Remove start(IDevice *) overloadJarek Kobus2022-02-231-1/+2
| | | | | | | | | | | | Take the device from runnable passed in setRunnable(). If the intention is to run locally, set the device to nullptr inside runnable. Otherwise we don't run locally. Follows 47957de2dcef70b644290c0d6b35f07837160e8a Change-Id: I5b381bb499cf76e469c844ac7474ce2f60761cef Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* ProjectExplorer: Use simpler signature for ApplicationLauncher::processExited()hjk2022-02-151-2/+2
| | | | | | | | | And rename it to finished(). Maps better to what QtcProcess uses. Change-Id: Ibfa018549f436b27638a791c0b4937c4459c9452 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* ProjectExplorer: Split ApplicationLauncher::start() parametershjk2022-02-151-1/+2
| | | | | | | | | There's traditionally an odd duplication of the runnable.device and the passed device here. Start disentangling things. Change-Id: I1cc1628c99cea04d761fc4d8dd0cb232127ce055 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Debugger: Fix value assignment in locals and expressionshjk2022-02-081-3/+9
| | | | | | | | For booleans and numbers. Change-Id: I5ff1660faee1bf0ed21211d5fe98462f660fb417 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Remove qmake build filesEike Ziller2022-01-201-12/+0
| | | | | | | | | | Removes qmake as a build system for building Qt Creator itself. Keep them for some tests that are not completely moved to CMake yet. Change-Id: I846c6ef65626b6dfae6375fdc85d00677aa8c2fb Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* EditorManager: Remove QString openEditor(At) overloadsEike Ziller2021-11-021-2/+2
| | | | | | | | In favor of the FilePath/Link ones. Change-Id: I5caf9e0f8de304ff4ee12329557aa50a6f3a0c69 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: David Schulz <david.schulz@qt.io>
* Debugger: use FilePath in stack framesDavid Schulz2021-10-271-2/+3
| | | | | Change-Id: I98b6aa60e1b72be3482916446b87cee89e6cf2a4 Reviewed-by: hjk <hjk@qt.io>
* ProjectExplorer: Use Utils::CommandLine in ProjectExplorer::Runnablehjk2021-08-131-1/+1
| | | | | | Change-Id: Id965f1f9047dcbc3ea5c9ddaa550d12668cf8ae6 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Debugger: Aspectify settingshjk2021-03-032-14/+15
| | | | | Change-Id: I527be79965250b82a0928171b17aa93bac9fa2a0 Reviewed-by: David Schulz <david.schulz@qt.io>
* Debugger: Use qAsConst with non-const Qt containers in range-loopsAlessandro Portale2021-02-172-5/+5
| | | | | Change-Id: I7bd27f8317b62fe448e037d5a25e78b4c88c648d Reviewed-by: hjk <hjk@qt.io>
* Debugger: Drop base DebuggerEngine::runEngine()hjk2021-01-052-24/+20
| | | | | | | | | | The lines between engine setup and running have always been blurry, so it looks more and more unnatural to enforce this in the architecture. Remove the runEngine() call from the end of notifySetupEngineOk, and do it on the user side. Change-Id: I3a5e158e8b3fe9b0a288d064f798e24b2ac47f86 Reviewed-by: David Schulz <david.schulz@qt.io>
* Don't access static functions/fields via instanceAlessandro Portale2020-11-271-1/+1
| | | | | | | | | | | | Courtesy of readability-static-accessed-through-instance Amends: b2a766a79ac778febff87f0def34cf6d3f4f93e3 Round #2: This time done with Qt Creator's Analyzer, which found other occurences than run-clang-tidy.py Change-Id: I479e280c7abcf2d24baccbb0af69ae4bda05198e Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Merge remote-tracking branch 'origin/4.14'Eike Ziller2020-11-191-1/+1
|\ | | | | | | Change-Id: Iea84f23cf394de13e99a9ed777c8c113e4eff473
| * Fix warnings about possible detach of temporary objectsJarek Kobus2020-11-161-1/+1
| | | | | | | | | | | | | | | | | | Calling first() or last() on temporary container may unnecessarily detach the container. Fix it by calling constFirst() and constLast(). Change-Id: I2460efd5dbee1534eec8a514d9bff2a947bfddf9 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Don't access static functions/fields via instanceAlessandro Portale2020-11-191-1/+1
|/ | | | | | | Courtesy of readability-static-accessed-through-instance Change-Id: I71f54244f1e091315dac2943d9e1bfad6efa56a9 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Utils: Start replacing SavedActions by QAction or Utils::Aspecthjk2020-10-051-1/+1
| | | | | | | | First mechanical step here is to derive SavedActions from BaseAspect instead of QAction. Change-Id: I2ec95883b825462c1d867f83cc2b3bd2c2732055 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Debugger: Fix build with Qt6Eike Ziller2020-09-181-2/+2
| | | | | | | | | | QStringRef gone. ViewOptions changed. MetaType register stream operators automatically. Task-number: QTCREATORBUG-24098 Change-Id: Ibf98561af951aa5fc4ec483d18dafeaad02e07c3 Reviewed-by: hjk <hjk@qt.io>
* Core: replace QString with Utils::FilePath to get documentsDavid Schulz2020-09-041-1/+2
| | | | | Change-Id: I01777c227398be8bd3bf877c5429b84a75aa361b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Merge remote-tracking branch 'origin/4.13' into masterEike Ziller2020-08-101-1/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs qtcreator_ide_branding.pri src/plugins/cmakeprojectmanager/cmakebuildstep.cpp src/plugins/cmakeprojectmanager/cmakebuildstep.h tests/auto/debugger/tst_namedemangler.cpp tests/auto/qml/codemodel/check/tst_check.cpp Change-Id: Iefd5f71c03c0078513b76a92af764a4fb22ee4c2
| * Debugger: Do not send empty message on shutdownChristian Stenger2020-07-161-1/+0
| | | | | | | | | | | | | | | | This triggered a soft assert in DebuggerEngine::showMessage() and cleaning up the status bar is not necessary at all. Change-Id: I12d3d5cbc79f178af58ecb0a5c7a3130c880bdad Reviewed-by: hjk <hjk@qt.io>
| * Core/Utils: Migrate further to Utils::Idhjk2020-07-061-4/+4
| | | | | | | | | | | | | | | | The coreplugin/id.h header is kept for downstream for now. Change-Id: I8c44590f7b988b3770ecdc177c40783e12353e66 (cherry picked from commit 430a33dcd9ac80ddb848e41f8f059102857c88aa) Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Debugger: Avoid use of QHash::values(...) in QmlEnginehjk2020-07-311-13/+12
| | | | | | | | | | | | | | | | | | This will be gone in Qt6 and seems unnecessary here as insertion into the hash explicitly checks containment first, so this was effectively not used as QMultiHash anyway. Change-Id: I3f6ef9473930f72ee9b5f81f3623829d63619cc0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Core/Utils: Migrate further to Utils::Idhjk2020-07-061-4/+4
|/ | | | | | | The coreplugin/id.h header is kept for downstream for now. Change-Id: I8c44590f7b988b3770ecdc177c40783e12353e66 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Debugger: Use QRegularExpression in QmlInspectorhjk2020-06-241-4/+6
| | | | | Change-Id: Ib359738c07a5531fe66656bce5ad42c39e4a9ab2 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Debugger: Some compilation with Qt 6hjk2020-06-241-1/+1
| | | | | Change-Id: Ifffe68a3c902bbad026919171ac906ae05ec86f2 Reviewed-by: David Schulz <david.schulz@qt.io>
* Debugger: Fix a compiler warning about uninitialized variable useArtur Shepilko2020-06-231-0/+3
| | | | | Change-Id: I9e2ce85b3754bf7c832a8ca32412a2c9900344ef Reviewed-by: hjk <hjk@qt.io>