BPS C++ API  2.24.4
bpstabledelegate.h
Go to the documentation of this file.
1 
4 #ifndef BPSTABLEDELEGATE_H
5 #define BPSTABLEDELEGATE_H
6 
7 #include "bpsgui_global.h"
8 #include "bpstable.h"
9 #include <QStyledItemDelegate>
10 
15 {
16  Q_OBJECT
18 
19 public:
24  BpsTableDelegate(BpsTable* aTable, QObject *aParent = nullptr);
25 
27  virtual ~BpsTableDelegate();
28  virtual QWidget* createEditor(QWidget* aParent, const QStyleOptionViewItem& aOption, const QModelIndex& aIndex) const;
29  virtual void setEditorData(QWidget* aEditor, const QModelIndex& aIndex) const;
30  virtual void setModelData(QWidget* aEditor, QAbstractItemModel* aModel, const QModelIndex& aIndex) const;
32 };
33 
34 #endif // BPSTABLEDELEGATE_H
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
Public include file for BPS GUI library macros.
#define BPSGUI_EXPORT
Declare class an import from the shared library.
Definition: bpsgui_global.h:22
Public include file for BpsTable.
Model/view delegate for editing of table fields.
Definition: bpstabledelegate.h:15
BpsTableDelegate(BpsTable *aTable, QObject *aParent=nullptr)
Database table descriptor.
Definition: bpstable.h:19
virtual QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const const override
virtual void setEditorData(QWidget *editor, const QModelIndex &index) const const override
virtual void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const const override