From ce38f43efebbedd97dfe5fb5de31e0b0f798d92d Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sun, 18 Jan 2009 19:04:35 -0500 Subject: Changed MapTrainer coordinate to position --- sigmodr/TrainerItem.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sigmodr/TrainerItem.cpp') 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 + * Copyright 2008-2009 Ben Boeckel * * 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(); } -- cgit