qmake: Rename QmakeParserPriFile to QmakePriFileDocument

Makes it clearer what that actually is.

Change-Id: I2b50deba53ae5cef2bf1a30b9497c1867559e1e9
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
This commit is contained in:
Tobias Hunger
2017-02-09 14:57:39 +01:00
parent 528b5f2298
commit e376424b33
2 changed files with 8 additions and 8 deletions

View File

@@ -232,10 +232,10 @@ public:
QStringList errors;
};
class QmakeParserPriFile : public Core::IDocument
class QmakePriFileDocument : public Core::IDocument
{
public:
QmakeParserPriFile(QmakeParserPriFileNode *qmakePriFile)
QmakePriFileDocument(QmakeParserPriFileNode *qmakePriFile)
: IDocument(nullptr), m_priFile(qmakePriFile)
{
setId("Qmake.PriFile");
@@ -460,8 +460,8 @@ QmakeParserPriFileNode::QmakeParserPriFileNode(QmakeProject *project,
m_projectDir(filePath.toFileInfo().absolutePath())
{
Q_ASSERT(project);
m_qmakePriFile = new QmakeParserPriFile(this);
Core::DocumentManager::addDocument(m_qmakePriFile);
m_priFileDocument = new QmakePriFileDocument(this);
Core::DocumentManager::addDocument(m_priFileDocument);
setDisplayName(filePath.toFileInfo().completeBaseName());
setIcon(qmakeParserNodeStaticData()->projectIcon);
@@ -470,7 +470,7 @@ QmakeParserPriFileNode::QmakeParserPriFileNode(QmakeProject *project,
QmakeParserPriFileNode::~QmakeParserPriFileNode()
{
watchFolders(QSet<QString>());
delete m_qmakePriFile;
delete m_priFileDocument;
}
void QmakeParserPriFileNode::scheduleUpdate()