Allow specifying the name of a new generic project

The name is used as the base for files like [project].creator,
[project].files, etc. and is displayed in the Projects mode and the
Projects tree.
This commit is contained in:
Thorbjørn Lindeijer
2009-03-19 16:33:44 +01:00
parent d2f07b967d
commit 9c8f4e30a7
14 changed files with 124 additions and 107 deletions

View File

@@ -30,12 +30,10 @@
#include "genericprojectnodes.h"
#include "genericproject.h"
#include <coreplugin/ifile.h>
#include <projectexplorer/projectexplorer.h>
#include <QDir>
#include <QFileInfo>
#include <QSettings>
#include <QtDebug>
using namespace GenericProjectManager;
using namespace GenericProjectManager::Internal;
@@ -44,7 +42,9 @@ GenericProjectNode::GenericProjectNode(GenericProject *project, Core::IFile *pro
: ProjectExplorer::ProjectNode(QFileInfo(projectFile->fileName()).absolutePath()),
m_project(project),
m_projectFile(projectFile)
{}
{
setFolderName(QFileInfo(projectFile->fileName()).baseName());
}
GenericProjectNode::~GenericProjectNode()
{ }