forked from qt-creator/qt-creator
Introduced revisions in CPlusPlus::Document.
Reviewed by Thorbjørn Lindeijer
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -60,6 +60,9 @@ public:
|
||||
public:
|
||||
~Document();
|
||||
|
||||
unsigned revision() const;
|
||||
void setRevision(unsigned revision);
|
||||
|
||||
QString fileName() const;
|
||||
|
||||
QStringList includedFiles() const;
|
||||
@@ -265,6 +268,7 @@ private:
|
||||
QList<Block> _skippedBlocks;
|
||||
QList<MacroUse> _macroUses;
|
||||
QByteArray _source;
|
||||
unsigned _revision;
|
||||
|
||||
friend class Snapshot;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user