diff options
author | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-10-29 17:53:47 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-11-03 11:01:50 +0000 |
commit | 5d7f5a2a32a742c3c83b3427f970c9d6ad824e69 (patch) | |
tree | be347e44bb9d1fa6fe9d5fb6aa3a36d32503ec60 /src/plugins/resourceeditor/resourceeditorplugin.cpp | |
parent | 6d9ff690c7eaabd9b27931ea38934b97466a43c2 (diff) |
ProjectNode: Rename path() to filePath()
Change-Id: I78bb73f8c9457fd74c470eacbf54eb9195ac9681
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/resourceeditor/resourceeditorplugin.cpp')
-rw-r--r-- | src/plugins/resourceeditor/resourceeditorplugin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/resourceeditor/resourceeditorplugin.cpp b/src/plugins/resourceeditor/resourceeditorplugin.cpp index 1c20bf1d58..71d4d8a441 100644 --- a/src/plugins/resourceeditor/resourceeditorplugin.cpp +++ b/src/plugins/resourceeditor/resourceeditorplugin.cpp @@ -272,7 +272,7 @@ void ResourceEditorPlugin::renameFileContextMenu() void ResourceEditorPlugin::removeFileContextMenu() { ResourceFolderNode *rfn = static_cast<ResourceFolderNode *>(ProjectTree::currentNode()); - QString path = rfn->path().toString(); + QString path = rfn->filePath().toString(); FolderNode *parent = rfn->parentFolderNode(); if (!parent->removeFiles(QStringList() << path)) QMessageBox::warning(Core::ICore::mainWindow(), @@ -282,7 +282,7 @@ void ResourceEditorPlugin::removeFileContextMenu() void ResourceEditorPlugin::openEditorContextMenu() { - Core::EditorManager::openEditor(ProjectTree::currentNode()->path().toString()); + Core::EditorManager::openEditor(ProjectTree::currentNode()->filePath().toString()); } void ResourceEditorPlugin::copyPathContextMenu() @@ -345,7 +345,7 @@ void ResourceEditorPlugin::updateContextActions(Node *node, Project *) m_removeNonExisting->setVisible(isResourceNode); if (isResourceNode) - Core::EditorManager::populateOpenWithMenu(m_openWithMenu, node->path().toString()); + Core::EditorManager::populateOpenWithMenu(m_openWithMenu, node->filePath().toString()); else m_openWithMenu->clear(); m_openWithMenu->menuAction()->setVisible(!m_openWithMenu->actions().isEmpty()); |