53bcc077da
- StreamListView now has a delegate to display a combobox for "nextWhat" and a checkbox for "status" - StreamListView now has reasonable default widths for its columns
30 lines
759 B
C++
30 lines
759 B
C++
#ifndef STREAM_LIST_DELEGATE_H
|
|
#define STREAM_LIST_DELEGATE_H
|
|
|
|
#include <QItemDelegate>
|
|
#include <QModelIndex>
|
|
|
|
class StreamListDelegate : public QItemDelegate
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
StreamListDelegate(QObject *parent = 0);
|
|
|
|
QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
|
|
const QModelIndex &index) const;
|
|
|
|
void setEditorData(QWidget *editor, const QModelIndex &index) const;
|
|
void setModelData(QWidget *editor, QAbstractItemModel *model,
|
|
const QModelIndex &index) const;
|
|
|
|
void updateEditorGeometry(QWidget *editor,
|
|
const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
|
|
|
bool editorEvent(QEvent *event, QAbstractItemModel *model,
|
|
const QStyleOptionViewItem &option, const QModelIndex &index);
|
|
};
|
|
|
|
#endif
|
|
|