summaryrefslogtreecommitdiff
path: root/src/plugins/python
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge remote-tracking branch 'origin/9.0'Eike Ziller2022-11-101-1/+2
|\ \ | |/ | | | | Change-Id: Ie069f3b2a1200b3e665341b1d56ce836024b0d29
| * QmlJS: Fix Follow under cursorMarcus Tillmanns2022-11-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When trying to jump to a symbol in a qml file the Qml Model may find the location in a generated .qml file in the build folder. QtCreator searches in all generated .qrc files to try and find the source file so it can jump to it instead. Previously not all auto-generated ".rcc" folders would be found as only the folders of targets (executables) were searched. Plugins or Static Libraries were not searched. With this fix, all projects nodes are searched for the ".rcc" folder and therefore also finds them for Dynamic / Static libraries and plugins. Fixes: QTCREATORBUG-27173 Change-Id: Ic51ac8fbc82c15785cbefd76787942a512ecf3db Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* | Merge remote-tracking branch 'origin/9.0'Tim Jenssen2022-10-253-37/+56
|\ \ | |/ | | | | | | | | | | | | | | | | | | 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
| * Python: fix PySide project tool detectionDavid Schulz2022-10-241-34/+39
| | | | | | | | | | | | | | The tool moved to the PySide6-Essentials module. Change-Id: I204d2025bc51b6c5cffe82cba66878d077f03b72 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * Python: map building directory to pyside project deviceDavid Schulz2022-10-201-1/+3
| | | | | | | | | | Change-Id: If261483864a5e4a13554fdefbf3d9076b7d1f687 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * Python: try to find interpreter on device for run configurationDavid Schulz2022-10-201-1/+13
| | | | | | | | | | | | | | | | | | If the default interpreter is not on the run device of the kit try to find any interpreter on that device and use it as the default interpreter for this run configuration. Change-Id: I52985281f0f1d2ac88759169400d64121299f95d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * Python: trigger parse in build system creatorDavid Schulz2022-10-201-1/+1
| | | | | | | | | | | | | | | | Otherwise we do not have any app targets for the python run configuration after a kit setup. Change-Id: Ib7648a72280a1d68246c11139775a23366fda286 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Get rid of unneeded includes of RunControlJarek Kobus2022-10-251-1/+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>
* Python: Do not remove unreachable interpreter on startupDavid Schulz2022-10-181-3/+7
| | | | | | | | | A device might be not reachable at Qt Creator startup so do not filter out remote python interpreters after loading the settings. Change-Id: I3ac4f2baaca882e699f2210f6f5a92523891b0ca Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Port from qAsConst() to std::as_const()Marc Mutz2022-10-073-4/+4
| | | | | | | | | | | | | | 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>
* Python: remove settings object from objects poolDavid Schulz2022-09-062-0/+8
| | | | | Change-Id: I4f21688f887c1ad99facb3ffe3a85b5918dd7daf Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Docker: detect python in docker imagesDavid Schulz2022-09-062-6/+107
| | | | | Change-Id: I841cdb7ce1cb8f34565a5e6993c5c825937e3eab Reviewed-by: hjk <hjk@qt.io>
* Python: restructure settingsDavid Schulz2022-09-062-229/+136
| | | | | Change-Id: I32b3bed5581e06e981863b561b9b2f2bb125b82e Reviewed-by: hjk <hjk@qt.io>
* Utils: Replace PathChooser::{fileP,p}athChanged signalshjk2022-09-061-1/+1
| | | | | | | | | | | | | | | | | ... by a new PathChooser::textChanged signal. They were both emitted in reaction to the underlying line edit's textChanged() signal. Use 'textChanged()' as name to mimic/match the Qt side. This also makes it more clear on the user code side, when this happens. Some textChanged() consumers should probably use editingFinished() instead, but that's left for later changes. Change-Id: Ib07347f616cbf1c5d09bc2f8671ca860d185d1f9 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: use consistent pyls naming in settingsDavid Schulz2022-09-053-3/+3
| | | | | Change-Id: I8a36e4089812802c3629ac52ce52499dde53eba8 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-2631-744/+62
| | | | | | | | | 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>
* Merge remote-tracking branch 'origin/8.0'Eike Ziller2022-08-191-4/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reverts/comments out parts of 45f93a817a527e6dc81a8971dd2868b3da66cd84, which needs to be resolved in a follow-up commit. Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs qtcreator_ide_branding.pri share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5informationnodeinstanceserver.cpp src/plugins/clangcodemodel/clangmodelmanagersupport.cpp src/plugins/cmakeprojectmanager/cmakesettingspage.cpp src/plugins/python/pythoneditor.cpp src/plugins/qmldesigner/designercore/instances/nodeinstanceview.cpp src/plugins/scxmleditor/common/colorsettings.cpp Change-Id: I7f0f7b7120e75a9fc3a8886bc57c17345cbb501b
| * Python: Fix detecting python ls for reopened filesDavid Schulz2022-08-081-4/+4
| | | | | | | | | | Change-Id: Icc601fa43c7b1432d0bf12fae2f65e0c914262ac Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Merge remote-tracking branch 'origin/8.0'hjk2022-08-031-1/+1
|\ \ | |/ | | | | Change-Id: I1dc664137eeecb7dd69f29af7a08164683d51077
| * Python: skip root on venv detectionDavid Schulz2022-08-031-1/+1
| | | | | | | | | | | | | | | | | | Virtual environments on the root level are uncommon and can cause issues on some linux distros. Fixes: QTCREATORBUG-27976 Change-Id: I266f1b321c1c2d2b4b416acf3f34ce8c1d686219 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Utils: Make port.h slimmerhjk2022-07-271-0/+1
| | | | | | | | | | | | | | | | Fix the fallout. Also make comparisons hidden friends. Change-Id: Ib16a294391f5732f94f9f411a48220b497691de2 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Utils: Make the second parameter to LayoutBuilder::attach() an enumhjk2022-07-261-1/+1
| | | | | | | | | | | | | | | | More explicit and more potential options (e.g. "treat grid as form") than a bool. Change-Id: I89413efe30410160c38b0e524ba64288dde2332e Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Utils: Introduce Layouting::{br,st}hjk2022-07-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | ... as "standard" ways to define line breaks and simple stretch. There have already been too many patterns to do it. Break() and Stretch() still work for the patches in flight, but they are planned to be removed. Change-Id: I9b70dcdc11244a904a496b0c55938dfb0b265fc8 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | filesystem: Add QFSEngine for filepathsMarcus Tillmanns2022-07-211-3/+2
| | | | | | | | | | Change-Id: Ibd0c88c69863c0877138d8cc45541530c359bd9c Reviewed-by: hjk <hjk@qt.io>
* | Python: Convert to Tr::trhjk2022-07-2125-226/+169
| | | | | | | | | | | | Change-Id: I0241053b0d51dbb1a60c43351cbff543fd52573d Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Drop Qt5: ProjectExplorer: Get rid of QOverloadJarek Kobus2022-07-201-1/+1
| | | | | | | | | | | | Change-Id: Id8b28efa7b31a92a5e24485803322c586a23802d Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* | Utils: More porting.h related changeshjk2022-07-141-0/+1
| | | | | | | | | | Change-Id: I528a6950dfa6e09eb7f7ada265c8c41dba816bfd Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Merge remote-tracking branch 'origin/8.0'Eike Ziller2022-07-072-2/+4
|\ \ | |/ | | | | | | | | | | | | Conflicts: src/libs/utils/terminalprocess.cpp tests/auto/qml/qmldesigner/coretests/CMakeLists.txt Change-Id: Ifc5b37dadd46af752f0771a2685da1ac9a6260bd
| * Python: Prepend pyside6-project path to PATH env variableDavid Schulz2022-07-071-0/+3
| | | | | | | | | | | | | | | | Otherwise pyside6-project cannot find uic or rcc or might use those tools from another pyside installation. Change-Id: I34eff2fc2627b07a18a705e5d658bd7cf8ce9350 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * PipSupport: Connect to watcher before setting a futureJarek Kobus2022-07-051-2/+1
| | | | | | | | | | | | | | | | | | In order to avoid runtime warning: "QFutureWatcher::connect: connecting after calling setFuture() is likely to produce race". Change-Id: I921396628e5615e7c2d87045d2e787388dbddcc6 Reviewed-by: David Schulz <david.schulz@qt.io>
* | Merge remote-tracking branch 'origin/8.0'Eike Ziller2022-06-291-2/+2
|\ \ | |/ | | | | Change-Id: I552d201d09d62d21655176467088c6e48b8a2fe2
| * Python Language Client: Fix typo in translatable textLeena Miettinen2022-06-291-1/+1
| | | | | | | | | | Change-Id: I11a0161b76661fd876b47dc5aa23ce2449258ae0 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
| * UI text: Fix grammar errors and capitalization issuesLeena Miettinen2022-06-281-1/+1
| | | | | | | | | | Change-Id: Iefb1075cc0b14eb8c0e99b6c96c31a91c2b079f0 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Merge remote-tracking branch 'origin/8.0'Eike Ziller2022-06-281-6/+14
|\ \ | |/ | | | | Change-Id: Icef5e28557701243e686d35cf885412eb341e75a
| * Python: prevent setting local env to remote pylsDavid Schulz2022-06-271-6/+14
| | | | | | | | | | Change-Id: Id0eea5420c897687e6931bf640e3a37ba2638b8f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Add plugintr.h files to all pluginshjk2022-06-271-0/+37
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Except FakeVim, which had it before. for i in [a-eg-z]*/*.json ; do upper=${i##*/} upper=${upper/.json/} lower=${i%/*} trfile=$lower/${lower}tr.h cat << EOT > $lower/${lower}tr.h /**************************************************************************** ** ** Copyright (C) 2022 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms ** and conditions see https://www.qt.io/terms-conditions. For further ** information use the contact form at https://www.qt.io/contact-us. ** ** GNU General Public License Usage ** Alternatively, this file may be used under the terms of the GNU ** General Public License version 3 as published by the Free Software ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT ** included in the packaging of this file. Please review the following ** information to ensure the GNU General Public License requirements will ** be met: https://www.gnu.org/licenses/gpl-3.0.html. ** ****************************************************************************/ namespace $upper { struct Tr { Q_DECLARE_TR_FUNCTIONS($upper) }; } // namespace $upper EOT git add $trfile perl -pi -e "s/(${lower}_global.h)/\1\n ${lower}tr.h/" $lower/CMakeLists.txt perl -pi -e "s/(\"${lower}_global.h\",)/\1 \"${lower}tr.h\",/" $lower/$lower.qbs done Change-Id: I15ebbaaa9443c57b391b9e143f592d8a0c9208a9 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Fix lupdate issuesEike Ziller2022-06-272-5/+5
| | | | | | | Change-Id: I7256c8aff5eb77b264b76ba24e79c26ab2924e84 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Code cosmeticshjk2022-06-242-2/+2
| | | | | | | | | | Mostly unused #include's, also sort them or reduce scope. A few namespaces, ... Change-Id: I9ee71e07de7157c9942125672addf87dd41e78f1 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
* Python: improve initializing python run configurationDavid Schulz2022-06-241-0/+1
| | | | | | | | Sets main.py as the default script. If we cannot find a main.py we create a runconfig for every py file in the project. Change-Id: I93f4c9a5c9e2825a592eee3707439e69a8aea566 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: automatically disable outdated pyls settingsDavid Schulz2022-06-241-1/+34
| | | | | Change-Id: I301c6df3fdd9cf634a1abff20c6f24b9bc5fc23b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: only add python files as targetsDavid Schulz2022-06-241-1/+2
| | | | | Change-Id: I21f0ca6035aed6306d6cbe55a6c6df0838e49f45 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* PipInstallTask: Connect to done() signal instead of finished()Jarek Kobus2022-06-212-13/+11
| | | | | | Change-Id: I7a712791a440668c7efb8282d7f035a120c7d719 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
* Python: remove static cast of client interface in client constructorDavid Schulz2022-06-202-3/+4
| | | | | Change-Id: I475a2b79438b8392085f1d9bf2cdb8b7369efa68 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: check for pyside tools after installationDavid Schulz2022-06-204-3/+23
| | | | | Change-Id: Icf9ae0ec08a78efc51216daa3304e76f8e812d5f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: Fix scripts path to global/venv pyside installationsDavid Schulz2022-06-201-1/+6
| | | | | | | ... when checking for pyside tools. Change-Id: I1aaac9dd9da76f08ada031cc88761dba36c4e3b6 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: ignore windows store redirectorsDavid Schulz2022-06-201-6/+15
| | | | | Change-Id: Ife5c13549d73156550a7ce4b5436f1e5a19503fa Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Utils: use cleaned stdout all over the place againDavid Schulz2022-06-171-1/+1
| | | | | | | Amends 5ee880ce5e6998170823e6fc9afb6b6c36c6170a Change-Id: Ie0202db7d8455372c3697087d9571db6706b45a1 Reviewed-by: hjk <hjk@qt.io>
* Replace QtcProcess::stopProcess() by stop() plus waitForFinishedhjk2022-06-161-1/+2
| | | | | | | ... or nothing, if the process object is destroyed immediately. Change-Id: I6a1e1928bc49fc20a1c0e0ee9b8f4f723276bbca Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Python: make sure working dir is on python deviceDavid Schulz2022-06-151-0/+4
| | | | | | Task-number: QTCREATORBUG-27536 Change-Id: If9c8f88f2a871ec71b200020689a4ae9df1e8a6a Reviewed-by: hjk <hjk@qt.io>
* Python: prefer python from path when detecting python for documentDavid Schulz2022-06-151-5/+15
| | | | | Change-Id: I794a741fa7257833f0b4efbc25dfae43b8748427 Reviewed-by: Christian Stenger <christian.stenger@qt.io>