just collecting all the dead code into a pile to burn

This commit is contained in:
Aaron Seigo 2012-11-09 17:14:47 +01:00
parent 05479087de
commit 84b3eaf0c1

View File

@ -208,27 +208,6 @@ QString ContainmentActions::eventToString(QEvent *event)
return trigger; return trigger;
} }
QPoint screenPosFromEvent(QEvent *event)
{
switch (event->type()) {
case QEvent::MouseButtonPress:
case QEvent::MouseButtonRelease:
case QEvent::MouseButtonDblClick:
return static_cast<QMouseEvent*>(event)->globalPos();
break;
case QEvent::Wheel:
return static_cast<QWheelEvent*>(event)->globalPos();
break;
case QEvent::ContextMenu:
return static_cast<QContextMenuEvent*>(event)->globalPos();
break;
default:
break;
}
return QPoint();
}
void ContainmentActions::setContainment(Containment *newContainment) { void ContainmentActions::setContainment(Containment *newContainment) {
d->containment = newContainment; d->containment = newContainment;
} }