QTextStream out(&proFileContent, QIODevice::WriteOnly);
QString valueOnNextLine;
- bool uncommentNextLine = false;
+ bool commentOutNextLine = false;
QString line;
while (!(line = in.readLine()).isNull()) {
if (line.contains(QLatin1String("# TARGETUID3"))) {
valueOnNextLine = symbianTargetUid();
} else if (line.contains(QLatin1String("# NETWORKACCESS"))
&& !networkEnabled()) {
- uncommentNextLine = true;
+ commentOutNextLine = true;
} else {
- handleCurrentProFileTemplateLine(line, in, out, uncommentNextLine);
+ handleCurrentProFileTemplateLine(line, in, out, commentOutNextLine);
}
// Remove all marker comments
continue;
}
- if (uncommentNextLine) {
+ if (commentOutNextLine) {
out << comment << line << endl;
- uncommentNextLine = false;
+ commentOutNextLine = false;
continue;
}
out << line << endl;
virtual bool adaptCurrentMainCppTemplateLine(QString &line) const=0;
virtual void handleCurrentProFileTemplateLine(const QString &line,
QTextStream &proFileTemplate, QTextStream &proFile,
- bool &uncommentNextLine) const=0;
+ bool &commentOutNextLine) const = 0;
virtual QList<AbstractGeneratedFileInfo> updateableFiles(const QString &mainProFile) const = 0;
QString m_projectName;
void Html5App::handleCurrentProFileTemplateLine(const QString &line,
QTextStream &proFileTemplate, QTextStream &proFile,
- bool &uncommentNextLine) const
+ bool &commentOutNextLine) const
{
+ Q_UNUSED(commentOutNextLine)
if (line.contains(QLatin1String("# DEPLOYMENTFOLDERS"))) {
// Eat lines
QString nextLine;
virtual bool adaptCurrentMainCppTemplateLine(QString &line) const;
virtual void handleCurrentProFileTemplateLine(const QString &line,
QTextStream &proFileTemplate, QTextStream &proFile,
- bool &uncommentNextLine) const;
+ bool &commentOutNextLine) const;
QList<AbstractGeneratedFileInfo> updateableFiles(const QString &mainProFile) const;
QFileInfo m_indexHtmlFile;
void MobileApp::handleCurrentProFileTemplateLine(const QString &line,
QTextStream &proFileTemplate, QTextStream &proFile,
- bool &uncommentNextLine) const
+ bool &commentOutNextLine) const
{
Q_UNUSED(line);
Q_UNUSED(proFileTemplate);
Q_UNUSED(proFile);
- Q_UNUSED(uncommentNextLine);
+ Q_UNUSED(commentOutNextLine);
}
Core::GeneratedFiles MobileApp::generateFiles(QString *errorMessage) const
virtual bool adaptCurrentMainCppTemplateLine(QString &line) const;
virtual void handleCurrentProFileTemplateLine(const QString &line,
QTextStream &proFileTemplate, QTextStream &proFile,
- bool &uncommentNextLine) const;
+ bool &commentOutNextLine) const;
QList<AbstractGeneratedFileInfo> updateableFiles(const QString &mainProFile) const;
};
void QtQuickApp::handleCurrentProFileTemplateLine(const QString &line,
QTextStream &proFileTemplate, QTextStream &proFile,
- bool &uncommentNextLine) const
+ bool &commentOutNextLine) const
{
if (line.contains(QLatin1String("# DEPLOYMENTFOLDERS"))) {
// Eat lines
proFile << "DEPLOYMENTFOLDERS = " << folders.join(QLatin1String(" ")) << endl;
} else if (line.contains(QLatin1String("# QMLJSDEBUGGER"))) {
// ### disabled for now; figure out the private headers problem first.
- //uncommentNextLine = true;
- Q_UNUSED(uncommentNextLine);
+ //commentOutNextLine = true;
+ Q_UNUSED(commentOutNextLine)
} else if (line.contains(QLatin1String("# QML_IMPORT_PATH"))) {
QString nextLine = proFileTemplate.readLine(); // eats 'QML_IMPORT_PATH ='
if (!nextLine.startsWith(QLatin1String("QML_IMPORT_PATH =")))
virtual bool adaptCurrentMainCppTemplateLine(QString &line) const;
virtual void handleCurrentProFileTemplateLine(const QString &line,
QTextStream &proFileTemplate, QTextStream &proFile,
- bool &uncommentNextLine) const;
+ bool &commentOutNextLine) const;
QList<AbstractGeneratedFileInfo> updateableFiles(const QString &mainProFile) const;
bool addExternalModule(const QString &uri, const QFileInfo &dir,