summaryrefslogtreecommitdiff
path: root/src/plugins/python
Commit message (Collapse)AuthorAgeFilesLines
* Utils: Centralize style-related property names as constantsAlessandro Portale2023-05-101-2/+4
| | | | | | | | | | This introduces string constants in Utils::StyleHelper. They are used by code all over in Qt Creator to tell ManhattanStyle how to paint certain widgets. Change-Id: Iecca36103f80084cd5fe93fcb6b18b8fbb3a32bb Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Utils: Add TerminalMode::DetachedMarcus Tillmanns2023-05-041-16/+16
| | | | | Change-Id: Ic36845d3469719e17f24602ce80f3e6cfc984fbf Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Utils: Rename qtcprocess.{cpp,h} -> process.{cpp,h}Jarek Kobus2023-05-047-8/+7
| | | | | | | | 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-048-16/+16
| | | | | | | | 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>
* Layouting: Handle attach types via setterhjk2023-05-032-4/+6
| | | | | | Change-Id: I862f5cd109db3582b4f029787ec0cded2da39ce6 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Utils: Rename asynctask.{cpp,h} -> async.{cpp,h}Jarek Kobus2023-05-033-3/+3
| | | | | | | Follows AsyncTask -> Async rename. Change-Id: I37f18368ab826c9960a24087b52f6691bb33f225 Reviewed-by: hjk <hjk@qt.io>
* All Plugins: Use global future synchronizerJarek Kobus2023-04-253-13/+3
| | | | | | | | | | Instead of using plugin's own synchronizers. The global synchronizer does the synchronization just before all the plugins' destructors run (in sync), so this should be the right equivalent. Change-Id: I8d09c9ea4a11b7a703684ad5319191ce310d992e Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Utils: Make Layouting a top level namespacehjk2023-04-251-1/+1
| | | | | | | | | | The whole machinery is now almost only layoutbuilder.{h,cpp}, mostly independent of the rest of Utils. Idea is to finish the separation to make it stand-alone usable also outside creator. Change-Id: I958aa667d17ae26b21209f22412309c5307a579c Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Python: Avoid IOptionPageWidget::widget() in settingshjk2023-04-211-9/+12
| | | | | | | This is planned to become inaccessible for user code. Change-Id: I2530a6ccf9f46cedff68ae62e8ac3d42d6792e0a Reviewed-by: David Schulz <david.schulz@qt.io>
* Merge remote-tracking branch 'origin/10.0'Eike Ziller2023-04-136-24/+31
|\ | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/python/pipsupport.cpp src/plugins/qtsupport/exampleslistmodel.cpp src/plugins/qtsupport/examplesparser.cpp tests/auto/examples/tst_examples.cpp Change-Id: I00273622423fa99d41621969f6ecbbdaa0e18664
| * Python: Remove unneeded mutexJarek Kobus2023-04-042-12/+7
| | | | | | | | | | | | | | | | | | | | The mutex may potentially block concurrent calls to Pip::infoImpl(). Make infoImpl() a static method in cpp. Change-Id: I06e2de08674b5669e58684743d67a569da43d662 Reviewed-by: David Schulz <david.schulz@qt.io>
| * Python: Don't leak running futures on shutdownJarek Kobus2023-04-043-12/+23
| | | | | | | | | | | | | | | | | | This patch fixes the following assert on shutdown: "Shutting down while process /testenv/bin/python is running\"\n". Change-Id: I4c32ead5e4952b69ffc6037739fd417a632eda1a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
| * Fix lots of tr.h files not being mentioned in CMakeLists.txtEike Ziller2023-04-011-0/+1
| | | | | | | | | | | | | | Change-Id: I63d364ac50d9587339b10a5571870cb9a81c54ee 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>
* | Python: Allow installing multiple pip packages in one taskDavid Schulz2023-04-064-16/+32
| | | | | | | | | | Change-Id: If6cc1373cd38c07b29ac48fa51bf0ed35d6f104b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Utils: Replace FilePath::onDevice() by new FilePath::withMappedPath()hjk2023-04-042-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Basically a.onDevice(b) == b.withNewMappedPath(a), matching the order of b.withNewPath(a). Whether the (curretly docker-specific) path mapping is useful /there/, and whether some of the calls are needed at all is dubious. I added some FIXME and changed a few cases directly. Change-Id: I7514736ce922f632f1f737bc496f6783389a42b6 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | ProjectExplorer: Inline BuildStepInfohjk2023-03-281-1/+1
| | | | | | | | | | | | | | Was a more or less arbitrary subset of BuildStepFactory data. Change-Id: Ie37735532da8a15a22d5f92e1b45d6ed5f7758fc Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Python: add create venv option to the wizardDavid Schulz2023-03-275-45/+123
| | | | | | | | | | | | | | | | | | and optimize layouting Fixes: PYSIDE-2152 Change-Id: If3ecb76c4bac885840f54fd382471ac22a06dee3 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Python: Tweak handling of python project filesChristian Stenger2023-03-223-3/+9
| | | | | | | | | | | | | | | | Improves the handling of the preferred python project file (*.pyproject) and makes use of the json support. Change-Id: I24d6e2c1d10899efacec0fc9b03660bb8f25dfe7 Reviewed-by: David Schulz <david.schulz@qt.io>
* | Python: add create venv actionDavid Schulz2023-03-215-17/+130
| | | | | | | | | | | | | | | | | | The action can be triggered from the interpreter chooser of the editor toolbar. Change-Id: Ie23b68a3790525ea02883ef359b357a0d317b2f5 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Python: remove unused functionDavid Schulz2023-03-172-10/+0
| | | | | | | | | | Change-Id: Iceee91f761e080dcdd329375638f883261c0a319 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Python: Remove dead codeDavid Schulz2023-03-141-5/+0
| | | | | | | | | | Change-Id: I31aa1610b548b37f30f3daa353627f9c6418c3c8 Reviewed-by: hjk <hjk@qt.io>
* | Python: add interpreter selector to the python project wizardDavid Schulz2023-03-145-1/+216
| | | | | | | | | | Change-Id: I7ea1df34fa0096a84a0d611b401f991508c826c1 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Python: Use QtConcurrent invocation for async runJarek Kobus2023-03-103-7/+6
| | | | | | | | | | | | | | Change-Id: I26254d5c78c3b6ea06ed9baec8e52b988a6e9608 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | ProjectExplorer: Move some not-fully-session related bitshjk2023-03-014-10/+10
|/ | | | | | | | | | | | | | | ... out of SessionManager. The idea is to later move SessionManager into the Core plugin, which both is sensible conceptually and also prerequisite to merge the Bookmark plugin into TextEditor plugin. Currently, only the interface is split, as the load/save implemetations are non-mechanical to disentangle. Change-Id: I31631db3094ea192825a2ccaa6add6188662940b Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Translations: Merge "OpenWith::Editors" into "QtC::Core"Alessandro Portale2023-02-202-4/+3
| | | | | | Change-Id: I241ccc53afa11fa3faa1f1ca9363421827081812 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* Translations: Change translation context prefix from "::" to "QtC::"Alessandro Portale2023-02-101-1/+1
| | | | | | | lupdate would be confused by translation contexts starting with :: Change-Id: Ie95e73436fd3cafc80a8e89f908efadc747e644c Reviewed-by: hjk <hjk@qt.io>
* Qbs: Update some qbs filesChristian Stenger2023-02-081-0/+1
| | | | | | | | List respective tr files and while at it shuffle some of the listed files to match common sort order. Change-Id: I73845ad1dae5e8c86d3741067f40b7b2b37e2a6e Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Remove unneeded includes of QFutureWatcher/InterfaceJarek Kobus2023-02-011-2/+0
| | | | | | | | Change-Id: I1069b1dbd9fe1754afef0009d4f18cedeeecec1e Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Python: collect pip package info in another threadDavid Schulz2023-01-274-75/+161
| | | | | Change-Id: I70a9066fddf812ce9bde5467913bb2bad98e2d0e Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: remove outdated pyls install toolbar earlierDavid Schulz2023-01-201-1/+1
| | | | | Change-Id: I9ba67bffcff159523eb44b4f486c11fc37085fa8 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Use simpler Plugin::initialize() when feasiblehjk2023-01-202-7/+2
| | | | | Change-Id: I567965d266f20526bda9f823e31a04b354d53fb1 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Python: add interpreter selector to editor toolbarDavid Schulz2023-01-204-58/+179
| | | | | | Fixes: PYSIDE-2154 Change-Id: If5e90f5bf2923b61af37ebbfcd35c512b3b07db4 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: Fix crash on switching interpreters in run configurationDavid Schulz2023-01-161-3/+4
| | | | | | | | | This happens if the project contains ui files, pyside with pyside uic and the python language server is installed. It is caused by pointers to already deleted extra compilers in the pyls language client. Change-Id: I877f20292c9c850c151fa94149b5a46d4836c3de Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* ProjectExplorer: Tr::trhjk2023-01-161-2/+2
| | | | | Change-Id: I8f1b463c5cc7a53627f7a9ad261998b92f13e56a Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Prefix Tr::tr contexts with ::hjk2023-01-131-1/+1
| | | | | | | To make outliers better visible in Linguist Change-Id: Ic35ea2a858b7e3576d9a416fb494fddb616eaaa1 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ExtraCompiler: Expose TaskItem for compile taskJarek Kobus2023-01-111-1/+1
| | | | | | | | | | | | This is an intermediate state before employing one common TaskTree inside CppProjectUpdater. Use multiple one-task TaskTrees for now. Refactor ExtraCompiler so that there is only one pure virtual method to be implemented (taskItem()) instead of two (2 run() overloads). Use TaskTree inside ExtraCompiler for running the compilation process. Change-Id: I6884934508e043594589d117f6d3f0aed94b84c2 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Utils: Rename QtcProcess::readAllStandard* to readAllRawStandard*hjk2023-01-102-3/+3
| | | | | | | | | | | | ... 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>
* ProjectExplorer: Introduce and use convenience factory classhjk2023-01-101-11/+3
| | | | | | | ... to create SimpleTargetRunner runners for a single run config. Change-Id: I8af3d7cdcaf54f0584af948aa6e0fa015d1a3077 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Utils: Rename most FilePath::{from,to}Variant uses to {from,to}Settingshjk2023-01-101-2/+2
| | | | | | | | Specifies the main purpose more clearly. The remaining ones a "true" (internal) variants in models and as action data. Change-Id: I8dd3c846e419f29d88283c2f48268ef6685b19fe Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-0631-31/+31
| | | | | | | | | | | | | | | 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>
* LSP: Support remote LSP file pathsDavid Schulz2022-12-151-1/+1
| | | | | Change-Id: If3cf1b8d675ef091427dbcd703c7d14b384a1b3a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Remove unused variablesJarek Kobus2022-12-091-1/+0
| | | | | | Change-Id: I653f6fa71bb04e049d4e1848a7e38a606692e678 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
* Don't call non-const methods on temporary QListJarek Kobus2022-12-081-1/+1
| | | | | | | | Otherwise it may unnecessarily detach. Either store a local const reference or call const equivalent (e.g. constFirst()). Change-Id: I96d665487cf28c17e72bea17f1b8f164ce06cc70 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Python: Replace one use of QDirCurrentPath()hjk2022-11-211-1/+1
| | | | | Change-Id: I88a04930b8c62a68ee1adb73e1cdd3c433eea4e3 Reviewed-by: David Schulz <david.schulz@qt.io>
* Merge remote-tracking branch 'origin/9.0'Eike Ziller2022-11-211-28/+32
|\ | | | | | | Change-Id: Idd9c2b1bf787040b7b415b7cda29035227ca1011
| * Python: Avoid flashing a separate widget when opening settingshjk2022-11-181-28/+32
| | | | | | | | | | Change-Id: Id0518c222ffa91bc8791cfa71edb9b715ce65cde Reviewed-by: David Schulz <david.schulz@qt.io>
* | Remove unused includes of QBoxLayoutJarek Kobus2022-11-181-1/+0
| | | | | | | | | | | | | | Change-Id: I74204eaf70dbcb31a8bd13609bef35459c8c6b5f Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
* | Remove unused includes of QGridLayoutJarek Kobus2022-11-181-1/+0
| | | | | | | | | | | | | | Change-Id: Ia0823fe1dbadb7c68efc431c3bf0f1ba621a9484 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
* | Python: Initialize settings in the pimplhjk2022-11-183-13/+6
| | | | | | | | | | Change-Id: I172136851c3002bf785d9b8f378c0cccc408e0e2 Reviewed-by: David Schulz <david.schulz@qt.io>
* | Remove unused includes of QFormLayoutJarek Kobus2022-11-181-1/+0
| | | | | | | | | | | | | | Change-Id: Ia877cb57037342f2a7b332b29d9cb45e9b01c4bc 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>