just collecting all the dead code into a pile to burn
This commit is contained in:
parent
05479087de
commit
84b3eaf0c1
@ -208,27 +208,6 @@ QString ContainmentActions::eventToString(QEvent *event)
|
||||
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) {
|
||||
d->containment = newContainment;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user