1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

ComboTabBar: Disable tab drag bounds with RTL

This commit is contained in:
David Rosca 2018-02-06 16:56:11 +01:00
parent 977b45505c
commit c506283534
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -1442,6 +1442,10 @@ void TabBarHelper::mouseMoveEvent(QMouseEvent *event)
// Don't allow to move tabs outside of tabbar
if (m_dragInProgress && m_movingTab) {
// FIXME: This doesn't work at all with RTL...
if (isRightToLeft()) {
return;
}
QRect r = tabRect(m_pressedIndex);
r.moveLeft(r.x() + (event->pos().x() - m_dragStartPosition.x()));
bool sendEvent = false;