Show all global FFZ badges of a user (#3818)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -263,10 +263,10 @@ MessageLayoutElement *VipBadgeElement::makeImageLayoutElement(
|
||||
|
||||
// FFZ Badge
|
||||
FfzBadgeElement::FfzBadgeElement(const EmotePtr &data,
|
||||
MessageElementFlags flags_, QColor &color)
|
||||
MessageElementFlags flags_, QColor color_)
|
||||
: BadgeElement(data, flags_)
|
||||
, color(std::move(color_))
|
||||
{
|
||||
this->color = color;
|
||||
}
|
||||
|
||||
MessageLayoutElement *FfzBadgeElement::makeImageLayoutElement(
|
||||
|
||||
@@ -296,12 +296,12 @@ class FfzBadgeElement : public BadgeElement
|
||||
{
|
||||
public:
|
||||
FfzBadgeElement(const EmotePtr &data, MessageElementFlags flags_,
|
||||
QColor &color);
|
||||
QColor color_);
|
||||
|
||||
protected:
|
||||
MessageLayoutElement *makeImageLayoutElement(const ImagePtr &image,
|
||||
const QSize &size) override;
|
||||
QColor color;
|
||||
const QColor color;
|
||||
};
|
||||
|
||||
// contains a text, formated depending on the preferences
|
||||
|
||||
Reference in New Issue
Block a user