summaryrefslogtreecommitdiffstats
path: root/sigmodr/TrainerItem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmodr/TrainerItem.cpp')
-rw-r--r--sigmodr/TrainerItem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sigmodr/TrainerItem.cpp b/sigmodr/TrainerItem.cpp
index b23856be..55da4d10 100644
--- a/sigmodr/TrainerItem.cpp
+++ b/sigmodr/TrainerItem.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
@@ -102,7 +102,7 @@ void Sigmodr::TrainerItem::mousePressEvent(QGraphicsSceneMouseEvent* event)
void Sigmodr::TrainerItem::mouseMoveEvent(QGraphicsSceneMouseEvent* event)
{
QGraphicsItem::mouseMoveEvent(event);
- m_trainer->setCoordinate(scenePos().toPoint());
+ m_trainer->setPosition(scenePos().toPoint());
}
void Sigmodr::TrainerItem::mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
@@ -113,6 +113,6 @@ void Sigmodr::TrainerItem::mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
void Sigmodr::TrainerItem::trainerChanged()
{
- setPos(m_trainer->coordinate());
+ setPos(m_trainer->position());
update();
}