Commit 2b24f51d authored by Thomas Zander's avatar Thomas Zander
Browse files

rename getShapeAt() -> shapeAt()

svn path=/trunk/koffice/; revision=552158
parent 3fd47d51
......@@ -75,7 +75,7 @@ KoInteractionStrategy* KoInteractionStrategy::createStrategy(KoPointerEvent *eve
return new KoShapeMoveStrategy(parent, canvas, event->point);
}
KoShape * object( shapeManager->getShapeAt( event->point ) );
KoShape * object( shapeManager->shapeAt( event->point ) );
if( !object && handle == KoFlake::NoHandle) {
parent->repaintDecorations();
select->deselectAll();
......
......@@ -117,7 +117,7 @@ void KoShapeManager::paint( QPainter &painter, KoViewConverter &converter, bool
m_selection->paint( painter, converter );
}
KoShape * KoShapeManager::getShapeAt( const QPointF &position )
KoShape * KoShapeManager::shapeAt( const QPointF &position )
{
QList<KoShape*> sorterdShapes(m_shapes);
qSort(sorterdShapes.begin(), sorterdShapes.end(), KoShape::compareShapeZIndex);
......
......@@ -93,7 +93,7 @@ public:
* Returns the shape located at a specific point in the document.
* @param position the position in the normal coordinate system.
*/
KoShape * getShapeAt( const QPointF &position );
KoShape * shapeAt( const QPointF &position );
signals:
/// emitted when the selection is changed
......
......@@ -112,7 +112,7 @@ class MoveTool : public KoInteractionTool {
public:
MoveTool(KoCanvasBase *canvas) : KoInteractionTool(canvas) {};
void mousePressEvent( KoPointerEvent *event ) {
KoShape *clickedShape = m_canvas->shapeManager()->getShapeAt(event->point);
KoShape *clickedShape = m_canvas->shapeManager()->shapeAt(event->point);
repaintDecorations();
m_canvas->shapeManager()->selection()->deselectAll();
if(clickedShape) {
......@@ -227,7 +227,7 @@ bool KoShapeSelector::event(QEvent *e) {
QHelpEvent *helpEvent = static_cast<QHelpEvent *>(e);
const QPointF pos(helpEvent->x(), helpEvent->y());
KoShape *shape = m_shapeManager->getShapeAt(pos);
KoShape *shape = m_shapeManager->shapeAt(pos);
if(shape) {
IconShape *is = static_cast<IconShape*> (shape);
QToolTip::showText(helpEvent->globalPos(), is->toolTip());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment