diff options
Diffstat (limited to 'Swift/QtUI/QtAvatarWidget.h')
-rw-r--r-- | Swift/QtUI/QtAvatarWidget.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Swift/QtUI/QtAvatarWidget.h b/Swift/QtUI/QtAvatarWidget.h index 8830d82..f4ac4cf 100644 --- a/Swift/QtUI/QtAvatarWidget.h +++ b/Swift/QtUI/QtAvatarWidget.h @@ -16,4 +16,5 @@ namespace Swift { class QtAvatarWidget : public QWidget { Q_OBJECT + Q_PROPERTY(bool editable READ isEditable WRITE setEditable) public: QtAvatarWidget(QWidget* parent); @@ -29,7 +30,16 @@ namespace Swift { } + void setEditable(bool b) { + editable = b; + } + + bool isEditable() const { + return editable; + } + void mousePressEvent(QMouseEvent* event); private: + bool editable; ByteArray data; std::string type; |