Introduced revisions in CPlusPlus::Document.

Reviewed by Thorbjørn Lindeijer
This commit is contained in:
Roberto Raggi
2009-07-14 14:23:12 +02:00
parent 2e49aaf484
commit 37a146d05c
4 changed files with 40 additions and 3 deletions

View File

@@ -103,7 +103,8 @@ private:
Document::Document(const QString &fileName)
: _fileName(fileName),
_globalNamespace(0)
_globalNamespace(0),
_revision(0)
{
_control = new Control();
@@ -130,6 +131,16 @@ Control *Document::control() const
return _control;
}
unsigned Document::revision() const
{
return _revision;
}
void Document::setRevision(unsigned revision)
{
_revision = revision;
}
QString Document::fileName() const
{
return _fileName;