remove some now-dead code

This commit is contained in:
Aaron Seigo 2012-11-09 17:08:03 +01:00
parent cf2858a893
commit 05479087de

View File

@ -229,32 +229,6 @@ QPoint screenPosFromEvent(QEvent *event)
return QPoint();
}
QPointF scenePosFromEvent(QEvent *event)
{
switch (event->type()) {
case QEvent::MouseButtonPress:
case QEvent::MouseButtonRelease:
case QEvent::MouseButtonDblClick:
return static_cast<QMouseEvent*>(event)->pos();
break;
case QEvent::Wheel:
return static_cast<QWheelEvent*>(event)->pos();
break;
case QEvent::ContextMenu:
return static_cast<QContextMenuEvent*>(event)->pos();
break;
default:
break;
}
return QPoint();
}
bool isNonSceneEvent(QEvent *event)
{
return dynamic_cast<QEvent *>(event) == 0;
}
void ContainmentActions::setContainment(Containment *newContainment) {
d->containment = newContainment;
}