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>
This commit is contained in:
Daniel Teske
2012-02-29 16:15:25 +01:00
parent 407e1eaa9f
commit 6f0fa5114d
10 changed files with 74 additions and 4 deletions

View File

@@ -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);