3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
10 #ifndef SPARKLINE_DELEGATE_H
11 #define SPARKLINE_DELEGATE_H
13 #include <QStyledItemDelegate>
15 class SparkLineDelegate
: public QStyledItemDelegate
18 SparkLineDelegate(QWidget
*parent
= 0) : QStyledItemDelegate(parent
) {}
21 void paint(QPainter
*painter
, const QStyleOptionViewItem
&option
,
22 const QModelIndex
&index
) const;
23 QSize
sizeHint(const QStyleOptionViewItem
&option
,
24 const QModelIndex
&index
) const;
25 QWidget
*createEditor(QWidget
*parent
, const QStyleOptionViewItem
&option
, const QModelIndex
&index
) const;
33 Q_DECLARE_METATYPE(QList
<int>)
35 #endif // SPARKLINE_DELEGATE_H