Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

sparkline_delegate.h
1 /* sparkline_delegate.h
2 *
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
6 *
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
9
10 #ifndef SPARKLINE_DELEGATE_H
11 #define SPARKLINE_DELEGATE_H
12
13 #include <QStyledItemDelegate>
14
15 class SparkLineDelegate : public QStyledItemDelegate
16 {
17 public:
18 SparkLineDelegate(QWidget *parent = 0) : QStyledItemDelegate(parent) {}
19
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;
26
27 signals:
28
29 public slots:
30
31 };
32
33 Q_DECLARE_METATYPE(QList<int>)
34
35 #endif // SPARKLINE_DELEGATE_H
36
37 /*
38 * Editor modelines
39 *
40 * Local Variables:
41 * c-basic-offset: 4
42 * tab-width: 8
43 * indent-tabs-mode: nil
44 * End:
45 *
46 * ex: set shiftwidth=4 tabstop=8 expandtab:
47 * :indentSize=4:tabSize=8:noTabs=true:
48 */
option
Definition: pcapng.c:148
SparkLineDelegate
Definition: sparkline_delegate.h:15