diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2017-03-29 11:25:01 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2017-03-29 11:53:24 +0000 |
commit | b0c7bb0f7b866ac6f8f41b0c1b148f97fabbfa5f (patch) | |
tree | b3b04932567e1da2b0e997a37d191ab8a175d364 /src/plugins/pythoneditor | |
parent | 6829e33dc25051b35d665edeada4d668875ad0e5 (diff) | |
download | qt-creator-b0c7bb0f7b866ac6f8f41b0c1b148f97fabbfa5f.tar.gz |
Project: Move ProjectDocument setup into Project class
Change-Id: I5c0ec79ddf066e37660fb9a6b24f9d882355d511
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/pythoneditor')
-rw-r--r-- | src/plugins/pythoneditor/pythoneditorplugin.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/pythoneditor/pythoneditorplugin.cpp b/src/plugins/pythoneditor/pythoneditorplugin.cpp index 7dbe7953ff..1e97696fb3 100644 --- a/src/plugins/pythoneditor/pythoneditorplugin.cpp +++ b/src/plugins/pythoneditor/pythoneditorplugin.cpp @@ -375,11 +375,10 @@ private: } }; -PythonProject::PythonProject(const FileName &fileName) +PythonProject::PythonProject(const FileName &fileName) : + Project(Constants::C_PY_MIMETYPE, fileName, [this]() { refresh(); }) { setId(PythonProjectId); - setDocument(new ProjectDocument(Constants::C_PY_MIMETYPE, fileName, [this]() { refresh(); })); - setProjectContext(Context(PythonProjectContext)); setProjectLanguages(Context(ProjectExplorer::Constants::CXX_LANGUAGE_ID)); } |