Make buttons toggleable by single clicking

This commit is contained in:
xypwn
2020-04-04 14:07:16 +02:00
parent 5340635389
commit 7ade16be8b
20 changed files with 80 additions and 65 deletions

View File

@@ -79,7 +79,6 @@ IntegratedCircuit* Logic::createIC(QString filename, QPointF pos)
m_parentScene->addItem(ic);
m_parts.append(ic);
ic->setPos(pos);
ic->m_oldPos = pos;
ic->m_partType = PartType::IntegratedCircuit;
return ic;
}
@@ -117,7 +116,6 @@ Part* Logic::createPart(PartType::PartType partType, QPointF pos)
m_parentScene->addItem(part);
m_parts.append(part);
part->setPos(pos);
part->m_oldPos = pos;
part->m_partType = partType;
return part;