chore: 格式化ElaWidgetTools代码

This commit is contained in:
sleepwithoutbz
2025-09-20 01:39:00 +08:00
parent d2fded145d
commit 4ab391f8a1
394 changed files with 10913 additions and 15860 deletions

View File

@@ -5,22 +5,17 @@
#include "ElaExponentialBlurPrivate.h"
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <cmath>
#include <cmath>
#endif
Q_SINGLETON_CREATE_CPP(ElaExponentialBlur)
ElaExponentialBlur::ElaExponentialBlur(QObject* parent)
: QObject{parent}, d_ptr(new ElaExponentialBlurPrivate())
{
ElaExponentialBlur::ElaExponentialBlur(QObject *parent) : QObject{parent}, d_ptr(new ElaExponentialBlurPrivate()) {
Q_D(ElaExponentialBlur);
d->q_ptr = this;
}
ElaExponentialBlur::~ElaExponentialBlur()
{
}
ElaExponentialBlur::~ElaExponentialBlur() {}
QPixmap ElaExponentialBlur::doExponentialBlur(QImage img, const quint16& blurRadius)
{
QPixmap ElaExponentialBlur::doExponentialBlur(QImage img, const quint16 &blurRadius) {
QImage shadowImage = img.convertToFormat(QImage::Format_ARGB32);
ElaExponentialBlur::getInstance()->d_ptr->_drawExponentialBlur(shadowImage, blurRadius);
return QPixmap::fromImage(shadowImage);