diff --git a/common.pri b/common.pri index 53f06b0..ab447f6 100644 --- a/common.pri +++ b/common.pri @@ -127,7 +127,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc LIMEREPORT_VERSION_MAJOR = 1 LIMEREPORT_VERSION_MINOR = 5 -LIMEREPORT_VERSION_RELEASE = 26 +LIMEREPORT_VERSION_RELEASE = 27 LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}' DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\" diff --git a/limereport/lrbanddesignintf.cpp b/limereport/lrbanddesignintf.cpp index 20c0dfe..8b1c341 100644 --- a/limereport/lrbanddesignintf.cpp +++ b/limereport/lrbanddesignintf.cpp @@ -241,6 +241,13 @@ void BandDesignIntf::setBackgroundOpacity(int value) } } +bool BandDesignIntf::isNeedUpdateSize(RenderPass pass) const{ + foreach(BaseDesignIntf* item, childBaseItems()){ + if (item->isNeedUpdateSize(pass)) return true; + } + return false; +} + void BandDesignIntf::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) { prepareRect(painter, option, widget); diff --git a/limereport/lrbanddesignintf.h b/limereport/lrbanddesignintf.h index 7f1d3f0..8984518 100644 --- a/limereport/lrbanddesignintf.h +++ b/limereport/lrbanddesignintf.h @@ -263,7 +263,8 @@ public: void setBootomSpace(int bootomSpace); void updateBandMarkerGeometry(); int shiftItems() const; - void setShiftItems(int shiftItems); + void setShiftItems(int shiftItems); + bool isNeedUpdateSize(RenderPass) const; signals: void bandRendered(BandDesignIntf* band); diff --git a/limereport/lrbasedesignintf.cpp b/limereport/lrbasedesignintf.cpp index 1555aaf..91fa79c 100644 --- a/limereport/lrbasedesignintf.cpp +++ b/limereport/lrbasedesignintf.cpp @@ -1569,7 +1569,7 @@ void BaseDesignIntf::objectLoadFinished() void BaseDesignIntf::parentObjectLoadFinished() {} -QList BaseDesignIntf::childBaseItems() +QList BaseDesignIntf::childBaseItems() const { QList resList; foreach(QGraphicsItem * item, childItems()) { diff --git a/limereport/lrbasedesignintf.h b/limereport/lrbasedesignintf.h index b7fbbbb..6887ca3 100644 --- a/limereport/lrbasedesignintf.h +++ b/limereport/lrbasedesignintf.h @@ -244,7 +244,7 @@ public: virtual void parentObjectLoadFinished(); virtual void beforeDelete(); - QList childBaseItems(); + QList childBaseItems() const; QList allChildBaseItems(); BaseDesignIntf* childByName(const QString& name);