Fix ProjectionGroupItem spacing

This commit is contained in:
WandererFan
2016-08-27 20:52:18 -04:00
parent a1b87d5176
commit e264a16b62
9 changed files with 637 additions and 625 deletions

View File

@@ -58,25 +58,16 @@ QGIViewCollection::QGIViewCollection()
QVariant QGIViewCollection::itemChange(GraphicsItemChange change, const QVariant &value)
{
return QGraphicsItemGroup::itemChange(change, value);
return QGIView::itemChange(change, value);
}
void QGIViewCollection::mouseReleaseEvent(QGraphicsSceneMouseEvent * event)
{
if(scene() && this == scene()->mouseGrabberItem()) {
Gui::Command::openCommand("Drag View Collection");
Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.%s.X = %f",
getViewObject()->getNameInDocument(), x());
Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.%s.Y = %f",
getViewObject()->getNameInDocument(), getY());
Gui::Command::commitCommand();
//Gui::Command::updateActive();
}
QGraphicsItem::mouseReleaseEvent(event);
//TODO: should MouseMove logic go here instead of QGIView?
QGIView::mouseReleaseEvent(event);
}
void QGIViewCollection::updateView(bool update)
{
return QGIView::updateView(update);
}