From 03672b804623519c4a3c90056f482030648a73e6 Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Tue, 11 Jun 2013 16:15:29 +0000 Subject: [PATCH] Add method to don't save, save as save to file a element if it seem to be out of the element border (hotspot). git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2246 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/editor/qetelementeditor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sources/editor/qetelementeditor.cpp b/sources/editor/qetelementeditor.cpp index 306b2f709..e9e51ceea 100644 --- a/sources/editor/qetelementeditor.cpp +++ b/sources/editor/qetelementeditor.cpp @@ -999,6 +999,7 @@ bool QETElementEditor::slot_save() { Demande une localisation a l'utilisateur et enregistre l'element */ bool QETElementEditor::slot_saveAs() { + if (!ce_scene -> borderContainsEveryParts()) return(false); // demande une localisation a l'utilisateur ElementsLocation location = ElementDialog::getSaveElementLocation(this); if (location.isNull()) return(false); @@ -1018,6 +1019,8 @@ bool QETElementEditor::slot_saveAs() { Demande un nom de fichier a l'utilisateur et enregistre l'element */ bool QETElementEditor::slot_saveAsFile() { + if (!ce_scene -> borderContainsEveryParts()) return(false); + // demande un nom de fichier a l'utilisateur pour enregistrer l'element QString fn = QFileDialog::getSaveFileName( this,