summaryrefslogtreecommitdiff
path: root/src/plugins/python/pythonutils.h
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2022-03-23 07:40:20 +0100
committerDavid Schulz <david.schulz@qt.io>2022-03-28 09:29:15 +0000
commit64170a788ad76d36fc081fa68601cf9a3fe2f5fd (patch)
tree9cb16559c4780a90b55fb79c24ee16917ad9cb30 /src/plugins/python/pythonutils.h
parentff686f567900ac45860556253c397425edc05cfc (diff)
downloadqt-creator-64170a788ad76d36fc081fa68601cf9a3fe2f5fd.tar.gz
Python: extract pythonProjectForFile function to utils
Change-Id: I4055527302cab09f55cd4b06bfd3896accb4832a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/python/pythonutils.h')
-rw-r--r--src/plugins/python/pythonutils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/python/pythonutils.h b/src/plugins/python/pythonutils.h
index c8844d964e..6493c612a6 100644
--- a/src/plugins/python/pythonutils.h
+++ b/src/plugins/python/pythonutils.h
@@ -35,5 +35,8 @@ void openPythonRepl(QObject *parent, const Utils::FilePath &file, ReplType type)
Utils::FilePath detectPython(const Utils::FilePath &documentPath);
QString pythonName(const Utils::FilePath &pythonPath);
+class PythonProject;
+PythonProject *pythonProjectForFile(const Utils::FilePath &pythonFile);
+
} // namespace Internal
} // namespace Python