diff options
Diffstat (limited to 'Swift/QtUI/ChatList')
-rw-r--r-- | Swift/QtUI/ChatList/ChatListItem.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/QtUI/ChatList/ChatListItem.h b/Swift/QtUI/ChatList/ChatListItem.h index b919c6b..57a85da 100644 --- a/Swift/QtUI/ChatList/ChatListItem.h +++ b/Swift/QtUI/ChatList/ChatListItem.h @@ -13,8 +13,11 @@ namespace Swift { class ChatListItem { public: ChatListItem(ChatListGroupItem* parent) {parent_ = parent;}; + virtual ~ChatListItem() {} + ChatListGroupItem* parent() {return parent_;}; virtual QVariant data(int role) = 0; + private: ChatListGroupItem* parent_; }; |