forked from qt-creator/qt-creator
Maemo: Move .pro file operations into their own class.
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
#include "maemopackagecreationwidget.h"
|
||||
#include "maemopackagecontents.h"
|
||||
#include "maemotoolchain.h"
|
||||
#include "profilewrapper.h"
|
||||
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <qt4buildconfiguration.h>
|
||||
@@ -90,6 +91,8 @@ MaemoPackageCreationStep::MaemoPackageCreationStep(BuildConfiguration *buildConf
|
||||
{
|
||||
}
|
||||
|
||||
MaemoPackageCreationStep::~MaemoPackageCreationStep() {}
|
||||
|
||||
bool MaemoPackageCreationStep::init()
|
||||
{
|
||||
return true;
|
||||
@@ -364,6 +367,18 @@ void MaemoPackageCreationStep::raiseError(const QString &shortMsg,
|
||||
TASK_CATEGORY_BUILDSYSTEM));
|
||||
}
|
||||
|
||||
QSharedPointer<ProFileWrapper> MaemoPackageCreationStep::proFileWrapper() const
|
||||
{
|
||||
if (!m_proFileWrapper) {
|
||||
const Qt4ProFileNode * const proFileNode = qt4BuildConfiguration()
|
||||
->qt4Target()->qt4Project()->rootProjectNode();
|
||||
m_proFileWrapper = QSharedPointer<ProFileWrapper>(
|
||||
new ProFileWrapper(proFileNode->path()));
|
||||
}
|
||||
|
||||
return m_proFileWrapper;
|
||||
}
|
||||
|
||||
const QLatin1String MaemoPackageCreationStep::CreatePackageId("Qt4ProjectManager.MaemoPackageCreationStep");
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user