just proxying button event from feed view delegate to the feed model

This commit is contained in:
Blue 2021-02-06 14:02:42 +03:00
parent b3c6860e25
commit ebe5addfb5
6 changed files with 62 additions and 2 deletions

View file

@ -50,10 +50,16 @@ public:
void endClearWidgets();
void beginClearWidgets();
signals:
void buttonPushed(const QString& messageId, bool download) const;
protected:
void paintButton(QPushButton* btn, QPainter* painter, bool sentByMe, QStyleOptionViewItem& option) const;
QPushButton* getButton(const Models::FeedItem& data) const;
protected slots:
void onButtonPushed() const;
private:
class FeedButton : public QPushButton {
public: