Element autonumbering. Add autonumbering menu to assign formulas to

custom element label. 
(~/.qet/elements/qet_labels.xml)


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4909 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2017-02-13 11:40:33 +00:00
parent c2d323a818
commit 70b047a101

View File

@@ -467,9 +467,20 @@ namespace autonum
QString filepath = QETApp::commonElementsDir().append(qet_labels);
QFile file(filepath);
file.isReadable();
if (!file.open(QFile::ReadOnly | QFile::Text))
return QString();
if (current_location.fileName() != "10_electric"){
QString custom_labels = "qet_labels.xml";
QString customfilepath = QETApp::customElementsDir().append(custom_labels);
QFile file(customfilepath);
file.isReadable();
if (!file.open(QFile::ReadOnly | QFile::Text))
return QString();
}
rxml.setDevice(&file);
rxml.readNext();