Temporary disable validation check when export.
This commit is contained in:
parent
cc87f3420d
commit
99153594f7
|
@ -148,6 +148,12 @@ void VPSheetSceneData::PrepareForExport()
|
|||
piece->SetSelected(false);
|
||||
}
|
||||
}
|
||||
|
||||
m_outOfBoundTmp = layout->LayoutSettings().GetWarningPiecesOutOfBound();
|
||||
layout->LayoutSettings().SetWarningPiecesOutOfBound(false);
|
||||
|
||||
m_pieceSuperpositionTmp = layout->LayoutSettings().GetWarningSuperpositionOfPieces();
|
||||
layout->LayoutSettings().SetWarningSuperpositionOfPieces(false);
|
||||
}
|
||||
|
||||
RefreshLayout();
|
||||
|
@ -174,6 +180,9 @@ void VPSheetSceneData::CleanAfterExport()
|
|||
emit layout->PieceSelectionChanged(piece);
|
||||
}
|
||||
}
|
||||
|
||||
layout->LayoutSettings().SetWarningPiecesOutOfBound(m_outOfBoundTmp);
|
||||
layout->LayoutSettings().SetWarningSuperpositionOfPieces(m_pieceSuperpositionTmp);
|
||||
}
|
||||
|
||||
RefreshLayout();
|
||||
|
|
|
@ -114,6 +114,9 @@ private:
|
|||
|
||||
QList<VPPiecePtr> m_slectedPiecesTmp{};
|
||||
|
||||
bool m_outOfBoundTmp{false};
|
||||
bool m_pieceSuperpositionTmp{false};
|
||||
|
||||
void ConnectPiece(VPGraphicsPiece *piece);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user