mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 08:34:38 +03:00
Second pass has been fixed
This commit is contained in:
parent
c6e2526ed7
commit
ca965db02a
@ -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}\\\"
|
||||
|
@ -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);
|
||||
|
@ -264,6 +264,7 @@ public:
|
||||
void updateBandMarkerGeometry();
|
||||
int shiftItems() const;
|
||||
void setShiftItems(int shiftItems);
|
||||
bool isNeedUpdateSize(RenderPass) const;
|
||||
|
||||
signals:
|
||||
void bandRendered(BandDesignIntf* band);
|
||||
|
@ -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()) {
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user