From 7b3ba73a018d0fcc642674cc8878bd3274b907f9 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 5 Aug 2011 18:03:37 +0200 Subject: analyzer: code cosmetics Change-Id: Id00cf1be9d07e47f7b61b8cc7e940629c84a48c1 Reviewed-on: http://codereview.qt.nokia.com/2707 Reviewed-by: hjk --- src/plugins/valgrind/memcheckerrorview.h | 39 -------------------------------- 1 file changed, 39 deletions(-) (limited to 'src/plugins/valgrind/memcheckerrorview.h') diff --git a/src/plugins/valgrind/memcheckerrorview.h b/src/plugins/valgrind/memcheckerrorview.h index f64bc5bd06..46c8176f1a 100644 --- a/src/plugins/valgrind/memcheckerrorview.h +++ b/src/plugins/valgrind/memcheckerrorview.h @@ -36,53 +36,14 @@ #define MEMCHECKERRORVIEW_H #include -#include -#include namespace Analyzer { class AnalyzerSettings; } -namespace ProjectExplorer { -class Project; -} - namespace Valgrind { namespace Internal { -class MemcheckErrorDelegate : public QStyledItemDelegate -{ - Q_OBJECT - -public: - /// This delegate can only work on one view at a time, parent. parent will also be the parent - /// in the QObject parent-child system. - explicit MemcheckErrorDelegate(QListView *parent); - - virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const; - virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, - const QModelIndex &index) const; - -public slots: - void currentChanged(const QModelIndex &now, const QModelIndex &previous); - void viewResized(); - void layoutChanged(); - void copy(); - -private slots: - void verticalScrolled(); - void openLinkInEditor(const QString &link); - -private: - // the constness of this method is a necessary lie because it is called from paint() const. - QWidget *createDetailsWidget(const QModelIndex &errorIndex, QWidget *parent) const; - - static const int s_itemMargin = 2; - mutable QPersistentModelIndex m_detailsIndex; - mutable QWidget *m_detailsWidget; - mutable int m_detailsWidgetHeight; -}; - class MemcheckErrorView : public QListView { Q_OBJECT -- cgit v1.2.1