mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
Project embedded collection, Clean unused elements and empty directory work again
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4568 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#include "qettemplateeditor.h"
|
||||
#include "diagramfoliolist.h"
|
||||
#include "projectpropertiesdialog.h"
|
||||
#include "xmlelementcollection.h"
|
||||
|
||||
/**
|
||||
Constructeur
|
||||
@@ -806,6 +807,12 @@ int ProjectView::cleanProject() {
|
||||
if (clean_tbt -> isChecked()) {
|
||||
m_project->embeddedTitleBlockTemplatesCollection()->deleteUnusedTitleBlocKTemplates();
|
||||
}
|
||||
if (clean_elements->isChecked()) {
|
||||
m_project->embeddedElementCollection()->cleanUnusedElement();
|
||||
}
|
||||
if (clean_categories->isChecked()) {
|
||||
m_project->embeddedElementCollection()->cleanUnusedDirectory();
|
||||
}
|
||||
}
|
||||
|
||||
return(clean_count);
|
||||
|
||||
Reference in New Issue
Block a user