Go to the documentation of this file.00001
00004 #ifndef BPSTABLEDELEGATE_H
00005 #define BPSTABLEDELEGATE_H
00006
00007 #include "bpsgui_global.h"
00008 #include "bpstable.h"
00009 #include <QStyledItemDelegate>
00010
00014 class BPSGUI_EXPORT BpsTableDelegate : public QStyledItemDelegate
00015 {
00016 Q_OBJECT
00017 BPS_PRIVATE(BpsTableDelegate)
00018
00019 public:
00024 BpsTableDelegate(BpsTable* aTable, QObject *aParent = 0);
00025
00027 virtual ~BpsTableDelegate();
00028 virtual QWidget* createEditor(QWidget* aParent, const QStyleOptionViewItem& aOption, const QModelIndex& aIndex) const;
00029 virtual void setEditorData(QWidget* aEditor, const QModelIndex& aIndex) const;
00030 virtual void setModelData(QWidget* aEditor, QAbstractItemModel* aModel, const QModelIndex& aIndex) const;
00032 };
00033
00034 #endif // BPSTABLEDELEGATE_H