Warn the main window about a layout change.
This commit is contained in:
parent
9ceabab131
commit
3d9a4f6f65
|
@ -80,6 +80,7 @@ void VPUndoAddSheet::redo()
|
|||
layout->AddSheet(sheet);
|
||||
emit layout->SheetListChanged();
|
||||
layout->SetFocusedSheet(sheet);
|
||||
emit layout->LayoutChanged();
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
|
@ -123,6 +123,7 @@ void VPUndoMovePieceOnSheet::redo()
|
|||
{
|
||||
emit layout->PieceSheetChanged(piece);
|
||||
emit layout->PieceTransformationChanged(piece);
|
||||
emit layout->LayoutChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -90,6 +90,7 @@ void VPUndoOriginMove::redo()
|
|||
|
||||
sheet->SetTransformationOrigin(m_origin);
|
||||
emit layout->TransformationOriginChanged();
|
||||
emit layout->LayoutChanged();
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
|
@ -90,6 +90,7 @@ void VPUndoPieceMove::redo()
|
|||
|
||||
piece->Translate(m_dx, m_dy);
|
||||
emit layout->PieceTransformationChanged(piece);
|
||||
emit layout->LayoutChanged();
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
@ -204,6 +205,8 @@ void VPUndoPiecesMove::redo()
|
|||
emit layout->PieceTransformationChanged(p);
|
||||
}
|
||||
}
|
||||
|
||||
emit layout->LayoutChanged();
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
|
@ -132,6 +132,8 @@ void VPUndoPieceRotate::redo()
|
|||
{
|
||||
m_firstCall = false;
|
||||
}
|
||||
|
||||
emit layout->LayoutChanged();
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
@ -279,6 +281,8 @@ void VPUndoPiecesRotate::redo()
|
|||
{
|
||||
m_firstCall = false;
|
||||
}
|
||||
|
||||
emit layout->LayoutChanged();
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
|
@ -111,10 +111,11 @@ void VPUndoRemoveSheet::redo()
|
|||
|
||||
emit layout->SheetListChanged();
|
||||
layout->SetFocusedSheet(VPSheetPtr());
|
||||
emit layout->LayoutChanged();
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
int VPUndoRemoveSheet::id() const
|
||||
auto VPUndoRemoveSheet::id() const -> int
|
||||
{
|
||||
return static_cast<int>(ML::UndoCommand::RemoveSheet);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user