fix: blobs now allow to be drawn in device pixels to stay sharp
C++ / fmt (pull_request) Failing after 5s
C++ / build (pull_request) Failing after 10s
C++ / clang-tidy (pull_request) Failing after 10s
JS/TS / fmt (pull_request) Successful in 9s
JS/TS / lint (pull_request) Successful in 25s
Python / static (pull_request) Successful in 34s
Rust / build (pull_request) Successful in 51s
Python / verify (pull_request) Failing after 1m25s
Rust / fmt (pull_request) Successful in 39s
Rust / clippy (pull_request) Successful in 59s
C++ / fmt (pull_request) Failing after 5s
C++ / build (pull_request) Failing after 10s
C++ / clang-tidy (pull_request) Failing after 10s
JS/TS / fmt (pull_request) Successful in 9s
JS/TS / lint (pull_request) Successful in 25s
Python / static (pull_request) Successful in 34s
Rust / build (pull_request) Successful in 51s
Python / verify (pull_request) Failing after 1m25s
Rust / fmt (pull_request) Successful in 39s
Rust / clippy (pull_request) Successful in 59s
This commit is contained in:
@@ -19,6 +19,21 @@ class BlobInvertedRect2 : public BlobShape2 {
|
||||
Q_PROPERTY(
|
||||
qreal borderBottom READ borderBottom WRITE setBorderBottom NOTIFY
|
||||
borderBottomChanged)
|
||||
Q_PROPERTY(
|
||||
qreal outerRadius READ outerRadius WRITE setOuterRadius NOTIFY
|
||||
outerRadiusChanged)
|
||||
Q_PROPERTY(
|
||||
qreal outerTopLeftRadius READ outerTopLeftRadius WRITE
|
||||
setOuterTopLeftRadius NOTIFY outerTopLeftRadiusChanged)
|
||||
Q_PROPERTY(
|
||||
qreal outerTopRightRadius READ outerTopRightRadius WRITE
|
||||
setOuterTopRightRadius NOTIFY outerTopRightRadiusChanged)
|
||||
Q_PROPERTY(
|
||||
qreal outerBottomLeftRadius READ outerBottomLeftRadius WRITE
|
||||
setOuterBottomLeftRadius NOTIFY outerBottomLeftRadiusChanged)
|
||||
Q_PROPERTY(
|
||||
qreal outerBottomRightRadius READ outerBottomRightRadius WRITE
|
||||
setOuterBottomRightRadius NOTIFY outerBottomRightRadiusChanged)
|
||||
|
||||
public:
|
||||
explicit BlobInvertedRect2(QQuickItem* parent = nullptr);
|
||||
@@ -40,13 +55,48 @@ class BlobInvertedRect2 : public BlobShape2 {
|
||||
|
||||
void setBorderBottom(qreal v);
|
||||
|
||||
[[nodiscard]] qreal outerRadius() const { return m_outerRadius; }
|
||||
|
||||
void setOuterRadius(qreal v);
|
||||
|
||||
[[nodiscard]] qreal outerTopLeftRadius() const {
|
||||
return m_outerTopLeftRadius;
|
||||
}
|
||||
|
||||
void setOuterTopLeftRadius(qreal v);
|
||||
|
||||
[[nodiscard]] qreal outerTopRightRadius() const {
|
||||
return m_outerTopRightRadius;
|
||||
}
|
||||
|
||||
void setOuterTopRightRadius(qreal v);
|
||||
|
||||
[[nodiscard]] qreal outerBottomLeftRadius() const {
|
||||
return m_outerBottomLeftRadius;
|
||||
}
|
||||
|
||||
void setOuterBottomLeftRadius(qreal v);
|
||||
|
||||
[[nodiscard]] qreal outerBottomRightRadius() const {
|
||||
return m_outerBottomRightRadius;
|
||||
}
|
||||
|
||||
void setOuterBottomRightRadius(qreal v);
|
||||
|
||||
signals:
|
||||
void borderLeftChanged();
|
||||
void borderRightChanged();
|
||||
void borderTopChanged();
|
||||
void borderBottomChanged();
|
||||
void outerRadiusChanged();
|
||||
void outerTopLeftRadiusChanged();
|
||||
void outerTopRightRadiusChanged();
|
||||
void outerBottomLeftRadiusChanged();
|
||||
void outerBottomRightRadiusChanged();
|
||||
|
||||
protected:
|
||||
void outerCornerRadii(float out[4]) const override;
|
||||
|
||||
void registerWithGroup() override;
|
||||
void unregisterFromGroup() override;
|
||||
|
||||
@@ -55,4 +105,10 @@ class BlobInvertedRect2 : public BlobShape2 {
|
||||
qreal m_borderRight = 0;
|
||||
qreal m_borderTop = 0;
|
||||
qreal m_borderBottom = 0;
|
||||
|
||||
qreal m_outerRadius = 0;
|
||||
qreal m_outerTopLeftRadius = -1;
|
||||
qreal m_outerTopRightRadius = -1;
|
||||
qreal m_outerBottomLeftRadius = -1;
|
||||
qreal m_outerBottomRightRadius = -1;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user