Fix length returned from PanelView::geometryByDistance

PanelView::length() is not actual length.

Differential Revision: https://phabricator.kde.org/D1069
wilder-5.14
David Rosca 10 years ago
parent ccb199b682
commit 3c9d4a1db2
  1. 2
      shell/panelview.cpp

@ -464,7 +464,7 @@ QRect PanelView::geometryByDistance(int distance) const
position = QPoint(s->geometry().bottomLeft() - QPoint(0, thickness() + distance) + QPoint(m_offset, 1));
}
}
QRect ret = formFactor() == Plasma::Types::Vertical ? QRect(position, QSize(thickness(), length())) : QRect(position, QSize(length(), thickness()));
QRect ret = formFactor() == Plasma::Types::Vertical ? QRect(position, QSize(thickness(), height())) : QRect(position, QSize(width(), thickness()));
ret = ret.intersected(s->geometry());
return ret;
}

Loading…
Cancel
Save