[Containment Actions] Send along proper wheel orientation

BUG: 356799
FIXED-IN: 5.5.2
REVIEW: 126432
wilder-5.14
Kai Uwe Broulik 10 years ago
parent a0578e6e5d
commit c8e71c462c
  1. 2
      shell/currentcontainmentactionsmodel.cpp

@ -89,7 +89,7 @@ QString CurrentContainmentActionsModel::mouseEventString(int mouseButton, int mo
QString CurrentContainmentActionsModel::wheelEventString(const QPointF &delta, int mouseButtons, int modifiers)
{
QWheelEvent *wheel = new QWheelEvent(QPointF(), QPointF(), delta.toPoint(), QPoint(), 0, Qt::Vertical, (Qt::MouseButtons)mouseButtons, (Qt::KeyboardModifiers) modifiers);
QWheelEvent *wheel = new QWheelEvent(QPointF(), QPointF(), delta.toPoint(), QPoint(), 0, qAbs(delta.x()) > qAbs(delta.y()) ? Qt::Horizontal : Qt::Vertical, (Qt::MouseButtons)mouseButtons, (Qt::KeyboardModifiers) modifiers);
QString string = Plasma::ContainmentActions::eventToString(wheel);

Loading…
Cancel
Save