Debian Codegraph @

src/messagetabledelegate.h

raw symbols SCIP
1 /*
2 * midisnoop - MIDI monitor and prober
3 * Copyright (C) 2012 Devin Anderson
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the Free
7 * Software Foundation; either version 2 of the License, or (at your option)
8 * any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 *
15 * You should have received a copy of the GNU General Public License along with
16 * this program; if not, write to the Free Software Foundation, Inc., 675 Mass
17 * Ave, Cambridge, MA 02139, USA.
18 */
19
20 #ifndef __MESSAGETABLEDELEGATE_H__
21 #define __MESSAGETABLEDELEGATE_H__
22
23 #include <QtWidgets/QStyledItemDelegate>
24
25 class MessageTableDelegate: public QStyledItemDelegate {
26
27 Q_OBJECT
28
29 public:
30
31 explicit
32 MessageTableDelegate(QObject *parent=0);
33
34 ~MessageTableDelegate();
35
36 QWidget *
37 createEditor(QWidget *parent, const QStyleOptionViewItem &option,
38 const QModelIndex &index) const;
39
40 void
41 setEditorData(QWidget *editor, const QModelIndex &index) const;
42
43 void
44 setModelData(QWidget *editor, QAbstractItemModel *model,
45 const QModelIndex &index) const;
46
47 void
48 updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option,
49 const QModelIndex &index) const;
50
51 };
52
53 #endif