Task, adjust line numbers while editing

Change-Id: Id2aa3b6f25a17416bb8ea601b6f5dd0de45f5375
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Daniel Teske
2012-02-03 16:07:13 +01:00
parent 530ad93d18
commit d7b0ceac8a
10 changed files with 102 additions and 11 deletions

View File

@@ -51,11 +51,16 @@ Task::Task() : taskId(0), type(Unknown), line(-1)
Task::Task(TaskType type_, const QString &description_,
const Utils::FileName &file_, int line_, const Core::Id &category_) :
taskId(s_nextId), type(type_), description(description_),
file(file_), line(line_), category(category_)
file(file_), line(line_), movedLine(line_), category(category_)
{
++s_nextId;
}
void Task::addMark(TextEditor::BaseTextMark *mark)
{
m_mark = QSharedPointer<TextEditor::BaseTextMark>(mark);
}
bool Task::isNull() const
{ return taskId == 0; }