还是一堆bug的状态

This commit is contained in:
2026-08-01 20:09:45 +08:00
parent 0df7beda49
commit 8fb9683182
294 changed files with 13678 additions and 10864 deletions
+1 -2
View File
@@ -1,9 +1,9 @@
#include "effect.h"
#include <iostream>
#include <QDebug>
#include <QPainter>
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);
@@ -11,7 +11,6 @@ void Wave_effect::draw(QPainter* painter) {
}
QRectF Wave_effect::boundingRectFor(const QRectF& source_rect) const {
auto r = QGraphicsEffect::boundingRectFor(source_rect);
qDebug() << "Wave_effect::boundingRectFor:" << source_rect << " " << r;
return r.adjusted(-10, -10, 10, 10);
// return QGraphicsEffect::boundingRectFor(source_rect);
}