mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
Remove obsolete method
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3522 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -1427,21 +1427,6 @@ bool QETProject::titleBlockTemplateCollectionWasModified() {
|
||||
return(titleblocks_.templates().count());
|
||||
}
|
||||
|
||||
/**
|
||||
Cette methode sert a reperer un projet vide, c-a-d un projet identique a ce
|
||||
que l'on obtient en faisant Fichier > Nouveau.
|
||||
@return true si les schemas de ce projet ont ete modifies
|
||||
Concretement, il doit y avoir exactement un schema, dont la pile
|
||||
d'annulation est "clean".
|
||||
*/
|
||||
bool QETProject::diagramsWereModified() {
|
||||
// il doit y avoir exactement un schema
|
||||
if (diagrams_.count() != 1) return(true);
|
||||
|
||||
// dont la pile d'annulation est "clean"
|
||||
return(!(diagrams_[0] -> undoStack().isClean() && !diagrams_[0] -> wasWritten()));
|
||||
}
|
||||
|
||||
/**
|
||||
@return the project-wide properties made available to child diagrams.
|
||||
*/
|
||||
@@ -1467,12 +1452,15 @@ void QETProject::setProjectProperties(const DiagramContext &context) {
|
||||
@see diagramsWereModified(), embeddedCollectionWasModified()
|
||||
*/
|
||||
bool QETProject::projectWasModified() {
|
||||
if (projectOptionsWereModified()) return(true);
|
||||
if (diagramsWereModified()) return(true);
|
||||
if (embeddedCollectionWasModified()) return(true);
|
||||
if (titleBlockTemplateCollectionWasModified()) return(true);
|
||||
|
||||
if ( projectOptionsWereModified() ||
|
||||
!undo_stack_ -> isClean() ||
|
||||
embeddedCollectionWasModified() ||
|
||||
titleBlockTemplateCollectionWasModified() )
|
||||
return(true);
|
||||
|
||||
return(false);
|
||||
else
|
||||
return(false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user