forked from qt-creator/qt-creator
Task, adjust line numbers while editing
Change-Id: Id2aa3b6f25a17416bb8ea601b6f5dd0de45f5375 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user