mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 16:50:53 +01:00
remove needless code
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2122 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -50,6 +50,7 @@ void ConductorAutoNumerotation::setConductor(Conductor *c) {
|
||||
conductor_ = c;
|
||||
diagram_ = c -> diagram();
|
||||
conductor_list = c -> relatedPotentialConductors();
|
||||
if (strategy_) delete strategy_;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -139,8 +140,8 @@ void ConductorAutoNumerotation::removeNum_ofDiagram() {
|
||||
QList <QSet <Conductor *> > potential_list = diagram_ -> potentials();
|
||||
//Browse all potentials and set the default text
|
||||
for (int i=0; i < potential_list.size(); i++) {
|
||||
ConductorAutoNumerotation can (potential_list.at(i).toList().first());
|
||||
can.applyText(diagram_ -> defaultConductorProperties.text);
|
||||
setConductor (potential_list.at(i).toList().first());
|
||||
applyText (diagram_ -> defaultConductorProperties.text);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user