diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2011-05-10 20:43:03 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2011-05-12 20:10:03 +0200 |
commit | 9ac137fb062138bc8c8f338526f94eeab96c9abc (patch) | |
tree | 4d0c86691f0c8c871cc805a2e7e91a4730b582e7 /src/plugins/qt4projectmanager | |
parent | a14955d0fb3167436a584eaf318e5da86a4175bb (diff) | |
download | qt-creator-9ac137fb062138bc8c8f338526f94eeab96c9abc.tar.gz |
add auto-saving of modified editors
Task-number: QTCREATORBUG-2847
Diffstat (limited to 'src/plugins/qt4projectmanager')
-rw-r--r-- | src/plugins/qt4projectmanager/qt4nodes.cpp | 3 | ||||
-rw-r--r-- | src/plugins/qt4projectmanager/qt4nodes.h | 2 | ||||
-rw-r--r-- | src/plugins/qt4projectmanager/qt4project.cpp | 2 | ||||
-rw-r--r-- | src/plugins/qt4projectmanager/qt4project.h | 2 |
4 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/qt4projectmanager/qt4nodes.cpp b/src/plugins/qt4projectmanager/qt4nodes.cpp index 3ae8cc2b22..8c609475b2 100644 --- a/src/plugins/qt4projectmanager/qt4nodes.cpp +++ b/src/plugins/qt4projectmanager/qt4nodes.cpp @@ -176,10 +176,11 @@ Qt4PriFile::Qt4PriFile(Qt4PriFileNode *qt4PriFile) } -bool Qt4PriFile::save(QString *errorString, const QString &fileName) +bool Qt4PriFile::save(QString *errorString, const QString &fileName, bool autoSave) { Q_UNUSED(errorString); Q_UNUSED(fileName); + Q_UNUSED(autoSave); return false; } diff --git a/src/plugins/qt4projectmanager/qt4nodes.h b/src/plugins/qt4projectmanager/qt4nodes.h index 2854009aa7..9f72455682 100644 --- a/src/plugins/qt4projectmanager/qt4nodes.h +++ b/src/plugins/qt4projectmanager/qt4nodes.h @@ -115,7 +115,7 @@ class Qt4PriFile : public Core::IFile Q_OBJECT public: Qt4PriFile(Qt4PriFileNode *qt4PriFile); - virtual bool save(QString *errorString, const QString &fileName = QString()); + virtual bool save(QString *errorString, const QString &fileName, bool autoSave); virtual QString fileName() const; virtual void rename(const QString &newName); diff --git a/src/plugins/qt4projectmanager/qt4project.cpp b/src/plugins/qt4projectmanager/qt4project.cpp index 977b4a7d54..b700b24f32 100644 --- a/src/plugins/qt4projectmanager/qt4project.cpp +++ b/src/plugins/qt4projectmanager/qt4project.cpp @@ -183,7 +183,7 @@ Qt4ProjectFile::Qt4ProjectFile(Qt4Project *project, const QString &filePath, QOb { } -bool Qt4ProjectFile::save(QString *, const QString &) +bool Qt4ProjectFile::save(QString *, const QString &, bool) { // This is never used return false; diff --git a/src/plugins/qt4projectmanager/qt4project.h b/src/plugins/qt4projectmanager/qt4project.h index 26290d70a3..1389aad7a9 100644 --- a/src/plugins/qt4projectmanager/qt4project.h +++ b/src/plugins/qt4projectmanager/qt4project.h @@ -80,7 +80,7 @@ class Qt4ProjectFile : public Core::IFile public: Qt4ProjectFile(Qt4Project *project, const QString &filePath, QObject *parent = 0); - bool save(QString *errorString, const QString &fileName = QString()); + bool save(QString *errorString, const QString &fileName, bool autoSave); QString fileName() const; virtual void rename(const QString &newName); |