mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 08:40:53 +01:00
Element editor : add new handler for arc to resize angle with mouse.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4722 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -135,7 +135,7 @@ void ArcEditor::updateArcS()
|
||||
{
|
||||
if (m_locked) return;
|
||||
m_locked = true;
|
||||
double value = ((start_angle -> value() * -1) + 90) * 16;
|
||||
double value = start_angle->value() * 16;
|
||||
|
||||
if (value != part->property("startAngle"))
|
||||
{
|
||||
@@ -156,7 +156,7 @@ void ArcEditor::updateArcA()
|
||||
{
|
||||
if (m_locked) return;
|
||||
m_locked = true;
|
||||
double value = angle -> value() * -16;
|
||||
double value = angle->value() * 16;
|
||||
|
||||
if (value != part->property("spanAngle"))
|
||||
{
|
||||
@@ -204,8 +204,8 @@ void ArcEditor::updateForm()
|
||||
y->setValue(part->mapToScene(rect.topLeft()).y() + (rect.height()/2));
|
||||
h->setValue(rect.width());
|
||||
v->setValue(rect.height());
|
||||
start_angle -> setValue(((part->property("startAngle").toInt() / 16) - 90) * -1);
|
||||
angle -> setValue(part->property("spanAngle").toInt() / -16);
|
||||
start_angle->setValue(part->property("startAngle").toInt()/16);
|
||||
angle->setValue(part->property("spanAngle").toInt()/16);
|
||||
activeConnections(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user