forked from qt-creator/qt-creator
Make IDocument::fileName a member with setter.
Instead of requiring subclasses to implement a method. Also renames IDocument::rename to IDocument::setFileName, since it doesn't really rename any files or such. Change-Id: I1344025c24d2f74a6a983e04fb0a5245f1f37aad Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -38,9 +38,9 @@ using namespace AutotoolsProjectManager::Internal;
|
||||
|
||||
AutotoolsProjectFile::AutotoolsProjectFile(AutotoolsProject *project, const QString &fileName) :
|
||||
Core::IDocument(project),
|
||||
m_project(project),
|
||||
m_fileName(fileName)
|
||||
m_project(project)
|
||||
{
|
||||
setFileName(fileName);
|
||||
}
|
||||
|
||||
bool AutotoolsProjectFile::save(QString *errorString, const QString &fileName, bool autoSave)
|
||||
@@ -52,11 +52,6 @@ bool AutotoolsProjectFile::save(QString *errorString, const QString &fileName, b
|
||||
return false;
|
||||
}
|
||||
|
||||
QString AutotoolsProjectFile::fileName() const
|
||||
{
|
||||
return m_fileName;
|
||||
}
|
||||
|
||||
QString AutotoolsProjectFile::defaultPath() const
|
||||
{
|
||||
return QString();
|
||||
@@ -90,8 +85,3 @@ bool AutotoolsProjectFile::reload(QString *errorString, ReloadFlag flag, ChangeT
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void AutotoolsProjectFile::rename(const QString &newName)
|
||||
{
|
||||
Q_UNUSED(newName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user