fix: emote button is now rendered smoothlier (#6080)
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <QMouseEvent>
|
||||
#include <QPainter>
|
||||
#include <QPoint>
|
||||
#include <QSvgRenderer>
|
||||
#include <QTimer>
|
||||
#include <QWidget>
|
||||
|
||||
@@ -34,6 +35,7 @@ public:
|
||||
|
||||
void setMouseEffectColor(std::optional<QColor> color);
|
||||
void setPixmap(const QPixmap &pixmap_);
|
||||
void setSvgResource(const QString &resourcePath);
|
||||
const QPixmap &getPixmap() const;
|
||||
|
||||
void setDim(Dim value);
|
||||
@@ -88,6 +90,8 @@ private:
|
||||
|
||||
QColor borderColor_{};
|
||||
QPixmap pixmap_{};
|
||||
QSvgRenderer *svgRenderer{};
|
||||
QString svgResourcePath;
|
||||
QPixmap resizedPixmap_{};
|
||||
Dim dimPixmap_{Dim::Some};
|
||||
bool enableMargin_{true};
|
||||
|
||||
Reference in New Issue
Block a user