tidy&format(all): all files formatted and relevant warnings resolved
C++ / build (pull_request) Failing after 15s
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 28s
Python / lint-format (pull_request) Successful in 45s
Python / test (pull_request) Successful in 38s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m45s
C++ / build (pull_request) Failing after 15s
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 28s
Python / lint-format (pull_request) Successful in 45s
Python / test (pull_request) Successful in 38s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m45s
This commit is contained in:
@@ -5,60 +5,58 @@
|
||||
#include <qqmlengine.h>
|
||||
|
||||
class BlobInvertedRect : public BlobShape {
|
||||
Q_OBJECT
|
||||
QML_ELEMENT
|
||||
Q_PROPERTY(qreal borderLeft READ borderLeft WRITE setBorderLeft NOTIFY borderLeftChanged)
|
||||
Q_PROPERTY(qreal borderRight READ borderRight WRITE setBorderRight NOTIFY borderRightChanged)
|
||||
Q_PROPERTY(qreal borderTop READ borderTop WRITE setBorderTop NOTIFY borderTopChanged)
|
||||
Q_PROPERTY(qreal borderBottom READ borderBottom WRITE setBorderBottom NOTIFY borderBottomChanged)
|
||||
Q_OBJECT
|
||||
QML_ELEMENT
|
||||
Q_PROPERTY(
|
||||
qreal borderLeft READ borderLeft WRITE setBorderLeft NOTIFY
|
||||
borderLeftChanged)
|
||||
Q_PROPERTY(
|
||||
qreal borderRight READ borderRight WRITE setBorderRight NOTIFY
|
||||
borderRightChanged)
|
||||
Q_PROPERTY(
|
||||
qreal borderTop READ borderTop WRITE setBorderTop NOTIFY
|
||||
borderTopChanged)
|
||||
Q_PROPERTY(
|
||||
qreal borderBottom READ borderBottom WRITE setBorderBottom NOTIFY
|
||||
borderBottomChanged)
|
||||
|
||||
public:
|
||||
explicit BlobInvertedRect(QQuickItem* parent = nullptr);
|
||||
~BlobInvertedRect() override;
|
||||
public:
|
||||
explicit BlobInvertedRect(QQuickItem* parent = nullptr);
|
||||
~BlobInvertedRect() override;
|
||||
|
||||
[[nodiscard]] qreal borderLeft() const {
|
||||
return m_borderLeft;
|
||||
}
|
||||
[[nodiscard]] qreal borderLeft() const { return m_borderLeft; }
|
||||
|
||||
void setBorderLeft(qreal v);
|
||||
void setBorderLeft(qreal v);
|
||||
|
||||
[[nodiscard]] qreal borderRight() const {
|
||||
return m_borderRight;
|
||||
}
|
||||
[[nodiscard]] qreal borderRight() const { return m_borderRight; }
|
||||
|
||||
void setBorderRight(qreal v);
|
||||
void setBorderRight(qreal v);
|
||||
|
||||
[[nodiscard]] qreal borderTop() const {
|
||||
return m_borderTop;
|
||||
}
|
||||
[[nodiscard]] qreal borderTop() const { return m_borderTop; }
|
||||
|
||||
void setBorderTop(qreal v);
|
||||
void setBorderTop(qreal v);
|
||||
|
||||
[[nodiscard]] qreal borderBottom() const {
|
||||
return m_borderBottom;
|
||||
}
|
||||
[[nodiscard]] qreal borderBottom() const { return m_borderBottom; }
|
||||
|
||||
void setBorderBottom(qreal v);
|
||||
void setBorderBottom(qreal v);
|
||||
|
||||
signals:
|
||||
void borderLeftChanged();
|
||||
void borderRightChanged();
|
||||
void borderTopChanged();
|
||||
void borderBottomChanged();
|
||||
signals:
|
||||
void borderLeftChanged();
|
||||
void borderRightChanged();
|
||||
void borderTopChanged();
|
||||
void borderBottomChanged();
|
||||
|
||||
protected:
|
||||
[[nodiscard]] bool isInvertedRect() const override {
|
||||
return true;
|
||||
}
|
||||
protected:
|
||||
[[nodiscard]] bool isInvertedRect() const override { return true; }
|
||||
|
||||
QSGNode* updatePaintNode(QSGNode* oldNode, UpdatePaintNodeData*) override;
|
||||
QSGNode* updatePaintNode(QSGNode* oldNode, UpdatePaintNodeData*) override;
|
||||
|
||||
void registerWithGroup() override;
|
||||
void unregisterFromGroup() override;
|
||||
void registerWithGroup() override;
|
||||
void unregisterFromGroup() override;
|
||||
|
||||
private:
|
||||
qreal m_borderLeft = 0;
|
||||
qreal m_borderRight = 0;
|
||||
qreal m_borderTop = 0;
|
||||
qreal m_borderBottom = 0;
|
||||
private:
|
||||
qreal m_borderLeft = 0;
|
||||
qreal m_borderRight = 0;
|
||||
qreal m_borderTop = 0;
|
||||
qreal m_borderBottom = 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user