Allow off-center player view size

This commit is contained in:
GriffinR
2025-04-17 11:21:23 -04:00
parent a6ec91724f
commit 5d475513d5
15 changed files with 180 additions and 131 deletions

View File

@@ -10,7 +10,7 @@
class MovableRect : public QGraphicsRectItem
{
public:
MovableRect(bool *enabled, int width, int height, QRgb color);
MovableRect(bool *enabled, const QRectF &rect, const QRgb &color);
QRectF boundingRect() const override {
qreal penWidth = 4;
return QRectF(-penWidth,
@@ -31,6 +31,7 @@ public:
bool *enabled;
protected:
QRectF baseRect;
QRgb color;
};