aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/taskmodel.h
diff options
context:
space:
mode:
authorDaniel Teske <daniel.teske@nokia.com>2012-02-29 16:15:25 +0100
committerDaniel Teske <daniel.teske@nokia.com>2012-03-01 12:07:18 +0100
commit6f0fa5114dd9bb0bdf42c3391fe7ee3368aaf004 (patch)
tree1a688184cd8b074f09a3ec6a91a7c78e08fe9416 /src/plugins/projectexplorer/taskmodel.h
parent407e1eaa9fec8faca31b7a89f868662abf50c689 (diff)
Make TaskMarks clickable and jump to the right task in the taskwindow
That means it is no longer possible to make bookmarks on lines with errors or warnings by simply clicking. That's not nice. It might be better to do something different, but let's see how the feedback to this is. Change-Id: I34788ff638ed49c21001d03cd60f992ffabd6153 Reviewed-by: hjk <qthjk@ovi.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/plugins/projectexplorer/taskmodel.h')
-rw-r--r--src/plugins/projectexplorer/taskmodel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/taskmodel.h b/src/plugins/projectexplorer/taskmodel.h
index 1dfb6733c9..017e489b6e 100644
--- a/src/plugins/projectexplorer/taskmodel.h
+++ b/src/plugins/projectexplorer/taskmodel.h
@@ -78,6 +78,7 @@ public:
bool hasFile(const QModelIndex &index) const;
+ int rowForId(unsigned int id);
private:
class CategoryData
@@ -161,6 +162,7 @@ public:
bool hasFile(const QModelIndex &index) const
{ return m_sourceModel->hasFile(mapToSource(index)); }
+ QModelIndex mapFromSource(const QModelIndex &idx) const;
private slots:
void handleNewRows(const QModelIndex &index, int first, int last);
void handleRemovedRows(const QModelIndex &index, int first, int last);