aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/task.h
diff options
context:
space:
mode:
authorDaniel Teske <daniel.teske@nokia.com>2012-02-03 16:07:13 +0100
committerDaniel Teske <daniel.teske@nokia.com>2012-02-14 12:43:22 +0100
commitd7b0ceac8a3959a6b055961cf915c9b697c31d46 (patch)
treea572ea88066dd377b2ae856e0d444760792cbea9 /src/plugins/projectexplorer/task.h
parent530ad93d18ba8b695e7c548206067a727820299e (diff)
Task, adjust line numbers while editing
Change-Id: Id2aa3b6f25a17416bb8ea601b6f5dd0de45f5375 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Diffstat (limited to 'src/plugins/projectexplorer/task.h')
-rw-r--r--src/plugins/projectexplorer/task.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/task.h b/src/plugins/projectexplorer/task.h
index 60e4863534..c5e3779277 100644
--- a/src/plugins/projectexplorer/task.h
+++ b/src/plugins/projectexplorer/task.h
@@ -36,6 +36,7 @@
#include "projectexplorer_export.h"
#include <coreplugin/id.h>
+#include <texteditor/basetextmark.h>
#include <utils/fileutils.h>
#include <QtCore/QMetaType>
@@ -65,7 +66,9 @@ public:
QString description;
Utils::FileName file;
int line;
+ int movedLine; // contains a line number if the line was moved in the editor
Core::Id category;
+ void addMark(TextEditor::BaseTextMark *mark);
// Having a QList<QTextLayout::FormatRange> in Task isn't that great
// It would be cleaner to split up the text into
@@ -77,6 +80,7 @@ public:
// anywhere near being that good
QList<QTextLayout::FormatRange> formats;
private:
+ QSharedPointer<TextEditor::BaseTextMark> m_mark;
static unsigned int s_nextId;
};