ostinato/client/streamlistdelegate.h
Srivats P. c7d90ff1ab - All tabs converted to spaces in all files
- .vimrc added to reflect settings used in the project
2009-12-28 08:31:28 +00:00

30 lines
801 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