diff --git a/limereport/items/lrabstractlayout.cpp b/limereport/items/lrabstractlayout.cpp index 3b143c7..7529533 100644 --- a/limereport/items/lrabstractlayout.cpp +++ b/limereport/items/lrabstractlayout.cpp @@ -351,7 +351,7 @@ void AbstractLayout::setHideEmptyItems(bool hideEmptyItems) } } -BaseDesignIntf *AbstractLayout::at(int index) +QObject* AbstractLayout::at(int index) { rebuildChildrenIfNeeded(); if (layoutsChildren().size() > index) return layoutsChildren()[index]; diff --git a/limereport/items/lrabstractlayout.h b/limereport/items/lrabstractlayout.h index 90d9b9d..2c88abe 100644 --- a/limereport/items/lrabstractlayout.h +++ b/limereport/items/lrabstractlayout.h @@ -29,9 +29,9 @@ public: bool hideEmptyItems() const; void setHideEmptyItems(bool hideEmptyItems); - BaseDesignIntf* at(int index); -protected: + Q_INVOKABLE QObject* at(int index); int childrenCount(); +protected: void beforeDelete(); void childAddedEvent(BaseDesignIntf *child); void geometryChangedEvent(QRectF newRect, QRectF);