diff options
author | hjk <qtc-committer@nokia.com> | 2011-08-05 18:03:37 +0200 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2011-08-17 10:48:34 +0200 |
commit | 7b3ba73a018d0fcc642674cc8878bd3274b907f9 (patch) | |
tree | 65c209ab56044bd34324fe64fbf6fcb252d9e83f /src/plugins/valgrind/memcheckerrorview.h | |
parent | 1f36bcaca3b582f4bd2fa87fe39d40b8a8088f6a (diff) | |
download | qt-creator-7b3ba73a018d0fcc642674cc8878bd3274b907f9.tar.gz |
analyzer: code cosmetics
Change-Id: Id00cf1be9d07e47f7b61b8cc7e940629c84a48c1
Reviewed-on: http://codereview.qt.nokia.com/2707
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/valgrind/memcheckerrorview.h')
-rw-r--r-- | src/plugins/valgrind/memcheckerrorview.h | 39 |
1 files changed, 0 insertions, 39 deletions
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 <QtGui/QListView> -#include <QtGui/QStyledItemDelegate> -#include <QtGui/QLabel> 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 |