0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-25 00:54:39 +03:00

Abstract layout has been changed

This commit is contained in:
Arin Alexander 2019-02-04 19:40:29 +03:00
parent 72fb6692c6
commit 3cfd3c968f
2 changed files with 3 additions and 3 deletions

View File

@ -351,7 +351,7 @@ void AbstractLayout::setHideEmptyItems(bool hideEmptyItems)
} }
} }
BaseDesignIntf *AbstractLayout::at(int index) QObject* AbstractLayout::at(int index)
{ {
rebuildChildrenIfNeeded(); rebuildChildrenIfNeeded();
if (layoutsChildren().size() > index) return layoutsChildren()[index]; if (layoutsChildren().size() > index) return layoutsChildren()[index];

View File

@ -29,9 +29,9 @@ public:
bool hideEmptyItems() const; bool hideEmptyItems() const;
void setHideEmptyItems(bool hideEmptyItems); void setHideEmptyItems(bool hideEmptyItems);
BaseDesignIntf* at(int index); Q_INVOKABLE QObject* at(int index);
protected:
int childrenCount(); int childrenCount();
protected:
void beforeDelete(); void beforeDelete();
void childAddedEvent(BaseDesignIntf *child); void childAddedEvent(BaseDesignIntf *child);
void geometryChangedEvent(QRectF newRect, QRectF); void geometryChangedEvent(QRectF newRect, QRectF);