Finish 1.5.27

This commit is contained in:
Alexander Arin 2019-12-27 20:20:07 +03:00
commit bac1b85170
5 changed files with 12 additions and 4 deletions

View File

@ -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}\\\"

View File

@ -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);

View File

@ -264,6 +264,7 @@ public:
void updateBandMarkerGeometry();
int shiftItems() const;
void setShiftItems(int shiftItems);
bool isNeedUpdateSize(RenderPass) const;
signals:
void bandRendered(BandDesignIntf* band);

View File

@ -1569,7 +1569,7 @@ void BaseDesignIntf::objectLoadFinished()
void BaseDesignIntf::parentObjectLoadFinished()
{}
QList<BaseDesignIntf *> BaseDesignIntf::childBaseItems()
QList<BaseDesignIntf *> BaseDesignIntf::childBaseItems() const
{
QList<BaseDesignIntf *> resList;
foreach(QGraphicsItem * item, childItems()) {

View File

@ -244,7 +244,7 @@ public:
virtual void parentObjectLoadFinished();
virtual void beforeDelete();
QList<BaseDesignIntf*> childBaseItems();
QList<BaseDesignIntf*> childBaseItems() const;
QList<BaseDesignIntf*> allChildBaseItems();
BaseDesignIntf* childByName(const QString& name);