diff options
author | Gerald Combs <gerald@wireshark.org> | 2012-08-03 23:30:47 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2012-08-03 23:30:47 +0000 |
commit | a234d1215c9cc5787a2c91e3b89765ba7723094a (patch) | |
tree | 1332d2be69388b048b7093849ec37dc3fbc17394 /ui/qt/sparkline_delegate.h | |
parent | 0114eca349f09514a0914725d2f4d82542cc3d07 (diff) |
Move capture_globals.h from ui/gtk/ to ui/. Show interface activity
using sparklines in the qtshark main window.
svn path=/trunk/; revision=44253
Diffstat (limited to 'ui/qt/sparkline_delegate.h')
-rw-r--r-- | ui/qt/sparkline_delegate.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ui/qt/sparkline_delegate.h b/ui/qt/sparkline_delegate.h new file mode 100644 index 0000000000..70225900e5 --- /dev/null +++ b/ui/qt/sparkline_delegate.h @@ -0,0 +1,25 @@ +#ifndef SPARKLINE_DELEGATE_H +#define SPARKLINE_DELEGATE_H + +#include <QStyledItemDelegate> + +class SparkLineDelegate : public QStyledItemDelegate +{ + Q_OBJECT +public: + SparkLineDelegate(QWidget *parent = 0) : QStyledItemDelegate(parent) {} + + void paint(QPainter *painter, const QStyleOptionViewItem &option, + const QModelIndex &index) const; + QSize sizeHint(const QStyleOptionViewItem &option, + const QModelIndex &index) const; + +signals: + +public slots: + +}; + +Q_DECLARE_METATYPE(QList<int> *) + +#endif // SPARKLINE_DELEGATE_H |