mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
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
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user