MuseScore/libmscore/elementgroup.cpp
Dmitri Ovodok 55230ca86d Add a way to handle dragging elements collectively
Also draw anchor lines for multiple selected elements on dragging
2020-04-17 00:10:39 +03:00

34 lines
856 B
C++

//=============================================================================
// MuseScore
// Music Composition & Notation
//
// Copyright (C) 2020 MuseScore BVBA
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2
// as published by the Free Software Foundation and appearing in
// the file LICENCE.GPL
//=============================================================================
#include "elementgroup.h"
#include "element.h"
namespace Ms {
void SingleElementGroup::startDrag(EditData& ed)
{
e->startDrag(ed);
}
QRectF SingleElementGroup::drag(EditData& ed)
{
return e->drag(ed);
}
void SingleElementGroup::endDrag(EditData& ed)
{
e->endDrag(ed);
e->triggerLayout();
}
} // namespace Ms