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,33 +5,34 @@
|
||||
namespace ZShell::components {
|
||||
|
||||
class ButtonRow : public QQuickItem {
|
||||
Q_OBJECT
|
||||
QML_ELEMENT
|
||||
Q_OBJECT
|
||||
QML_ELEMENT
|
||||
|
||||
Q_PROPERTY(qreal spacing READ spacing WRITE setSpacing NOTIFY spacingChanged)
|
||||
Q_PROPERTY(qreal spacing READ spacing WRITE setSpacing NOTIFY spacingChanged)
|
||||
|
||||
public:
|
||||
explicit ButtonRow(QQuickItem* parent = nullptr);
|
||||
public:
|
||||
explicit ButtonRow(QQuickItem* parent = nullptr);
|
||||
|
||||
[[nodiscard]] qreal spacing() const;
|
||||
void setSpacing(qreal spacing);
|
||||
[[nodiscard]] qreal spacing() const;
|
||||
void setSpacing(qreal spacing);
|
||||
|
||||
signals:
|
||||
void spacingChanged();
|
||||
signals:
|
||||
void spacingChanged();
|
||||
|
||||
protected:
|
||||
void itemChange(QQuickItem::ItemChange change, const QQuickItem::ItemChangeData& data) override;
|
||||
void updatePolish() override;
|
||||
protected:
|
||||
void itemChange(
|
||||
QQuickItem::ItemChange change,
|
||||
const QQuickItem::ItemChangeData& data) override;
|
||||
void updatePolish() override;
|
||||
|
||||
private slots:
|
||||
void invalidate();
|
||||
private slots:
|
||||
void invalidate();
|
||||
|
||||
private:
|
||||
void relayout();
|
||||
static qreal getMorphExpansion(const QQuickItem* item);
|
||||
void relayout();
|
||||
static qreal getMorphExpansion(const QQuickItem* item);
|
||||
|
||||
bool m_dirty;
|
||||
qreal m_spacing;
|
||||
bool m_dirty;
|
||||
qreal m_spacing;
|
||||
};
|
||||
|
||||
} // namespace ZShell::components
|
||||
|
||||
Reference in New Issue
Block a user