首次提交

This commit is contained in:
2026-06-16 13:33:27 +08:00
commit 81e2f99ab5
187 changed files with 26001 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
#include "effect.h"
#include <QPainter>
#include <QDebug>
void Wave_effect::draw(QPainter* painter) {
auto r = boundingRect();
qDebug() << r;
//r.adjusted(-10, -10, 10, 10);
//painter->setBrush(Qt::NoBrush);
painter->fillRect(r, Qt::yellow);
drawSource(painter);
}
QRectF Wave_effect::boundingRectFor(const QRectF& sourceRect) const {
auto r = QGraphicsEffect::boundingRectFor(sourceRect);
qDebug() << "Wave_effect::boundingRectFor:" << sourceRect << " " << r;
return r.adjusted(-10, -10, 10, 10);
//return QGraphicsEffect::boundingRectFor(sourceRect);
}