mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02: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:
parent
73d78ea623
commit
8a7d022486
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user