update epan/dissectors/pidl/drsuapi/drsuapi.idl from samba
[wireshark-sm.git] / ui / qt / models / sparkline_delegate.h
blobddbe947a79b1b735d24191e5a71285b6e3b17531
1 /** @file
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
8 */
10 #ifndef SPARKLINE_DELEGATE_H
11 #define SPARKLINE_DELEGATE_H
13 #include <QStyledItemDelegate>
15 class SparkLineDelegate : public QStyledItemDelegate
17 public:
18 SparkLineDelegate(QWidget *parent = 0) : QStyledItemDelegate(parent) {}
20 protected:
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;
27 signals:
29 public slots:
33 Q_DECLARE_METATYPE(QList<int>)
35 #endif // SPARKLINE_DELEGATE_H