Send arranged count of workpieces.
--HG-- branch : feature
This commit is contained in:
parent
ce67acc6ff
commit
3d1100bc3d
|
@ -251,6 +251,12 @@ QRectF VBank::GetBiggestBoundingRect() const
|
|||
return boundingRect;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
int VBank::ArrangedCount() const
|
||||
{
|
||||
return details.size() - AllDetailsCount();
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VBank::PrepareGroup()
|
||||
{
|
||||
|
|
|
@ -59,6 +59,7 @@ public:
|
|||
|
||||
int AllDetailsCount() const;
|
||||
int LeftArrange() const;
|
||||
int ArrangedCount() const;
|
||||
|
||||
QRectF GetBiggestBoundingRect() const;
|
||||
|
||||
|
|
|
@ -107,6 +107,7 @@ void VLayoutGenerator::Generate()
|
|||
if (paper.ArrangeDetail(bank->GetDetail(index)))
|
||||
{
|
||||
bank->Arranged(index);
|
||||
emit Arranged(bank->ArrangedCount());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user