mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-08 06:42:34 +01:00
Add itemTYpe for QetGraphicsTableItem and QetGraphicsHeaderItem
This commit is contained in:
@@ -31,6 +31,9 @@ class QetGraphicsHeaderItem : public QGraphicsObject
|
||||
public:
|
||||
QetGraphicsHeaderItem(QGraphicsItem *parent = nullptr);
|
||||
|
||||
enum { Type = UserType + 1301 };
|
||||
int type() const override { return Type; }
|
||||
|
||||
void setModel(QAbstractItemModel *model);
|
||||
QAbstractItemModel *model() const;
|
||||
void reset();
|
||||
|
||||
@@ -33,6 +33,9 @@ class QetGraphicsTableItem : public QetGraphicsItem
|
||||
QetGraphicsTableItem(QGraphicsItem *parent= nullptr);
|
||||
virtual ~QetGraphicsTableItem() override;
|
||||
|
||||
enum { Type = UserType + 1300 };
|
||||
int type() const override { return Type; }
|
||||
|
||||
void setModel(QAbstractItemModel *model);
|
||||
QAbstractItemModel *model() const;
|
||||
void reset();
|
||||
|
||||
Reference in New Issue
Block a user