aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/python/pythonutils.cpp
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2024-04-17 15:08:34 +0200
committerDavid Schulz <david.schulz@qt.io>2024-04-22 11:36:12 +0000
commit620f6fd39ba42189ab5841c12cd8c7fcd8b93e56 (patch)
treece9efe308e6f6438dcbef98204828ed0b19c056c /src/plugins/python/pythonutils.cpp
parentb5740eb0c613a9edf9e28d60d07bae4fe4921de6 (diff)
Python: offer to install pyside also in qml files
This shwos the same editor toolbar as in the python editor that offers to install pyside, if the qml file can be associated to a python project and the configured python for that project does not contain a valid pyside. Change-Id: Id05a2621aec9d78c4a22e61830813cd261eda4fc Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/python/pythonutils.cpp')
-rw-r--r--src/plugins/python/pythonutils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/python/pythonutils.cpp b/src/plugins/python/pythonutils.cpp
index bf97831cad9..2e4cd4ed585 100644
--- a/src/plugins/python/pythonutils.cpp
+++ b/src/plugins/python/pythonutils.cpp
@@ -158,11 +158,11 @@ QString pythonName(const FilePath &pythonPath)
return name;
}
-PythonProject *pythonProjectForFile(const FilePath &pythonFile)
+PythonProject *pythonProjectForFile(const FilePath &file)
{
for (Project *project : ProjectManager::projects()) {
if (auto pythonProject = qobject_cast<PythonProject *>(project)) {
- if (pythonProject->isKnownFile(pythonFile))
+ if (pythonProject->isKnownFile(file))
return pythonProject;
}
}