Verified Commit 9b282672 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

effects/private/ExpoLayout: Expose updatePolish to QML via forceLayout()

This is consistent with QtQuick library types like Grid and Flow. It
might come in handy when imperatively adding or removing children.
parent b30302e3
......@@ -297,6 +297,11 @@ void ExpoLayout::setReady()
}
}
void ExpoLayout::forceLayout()
{
updatePolish();
}
void ExpoLayout::updatePolish()
{
if (!m_cells.isEmpty()) {
......
......@@ -46,6 +46,8 @@ public:
bool isReady() const;
void setReady();
Q_INVOKABLE void forceLayout();
protected:
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment