From 3cfd3c968fdd6a1b8dda23c4e3f102bccb0865a8 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Mon, 4 Feb 2019 19:40:29 +0300 Subject: [PATCH] Abstract layout has been changed --- limereport/items/lrabstractlayout.cpp | 2 +- limereport/items/lrabstractlayout.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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);