diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-01-18 18:54:47 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-01-18 18:54:47 -0500 |
| commit | e30ee1a42fef0346b57333de118d9f3ca18bfa84 (patch) | |
| tree | 3795534079a88f65e0000d9208c690f21c4926af /sigmodr/EffectItem.cpp | |
| parent | 640b12f68997d7862df3a8d6cea1f40fc5ae8cca (diff) | |
| download | sigen-e30ee1a42fef0346b57333de118d9f3ca18bfa84.tar.gz sigen-e30ee1a42fef0346b57333de118d9f3ca18bfa84.tar.xz sigen-e30ee1a42fef0346b57333de118d9f3ca18bfa84.zip | |
Changed MapEffect coordinate to position
Diffstat (limited to 'sigmodr/EffectItem.cpp')
| -rw-r--r-- | sigmodr/EffectItem.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sigmodr/EffectItem.cpp b/sigmodr/EffectItem.cpp index 9b6c3327..e297ebb0 100644 --- a/sigmodr/EffectItem.cpp +++ b/sigmodr/EffectItem.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2008 Ben Boeckel <MathStuf@gmail.com> + * Copyright 2008-2009 Ben Boeckel <MathStuf@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -100,7 +100,7 @@ void Sigmodr::EffectItem::mousePressEvent(QGraphicsSceneMouseEvent* event) void Sigmodr::EffectItem::mouseMoveEvent(QGraphicsSceneMouseEvent* event) { QGraphicsItem::mouseMoveEvent(event); - m_effect->setCoordinate(scenePos().toPoint()); + m_effect->setPosition(scenePos().toPoint()); } void Sigmodr::EffectItem::mouseReleaseEvent(QGraphicsSceneMouseEvent* event) @@ -111,6 +111,6 @@ void Sigmodr::EffectItem::mouseReleaseEvent(QGraphicsSceneMouseEvent* event) void Sigmodr::EffectItem::effectChanged() { - setPos(m_effect->coordinate()); + setPos(m_effect->position()); update(); } |
