forked from qt-creator/qt-creator
Session: Move all functionality related to Nodes into ProjectTree
Do no longer expose Nodes from the SessionManager's API. These are now exclusively handled by the ProjectTree. Change-Id: I585c2ac919462073870363436e767640775d9045 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -75,13 +75,13 @@ namespace Internal {
|
||||
static Node *currentEditorNode()
|
||||
{
|
||||
Core::IDocument *doc = Core::EditorManager::currentDocument();
|
||||
return doc ? SessionManager::nodeForFile(doc->filePath()) : 0;
|
||||
return doc ? ProjectTree::nodeForFile(doc->filePath()) : nullptr;
|
||||
}
|
||||
|
||||
static QbsProject *currentEditorProject()
|
||||
{
|
||||
Core::IDocument *doc = Core::EditorManager::currentDocument();
|
||||
return doc ? qobject_cast<QbsProject *>(SessionManager::projectForFile(doc->filePath())) : 0;
|
||||
return doc ? qobject_cast<QbsProject *>(SessionManager::projectForFile(doc->filePath())) : nullptr;
|
||||
}
|
||||
|
||||
bool QbsProjectManagerPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
|
||||
Reference in New Issue
Block a user